Skip to content

Update generated SDKs #842

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
- added type `BestDeal`
- added type `DiscountTypeCombination`
- added type `Stacking`
- added type `OrderBusinessUnitSetMessage`
- added type `OrderBusinessUnitSetMessagePayload`
- added type `StagedOrderSetBusinessUnitAction`
- added type `OrderSetBusinessUnitAction`
</details>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6886,6 +6886,12 @@ type OrderBillingAddressSet implements MessagePayload & OrderMessagePayload {
type: String!
}

type OrderBusinessUnitSet implements MessagePayload & OrderMessagePayload {
businessUnit: KeyReferenceInput
oldBusinessUnit: KeyReferenceInput
type: String!
}

input OrderCartCommand {
id: String
cart: ResourceIdentifierInput
Expand Down Expand Up @@ -7302,6 +7308,7 @@ input OrderUpdateAction {
setLineItemCustomType: SetOrderLineItemCustomType
setLineItemShippingDetails: SetOrderLineItemShippingDetails
setLocale: SetOrderLocale
setBusinessUnit: SetOrderBusinessUnit
setOrderNumber: SetOrderNumber
setParcelCustomField: SetOrderParcelCustomField
setParcelCustomType: SetOrderParcelCustomType
Expand Down Expand Up @@ -11465,6 +11472,10 @@ input SetOrderBillingAddressCustomType {
typeId: String
}

input SetOrderBusinessUnit {
businessUnit: ResourceIdentifierInput
}

input SetOrderCustomField {
name: String!
value: String
Expand Down Expand Up @@ -12372,6 +12383,15 @@ type SetStagedOrderBillingAddressOutput implements StagedOrderUpdateActionOutput
address: AddressDraft
}

input SetStagedOrderBusinessUnit {
businessUnit: ResourceIdentifierInput
}

type SetStagedOrderBusinessUnitOutput implements StagedOrderUpdateActionOutput {
type: String!
businessUnitResId: ResourceIdentifier
}

input SetStagedOrderCountry {
country: Country
}
Expand Down Expand Up @@ -13745,6 +13765,7 @@ input StagedOrderUpdateAction {
setLineItemTaxRate: SetStagedOrderLineItemTaxRate
setLineItemTotalPrice: SetStagedOrderLineItemTotalPrice
setLocale: SetStagedOrderLocale
setBusinessUnit: SetStagedOrderBusinessUnit
setOrderNumber: SetStagedOrderOrderNumber
setOrderTotalTax: SetStagedOrderOrderTotalTax
setParcelCustomField: SetStagedOrderParcelCustomField
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
*
* <p>Deletes a Cart in the Project.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>To ensure the Cart is up-to-date with current values (such as Prices and Discounts), use the Recalculate update action.</p>
* <p>Retrieves a Cart with the provided <code>id</code>. To ensure the Cart is up-to-date with current values (such as Prices and Discounts), use the Recalculate update action.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Checks if a Cart exists for a given <code>id</code>. Returns a <code>200 OK</code> status if the Cart exists or a <code>404 Not Found</code> otherwise.</p>
* <p>Checks if a Cart exists for the provided <code>id</code>. Returns a <code>200 OK</code> status if the Cart exists or a <code>404 Not Found</code> otherwise.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
*
* <p>Updates a Cart in the Project using one or more update actions.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
*
* <p>Updates a Cart in the Project using one or more update actions.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Checks if a Cart of a Customer exists. Returns a <code>200 OK</code> status if the Cart exists or a <code>404 Not Found</code> otherwise.</p>
* <p>Checks if a Cart exists for a Customer. Returns a <code>200 OK</code> status if the Cart exists or a <code>404 Not Found</code> otherwise.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
*
* <p>Retrieves all Carts in the Project.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Checks if a Cart exists for a given Query Predicate. Returns a <code>200 OK</code> status if any Carts match the Query Predicate, or a <code>404 Not Found</code> otherwise.</p>
* <p>Checks if one or more Carts exist for the provided query predicate. Returns a <code>200 OK</code> status if any Carts match the query predicate, or a <code>404 Not Found</code> otherwise.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
*
* <p>Deletes a Cart in the Project.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>To ensure the Cart is up-to-date with current values (such as Prices and Discounts), use the Recalculate update action.</p>
* <p>Retrieves a Cart with the provided <code>key</code>. To ensure the Cart is up-to-date with current values (such as Prices and Discounts), use the Recalculate update action.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Checks if a Cart exists for a given <code>key</code>. Returns a <code>200 OK</code> status if the Cart exists or a <code>404 Not Found</code> otherwise.</p>
* <p>Checks if a Cart exists for the provided <code>key</code>. Returns a <code>200 OK</code> status if the Cart exists or a <code>404 Not Found</code> otherwise.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
*
* <p>Updates a Cart in the Project using one or more update actions.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
*
* <p>Updates a Cart in the Project using one or more update actions.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Creates a Cart in the Project.</p>
* <p>If the referenced ShippingMethod in the CartDraft has a predicate that does not match, or if the Shipping Method is not active, an InvalidOperation error is returned.</p>
* <p>Specific Error Codes:</p>
* <ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Creates a Cart in the Project.</p>
* <p>If the referenced ShippingMethod in the CartDraft has a predicate that does not match, or if the Shipping Method is not active, an InvalidOperation error is returned.</p>
* <p>Specific Error Codes:</p>
* <ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Deletes a Cart in a Store.</p>
* <p>If the Cart exists in the Project but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
*
* <hr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Retrieves a Cart with the provided <code>id</code> in a Store.</p>
* <p>If the Cart exists in the Project but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
* <p>To ensure the Cart is up-to-date with current values (such as Prices and Discounts), use the Recalculate update action.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Checks if a Cart exists for a given <code>id</code>. Returns a <code>200 OK</code> status if the Cart exists or a ResourceNotFound error otherwise.</p>
* <p>Checks if a Cart exists for the provided <code>id</code> in a Store. Returns a <code>200 OK</code> status if the Cart exists or a ResourceNotFound error otherwise.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Updates a Cart in the Store specified by <code>storeKey</code>. If the Cart exists in the Project but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
* <p>Updates a Cart in a Store using one or more update actions.</p>
* <p>If the Cart exists in the Project but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Updates a Cart in the Store specified by <code>storeKey</code>. If the Cart exists in the Project but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
* <p>Updates a Cart in a Store using one or more update actions.</p>
* <p>If the Cart exists in the Project but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Checks if a Cart of a Customer exists. Returns a <code>200 OK</code> status if the Cart exists or a ResourceNotFound error otherwise.</p>
* <p>Checks if one or more Carts exist for a Customer in a Store. Returns a <code>200 OK</code> status if the Cart exists or a ResourceNotFound error otherwise.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Queries Carts in a specific Store.</p>
* <p>Retrieves all Carts in a Store.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Checks if a Cart exists for a given Query Predicate. Returns a <code>200 OK</code> status if any Carts match the Query Predicate or a ResourceNotFound error otherwise.</p>
* <p>Checks if one or more Carts exist for the provided query predicate in a Store. Returns a <code>200 OK</code> status if any Carts match the query predicate or a ResourceNotFound error otherwise.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Deletes a Cart in a Store.</p>
* <p>If the Cart exists in the Project but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
*
* <hr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Retrieves a Cart with the provided <code>key</code> in a Store.</p>
* <p>If the Cart exists in the Project but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
* <p>To ensure the Cart is up-to-date with current values (such as Prices and Discounts), use the Recalculate update action.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Checks if a Cart exists for a given <code>key</code>. Returns a <code>200 OK</code> status if the Cart exists or a ResourceNotFound error otherwise.</p>
* <p>Checks if a Cart exists for the provided <code>key</code> in a Store. Returns a <code>200 OK</code> status if the Cart exists or a ResourceNotFound error otherwise.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Updates a Cart in a Store using one or more update actions.</p>
* <p>If the Cart exists in the Project but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
*
* <hr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Updates a Cart in a Store using one or more update actions.</p>
* <p>If the Cart exists in the Project but does not have a <code>store</code> specified, or the <code>store</code> field references a different Store, this method returns a ResourceNotFound error.</p>
*
* <hr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Creates a Cart in the Store specified by <code>storeKey</code>.</p>
* <p>Creates a Cart in a Store.</p>
* <p>If the referenced ShippingMethod in the CartDraft has a predicate that does not match, or if the Shipping Method is not active, an InvalidOperation error is returned.</p>
* <p>Specific Error Codes:</p>
* <ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Creates a Cart in the Store specified by <code>storeKey</code>.</p>
* <p>Creates a Cart in a Store.</p>
* <p>If the referenced ShippingMethod in the CartDraft has a predicate that does not match, or if the Shipping Method is not active, an InvalidOperation error is returned.</p>
* <p>Specific Error Codes:</p>
* <ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
@JsonSubTypes.Type(value = com.commercetools.api.models.message.InventoryEntryQuantitySetMessageImpl.class, name = InventoryEntryQuantitySetMessage.INVENTORY_ENTRY_QUANTITY_SET),
@JsonSubTypes.Type(value = com.commercetools.api.models.message.LineItemStateTransitionMessageImpl.class, name = LineItemStateTransitionMessage.LINE_ITEM_STATE_TRANSITION),
@JsonSubTypes.Type(value = com.commercetools.api.models.message.OrderBillingAddressSetMessageImpl.class, name = OrderBillingAddressSetMessage.ORDER_BILLING_ADDRESS_SET),
@JsonSubTypes.Type(value = com.commercetools.api.models.message.OrderBusinessUnitSetMessageImpl.class, name = OrderBusinessUnitSetMessage.ORDER_BUSINESS_UNIT_SET),
@JsonSubTypes.Type(value = com.commercetools.api.models.message.OrderCreatedMessageImpl.class, name = OrderCreatedMessage.ORDER_CREATED),
@JsonSubTypes.Type(value = com.commercetools.api.models.message.OrderCustomFieldAddedMessageImpl.class, name = OrderCustomFieldAddedMessage.ORDER_CUSTOM_FIELD_ADDED),
@JsonSubTypes.Type(value = com.commercetools.api.models.message.OrderCustomFieldChangedMessageImpl.class, name = OrderCustomFieldChangedMessage.ORDER_CUSTOM_FIELD_CHANGED),
Expand Down Expand Up @@ -2129,6 +2130,14 @@ public static com.commercetools.api.models.message.OrderBillingAddressSetMessage
return com.commercetools.api.models.message.OrderBillingAddressSetMessageBuilder.of();
}

/**
* builder for orderBusinessUnitSet subtype
* @return builder
*/
public static com.commercetools.api.models.message.OrderBusinessUnitSetMessageBuilder orderBusinessUnitSetBuilder() {
return com.commercetools.api.models.message.OrderBusinessUnitSetMessageBuilder.of();
}

/**
* builder for orderCreated subtype
* @return builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,10 @@ public com.commercetools.api.models.message.OrderBillingAddressSetMessageBuilder
return com.commercetools.api.models.message.OrderBillingAddressSetMessageBuilder.of();
}

public com.commercetools.api.models.message.OrderBusinessUnitSetMessageBuilder orderBusinessUnitSetBuilder() {
return com.commercetools.api.models.message.OrderBusinessUnitSetMessageBuilder.of();
}

public com.commercetools.api.models.message.OrderCreatedMessageBuilder orderCreatedBuilder() {
return com.commercetools.api.models.message.OrderCreatedMessageBuilder.of();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
@JsonSubTypes.Type(value = com.commercetools.api.models.message.InventoryEntryQuantitySetMessagePayloadImpl.class, name = InventoryEntryQuantitySetMessagePayload.INVENTORY_ENTRY_QUANTITY_SET),
@JsonSubTypes.Type(value = com.commercetools.api.models.message.LineItemStateTransitionMessagePayloadImpl.class, name = LineItemStateTransitionMessagePayload.LINE_ITEM_STATE_TRANSITION),
@JsonSubTypes.Type(value = com.commercetools.api.models.message.OrderBillingAddressSetMessagePayloadImpl.class, name = OrderBillingAddressSetMessagePayload.ORDER_BILLING_ADDRESS_SET),
@JsonSubTypes.Type(value = com.commercetools.api.models.message.OrderBusinessUnitSetMessagePayloadImpl.class, name = OrderBusinessUnitSetMessagePayload.ORDER_BUSINESS_UNIT_SET),
@JsonSubTypes.Type(value = com.commercetools.api.models.message.OrderCreatedMessagePayloadImpl.class, name = OrderCreatedMessagePayload.ORDER_CREATED),
@JsonSubTypes.Type(value = com.commercetools.api.models.message.OrderCustomFieldAddedMessagePayloadImpl.class, name = OrderCustomFieldAddedMessagePayload.ORDER_CUSTOM_FIELD_ADDED),
@JsonSubTypes.Type(value = com.commercetools.api.models.message.OrderCustomFieldChangedMessagePayloadImpl.class, name = OrderCustomFieldChangedMessagePayload.ORDER_CUSTOM_FIELD_CHANGED),
Expand Down Expand Up @@ -1958,6 +1959,14 @@ public static com.commercetools.api.models.message.OrderBillingAddressSetMessage
return com.commercetools.api.models.message.OrderBillingAddressSetMessagePayloadBuilder.of();
}

/**
* builder for orderBusinessUnitSet subtype
* @return builder
*/
public static com.commercetools.api.models.message.OrderBusinessUnitSetMessagePayloadBuilder orderBusinessUnitSetBuilder() {
return com.commercetools.api.models.message.OrderBusinessUnitSetMessagePayloadBuilder.of();
}

/**
* builder for orderCreated subtype
* @return builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,10 @@ public com.commercetools.api.models.message.OrderBillingAddressSetMessagePayload
return com.commercetools.api.models.message.OrderBillingAddressSetMessagePayloadBuilder.of();
}

public com.commercetools.api.models.message.OrderBusinessUnitSetMessagePayloadBuilder orderBusinessUnitSetBuilder() {
return com.commercetools.api.models.message.OrderBusinessUnitSetMessagePayloadBuilder.of();
}

public com.commercetools.api.models.message.OrderCreatedMessagePayloadBuilder orderCreatedBuilder() {
return com.commercetools.api.models.message.OrderCreatedMessagePayloadBuilder.of();
}
Expand Down
Loading