-
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.
Merge pull request #202 from commercetools/gen-sdk-updates
Update generated SDKs
- Loading branch information
Showing
38 changed files
with
226 additions
and
199 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,179 +1,42 @@ | ||
**Api changes** | ||
|
||
<details> | ||
<summary>Added Enum(s)</summary> | ||
|
||
- added enum `Frozen` to type `CartState` | ||
</details> | ||
|
||
|
||
<details> | ||
<summary>Added Resource(s)</summary> | ||
|
||
- added resource `/{projectKey}/shipping-methods/matching-cart-location` | ||
</details> | ||
|
||
|
||
<details> | ||
<summary>Changed Property(s)</summary> | ||
|
||
- :warning: changed property `amount` of type `Transaction` from type `TypedMoney` to `CentPrecisionMoney` | ||
- :warning: changed property `assets` of type `ProductAddVariantAction` from type `Asset[]` to `AssetDraft[]` | ||
- :warning: changed property `stores` of type `BusinessUnitDraft` from type `StoreKeyReference[]` to `StoreResourceIdentifier[]` | ||
- :warning: changed property `stores` of type `CompanyDraft` from type `StoreKeyReference[]` to `StoreResourceIdentifier[]` | ||
- :warning: changed property `stores` of type `DivisionDraft` from type `StoreKeyReference[]` to `StoreResourceIdentifier[]` | ||
</details> | ||
|
||
|
||
<details> | ||
<summary>Added Property(s)</summary> | ||
|
||
- added property `defaultShippingAddressId` to type `BusinessUnit` | ||
- added property `defaultShippingAddress` to type `BusinessUnitDraft` | ||
- added property `defaultShippingAddressId` to type `Company` | ||
- added property `defaultShippingAddress` to type `CompanyDraft` | ||
- added property `defaultShippingAddressId` to type `Division` | ||
- added property `defaultShippingAddress` to type `DivisionDraft` | ||
- added property `conflictingPrice` to type `DuplicatePriceScopeError` | ||
- added property `defaultShippingAddress` to type `MyBusinessUnitDraft` | ||
- added property `defaultShippingAddress` to type `MyCompanyDraft` | ||
- added property `defaultShippingAddress` to type `MyDivisionDraft` | ||
- added property `cartId` to type `MyQuoteRequestDraft` | ||
- added property `cartVersion` to type `MyQuoteRequestDraft` | ||
- added property `createdAt` to type `AssignedProductSelection` | ||
- added property `quoteState` to type `Quote` | ||
</details> | ||
|
||
|
||
<details> | ||
<summary>Required Property(s)</summary> | ||
|
||
- changed property `discounted` of type `StagedStandalonePrice` to be optional | ||
- added property `oldValue` to type `StandalonePriceValueChangedMessage` | ||
- added property `oldValue` to type `StandalonePriceValueChangedMessagePayload` | ||
- added property `purchaseOrderNumber` to type `StagedOrder` | ||
- added property `purchaseOrderNumber` to type `Order` | ||
- added property `purchaseOrderNumber` to type `OrderFromCartDraft` | ||
- added property `purchaseOrderNumber` to type `QuoteRequest` | ||
- added property `purchaseOrderNumber` to type `QuoteRequestDraft` | ||
- added property `purchaseOrderNumber` to type `Quote` | ||
- added property `purchaseOrderNumber` to type `StagedQuote` | ||
</details> | ||
|
||
|
||
<details> | ||
<summary>Removed Property(s)</summary> | ||
<summary>Deprecated Type(s)</summary> | ||
|
||
- :warning: removed property `defaultShipingAddressId` from type `BusinessUnit` | ||
- :warning: removed property `defaultShipingAddress` from type `BusinessUnitDraft` | ||
- :warning: removed property `defaultShipingAddressId` from type `Company` | ||
- :warning: removed property `defaultShipingAddress` from type `CompanyDraft` | ||
- :warning: removed property `defaultShipingAddressId` from type `Division` | ||
- :warning: removed property `defaultShipingAddress` from type `DivisionDraft` | ||
- :warning: removed property `conflictingPrices` from type `DuplicatePriceScopeError` | ||
- :warning: removed property `defaultShipingAddress` from type `MyBusinessUnitDraft` | ||
- :warning: removed property `defaultShipingAddress` from type `MyCompanyDraft` | ||
- :warning: removed property `defaultShipingAddress` from type `MyDivisionDraft` | ||
- :warning: removed property `cart` from type `MyQuoteRequestDraft` | ||
- :warning: removed property `version` from type `MyQuoteRequestDraft` | ||
- type `IronMqDestination` is removed | ||
</details> | ||
|
||
|
||
<details> | ||
<summary>Added Type(s)</summary> | ||
|
||
- added type `CartFreezeCartAction` | ||
- added type `CartUnfreezeCartAction` | ||
- added type `DuplicatePriceKeyError` | ||
- added type `ProductPriceKeySetMessage` | ||
- added type `ProductPricesSetMessage` | ||
- added type `StandalonePriceKeySetMessage` | ||
- added type `ProductPriceKeySetMessagePayload` | ||
- added type `ProductPricesSetMessagePayload` | ||
- added type `StandalonePriceKeySetMessagePayload` | ||
- added type `ProductSetPriceKeyAction` | ||
- added type `StandalonePriceSetKeyAction` | ||
</details> | ||
|
||
|
||
<details> | ||
<summary>Removed Type(s)</summary> | ||
|
||
- :warning: removed type `ProductPriceSetMessage` | ||
- :warning: removed type `ProductPriceSetMessagePayload` | ||
</details> | ||
|
||
|
||
<details> | ||
<summary>Added Method(s)</summary> | ||
|
||
- added method `apiRoot.withProjectKey().shippingMethods().matchingCartLocation().get()` | ||
</details> | ||
|
||
**ML changes** | ||
|
||
<details> | ||
<summary>Deprecated Method(s)</summary> | ||
|
||
- method `post /{projectKey}/missing-data/attributes` is deprecated | ||
- method `post /{projectKey}/missing-data/images` is deprecated | ||
- method `post /{projectKey}/missing-data/prices` is deprecated | ||
- method `get /{projectKey}/missing-data/attributes/status/{taskId}` is deprecated | ||
- method `get /{projectKey}/missing-data/images/status/{taskId}` is deprecated | ||
- method `get /{projectKey}/missing-data/prices/status/{taskId}` is deprecated | ||
</details> | ||
|
||
|
||
<details> | ||
<summary>Deprecated Property(s)</summary> | ||
|
||
- property `MissingAttributes::attributeCount` is deprecated | ||
- property `MissingAttributes::attributeCoverage` is deprecated | ||
- property `MissingAttributesMeta::productLevel` is deprecated | ||
- property `MissingAttributesMeta::variantLevel` is deprecated | ||
- property `MissingAttributesPagedQueryResult::meta` is deprecated | ||
- property `MissingDataTaskStatus::result` is deprecated | ||
- property `MissingImagesMeta::productLevel` is deprecated | ||
- property `MissingImagesMeta::variantLevel` is deprecated | ||
- property `MissingImagesPagedQueryResult::meta` is deprecated | ||
- property `MissingImagesTaskStatus::result` is deprecated | ||
- property `MissingPricesMeta::productLevel` is deprecated | ||
- property `MissingPricesMeta::variantLevel` is deprecated | ||
- property `MissingPricesPagedQueryResult::meta` is deprecated | ||
- property `MissingPricesTaskStatus::result` is deprecated | ||
</details> | ||
|
||
|
||
<details> | ||
<summary>Deprecated Resource(s)</summary> | ||
|
||
- resource `/{projectKey}/missing-data` is deprecated | ||
- resource `/{projectKey}/missing-data/attributes` is deprecated | ||
- resource `/{projectKey}/missing-data/images` is deprecated | ||
- resource `/{projectKey}/missing-data/prices` is deprecated | ||
- resource `/{projectKey}/missing-data/attributes/status` is deprecated | ||
- resource `/{projectKey}/missing-data/attributes/status/{taskId}` is deprecated | ||
- resource `/{projectKey}/missing-data/images/status` is deprecated | ||
- resource `/{projectKey}/missing-data/images/status/{taskId}` is deprecated | ||
- resource `/{projectKey}/missing-data/prices/status` is deprecated | ||
- resource `/{projectKey}/missing-data/prices/status/{taskId}` is deprecated | ||
</details> | ||
|
||
|
||
<details> | ||
<summary>Deprecated Type(s)</summary> | ||
|
||
- type `AttributeCount` is deprecated | ||
- type `AttributeCoverage` is deprecated | ||
- type `MissingAttributesDetails` is deprecated | ||
- type `MissingAttributes` is deprecated | ||
- type `MissingAttributesMeta` is deprecated | ||
- type `MissingAttributesSearchRequest` is deprecated | ||
- type `MissingAttributesPagedQueryResult` is deprecated | ||
- type `MissingDataTaskStatus` is deprecated | ||
- type `MissingImages` is deprecated | ||
- type `MissingImagesCount` is deprecated | ||
- type `MissingImagesProductLevel` is deprecated | ||
- type `MissingImagesVariantLevel` is deprecated | ||
- type `MissingImagesMeta` is deprecated | ||
- type `MissingImagesSearchRequest` is deprecated | ||
- type `MissingImagesPagedQueryResult` is deprecated | ||
- type `MissingImagesTaskStatus` is deprecated | ||
- type `MissingPrices` is deprecated | ||
- type `MissingPricesProductCount` is deprecated | ||
- type `MissingPricesProductLevel` is deprecated | ||
- type `MissingPricesVariantLevel` is deprecated | ||
- type `MissingPricesMeta` is deprecated | ||
- type `MissingPricesSearchRequest` is deprecated | ||
- type `MissingPricesPagedQueryResult` is deprecated | ||
- type `MissingPricesTaskStatus` is deprecated | ||
- added type `OrderPurchaseOrderNumberSetMessage` | ||
- added type `OrderPurchaseOrderNumberSetMessagePayload` | ||
- added type `StagedOrderSetPurchaseOrderNumberAction` | ||
- added type `OrderSetPurchaseOrderNumberAction` | ||
</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
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
14 changes: 14 additions & 0 deletions
14
...dk/commercetools.Sdk.Api/Generated/Models/Messages/IOrderPurchaseOrderNumberSetMessage.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,14 @@ | ||
using commercetools.Base.CustomAttributes; | ||
|
||
|
||
namespace commercetools.Sdk.Api.Models.Messages | ||
{ | ||
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.OrderPurchaseOrderNumberSetMessage))] | ||
public partial interface IOrderPurchaseOrderNumberSetMessage : IOrderMessage | ||
{ | ||
string PurchaseOrderNumber { get; set; } | ||
|
||
string OldPurchaseOrderNumber { get; set; } | ||
|
||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...ercetools.Sdk.Api/Generated/Models/Messages/IOrderPurchaseOrderNumberSetMessagePayload.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,14 @@ | ||
using commercetools.Base.CustomAttributes; | ||
|
||
|
||
namespace commercetools.Sdk.Api.Models.Messages | ||
{ | ||
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.OrderPurchaseOrderNumberSetMessagePayload))] | ||
public partial interface IOrderPurchaseOrderNumberSetMessagePayload : IOrderMessagePayload | ||
{ | ||
string PurchaseOrderNumber { get; set; } | ||
|
||
string OldPurchaseOrderNumber { 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
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
40 changes: 40 additions & 0 deletions
40
...Sdk/commercetools.Sdk.Api/Generated/Models/Messages/OrderPurchaseOrderNumberSetMessage.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,40 @@ | ||
using commercetools.Sdk.Api.Models.Common; | ||
using System; | ||
|
||
|
||
namespace commercetools.Sdk.Api.Models.Messages | ||
{ | ||
|
||
public partial class OrderPurchaseOrderNumberSetMessage : IOrderPurchaseOrderNumberSetMessage | ||
{ | ||
public string Id { get; set; } | ||
|
||
public long Version { get; set; } | ||
|
||
public DateTime CreatedAt { get; set; } | ||
|
||
public DateTime LastModifiedAt { get; set; } | ||
|
||
public ILastModifiedBy LastModifiedBy { get; set; } | ||
|
||
public ICreatedBy CreatedBy { get; set; } | ||
|
||
public long SequenceNumber { get; set; } | ||
|
||
public IReference Resource { get; set; } | ||
|
||
public long ResourceVersion { get; set; } | ||
|
||
public string Type { get; set; } | ||
|
||
public IUserProvidedIdentifiers ResourceUserProvidedIdentifiers { get; set; } | ||
|
||
public string PurchaseOrderNumber { get; set; } | ||
|
||
public string OldPurchaseOrderNumber { get; set; } | ||
public OrderPurchaseOrderNumberSetMessage() | ||
{ | ||
this.Type = "OrderPurchaseOrderNumberSet"; | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...mercetools.Sdk.Api/Generated/Models/Messages/OrderPurchaseOrderNumberSetMessagePayload.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 @@ | ||
namespace commercetools.Sdk.Api.Models.Messages | ||
{ | ||
|
||
public partial class OrderPurchaseOrderNumberSetMessagePayload : IOrderPurchaseOrderNumberSetMessagePayload | ||
{ | ||
public string Type { get; set; } | ||
|
||
public string PurchaseOrderNumber { get; set; } | ||
|
||
public string OldPurchaseOrderNumber { get; set; } | ||
public OrderPurchaseOrderNumberSetMessagePayload() | ||
{ | ||
this.Type = "OrderPurchaseOrderNumberSet"; | ||
} | ||
} | ||
} |
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.