Skip to content

Commit 68fb22e

Browse files
committed
Updated API from documentation release
1 parent 47d240c commit 68fb22e

9 files changed

+44
-2
lines changed

api-specs/api/types/message/OrderPaymentAddedMessage.raml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ discriminatorValue: OrderPaymentAdded
66
description: |
77
Generated after a successful [Add Payment](ctp:api:type:OrderAddPaymentAction) update action or when a [Payment](ctp:api:type:Payment) is added via [Order Edits](ctp:api:type:StagedOrderAddPaymentAction).
88
properties:
9-
payment:
9+
paymentRef:
1010
type: PaymentReference
1111
description: |
1212
[Payment](ctp:api:type:Payment) that was added to the [Order](ctp:api:type:Order).
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#%RAML 1.0 DataType
2+
(package): Message
3+
type: Message
4+
displayName: OrderPaymentRemovedMessage
5+
discriminatorValue: OrderPaymentRemoved
6+
description: |
7+
Generated after a successful [Remove Payment](ctp:api:type:OrderRemovePaymentAction) update action or when a [Payment](ctp:api:type:Payment) is removed via [Order Edits](ctp:api:type:StagedOrderRemovePaymentAction).
8+
properties:
9+
paymentRef:
10+
type: PaymentReference
11+
description: |
12+
[Payment](ctp:api:type:Payment) that was removed from the [Order](ctp:api:type:Order).
13+
removedPaymentInfo:
14+
type: boolean
15+
description: |
16+
Indicates whether the removal of the Payment resulted in no Payments remaining on the Order. The value is `true` if all Payments have been removed (none remain), and `false` if there are still Payments associated with the Order after the removal.

api-specs/api/types/message/payload/OrderPaymentAddedMessagePayload.raml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ discriminatorValue: OrderPaymentAdded
66
description: |
77
Generated after a successful [Add Payment](ctp:api:type:OrderAddPaymentAction) update action or when a [Payment](ctp:api:type:Payment) is added via [Order Edits](ctp:api:type:StagedOrderAddPaymentAction).
88
properties:
9-
payment:
9+
paymentRef:
1010
type: PaymentReference
1111
description: |
1212
[Payment](ctp:api:type:Payment) that was added to the [Order](ctp:api:type:Order).
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#%RAML 1.0 DataType
2+
(package): Message
3+
type: MessagePayload
4+
displayName: OrderPaymentRemovedMessagePayload
5+
discriminatorValue: OrderPaymentRemoved
6+
description: |
7+
Generated after a successful [Remove Payment](ctp:api:type:OrderRemovePaymentAction) update action or when a [Payment](ctp:api:type:Payment) is removed via [Order Edits](ctp:api:type:StagedOrderRemovePaymentAction).
8+
properties:
9+
paymentRef:
10+
type: PaymentReference
11+
description: |
12+
[Payment](ctp:api:type:Payment) that was removed from the [Order](ctp:api:type:Order).
13+
removedPaymentInfo:
14+
type: boolean
15+
description: |
16+
Indicates whether the removal of the Payment resulted in no Payments remaining on the Order. The value is `true` if all Payments have been removed (none remain), and `false` if there are still Payments associated with the Order after the removal.

api-specs/api/types/order-edit/updates/StagedOrderAddPaymentAction.raml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ example: !include ../../../examples/OrderEdit/StagedOrderAddPaymentAction.json
44
type: StagedOrderUpdateAction
55
displayName: StagedOrderAddPaymentAction
66
discriminatorValue: addPayment
7+
description: |
8+
Produces the [Order Payment Added](ctp:api:type:OrderPaymentAddedMessage) Message.
79
properties:
810
payment:
911
type: PaymentResourceIdentifier

api-specs/api/types/order-edit/updates/StagedOrderRemovePaymentAction.raml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ example: !include ../../../examples/OrderEdit/StagedOrderRemovePaymentAction.jso
44
type: StagedOrderUpdateAction
55
displayName: StagedOrderRemovePaymentAction
66
discriminatorValue: removePayment
7+
description: |
8+
Produces the [Order Payment Removed](ctp:api:type:OrderPaymentRemovedMessage) Message.
79
properties:
810
payment:
911
type: PaymentResourceIdentifier

api-specs/api/types/order/updates/OrderAddPaymentAction.raml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ example: !include ../../../examples/Order/OrderAddPaymentAction.json
44
type: OrderUpdateAction
55
displayName: OrderAddPaymentAction
66
discriminatorValue: addPayment
7+
description: |
8+
Produces the [Order Payment Added](ctp:api:type:OrderPaymentAddedMessage) Message.
79
properties:
810
payment:
911
type: PaymentResourceIdentifier

api-specs/api/types/order/updates/OrderRemovePaymentAction.raml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ example: !include ../../../examples/Order/OrderRemovePaymentAction.json
44
type: OrderUpdateAction
55
displayName: OrderRemovePaymentAction
66
discriminatorValue: removePayment
7+
description: |
8+
Produces the [Order Payment Removed](ctp:api:type:OrderPaymentRemovedMessage) Message.
79
properties:
810
payment:
911
type: PaymentResourceIdentifier

api-specs/api/types/types.raml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,6 +1060,7 @@ OrderLineItemDistributionChannelSetMessage: !include message/OrderLineItemDistri
10601060
OrderLineItemRemovedMessage: !include message/OrderLineItemRemovedMessage.raml
10611061
OrderMessage: !include message/OrderMessage.raml
10621062
OrderPaymentAddedMessage: !include message/OrderPaymentAddedMessage.raml
1063+
OrderPaymentRemovedMessage: !include message/OrderPaymentRemovedMessage.raml
10631064
OrderPaymentStateChangedMessage: !include message/OrderPaymentStateChangedMessage.raml
10641065
OrderPurchaseOrderNumberSetMessage: !include message/OrderPurchaseOrderNumberSetMessage.raml
10651066
OrderReturnShipmentStateChangedMessage: !include message/OrderReturnShipmentStateChangedMessage.raml
@@ -1391,6 +1392,7 @@ OrderLineItemDistributionChannelSetMessagePayload: !include message/payload/Orde
13911392
OrderLineItemRemovedMessagePayload: !include message/payload/OrderLineItemRemovedMessagePayload.raml
13921393
OrderMessagePayload: !include message/payload/OrderMessagePayload.raml
13931394
OrderPaymentAddedMessagePayload: !include message/payload/OrderPaymentAddedMessagePayload.raml
1395+
OrderPaymentRemovedMessagePayload: !include message/payload/OrderPaymentRemovedMessagePayload.raml
13941396
OrderPaymentStateChangedMessagePayload: !include message/payload/OrderPaymentStateChangedMessagePayload.raml
13951397
OrderPurchaseOrderNumberSetMessagePayload: !include message/payload/OrderPurchaseOrderNumberSetMessagePayload.raml
13961398
# yamllint disable-line rule:line-length

0 commit comments

Comments
 (0)