Skip to content

Commit

Permalink
Merge pull request #460 from commercetools/gen-sdk-updates
Browse files Browse the repository at this point in the history
Update generated SDKs
  • Loading branch information
salander85 authored Jul 3, 2023
2 parents ef62454 + b04ddf9 commit 2c34d22
Show file tree
Hide file tree
Showing 108 changed files with 10,694 additions and 718 deletions.
229 changes: 192 additions & 37 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,47 @@
**Api changes**

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

- added property `perMethodTaxRate` to type `CustomLineItem`
- added property `lineItemKey` to type `CartApplyDeltaToLineItemShippingDetailsTargetsAction`
- added property `lineItemKey` to type `CartChangeLineItemQuantityAction`
- added property `lineItemKey` to type `CartRemoveLineItemAction`
- added property `lineItemKey` to type `CartSetLineItemCustomFieldAction`
- added property `lineItemKey` to type `CartSetLineItemCustomTypeAction`
- added property `lineItemKey` to type `CartSetLineItemDistributionChannelAction`
- added property `lineItemKey` to type `CartSetLineItemInventoryModeAction`
- added property `lineItemKey` to type `CartSetLineItemPriceAction`
- added property `lineItemKey` to type `CartSetLineItemShippingDetailsAction`
- added property `lineItemKey` to type `CartSetLineItemSupplyChannelAction`
- added property `lineItemKey` to type `CartSetLineItemTaxAmountAction`
- added property `lineItemKey` to type `CartSetLineItemTaxRateAction`
- added property `lineItemKey` to type `CartSetLineItemTotalPriceAction`
- added property `lineItemKey` to type `MyCartApplyDeltaToLineItemShippingDetailsTargetsAction`
- added property `lineItemKey` to type `MyCartChangeLineItemQuantityAction`
- added property `lineItemKey` to type `MyCartRemoveLineItemAction`
- added property `lineItemKey` to type `MyCartSetLineItemCustomFieldAction`
- added property `lineItemKey` to type `MyCartSetLineItemCustomTypeAction`
- added property `lineItemKey` to type `MyCartSetLineItemDistributionChannelAction`
- added property `lineItemKey` to type `MyCartSetLineItemShippingDetailsAction`
- added property `lineItemKey` to type `MyCartSetLineItemSupplyChannelAction`
- added property `lineItemKey` to type `MyShoppingListChangeLineItemQuantityAction`
- added property `lineItemKey` to type `StagedOrderChangeLineItemQuantityAction`
- added property `lineItemKey` to type `StagedOrderRemoveLineItemAction`
- added property `lineItemKey` to type `StagedOrderSetLineItemCustomFieldAction`
- added property `lineItemKey` to type `StagedOrderSetLineItemCustomTypeAction`
- added property `lineItemKey` to type `StagedOrderSetLineItemDistributionChannelAction`
- added property `lineItemKey` to type `StagedOrderSetLineItemPriceAction`
- added property `lineItemKey` to type `StagedOrderSetLineItemShippingDetailsAction`
- added property `lineItemKey` to type `StagedOrderSetLineItemTaxAmountAction`
- added property `lineItemKey` to type `StagedOrderSetLineItemTaxRateAction`
- added property `lineItemKey` to type `StagedOrderSetLineItemTotalPriceAction`
- added property `lineItemKey` to type `OrderSetLineItemCustomFieldAction`
- added property `lineItemKey` to type `OrderSetLineItemCustomTypeAction`
- added property `lineItemKey` to type `OrderSetLineItemShippingDetailsAction`
</details>


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

Expand Down Expand Up @@ -42,44 +84,10 @@


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

- added property `perMethodTaxRate` to type `CustomLineItem`
- added property `lineItemKey` to type `CartApplyDeltaToLineItemShippingDetailsTargetsAction`
- added property `lineItemKey` to type `CartChangeLineItemQuantityAction`
- added property `lineItemKey` to type `CartRemoveLineItemAction`
- added property `lineItemKey` to type `CartSetLineItemCustomFieldAction`
- added property `lineItemKey` to type `CartSetLineItemCustomTypeAction`
- added property `lineItemKey` to type `CartSetLineItemDistributionChannelAction`
- added property `lineItemKey` to type `CartSetLineItemInventoryModeAction`
- added property `lineItemKey` to type `CartSetLineItemPriceAction`
- added property `lineItemKey` to type `CartSetLineItemShippingDetailsAction`
- added property `lineItemKey` to type `CartSetLineItemSupplyChannelAction`
- added property `lineItemKey` to type `CartSetLineItemTaxAmountAction`
- added property `lineItemKey` to type `CartSetLineItemTaxRateAction`
- added property `lineItemKey` to type `CartSetLineItemTotalPriceAction`
- added property `lineItemKey` to type `MyCartApplyDeltaToLineItemShippingDetailsTargetsAction`
- added property `lineItemKey` to type `MyCartChangeLineItemQuantityAction`
- added property `lineItemKey` to type `MyCartRemoveLineItemAction`
- added property `lineItemKey` to type `MyCartSetLineItemCustomFieldAction`
- added property `lineItemKey` to type `MyCartSetLineItemCustomTypeAction`
- added property `lineItemKey` to type `MyCartSetLineItemDistributionChannelAction`
- added property `lineItemKey` to type `MyCartSetLineItemShippingDetailsAction`
- added property `lineItemKey` to type `MyCartSetLineItemSupplyChannelAction`
- added property `lineItemKey` to type `MyShoppingListChangeLineItemQuantityAction`
- added property `lineItemKey` to type `StagedOrderChangeLineItemQuantityAction`
- added property `lineItemKey` to type `StagedOrderRemoveLineItemAction`
- added property `lineItemKey` to type `StagedOrderSetLineItemCustomFieldAction`
- added property `lineItemKey` to type `StagedOrderSetLineItemCustomTypeAction`
- added property `lineItemKey` to type `StagedOrderSetLineItemDistributionChannelAction`
- added property `lineItemKey` to type `StagedOrderSetLineItemPriceAction`
- added property `lineItemKey` to type `StagedOrderSetLineItemShippingDetailsAction`
- added property `lineItemKey` to type `StagedOrderSetLineItemTaxAmountAction`
- added property `lineItemKey` to type `StagedOrderSetLineItemTaxRateAction`
- added property `lineItemKey` to type `StagedOrderSetLineItemTotalPriceAction`
- added property `lineItemKey` to type `OrderSetLineItemCustomFieldAction`
- added property `lineItemKey` to type `OrderSetLineItemCustomTypeAction`
- added property `lineItemKey` to type `OrderSetLineItemShippingDetailsAction`
- type `ProductVariantSelectionExclusion` is removed
- type `ProductVariantSelectionInclusion` is removed
</details>


Expand All @@ -89,3 +97,150 @@
- :warning: removed type `MyCartSetDirectDiscountsAction`
</details>

**History changes**

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

- added property `variantSelection` to type `AddProductChange`
</details>


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

- :warning: changed property `resource` of type `Record` from type `Reference` to `ResourceIdentifier`
</details>


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

- added query parameter `resourceKey` to method `get /{projectKey}`
- added query parameter `resourceKey` to method `get /{projectKey}/{resourceType}`
</details>


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

- :warning: removed query parameter `resourceId` from method `get /{projectKey}/{resourceType}`
</details>


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

- added type `AddAssociateChange`
- added type `AddProductSelectionChange`
- added type `Associate`
- added type `AssociateRoleAssignment`
- added type `AssociateRoleInheritanceMode`
- added type `BusinessUnitAssociateMode`
- added type `BusinessUnitLabel`
- added type `BusinessUnitStatus`
- added type `BusinessUnitStoreMode`
- added type `ChangeAssociateChange`
- added type `ChangeAssociateModeChange`
- added type `ChangeParentUnitChange`
- added type `ChangeProductSelectionActiveChange`
- added type `ChangeStatusChange`
- added type `ProductVariantSelection`
- added type `ProductVariantSelectionTypeEnum`
- added type `RemoveAssociateChange`
- added type `RemoveProductSelectionChange`
- added type `RequestQuoteRenegotiationChange`
- added type `ResourceIdentifier`
- added type `SetAddressCustomFieldChange`
- added type `SetAddressCustomTypeChange`
- added type `SetContactEmailChange`
- added type `SetStoreModeChange`
- added type `SetVariantSelectionChange`
</details>


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

- added enum `business-unit` to type `ChangeHistoryResourceType`
- added enum `addAssociate` to type `UpdateType`
- added enum `addCustomLineItem` to type `UpdateType`
- added enum `addDiscountCode` to type `UpdateType`
- added enum `addProduct` to type `UpdateType`
- added enum `addProductSelection` to type `UpdateType`
- added enum `addProperty` to type `UpdateType`
- added enum `changeAmountAuthorized` to type `UpdateType`
- added enum `changeAssociate` to type `UpdateType`
- added enum `changeAssociateMode` to type `UpdateType`
- added enum `changeCustomLineItemQuantity` to type `UpdateType`
- added enum `changeLineItemName` to type `UpdateType`
- added enum `changeParentUnit` to type `UpdateType`
- added enum `changeProductSelectionActive` to type `UpdateType`
- added enum `changeQuoteRequestState` to type `UpdateType`
- added enum `changeQuoteState` to type `UpdateType`
- added enum `changeStagedQuoteState` to type `UpdateType`
- added enum `changeStatus` to type `UpdateType`
- added enum `changeTaxCalculationMode` to type `UpdateType`
- added enum `changeTaxMode` to type `UpdateType`
- added enum `changeTaxRoundingMode` to type `UpdateType`
- added enum `moveImageToPosition` to type `UpdateType`
- added enum `removeAssociate` to type `UpdateType`
- added enum `removeCustomLineItem` to type `UpdateType`
- added enum `removeDiscountCode` to type `UpdateType`
- added enum `removeProduct` to type `UpdateType`
- added enum `removeProductSelection` to type `UpdateType`
- added enum `removeProperty` to type `UpdateType`
- added enum `requestQuoteRenegotiation` to type `UpdateType`
- added enum `setAddressCustomField` to type `UpdateType`
- added enum `setAddressCustomType` to type `UpdateType`
- added enum `setApplicationVersion` to type `UpdateType`
- added enum `setAuthenticationMode` to type `UpdateType`
- added enum `setContactEmail` to type `UpdateType`
- added enum `setCountries` to type `UpdateType`
- added enum `setCountry` to type `UpdateType`
- added enum `setCustomLineItemMoney` to type `UpdateType`
- added enum `setCustomLineItemTaxAmount` to type `UpdateType`
- added enum `setCustomLineItemTaxCategory` to type `UpdateType`
- added enum `setCustomLineItemTaxRate` to type `UpdateType`
- added enum `setCustomLineItemTaxedPrice` to type `UpdateType`
- added enum `setCustomLineItemTotalPrice` to type `UpdateType`
- added enum `setCustomShippingMethod` to type `UpdateType`
- added enum `setIsValid` to type `UpdateType`
- added enum `setLineItemDeactivatedAt` to type `UpdateType`
- added enum `setLineItemDiscountedPrice` to type `UpdateType`
- added enum `setLineItemDiscountedPricePerQuantity` to type `UpdateType`
- added enum `setLineItemDistributionChannel` to type `UpdateType`
- added enum `setLineItemPrice` to type `UpdateType`
- added enum `setLineItemProductKey` to type `UpdateType`
- added enum `setLineItemProductSlug` to type `UpdateType`
- added enum `setLineItemTaxAmount` to type `UpdateType`
- added enum `setLineItemTaxRate` to type `UpdateType`
- added enum `setLineItemTaxedPrice` to type `UpdateType`
- added enum `setLineItemTotalPrice` to type `UpdateType`
- added enum `setOrderTaxedPrice` to type `UpdateType`
- added enum `setOrderTotalPrice` to type `UpdateType`
- added enum `setOrderTotalTax` to type `UpdateType`
- added enum `setPrices` to type `UpdateType`
- added enum `setProductCount` to type `UpdateType`
- added enum `setProductSelections` to type `UpdateType`
- added enum `setProperty` to type `UpdateType`
- added enum `setPurchaseOrderNumber` to type `UpdateType`
- added enum `setReservations` to type `UpdateType`
- added enum `setSellerComment` to type `UpdateType`
- added enum `setShippingInfoPrice` to type `UpdateType`
- added enum `setShippingInfoTaxedPrice` to type `UpdateType`
- added enum `setShippingMethod` to type `UpdateType`
- added enum `setShippingMethodTaxAmount` to type `UpdateType`
- added enum `setShippingMethodTaxRate` to type `UpdateType`
- added enum `setShippingRate` to type `UpdateType`
- added enum `setShippingRateInput` to type `UpdateType`
- added enum `setStoreMode` to type `UpdateType`
- added enum `setSupplyChannels` to type `UpdateType`
- added enum `setValidTo` to type `UpdateType`
- added enum `setValue` to type `UpdateType`
- added enum `setVariantSelection` to type `UpdateType`
- added enum `DeclinedForRenegotiation` to type `QuoteState`
- added enum `associate-role` to type `ReferenceTypeId`
- added enum `business-unit` to type `ReferenceTypeId`
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
@JsonDeserialize(as = AssociateRoleImpl.class)
public interface AssociateRole extends BaseResource {
public interface AssociateRole extends BaseResource, com.commercetools.api.models.Identifiable<AssociateRole> {

/**
* <p>Unique identifier of the AssociateRole.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
@JsonDeserialize(as = AssociateRoleReferenceImpl.class)
public interface AssociateRoleReference extends Reference, com.commercetools.api.models.Identifiable<AssociateRole> {
public interface AssociateRoleReference extends Reference {

/**
* discriminator value for AssociateRoleReference
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public interface CartRemoveLineItemAction extends CartUpdateAction {
public String getLineItemKey();

/**
* <p>New value to set. If absent or <code>0</code>, the Line Item is removed from the Cart.</p>
* <p>Amount to subtract from the LineItem's <code>quantity</code>. If absent, the LineItem is removed from the Cart.</p>
* @return quantity
*/

Expand Down Expand Up @@ -98,7 +98,7 @@ public interface CartRemoveLineItemAction extends CartUpdateAction {
public void setLineItemKey(final String lineItemKey);

/**
* <p>New value to set. If absent or <code>0</code>, the Line Item is removed from the Cart.</p>
* <p>Amount to subtract from the LineItem's <code>quantity</code>. If absent, the LineItem is removed from the Cart.</p>
* @param quantity value to be set
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public CartRemoveLineItemActionBuilder lineItemKey(@Nullable final String lineIt
}

/**
* <p>New value to set. If absent or <code>0</code>, the Line Item is removed from the Cart.</p>
* <p>Amount to subtract from the LineItem's <code>quantity</code>. If absent, the LineItem is removed from the Cart.</p>
* @param quantity value to be set
* @return Builder
*/
Expand Down Expand Up @@ -209,7 +209,7 @@ public String getLineItemKey() {
}

/**
* <p>New value to set. If absent or <code>0</code>, the Line Item is removed from the Cart.</p>
* <p>Amount to subtract from the LineItem's <code>quantity</code>. If absent, the LineItem is removed from the Cart.</p>
* @return quantity
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public String getLineItemKey() {
}

/**
* <p>New value to set. If absent or <code>0</code>, the Line Item is removed from the Cart.</p>
* <p>Amount to subtract from the LineItem's <code>quantity</code>. If absent, the LineItem is removed from the Cart.</p>
*/

public Long getQuantity() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import io.vrap.rmf.base.client.utils.Generated;

/**
* <p>Sets the DiscountedLineItemPrice of the CartDiscountLineItemsTarget or CartDiscountCustomLineItemsTarget to the value specified in the <code>money</code> field, if it is lower than the current Line Item price for the same currency. If the Line Item price is already discounted to a price equal to or lower than the respective price in the <code>money</code> field, this Discount is not applied.</p>
* <p>Sets the DiscountedLineItemPrice of the CartDiscountLineItemsTarget or CartDiscountCustomLineItemsTarget to the value specified in the <code>money</code> field, if it is lower than the current Line Item price for the same currency. If the Line Item price is already discounted to a price equal to or lower than the respective price in the <code>money</code> field, this Discount is not applied. If the <code>quantity</code> of the Line Item eligible for the Discount is greater than <code>1</code>, the fixed price discount is only applied to the Line Item portion for which the <code>money</code> value is lesser than their current price.</p>
*
* <hr>
* Example to create an instance using the builder pattern
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Sets the DiscountedLineItemPrice of the CartDiscountLineItemsTarget or CartDiscountCustomLineItemsTarget to the value specified in the <code>money</code> field, if it is lower than the current Line Item price for the same currency. If the Line Item price is already discounted to a price equal to or lower than the respective price in the <code>money</code> field, this Discount is not applied.</p>
* <p>Sets the DiscountedLineItemPrice of the CartDiscountLineItemsTarget or CartDiscountCustomLineItemsTarget to the value specified in the <code>money</code> field, if it is lower than the current Line Item price for the same currency. If the Line Item price is already discounted to a price equal to or lower than the respective price in the <code>money</code> field, this Discount is not applied. If the <code>quantity</code> of the Line Item eligible for the Discount is greater than <code>1</code>, the fixed price discount is only applied to the Line Item portion for which the <code>money</code> value is lesser than their current price.</p>
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public class CartDiscountValueFixedImpl implements CartDiscountValueFixed, ModelBase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ public interface MyCartRemoveLineItemAction extends MyCartUpdateAction {
public String getLineItemKey();

/**
* <p>New value to set.</p>
* <p>If <code>0</code>, the Line Item is removed from the Cart.</p>
* <p>Amount to subtract from the LineItem's <code>quantity</code>. If absent, the LineItem is removed from the Cart.</p>
* @return quantity
*/

Expand Down Expand Up @@ -101,8 +100,7 @@ public interface MyCartRemoveLineItemAction extends MyCartUpdateAction {
public void setLineItemKey(final String lineItemKey);

/**
* <p>New value to set.</p>
* <p>If <code>0</code>, the Line Item is removed from the Cart.</p>
* <p>Amount to subtract from the LineItem's <code>quantity</code>. If absent, the LineItem is removed from the Cart.</p>
* @param quantity value to be set
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ public MyCartRemoveLineItemActionBuilder lineItemKey(@Nullable final String line
}

/**
* <p>New value to set.</p>
* <p>If <code>0</code>, the Line Item is removed from the Cart.</p>
* <p>Amount to subtract from the LineItem's <code>quantity</code>. If absent, the LineItem is removed from the Cart.</p>
* @param quantity value to be set
* @return Builder
*/
Expand Down Expand Up @@ -210,8 +209,7 @@ public String getLineItemKey() {
}

/**
* <p>New value to set.</p>
* <p>If <code>0</code>, the Line Item is removed from the Cart.</p>
* <p>Amount to subtract from the LineItem's <code>quantity</code>. If absent, the LineItem is removed from the Cart.</p>
* @return quantity
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ public String getLineItemKey() {
}

/**
* <p>New value to set.</p>
* <p>If <code>0</code>, the Line Item is removed from the Cart.</p>
* <p>Amount to subtract from the LineItem's <code>quantity</code>. If absent, the LineItem is removed from the Cart.</p>
*/

public Long getQuantity() {
Expand Down
Loading

0 comments on commit 2c34d22

Please sign in to comment.