-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Auto Mation <[email protected]>
- Loading branch information
1 parent
b22c0e4
commit 203c4dc
Showing
337 changed files
with
1,085 additions
and
580 deletions.
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 |
---|---|---|
@@ -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> | ||
|
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
35 changes: 35 additions & 0 deletions
35
...tools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Me/ByProjectKeyMeOrdersQuotesTest.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,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", | ||
} | ||
}; | ||
} | ||
} | ||
} |
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
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
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
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
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
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
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
Oops, something went wrong.