Skip to content

Commit

Permalink
build(codegen): updating SDK (#756)
Browse files Browse the repository at this point in the history
Co-authored-by: ct-sdks[bot] <153784748+ct-sdks[bot]@users.noreply.github.com>
  • Loading branch information
ct-sdks[bot] authored Jul 18, 2024
1 parent 71e5dff commit c8c1921
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .changeset/changes_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,14 @@

- added type `BusinessUnitApprovalRuleMode`
- added type `BusinessUnitChangeApprovalRuleModeAction`
- added type `CartChangeLineItemsOrderAction`
- added type `CustomerIndexingProgress`
- added type `CustomerIndexingStatus`
- added type `CustomerPagedSearchResponse`
- added type `CustomerSearchIndexingStatusResponse`
- added type `CustomerSearchRequest`
- added type `CustomerSearchResult`
- added type `MyCartChangeLineItemsOrderAction`
- added type `BusinessUnitApprovalRuleModeChangedMessage`
- added type `ProductPriceCustomFieldAddedMessage`
- added type `ProductPriceCustomFieldChangedMessage`
Expand Down
2 changes: 2 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,14 @@

- added type `BusinessUnitApprovalRuleMode`
- added type `BusinessUnitChangeApprovalRuleModeAction`
- added type `CartChangeLineItemsOrderAction`
- added type `CustomerIndexingProgress`
- added type `CustomerIndexingStatus`
- added type `CustomerPagedSearchResponse`
- added type `CustomerSearchIndexingStatusResponse`
- added type `CustomerSearchRequest`
- added type `CustomerSearchResult`
- added type `MyCartChangeLineItemsOrderAction`
- added type `BusinessUnitApprovalRuleModeChangedMessage`
- added type `ProductPriceCustomFieldAddedMessage`
- added type `ProductPriceCustomFieldChangedMessage`
Expand Down
10 changes: 10 additions & 0 deletions packages/platform-sdk/src/generated/models/cart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,7 @@ export type CartUpdateAction =
| CartChangeCustomLineItemPriceModeAction
| CartChangeCustomLineItemQuantityAction
| CartChangeLineItemQuantityAction
| CartChangeLineItemsOrderAction
| CartChangeTaxCalculationModeAction
| CartChangeTaxModeAction
| CartChangeTaxRoundingModeAction
Expand Down Expand Up @@ -2580,6 +2581,15 @@ export interface CartChangeLineItemQuantityAction {
*/
readonly externalTotalPrice?: ExternalLineItemTotalPrice
}
export interface CartChangeLineItemsOrderAction {
readonly action: 'changeLineItemsOrder'
/**
* All existing [LineItem](ctp:api:type:LineItem) `id`s in the desired new order.
*
*
*/
readonly lineItemOrder: string[]
}
/**
* Changing the tax calculation mode leads to [recalculation of taxes](/../api/carts-orders-overview#cart-tax-calculation).
*
Expand Down
10 changes: 10 additions & 0 deletions packages/platform-sdk/src/generated/models/me.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ export type MyCartUpdateAction =
| MyCartAddPaymentAction
| MyCartApplyDeltaToLineItemShippingDetailsTargetsAction
| MyCartChangeLineItemQuantityAction
| MyCartChangeLineItemsOrderAction
| MyCartChangeTaxModeAction
| MyCartRecalculateAction
| MyCartRemoveDiscountCodeAction
Expand Down Expand Up @@ -1494,6 +1495,15 @@ export interface MyCartChangeLineItemQuantityAction {
*/
readonly quantity: number
}
export interface MyCartChangeLineItemsOrderAction {
readonly action: 'changeLineItemsOrder'
/**
* All existing [LineItem](ctp:api:type:LineItem) `id`s of the [Cart](ctp:api:type:Cart) in the desired new order.
*
*
*/
readonly lineItemOrder: string[]
}
/**
* - When `External` [TaxMode](ctp:api:type:TaxMode) is changed to `Platform` or `Disabled`, all previously set external Tax Rates are removed.
* - When set to `Platform`, Line Items, Custom Line Items, and Shipping Method require a Tax Category with a Tax Rate for the Cart's `shippingAddress`.
Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -288,3 +288,4 @@ d74a87f613d9efd31448c3b11f505f7bf6bf57c0
369fbe55d487e70a626a9c12a2cf3cfe891b5bf0
4c21b32d2f4bd2b61a9ee586c736672ad4b4ff0b
0de2b778a4e263ceec08d7cfd62f615bb2c34c7e
482680f2aa9a6729cc2187040570c5662b9e5d6a

0 comments on commit c8c1921

Please sign in to comment.