-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #281 from myob-oss/master
248 to release
- Loading branch information
Showing
12 changed files
with
112 additions
and
1 deletion.
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 | ||
|