Skip to content

Commit

Permalink
Update generated SDKs (#214)
Browse files Browse the repository at this point in the history
Co-authored-by: Auto Mation <[email protected]>
  • Loading branch information
github-actions[bot] and Auto Mation authored Mar 6, 2023
1 parent b22c0e4 commit 203c4dc
Show file tree
Hide file tree
Showing 337 changed files with 1,085 additions and 580 deletions.
141 changes: 140 additions & 1 deletion changes.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,147 @@
**Api changes**

<details>
<summary>Removed Property(s)</summary>

- :warning: removed property `externalTaxRate` from type `MyCartAddLineItemAction`
- :warning: removed property `externalPrice` from type `MyCartAddLineItemAction`
- :warning: removed property `externalTotalPrice` from type `MyCartAddLineItemAction`
</details>


<details>
<summary>Changed Property(s)</summary>

- :warning: changed property `totalPrice` of type `Cart` from type `TypedMoney` to `CentPrecisionMoney`
- :warning: changed property `locale` of type `Cart` from type `string` to `Locale`
- :warning: changed property `country` of type `CartDraft` from type `string` to `CountryCode`
- :warning: changed property `locale` of type `CartDraft` from type `string` to `Locale`
- :warning: changed property `totalPrice` of type `CustomLineItem` from type `TypedMoney` to `CentPrecisionMoney`
- :warning: changed property `externalTaxRate` of type `CustomShippingDraft` from type `string` to `ExternalTaxRateDraft`
- :warning: changed property `deliveries` of type `CustomShippingDraft` from type `Delivery[]` to `DeliveryDraft[]`
- :warning: changed property `custom` of type `CustomShippingDraft` from type `string` to `CustomFieldsDraft`
- :warning: changed property `country` of type `ExternalTaxRateDraft` from type `string` to `CountryCode`
- :warning: changed property `totalPrice` of type `LineItem` from type `TypedMoney` to `CentPrecisionMoney`
- :warning: changed property `externalTaxRate` of type `ShippingDraft` from type `string` to `ExternalTaxRateDraft`
- :warning: changed property `deliveries` of type `ShippingDraft` from type `Delivery[]` to `DeliveryDraft[]`
- :warning: changed property `custom` of type `ShippingDraft` from type `string` to `CustomFieldsDraft`
- :warning: changed property `price` of type `ShippingInfo` from type `TypedMoney` to `CentPrecisionMoney`
- :warning: changed property `amount` of type `TaxPortion` from type `TypedMoney` to `CentPrecisionMoney`
- :warning: changed property `totalNet` of type `TaxedItemPrice` from type `TypedMoney` to `CentPrecisionMoney`
- :warning: changed property `totalGross` of type `TaxedItemPrice` from type `TypedMoney` to `CentPrecisionMoney`
- :warning: changed property `totalTax` of type `TaxedItemPrice` from type `TypedMoney` to `CentPrecisionMoney`
- :warning: changed property `totalNet` of type `TaxedPrice` from type `TypedMoney` to `CentPrecisionMoney`
- :warning: changed property `totalGross` of type `TaxedPrice` from type `TypedMoney` to `CentPrecisionMoney`
- :warning: changed property `totalTax` of type `TaxedPrice` from type `TypedMoney` to `CentPrecisionMoney`
- :warning: changed property `externalTaxRate` of type `CartAddCustomShippingMethodAction` from type `string` to `ExternalTaxRateDraft`
- :warning: changed property `deliveries` of type `CartAddCustomShippingMethodAction` from type `Delivery[]` to `DeliveryDraft[]`
- :warning: changed property `custom` of type `CartAddCustomShippingMethodAction` from type `string` to `CustomFieldsDraft`
- :warning: changed property `shippingMethod` of type `CartAddShippingMethodAction` from type `ShippingMethodReference` to `ShippingMethodResourceIdentifier`
- :warning: changed property `externalTaxRate` of type `CartAddShippingMethodAction` from type `string` to `ExternalTaxRateDraft`
- :warning: changed property `deliveries` of type `CartAddShippingMethodAction` from type `Delivery[]` to `DeliveryDraft[]`
- :warning: changed property `custom` of type `CartAddShippingMethodAction` from type `string` to `CustomFieldsDraft`
- :warning: changed property `locale` of type `CartSetLocaleAction` from type `string` to `Locale`
- :warning: changed property `businessUnit` of type `MyCartDraft` from type `BusinessUnitKeyReference` to `BusinessUnitResourceIdentifier`
- :warning: changed property `store` of type `MyCartDraft` from type `StoreKeyReference` to `StoreResourceIdentifier`
- :warning: changed property `country` of type `MyCartDraft` from type `string` to `CountryCode`
- :warning: changed property `locale` of type `MyCartDraft` from type `string` to `Locale`
- :warning: changed property `locale` of type `MyCartSetLocaleAction` from type `string` to `Locale`
</details>


<details>
<summary>Required Property(s)</summary>

- :warning: changed property `inventoryMode` of type `Cart` to be required
- :warning: changed property `itemShippingAddresses` of type `Cart` to be required
- :warning: changed property `discountCodes` of type `Cart` to be required
- :warning: changed property `directDiscounts` of type `Cart` to be required
- :warning: changed property `shippingAddress` of type `ShippingDraft` to be required
- changed property `quantity` of type `CustomLineItemDraft` to be optional
- changed property `deliveries` of type `CustomShippingDraft` to be optional
- changed property `deliveries` of type `ShippingDraft` to be optional
- changed property `quantity` of type `CartAddCustomLineItemAction` to be optional
- changed property `deliveries` of type `CartAddCustomShippingMethodAction` to be optional
- changed property `deliveries` of type `CartAddShippingMethodAction` to be optional
- changed property `email` of type `CartSetCustomerEmailAction` to be optional
- changed property `quantity` of type `MyLineItemDraft` to be optional
</details>


<details>
<summary>Added Property(s)</summary>

- added property `shippingDetails` to type `CartAddCustomLineItemAction`
- added property `addedAt` to type `CartAddLineItemAction`
- added property `inventoryMode` to type `CartAddLineItemAction`
</details>


<details>
<summary>Added Resource(s)</summary>

- added resource `/{projectKey}/me/orders/quotes`
</details>


<details>
<summary>Added Method(s)</summary>

- added method `apiRoot.withProjectKey().me().orders().quotes().post()`
</details>


<details>
<summary>Removed Type(s)</summary>

- :warning: removed type `CountryNotConfiguredInStore`
</details>


<details>
<summary>Added Type(s)</summary>

- added type `CartSetBusinessUnitAction`
- added type `CountryNotConfiguredInStoreError`
- added type `MyOrderFromQuoteDraft`
- added type `MyCartSetBusinessUnitAction`
</details>


<details>
<summary>Added QueryParameter(s)</summary>

- added query parameter `expand` to method `get /{projectKey}/in-store/key={storeKey}/me/active-cart`
</details>


<details>
<summary>Added Enum(s)</summary>

- added enum `shipping` to type `ResourceTypeId`
</details>

**Import changes**

<details>
<summary>Required Property(s)</summary>

- changed property `password` of type `CustomerImport` to be optional
</details>


<details>
<summary>Added Property(s)</summary>

- added property `authenticationMode` to type `CustomerImport`
- added property `state` to type `OrderImport`
- added property `custom` to type `Address`
</details>


<details>
<summary>Added Type(s)</summary>

- added type `GoogleCloudFunctionDestination`
- added type `AuthenticationMode`
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void allSubResourcesSupported()
.Where(name => !ignoreMethods.Contains(name))
.Where(name => !projectApiRootMethods.Contains(name))
.ToList();

Assert.Empty(resourceMethods);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void allSubResourcesSupported()
.Where(name => !ignoreMethods.Contains(name))
.Where(name => !projectApiRootMethods.Contains(name))
.ToList();

Assert.Empty(resourceMethods);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ public void WithMethods(HttpRequestMessage request, string httpMethod, string ur
public static IEnumerable<object[]> GetData()
{
return new List<object[]> {
new Object[] {
ApiRoot
.WithProjectKey("test_projectKey")
.InStoreKeyWithStoreKeyValue("test_storeKey")
.Me()
.ActiveCart()
.Get()
.WithExpand("expand")
.Build(),
"Get",
"/test_projectKey/in-store/key=test_storeKey/me/active-cart?expand=expand",
},
new Object[] {
ApiRoot
.WithProjectKey("test_projectKey")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.Net.Http;
using Xunit;

namespace commercetools.Sdk.Api.Tests.Client.RequestBuilders.Me
{
public class ByProjectKeyMeOrdersQuotesTest : RequestBuilderParentTests
{
[Theory]
[MemberData(nameof(GetData))]
public void WithMethods(HttpRequestMessage request, string httpMethod, string uri)
{
Assert.Equal(httpMethod.ToLower(), request.Method.Method.ToLower());
Assert.Equal(uri.ToLower(), request.RequestUri.ToString().ToLower());
}

public static IEnumerable<object[]> GetData()
{
return new List<object[]> {
new Object[] {
ApiRoot
.WithProjectKey("test_projectKey")
.Me()
.Orders()
.Quotes()
.Post(null)
.Build(),
"Post",
"/test_projectKey/me/orders/quotes",
}
};
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace commercetools.Sdk.Api.Client.RequestBuilders.ApiClients
{

public class ByProjectKeyApiClientsByIDRequestBuilder
public partial class ByProjectKeyApiClientsByIDRequestBuilder
{

private IClient ApiHttpClient { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace commercetools.Sdk.Api.Client.RequestBuilders.ApiClients
{

public class ByProjectKeyApiClientsRequestBuilder
public partial class ByProjectKeyApiClientsRequestBuilder
{

private IClient ApiHttpClient { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace commercetools.Sdk.Api.Client.RequestBuilders.AttributeGroups
{

public class ByProjectKeyAttributeGroupsByIDRequestBuilder
public partial class ByProjectKeyAttributeGroupsByIDRequestBuilder
{

private IClient ApiHttpClient { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace commercetools.Sdk.Api.Client.RequestBuilders.AttributeGroups
{

public class ByProjectKeyAttributeGroupsKeyByKeyRequestBuilder
public partial class ByProjectKeyAttributeGroupsKeyByKeyRequestBuilder
{

private IClient ApiHttpClient { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace commercetools.Sdk.Api.Client.RequestBuilders.AttributeGroups
{

public class ByProjectKeyAttributeGroupsRequestBuilder
public partial class ByProjectKeyAttributeGroupsRequestBuilder
{

private IClient ApiHttpClient { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace commercetools.Sdk.Api.Client.RequestBuilders.BusinessUnits
{

public class ByProjectKeyBusinessUnitsByIDRequestBuilder
public partial class ByProjectKeyBusinessUnitsByIDRequestBuilder
{

private IClient ApiHttpClient { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace commercetools.Sdk.Api.Client.RequestBuilders.BusinessUnits
{

public class ByProjectKeyBusinessUnitsKeyByKeyRequestBuilder
public partial class ByProjectKeyBusinessUnitsKeyByKeyRequestBuilder
{

private IClient ApiHttpClient { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace commercetools.Sdk.Api.Client.RequestBuilders.BusinessUnits
{

public class ByProjectKeyBusinessUnitsRequestBuilder
public partial class ByProjectKeyBusinessUnitsRequestBuilder
{

private IClient ApiHttpClient { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace commercetools.Sdk.Api.Client.RequestBuilders.CartDiscounts
{

public class ByProjectKeyCartDiscountsByIDRequestBuilder
public partial class ByProjectKeyCartDiscountsByIDRequestBuilder
{

private IClient ApiHttpClient { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace commercetools.Sdk.Api.Client.RequestBuilders.CartDiscounts
{

public class ByProjectKeyCartDiscountsKeyByKeyRequestBuilder
public partial class ByProjectKeyCartDiscountsKeyByKeyRequestBuilder
{

private IClient ApiHttpClient { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace commercetools.Sdk.Api.Client.RequestBuilders.CartDiscounts
{

public class ByProjectKeyCartDiscountsRequestBuilder
public partial class ByProjectKeyCartDiscountsRequestBuilder
{

private IClient ApiHttpClient { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace commercetools.Sdk.Api.Client.RequestBuilders.Carts
{

public class ByProjectKeyCartsByIDRequestBuilder
public partial class ByProjectKeyCartsByIDRequestBuilder
{

private IClient ApiHttpClient { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace commercetools.Sdk.Api.Client.RequestBuilders.Carts
{

public class ByProjectKeyCartsCustomerIdByCustomerIdRequestBuilder
public partial class ByProjectKeyCartsCustomerIdByCustomerIdRequestBuilder
{

private IClient ApiHttpClient { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace commercetools.Sdk.Api.Client.RequestBuilders.Carts
{

public class ByProjectKeyCartsKeyByKeyRequestBuilder
public partial class ByProjectKeyCartsKeyByKeyRequestBuilder
{

private IClient ApiHttpClient { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace commercetools.Sdk.Api.Client.RequestBuilders.Carts
{

public class ByProjectKeyCartsReplicateRequestBuilder
public partial class ByProjectKeyCartsReplicateRequestBuilder
{

private IClient ApiHttpClient { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace commercetools.Sdk.Api.Client.RequestBuilders.Carts
{

public class ByProjectKeyCartsRequestBuilder
public partial class ByProjectKeyCartsRequestBuilder
{

private IClient ApiHttpClient { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace commercetools.Sdk.Api.Client.RequestBuilders.Categories
{

public class ByProjectKeyCategoriesByIDRequestBuilder
public partial class ByProjectKeyCategoriesByIDRequestBuilder
{

private IClient ApiHttpClient { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace commercetools.Sdk.Api.Client.RequestBuilders.Categories
{

public class ByProjectKeyCategoriesKeyByKeyRequestBuilder
public partial class ByProjectKeyCategoriesKeyByKeyRequestBuilder
{

private IClient ApiHttpClient { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace commercetools.Sdk.Api.Client.RequestBuilders.Categories
{

public class ByProjectKeyCategoriesRequestBuilder
public partial class ByProjectKeyCategoriesRequestBuilder
{

private IClient ApiHttpClient { get; }
Expand Down
Loading

0 comments on commit 203c4dc

Please sign in to comment.