File tree Expand file tree Collapse file tree 8 files changed +44
-0
lines changed Expand file tree Collapse file tree 8 files changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,5 @@ example: !include ../../../examples/Cart/CartFreezeCartAction.json
77description : |
88 Changes the [CartState](ctp:api:type:CartState) from `Active` to `Frozen`. Results in a [Frozen Cart](ctp:api:type:FrozenCarts).
99 Fails with [InvalidOperation](ctp:api:type:InvalidOperationError) error when the Cart is empty.
10+
11+ Freezing a Cart produces the [CartFrozen](ctp:api:type:CartFrozenMessage) Message.
Original file line number Diff line number Diff line change @@ -7,3 +7,5 @@ example: !include ../../../examples/Cart/CartUnfreezeCartAction.json
77description : |
88 Changes the [CartState](ctp:api:type:CartState) from `Frozen` to `Active`. Reactivates a [Frozen Cart](ctp:api:type:FrozenCarts).
99 This action updates all prices in the Cart according to latest Prices on related Product Variants and Shipping Methods and by applying all discounts currently being active and applicable for the Cart.
10+
11+ Unfreezing a Cart produces the [CartUnfrozen](ctp:api:type:CartUnfrozenMessage) Message.
Original file line number Diff line number Diff line change 1+ # %RAML 1.0 DataType
2+ (package) : Message
3+ type : Message
4+ displayName : CartFrozenMessage
5+ discriminatorValue : CartFrozen
6+ description : |
7+ Generated after a successful [Freeze Cart](ctp:api:type:CartFreezeCartAction) update action.
Original file line number Diff line number Diff line change 1+ # %RAML 1.0 DataType
2+ (package) : Message
3+ type : Message
4+ displayName : CartUnfrozenMessage
5+ discriminatorValue : CartUnfrozen
6+ description : |
7+ Generated after a successful [Unfreeze Cart](ctp:api:type:CartUnfreezeCartAction) update action.
Original file line number Diff line number Diff line change 1+ # %RAML 1.0 DataType
2+ (package) : Message
3+ type : MessagePayload
4+ displayName : CartFrozenMessagePayload
5+ discriminatorValue : CartFrozen
6+ description : |
7+ Generated after a successful [Freeze Cart](ctp:api:type:CartFreezeCartAction) update action.
Original file line number Diff line number Diff line change 1+ # %RAML 1.0 DataType
2+ (package) : Message
3+ type : MessagePayload
4+ displayName : CartUnfrozenMessagePayload
5+ discriminatorValue : CartUnfrozen
6+ description : |
7+ Generated after a successful [Unfreeze Cart](ctp:api:type:CartUnfreezeCartAction) update action.
Original file line number Diff line number Diff line change @@ -964,6 +964,8 @@ CartDiscountDeletedMessage: !include message/CartDiscountDeletedMessage.raml
964964CartDiscountStoreAddedMessage : !include message/CartDiscountStoreAddedMessage.raml
965965CartDiscountStoreRemovedMessage : !include message/CartDiscountStoreRemovedMessage.raml
966966CartDiscountStoresSetMessage : !include message/CartDiscountStoresSetMessage.raml
967+ CartFrozenMessage : !include message/CartFrozenMessage.raml
968+ CartUnfrozenMessage : !include message/CartUnfrozenMessage.raml
967969CategoryCreatedMessage : !include message/CategoryCreatedMessage.raml
968970CategorySlugChangedMessage : !include message/CategorySlugChangedMessage.raml
969971ContainerAndKey : !include message/ContainerAndKey.raml
@@ -1287,6 +1289,8 @@ CartDiscountDeletedMessagePayload: !include message/payload/CartDiscountDeletedM
12871289CartDiscountStoreAddedMessagePayload : !include message/payload/CartDiscountStoreAddedMessagePayload.raml
12881290CartDiscountStoreRemovedMessagePayload : !include message/payload/CartDiscountStoreRemovedMessagePayload.raml
12891291CartDiscountStoresSetMessagePayload : !include message/payload/CartDiscountStoresSetMessagePayload.raml
1292+ CartFrozenMessagePayload : !include message/payload/CartFrozenMessagePayload.raml
1293+ CartUnfrozenMessagePayload : !include message/payload/CartUnfrozenMessagePayload.raml
12901294CategoryCreatedMessagePayload : !include message/payload/CategoryCreatedMessagePayload.raml
12911295CategorySlugChangedMessagePayload : !include message/payload/CategorySlugChangedMessagePayload.raml
12921296CustomLineItemStateTransitionMessagePayload : !include message/payload/CustomLineItemStateTransitionMessagePayload.raml
Original file line number Diff line number Diff line change @@ -2048,6 +2048,10 @@ input CartDraft {
20482048 origin: CartOrigin = Customer
20492049}
20502050
2051+ type CartFrozen implements MessagePayload {
2052+ type: String!
2053+ }
2054+
20512055type CartLimitWithCurrent implements LimitWithCurrent {
20522056 limit: Long
20532057 current: Long!
@@ -2123,6 +2127,10 @@ enum CartState {
21232127 Ordered
21242128}
21252129
2130+ type CartUnfrozen implements MessagePayload {
2131+ type: String!
2132+ }
2133+
21262134input CartUpdateAction {
21272135 addCustomShippingMethod: AddCartCustomShippingMethod
21282136 addDiscountCode: AddCartDiscountCode
You can’t perform that action at this time.
0 commit comments