Skip to content

Commit

Permalink
Merge pull request #202 from commercetools/gen-sdk-updates
Browse files Browse the repository at this point in the history
Update generated SDKs
  • Loading branch information
barbara79 authored Feb 10, 2023
2 parents 69280e1 + 86ace32 commit 5611d5a
Show file tree
Hide file tree
Showing 38 changed files with 226 additions and 199 deletions.
173 changes: 18 additions & 155 deletions changes.md
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>

Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public partial class BusinessUnitDraft : IBusinessUnitDraft

public IBusinessUnitStatus Status { get; set; }

public IList<IStoreKeyReference> Stores { get; set; }
public IEnumerable<IStoreKeyReference> StoresEnumerable { set => Stores = value.ToList(); }
public IList<IStoreResourceIdentifier> Stores { get; set; }
public IEnumerable<IStoreResourceIdentifier> StoresEnumerable { set => Stores = value.ToList(); }


public IBusinessUnitStoreMode StoreMode { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public partial class CompanyDraft : ICompanyDraft

public IBusinessUnitStatus Status { get; set; }

public IList<IStoreKeyReference> Stores { get; set; }
public IEnumerable<IStoreKeyReference> StoresEnumerable { set => Stores = value.ToList(); }
public IList<IStoreResourceIdentifier> Stores { get; set; }
public IEnumerable<IStoreResourceIdentifier> StoresEnumerable { set => Stores = value.ToList(); }


public IBusinessUnitStoreMode StoreMode { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public partial class DivisionDraft : IDivisionDraft

public IBusinessUnitStatus Status { get; set; }

public IList<IStoreKeyReference> Stores { get; set; }
public IEnumerable<IStoreKeyReference> StoresEnumerable { set => Stores = value.ToList(); }
public IList<IStoreResourceIdentifier> Stores { get; set; }
public IEnumerable<IStoreResourceIdentifier> StoresEnumerable { set => Stores = value.ToList(); }


public IBusinessUnitStoreMode StoreMode { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public partial interface IBusinessUnitDraft

IBusinessUnitStatus Status { get; set; }

IList<IStoreKeyReference> Stores { get; set; }
IEnumerable<IStoreKeyReference> StoresEnumerable { set => Stores = value.ToList(); }
IList<IStoreResourceIdentifier> Stores { get; set; }
IEnumerable<IStoreResourceIdentifier> StoresEnumerable { set => Stores = value.ToList(); }


IBusinessUnitStoreMode StoreMode { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ namespace commercetools.Sdk.Api.Models.Messages
[SubTypeDiscriminator("OrderLineItemRemoved", typeof(commercetools.Sdk.Api.Models.Messages.OrderLineItemRemovedMessage))]
[SubTypeDiscriminator("OrderPaymentAdded", typeof(commercetools.Sdk.Api.Models.Messages.OrderPaymentAddedMessage))]
[SubTypeDiscriminator("OrderPaymentStateChanged", typeof(commercetools.Sdk.Api.Models.Messages.OrderPaymentStateChangedMessage))]
[SubTypeDiscriminator("OrderPurchaseOrderNumberSet", typeof(commercetools.Sdk.Api.Models.Messages.OrderPurchaseOrderNumberSetMessage))]
[SubTypeDiscriminator("OrderReturnShipmentStateChanged", typeof(commercetools.Sdk.Api.Models.Messages.OrderReturnShipmentStateChangedMessage))]
[SubTypeDiscriminator("OrderShipmentStateChanged", typeof(commercetools.Sdk.Api.Models.Messages.OrderShipmentStateChangedMessage))]
[SubTypeDiscriminator("OrderShippingAddressSet", typeof(commercetools.Sdk.Api.Models.Messages.OrderShippingAddressSetMessage))]
Expand Down Expand Up @@ -593,6 +594,12 @@ static commercetools.Sdk.Api.Models.Messages.OrderPaymentStateChangedMessage Ord
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.OrderPurchaseOrderNumberSetMessage OrderPurchaseOrderNumberSet(Action<commercetools.Sdk.Api.Models.Messages.OrderPurchaseOrderNumberSetMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.OrderPurchaseOrderNumberSetMessage();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.OrderReturnShipmentStateChangedMessage OrderReturnShipmentStateChanged(Action<commercetools.Sdk.Api.Models.Messages.OrderReturnShipmentStateChangedMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.OrderReturnShipmentStateChangedMessage();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ namespace commercetools.Sdk.Api.Models.Messages
[SubTypeDiscriminator("OrderLineItemRemoved", typeof(commercetools.Sdk.Api.Models.Messages.OrderLineItemRemovedMessagePayload))]
[SubTypeDiscriminator("OrderPaymentAdded", typeof(commercetools.Sdk.Api.Models.Messages.OrderPaymentAddedMessagePayload))]
[SubTypeDiscriminator("OrderPaymentStateChanged", typeof(commercetools.Sdk.Api.Models.Messages.OrderPaymentStateChangedMessagePayload))]
[SubTypeDiscriminator("OrderPurchaseOrderNumberSet", typeof(commercetools.Sdk.Api.Models.Messages.OrderPurchaseOrderNumberSetMessagePayload))]
[SubTypeDiscriminator("OrderReturnShipmentStateChanged", typeof(commercetools.Sdk.Api.Models.Messages.OrderReturnShipmentStateChangedMessagePayload))]
[SubTypeDiscriminator("OrderShipmentStateChanged", typeof(commercetools.Sdk.Api.Models.Messages.OrderShipmentStateChangedMessagePayload))]
[SubTypeDiscriminator("OrderShippingAddressSet", typeof(commercetools.Sdk.Api.Models.Messages.OrderShippingAddressSetMessagePayload))]
Expand Down Expand Up @@ -573,6 +574,12 @@ static commercetools.Sdk.Api.Models.Messages.OrderPaymentStateChangedMessagePayl
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.OrderPurchaseOrderNumberSetMessagePayload OrderPurchaseOrderNumberSet(Action<commercetools.Sdk.Api.Models.Messages.OrderPurchaseOrderNumberSetMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.OrderPurchaseOrderNumberSetMessagePayload();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.OrderReturnShipmentStateChangedMessagePayload OrderReturnShipmentStateChanged(Action<commercetools.Sdk.Api.Models.Messages.OrderReturnShipmentStateChangedMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.OrderReturnShipmentStateChangedMessagePayload();
Expand Down
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; }

}
}
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; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ public partial interface IStandalonePriceValueChangedMessage : IMessage

bool Staged { get; set; }

IMoney OldValue { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ public partial interface IStandalonePriceValueChangedMessagePayload : IMessagePa

bool Staged { get; set; }

IMoney OldValue { get; set; }

}
}
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";
}
}
}
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";
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public partial class StandalonePriceValueChangedMessage : IStandalonePriceValueC
public IMoney Value { get; set; }

public bool Staged { get; set; }

public IMoney OldValue { get; set; }
public StandalonePriceValueChangedMessage()
{
this.Type = "StandalonePriceValueChanged";
Expand Down
Loading

0 comments on commit 5611d5a

Please sign in to comment.