Skip to content

Commit bb9d1c5

Browse files
committed
Updated API from documentation release
1 parent fc718cb commit bb9d1c5

File tree

4 files changed

+27
-3
lines changed

4 files changed

+27
-3
lines changed

api-specs/checkout/types/responses/DiscountCodeNotApplicable.raml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ type: ResponseMessage
44
displayName: DiscountCodeNotApplicable
55
discriminatorValue: discount_code_not_applicable
66
description: |
7-
Generated when the Discount Code is not applicable for the current cart.
7+
Generated when the [Discount Code](/../api/projects/discountCodes) is not applicable for the current Cart.
88
properties:
99
code:
1010
type: string
@@ -20,4 +20,4 @@ properties:
2020
description: Unique identifier of the event.
2121
payload:
2222
type: object
23-
description: Contains string values for `cartId` and the given `discountCode`.
23+
description: Contains the `cartId` and `discountCode` properties.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#%RAML 1.0 DataType
2+
(annotations.package): responses
3+
type: ResponseMessage
4+
displayName: NotApplicableDiscountCodeRemoved
5+
discriminatorValue: not_applicable_discount_code_removed
6+
description: |
7+
Generated when using the `paymentFlow` [method](/../checkout/sdk#paymentflow-method) and Checkout removes a [Discount Code](/../api/projects/discountCodes) from the Cart because it does not apply to the Cart. Checkout removes the Discount Code to avoid an order creation error when converting the Cart to an Order.
8+
properties:
9+
code:
10+
type: string
11+
description:
12+
severity:
13+
type: string
14+
description: \`warn`
15+
message:
16+
type: string
17+
description: Not applicable discount code removed.
18+
correlationId:
19+
type: string
20+
description: Unique identifier of the event.
21+
payload:
22+
type: object
23+
description: Contains the `cartId` and `discountCode` properties.

api-specs/checkout/types/responses/RemoveDiscountCodeError.raml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ type: ResponseMessage
44
displayName: RemoveDiscountCodeError
55
discriminatorValue: remove_discount_code_error
66
description: |
7-
Generated when there was an error removing the Discount Code.
7+
Generated when there was an error removing the [Discount Code](/../api/projects/discountCodes).
88
properties:
99
code:
1010
type: string

api-specs/checkout/types/types.raml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ApplicationDeactivated: !include responses/ApplicationDeactivated.raml
55
AddDiscountCodeError: !include responses/AddDiscountCodeError.raml
66
DiscountCodeNotApplicable: !include responses/DiscountCodeNotApplicable.raml
77
RemoveDiscountCodeError: !include responses/RemoveDiscountCodeError.raml
8+
NotApplicableDiscountCodeRemoved: !include responses/NotApplicableDiscountCodeRemoved.raml
89
CartEmptiedDuringCheckout: !include responses/CartEmptiedDuringCheckout.raml
910
CartEmpty: !include responses/CartEmpty.raml
1011
CartNotFound: !include responses/CartNotFound.raml

0 commit comments

Comments
 (0)