Skip to content
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 1 commit into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Copy link
Contributor

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

Copy link
Collaborator Author

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 ?

Copy link
Contributor

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

Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ MYOB.API.SDK/**/obj/**/*

# IDEs
.idea/
.vs/
6 changes: 6 additions & 0 deletions MYOB.API.SDK/SDK.NET35/SDK.NET35.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@
<Compile Include="..\SDK\Contracts\Version2\Inventory\InventoryBuild.cs">
<Link>Contracts\Version2\Inventory\InventoryBuild.cs</Link>
</Compile>
<Compile Include="..\SDK\Contracts\Version2\Inventory\PriceLevelDetail.cs">
<Link>Contracts\Version2\Inventory\PriceLevelDetail.cs</Link>
</Compile>
<Compile Include="..\SDK\Contracts\Version2\Payroll\EmployeePaymentSummary.cs">
<Link>Contracts\Version2\Payroll\EmployeePaymentSummary.cs</Link>
</Compile>
Expand Down Expand Up @@ -1061,6 +1064,9 @@
<Compile Include="..\SDK\Services\Version2\Inventory\ItemService.cs">
<Link>Services\Version2\Inventory\ItemService.cs</Link>
</Compile>
<Compile Include="..\SDK\Services\Version2\Inventory\PriceLevelDetailService.cs">
<Link>Services\Version2\Inventory\PriceLevelDetailService.cs</Link>
</Compile>
<Compile Include="..\SDK\Services\Version2\IOperation.cs">
<Link>Services\Version2\IOperation.cs</Link>
</Compile>
Expand Down
6 changes: 6 additions & 0 deletions MYOB.API.SDK/SDK.NET40/SDK.NET40.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@
<Compile Include="..\SDK\Contracts\Version2\Inventory\InventoryBuild.cs">
<Link>Contracts\Version2\Inventory\InventoryBuild.cs</Link>
</Compile>
<Compile Include="..\SDK\Contracts\Version2\Inventory\PriceLevelDetail.cs">
<Link>Contracts\Version2\Inventory\PriceLevelDetail.cs</Link>
</Compile>
<Compile Include="..\SDK\Contracts\Version2\Payroll\EmployeePaymentSummary.cs">
<Link>Contracts\Version2\Payroll\EmployeePaymentSummary.cs</Link>
</Compile>
Expand Down Expand Up @@ -1084,6 +1087,9 @@
<Compile Include="..\SDK\Services\Version2\Inventory\ItemService.cs">
<Link>Services\Version2\Inventory\ItemService.cs</Link>
</Compile>
<Compile Include="..\SDK\Services\Version2\Inventory\PriceLevelDetailService.cs">
<Link>Services\Version2\Inventory\PriceLevelDetailService.cs</Link>
</Compile>
<Compile Include="..\SDK\Services\Version2\IOperation.cs">
<Link>Services\Version2\IOperation.cs</Link>
</Compile>
Expand Down
6 changes: 6 additions & 0 deletions MYOB.API.SDK/SDK.NET45/SDK.NET45.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@
<Compile Include="..\SDK\Contracts\Version2\Inventory\InventoryBuild.cs">
<Link>Contracts\Version2\Inventory\InventoryBuild.cs</Link>
</Compile>
<Compile Include="..\SDK\Contracts\Version2\Inventory\PriceLevelDetail.cs">
<Link>Contracts\Version2\Inventory\PriceLevelDetail.cs</Link>
</Compile>
<Compile Include="..\SDK\Contracts\Version2\Payroll\EmployeePaymentSummary.cs">
<Link>Contracts\Version2\Payroll\EmployeePaymentSummary.cs</Link>
</Compile>
Expand Down Expand Up @@ -1088,6 +1091,9 @@
<Compile Include="..\SDK\Services\Version2\Inventory\ItemService.cs">
<Link>Services\Version2\Inventory\ItemService.cs</Link>
</Compile>
<Compile Include="..\SDK\Services\Version2\Inventory\PriceLevelDetailService.cs">
<Link>Services\Version2\Inventory\PriceLevelDetailService.cs</Link>
</Compile>
<Compile Include="..\SDK\Services\Version2\IOperation.cs">
<Link>Services\Version2\IOperation.cs</Link>
</Compile>
Expand Down
18 changes: 18 additions & 0 deletions MYOB.API.SDK/SDK.Test/Contracts/Version2/PriceLevelDetailTests.cs
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);
}
}
}
2 changes: 2 additions & 0 deletions MYOB.API.SDK/SDK.Test/SDK.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
<Compile Include="Contracts\Version2\GeneralJournalLineTests.cs" />
<Compile Include="Contracts\Version2\LocationTests.cs" />
<Compile Include="Contracts\Version2\JournalTransactionHistoryTests.cs" />
<Compile Include="Contracts\Version2\PriceLevelDetailTests.cs" />
<Compile Include="Contracts\Version2\SaleEmailTests.cs" />
<Compile Include="Contracts\Version2\ActivitySlipTests.cs" />
<Compile Include="Contracts\Version2\ItemQuoteTests.cs" />
Expand Down Expand Up @@ -166,6 +167,7 @@
<Compile Include="Services\CustomListServiceTests.cs" />
<Compile Include="Services\InventoryBuildServiceTests.cs" />
<Compile Include="Services\MiscellaneousBillAttachmentServiceTests.cs" />
<Compile Include="Services\PriceLevelDetailServiceTests.cs" />
<Compile Include="Services\ProfessionalBillAttachmentServiceTests.cs" />
<Compile Include="Services\ServiceBillAttachmentServiceTests.cs" />
<Compile Include="Services\LocationServiceTests.cs" />
Expand Down
16 changes: 16 additions & 0 deletions MYOB.API.SDK/SDK.Test/Services/PriceLevelDetailServiceTests.cs
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);
}
}
}
1 change: 1 addition & 0 deletions MYOB.API.SDK/SDK/ApiConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ static ApiConfiguration()
/// <param name="redirectUrl">The redirect uri for the application (OAuth related)</param>
/// <param name="apiBaseUrl">The AccountRight API endpoint, defaults to 'https://api.myob.com/accountright'</param>
/// <param name="generateUris">Should the returned entities have the <see cref="BaseEntity.URI"/> and <see cref="BaseLink.URI"/> fields populated</param>
/// <param name="apiKey">If API Key is different from the Client ID, we can provide it explicitly</param>
public ApiConfiguration(string clientId, string clientSecret, string redirectUrl, string apiBaseUrl = "https://api.myob.com/accountright", bool generateUris = true, string apiKey = null)
{
ApiBaseUrl = apiBaseUrl;
Expand Down
23 changes: 23 additions & 0 deletions MYOB.API.SDK/SDK/Contracts/Version2/Inventory/PriceLevelDetail.cs
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; }
}
}
2 changes: 2 additions & 0 deletions MYOB.API.SDK/SDK/SDK.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
<Compile Include="Contracts\Version2\Inventory\LocationLink.cs" />
<Compile Include="Contracts\Version2\Inventory\ItemPriceMatrix.cs" />
<Compile Include="Contracts\Version2\Inventory\Levels.cs" />
<Compile Include="Contracts\Version2\Inventory\PriceLevelDetail.cs" />
<Compile Include="Contracts\Version2\Inventory\SellingPrice.cs" />
<Compile Include="Contracts\Version2\Payroll\EmployeePaymentSummary.cs" />
<Compile Include="Contracts\Version2\Payroll\EmployeePaymentSummaryETP.cs" />
Expand Down Expand Up @@ -407,6 +408,7 @@
<Compile Include="Services\Version2\Inventory\InventoryAdjustmentService.cs" />
<Compile Include="Services\Version2\Inventory\InventoryBuildService.cs" />
<Compile Include="Services\Version2\Inventory\ItemPriceMatrixService.cs" />
<Compile Include="Services\Version2\Inventory\PriceLevelDetailService.cs" />
<Compile Include="Services\Version2\Payroll\EmployeePaymentSummaryETPAmendedService.cs" />
<Compile Include="Services\Version2\Payroll\EmployeePaymentSummaryETPService.cs" />
<Compile Include="Services\Version2\Payroll\EmployeePaymentSummaryINBAmendedService.cs" />
Expand Down
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"; }
}
}
}
2 changes: 1 addition & 1 deletion appveyor.yml
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
Expand Down
Loading