Skip to content

Commit 4fac5bf

Browse files
committed
Updated API from documentation release
1 parent 2f7015f commit 4fac5bf

File tree

14 files changed

+90
-7
lines changed

14 files changed

+90
-7
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"action": "setPurchaseOrderNumber",
3+
"purchaseOrderNumber": "purchaseOrderNumberString"
4+
}

api-specs/api/types/cart/Cart.raml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,12 @@ properties:
203203
default: 90
204204
minimum: 1
205205
maximum: 365250
206+
purchaseOrderNumber?:
207+
type: string
208+
description: |-
209+
User-defined identifier of a purchase order.
210+
211+
It is typically set by the [Buyer](ctp:api:type:Buyer) or Merchant to track the purchase order during the [quote and order flow](/../api/quotes-overview#intended-workflow).
206212
createdAt:
207213
type: datetime
208214
description: |

api-specs/api/types/cart/CartDraft.raml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,9 @@ properties:
152152
type: CustomFieldsDraft
153153
description: |
154154
Custom Fields for the Cart.
155+
purchaseOrderNumber?:
156+
type: string
157+
description: |-
158+
User-defined identifier of a purchase order.
159+
160+
It is typically set by the [Buyer](ctp:api:type:Buyer) or Merchant to track the purchase order during the [quote and order flow](/../api/quotes-overview#intended-workflow).
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#%RAML 1.0 DataType
2+
(package): Cart
3+
example: !include ../../../examples/Cart/CartSetPurchaseOrderNumberAction.json
4+
type: CartUpdateAction
5+
displayName: CartSetPurchaseOrderNumberAction
6+
discriminatorValue: setPurchaseOrderNumber
7+
description: |
8+
Updates the `purchaseOrderNumber` field and produces the [CartPurchaseOrderNumberSet](ctp:api:type:CartPurchaseOrderNumberSetMessage) Message.
9+
properties:
10+
purchaseOrderNumber?:
11+
type: string
12+
description: |
13+
Value to set.
14+
If empty, any existing value is removed.
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: CartPurchaseOrderNumberSetMessage
5+
discriminatorValue: CartPurchaseOrderNumberSet
6+
description: |
7+
Generated after a successful [Set Purchase Order Number](ctp:api:type:CartSetPurchaseOrderNumberAction) update action.
8+
properties:
9+
purchaseOrderNumber?:
10+
type: string
11+
description: |
12+
Purchase order number on the [Cart](ctp:api:type:Cart) after the [Set Purchase Order Number](ctp:api:type:CartSetPurchaseOrderNumberAction) update action.
13+
oldPurchaseOrderNumber?:
14+
type: string
15+
description: |
16+
Purchase order number on the [Cart](ctp:api:type:Cart) before the [Set Purchase Order Number](ctp:api:type:CartSetPurchaseOrderNumberAction) update action.
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: CartPurchaseOrderNumberSetMessagePayload
5+
discriminatorValue: CartPurchaseOrderNumberSet
6+
description: |
7+
Generated after a successful [Set Purchase Order Number](ctp:api:type:CartSetPurchaseOrderNumberAction) update action.
8+
properties:
9+
purchaseOrderNumber?:
10+
type: string
11+
description: |
12+
Purchase order number on the [Cart](ctp:api:type:Cart) after the [Set Purchase Order Number](ctp:api:type:CartSetPurchaseOrderNumberAction) update action.
13+
oldPurchaseOrderNumber?:
14+
type: string
15+
description: |
16+
Purchase order number on the [Cart](ctp:api:type:Cart) before the [Set Purchase Order Number](ctp:api:type:CartSetPurchaseOrderNumberAction) update action.

api-specs/api/types/order/OrderFromCartDraft.raml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ properties:
2727
purchaseOrderNumber?:
2828
type: string
2929
description: |-
30-
User-defined identifier for a purchase Order.
30+
User-defined identifier for a purchase order.
3131
32-
It is typically set by the [Buyer](ctp:api:type:Buyer) and can be used with [Quotes](/quotes-overview) to track the purchase Order during the [quote and order flow](/../api/quotes-overview#intended-workflow).
32+
It is typically set by the [Buyer](ctp:api:type:Buyer) or Merchant to track the purchase order during the [quote and order flow](/../api/quotes-overview#intended-workflow).
33+
34+
If not provided, the `purchaseOrderNumber` from the referenced [Cart](ctp:api:type:Cart) is used.
3335
paymentState?:
3436
type: PaymentState
3537
description: |

api-specs/api/types/quote-request/QuoteRequest.raml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ properties:
151151
type: string
152152
description: |
153153
Identifier for a purchase order, usually in a B2B context.
154-
The Purchase Order Number is typically entered by the [Buyer](/quotes-overview#buyer).
154+
The purchase order number is typically entered by the [Buyer](/quotes-overview#buyer).
155155
cart?:
156156
type: CartReference
157157
description: |

api-specs/api/types/quote-request/QuoteRequestDraft.raml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ properties:
3636
This reference can point to a State in a custom workflow.
3737
purchaseOrderNumber?:
3838
type: string
39-
description: |
39+
description: |-
4040
Identifier for a purchase order, usually in a B2B context.
41-
The Purchase Order Number is typically entered by the [Buyer](/quotes-overview#buyer).
41+
The purchase order number is typically entered by the [Buyer](/quotes-overview#buyer).
42+
43+
If not provided, the `purchaseOrderNumber` from the referenced [Cart](ctp:api:type:Cart) is used.

api-specs/api/types/quote/Quote.raml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ properties:
166166
purchaseOrderNumber?:
167167
type: string
168168
description: |
169-
The Purchase Order Number is typically set by the [Buyer](/quotes-overview#buyer) on a [QuoteRequest](ctp:api:type:QuoteRequest) to
169+
The purchase order number is typically set by the [Buyer](/quotes-overview#buyer) on a [QuoteRequest](ctp:api:type:QuoteRequest) to
170170
track the purchase order during the [quote and order flow](/../api/quotes-overview#intended-workflow).
171171
businessUnit?:
172172
type: BusinessUnitKeyReference

0 commit comments

Comments
 (0)