-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate SDK 24.8 #280
Merged
Merged
Generate SDK 24.8 #280
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ MYOB.API.SDK/**/obj/**/* | |
|
||
# IDEs | ||
.idea/ | ||
.vs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
MYOB.API.SDK/SDK.Test/Contracts/Version2/PriceLevelDetailTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using MYOB.AccountRight.SDK.Contracts.Version2.Inventory; | ||
using NUnit.Framework; | ||
|
||
namespace SDK.Test.Contracts.Version2 | ||
{ | ||
[TestFixture] | ||
public class PriceLevelDetailTests | ||
{ | ||
[Test] | ||
public void PriceLevelDetailIsCreatedWithDefaultValues() | ||
{ | ||
var priceLevelDetail = new PriceLevelDetail(); | ||
|
||
Assert.AreEqual(null, priceLevelDetail.Name); | ||
Assert.AreEqual(null, priceLevelDetail.Value); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
MYOB.API.SDK/SDK.Test/Services/PriceLevelDetailServiceTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Globalization; | ||
using MYOB.AccountRight.SDK.Services.Inventory; | ||
using NUnit.Framework; | ||
|
||
namespace SDK.Test.Services | ||
{ | ||
[TestFixture] | ||
public class PriceLevelDetailServiceTests | ||
{ | ||
[Test] | ||
public void ServiceHasTheExpectedRoute() | ||
{ | ||
Assert.AreEqual("Inventory/PriceLevelDetail", new PriceLevelDetailService(null).Route); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
MYOB.API.SDK/SDK/Contracts/Version2/Inventory/PriceLevelDetail.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
namespace MYOB.AccountRight.SDK.Contracts.Version2.Inventory | ||
{ | ||
/// <summary> | ||
/// Price level detail | ||
/// </summary> | ||
public class PriceLevelDetail | ||
{ | ||
/// <summary> | ||
/// Name of the Price Level | ||
/// </summary> | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// Value of the Price Level | ||
/// </summary> | ||
public string Value { get; set; } | ||
|
||
/// <summary> | ||
/// row version number | ||
/// </summary> | ||
public string RowVersion { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
MYOB.API.SDK/SDK/Services/Version2/Inventory/PriceLevelDetailService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using MYOB.AccountRight.SDK.Communication; | ||
using MYOB.AccountRight.SDK.Contracts.Version2.Inventory; | ||
|
||
namespace MYOB.AccountRight.SDK.Services.Inventory | ||
{ | ||
/// <summary> | ||
/// A service that provides access to the <see cref="PriceLevelDetail"/> resource | ||
/// </summary> | ||
public class PriceLevelDetailService: ReadableService<PriceLevelDetail> | ||
{ | ||
/// <summary> | ||
/// Initialise a service that can use <see cref="PriceLevelDetail"/> resources | ||
/// </summary> | ||
/// <param name="configuration">The configuration required to communicate with the API service</param> | ||
/// <param name="webRequestFactory">A custom implementation of the <see cref="WebRequestFactory"/>, if one is not supplied a default <see cref="WebRequestFactory"/> will be used.</param> | ||
/// <param name="keyService">An implementation of a service that will store/persist the OAuth tokens required to communicate with the cloud based API at http://api.myob.com/accountright </param> | ||
public PriceLevelDetailService(IApiConfiguration configuration, IWebRequestFactory webRequestFactory = null, IOAuthKeyService keyService = null) | ||
: base(configuration, webRequestFactory, keyService) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// The route to the service (after the company file identifier) | ||
/// </summary> | ||
public override string Route | ||
{ | ||
get { return "Inventory/PriceLevelDetail"; } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version: 2024.7.{build} | ||
version: 2024.8.{build} | ||
shallow_clone: true | ||
assembly_info: | ||
patch: true | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not think the one should be committed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a change to ignore my
.vs/
file. Is this not standard to update gitignore IDE files to the gitignore ?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can add it if you think we need it, I agree Bella, up to you.
Previously was no need for one