diff --git a/.changeset/changes_api.md b/.changeset/changes_api.md index 2114260a5..8b6748a5c 100644 --- a/.changeset/changes_api.md +++ b/.changeset/changes_api.md @@ -16,6 +16,7 @@ - :warning: changed property `totalPrice` of type `OrderLineItemDiscountSetMessagePayload` from type `Money` to `CentPrecisionMoney` - :warning: changed property `value` of type `StandalonePriceValueChangedMessagePayload` from type `Money` to `TypedMoney` - :warning: changed property `oldValue` of type `StandalonePriceValueChangedMessagePayload` from type `Money` to `TypedMoney` +- :warning: changed property `totalPrice` of type `StagedOrder` from type `TypedMoney` to `CentPrecisionMoney` - :warning: changed property `customType` of type `OrderSearchAnyValue` from type `string` to `OrderSearchCustomType` - :warning: changed property `customType` of type `OrderSearchDateRangeValue` from type `string` to `OrderSearchCustomType` - :warning: changed property `customType` of type `OrderSearchFullTextValue` from type `string` to `OrderSearchCustomType` @@ -23,6 +24,7 @@ - :warning: changed property `customType` of type `OrderSearchNumberRangeValue` from type `string` to `OrderSearchCustomType` - :warning: changed property `customType` of type `OrderSearchQueryExpressionValue` from type `string` to `OrderSearchCustomType` - :warning: changed property `customType` of type `OrderSearchStringValue` from type `string` to `OrderSearchCustomType` +- :warning: changed property `totalPrice` of type `Order` from type `TypedMoney` to `CentPrecisionMoney` - :warning: changed property `price` of type `ShippingRate` from type `TypedMoney` to `CentPrecisionMoney` - :warning: changed property `freeAbove` of type `ShippingRate` from type `TypedMoney` to `CentPrecisionMoney` diff --git a/changes.md b/changes.md index 2b1b44f2d..bb211ace9 100644 --- a/changes.md +++ b/changes.md @@ -12,6 +12,7 @@ - :warning: changed property `totalPrice` of type `OrderLineItemDiscountSetMessagePayload` from type `Money` to `CentPrecisionMoney` - :warning: changed property `value` of type `StandalonePriceValueChangedMessagePayload` from type `Money` to `TypedMoney` - :warning: changed property `oldValue` of type `StandalonePriceValueChangedMessagePayload` from type `Money` to `TypedMoney` +- :warning: changed property `totalPrice` of type `StagedOrder` from type `TypedMoney` to `CentPrecisionMoney` - :warning: changed property `customType` of type `OrderSearchAnyValue` from type `string` to `OrderSearchCustomType` - :warning: changed property `customType` of type `OrderSearchDateRangeValue` from type `string` to `OrderSearchCustomType` - :warning: changed property `customType` of type `OrderSearchFullTextValue` from type `string` to `OrderSearchCustomType` @@ -19,6 +20,7 @@ - :warning: changed property `customType` of type `OrderSearchNumberRangeValue` from type `string` to `OrderSearchCustomType` - :warning: changed property `customType` of type `OrderSearchQueryExpressionValue` from type `string` to `OrderSearchCustomType` - :warning: changed property `customType` of type `OrderSearchStringValue` from type `string` to `OrderSearchCustomType` +- :warning: changed property `totalPrice` of type `Order` from type `TypedMoney` to `CentPrecisionMoney` - :warning: changed property `price` of type `ShippingRate` from type `TypedMoney` to `CentPrecisionMoney` - :warning: changed property `freeAbove` of type `ShippingRate` from type `TypedMoney` to `CentPrecisionMoney` diff --git a/packages/platform-sdk/src/generated/models/order.ts b/packages/platform-sdk/src/generated/models/order.ts index 0ab8d4bfa..cdd28a935 100644 --- a/packages/platform-sdk/src/generated/models/order.ts +++ b/packages/platform-sdk/src/generated/models/order.ts @@ -39,12 +39,12 @@ import { AddressDraft, BaseAddress, BaseResource, + CentPrecisionMoney, CreatedBy, Image, LastModifiedBy, LocalizedString, PriceDraft, - TypedMoney, _BaseAddress, _Money, } from './common' @@ -774,7 +774,7 @@ export interface Order extends BaseResource { * * */ - readonly totalPrice: TypedMoney + readonly totalPrice: CentPrecisionMoney /** * - For `Platform` [TaxMode](ctp:api:type:TaxMode), it is automatically set when a [shipping address is set](ctp:api:type:OrderSetShippingAddressAction). * - For `External` [TaxMode](ctp:api:type:TaxMode), it is automatically set when `shippingAddress` and external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set. diff --git a/references.txt b/references.txt index b5e349262..98b03021b 100644 --- a/references.txt +++ b/references.txt @@ -342,3 +342,4 @@ f254d17f05343dcc4299fc53ff9b335b5ef63d69 a639dbb1cfe5b434c350e7b47ca717c69b3aa369 6a8624fb41168a6a78ac836b7208c2790a686608 971c1b4ce06c29fcb8c2402dc2ca523b2907352c +b747e1fa4f246b748a89bccbfd8a43f5b6f51175