-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated API from documentation release
- Loading branch information
1 parent
a1588f9
commit 61d668b
Showing
50 changed files
with
478 additions
and
207 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
api-specs/checkout/examples/message/ErrorInitBadConfigMessage.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"type": "error:init:bad_config", | ||
"severity": "error", | ||
"code": "project_deactivated", | ||
"message": "commercetools Checkout {projectKey} is deactivated.", | ||
"payload": { | ||
"project": { | ||
"key": "{projectKey}" | ||
} | ||
} | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
api-specs/checkout/examples/message/InfoOrderCreatedMessage.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"type": "info:order:status", | ||
"severity": "info", | ||
"code": "order_created", | ||
"message": "Order {orderId} created.", | ||
"payload": { | ||
"order": { | ||
"id": "{orderId}" | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
#%RAML 1.0 DataType | ||
(annotations.package): responses | ||
type: ResponseMessage | ||
type: Message | ||
displayName: CheckoutLoaded | ||
discriminatorValue: checkout_loaded | ||
description: | | ||
Generated when Checkout has been loaded successfully and is waiting for the configuration parameters passed in the `checkoutConfig` [object](/sdk). | ||
Generated when Checkout is loaded and waiting for the configuration properties to be passed with the `checkoutFlow` or `paymentFlow` [method](/sdk). | ||
properties: | ||
code: | ||
type: string | ||
description: | ||
type: | ||
severity: | ||
type: string | ||
description: \`info:app:status` | ||
description: \`info` | ||
message: | ||
type: string | ||
description: Checkout loaded. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
#%RAML 1.0 DataType | ||
(annotations.package): responses | ||
type: ResponseMessage | ||
type: Message | ||
displayName: CheckoutStarted | ||
discriminatorValue: checkout_started | ||
description: | | ||
Generated when the configuration parameters are passed successfully through the `checkoutConfig` [object](/sdk) and the checkout process starts. | ||
Generated when the configuration properties are passed successfully with the `checkoutFlow` or `paymentFlow` [method](/sdk) and the checkout process starts. | ||
properties: | ||
code: | ||
type: string | ||
description: | ||
type: | ||
severity: | ||
type: string | ||
description: \`info:app:status` | ||
description: \`info` | ||
message: | ||
type: string | ||
description: Checkout started. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
api-specs/checkout/types/responses/ExternalTermsAndConditionsPending.raml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#%RAML 1.0 DataType | ||
(annotations.package): responses | ||
type: Message | ||
displayName: ExternalTermsAndConditionsPending | ||
discriminatorValue: external_terms_and_conditions_pending | ||
description: | | ||
Generated in Payment Only [mode](/../checkout/overview#complete-checkout-and-payment-only-modes) when the customer hasn't accepted the terms and conditions yet. | ||
properties: | ||
code: | ||
type: string | ||
description: | ||
severity: | ||
type: string | ||
description: \`info` | ||
message: | ||
type: string | ||
description: External terms and conditions pending. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#%RAML 1.0 DataType | ||
(annotations.package): responses | ||
type: Message | ||
displayName: InitError | ||
discriminatorValue: init_error | ||
description: | | ||
Generated when an error occurs during Checkout's initialization. | ||
properties: | ||
code: | ||
type: string | ||
description: | ||
severity: | ||
type: string | ||
description: \`error` | ||
message: | ||
type: string | ||
description: Error during initialization. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
#%RAML 1.0 DataType | ||
(annotations.package): responses | ||
type: ResponseMessage | ||
type: Message | ||
displayName: InitTimeout | ||
discriminatorValue: init_timeout | ||
description: | | ||
Generated when Checkout has not received the configuration parameters passed through the `checkoutConfig` [object](/sdk) on time. | ||
Generated when Checkout does not receive the configuration properties with the `checkoutFlow` or `paymentFlow` [method](/sdk) on time. | ||
properties: | ||
code: | ||
type: string | ||
description: | ||
type: | ||
severity: | ||
type: string | ||
description: \`error:init:timeout` | ||
description: \`error` | ||
message: | ||
type: string | ||
description: Timeout error, no init message received. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#%RAML 1.0 DataType | ||
(annotations.package): responses | ||
type: Message | ||
displayName: InvalidMode | ||
discriminatorValue: invalid_mode | ||
description: | | ||
Generated when the Application does not support the requested Checkout [mode](/../checkout/overview#complete-checkout-and-payment-only-modes). | ||
properties: | ||
code: | ||
type: string | ||
description: | ||
severity: | ||
type: string | ||
description: \`info` | ||
message: | ||
type: string | ||
description: \`{mode}` mode requires an application with mode type `{modeTypeRequested}`. Current mode `{modeTypeReceived}`. |
Oops, something went wrong.