Skip to content

Commit

Permalink
Updated API from documentation release
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-sdks[bot] committed Oct 22, 2024
1 parent cac013e commit 0323605
Show file tree
Hide file tree
Showing 52 changed files with 160 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"project": {
"key": "{projectKey}"
}
}
}
},
"correlationId": "spa/commercetools-checkout/1729263187262/565301612087128"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"order": {
"id": "{orderId}"
}
}
},
"correlationId": "spa/commercetools-checkout/1729263187262/565301612087128"
}
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/AddDiscountCodeError.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ properties:
message:
type: string
description: Error adding discount code.
correlationId:
type: string
description: Unique identifier of the event.
payload:
type: object
description: Contains the `error` object.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ properties:
message:
type: string
description: Application `{applicationKey}` for `{projectKey}` is disabled.
correlationId:
type: string
description: Unique identifier of the event.
payload:
type: object
description: Contains the `project` and `application` objects with the related `key` property.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/BadInputData.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ properties:
message:
type: string
description: Some fields are invalid.
correlationId:
type: string
description: Unique identifier of the event.
payload:
type: object
description: Contains the `invalidFields` array of objects with the related `schema`, `path`, `value` and `message` properties.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ properties:
message:
type: string
description: Cart `{cartId}` was emptied during checkout.
correlationId:
type: string
description: Unique identifier of the event.
payload:
type: object
description: Contains the `cart` object with the `id` property.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/CartEmpty.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ properties:
message:
type: string
description: Cart `{cartId}` is empty.
correlationId:
type: string
description: Unique identifier of the event.
payload:
type: object
description: Contains the `cart` object with the `id` property.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/CartNotFound.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ properties:
message:
type: string
description: Cart for `{projectKey}` and session `{sessionId}` not found.
correlationId:
type: string
description: Unique identifier of the event.
payload:
type: object
description: Contains the `project` and `session` objects with the related `key` and `id` properties.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ properties:
message:
type: string
description: Cart with existing approved payment.
correlationId:
type: string
description: Unique identifier of the event.
payload:
type: object
description: Contains the `cart` object with the `id` property.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/CheckoutCancelled.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ properties:
message:
type: string
description: Checkout cancelled.
correlationId:
type: string
description: Unique identifier of the event.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/CheckoutCompleted.raml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ properties:
payload:
type: object
description: Contains the `order` object with the `id` property.
correlationId:
type: string
description: Unique identifier of the event.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/CheckoutLoaded.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ properties:
message:
type: string
description: Checkout loaded.
correlationId:
type: string
description: Unique identifier of the event.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/CheckoutStarted.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ properties:
message:
type: string
description: Checkout started.
correlationId:
type: string
description: Unique identifier of the event.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/DeprecatedFields.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ properties:
message:
type: string
description: Some fields are deprecated.
correlationId:
type: string
description: Unique identifier of the event.
payload:
type: object
description: Contains the `deprecatedFields` array.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ properties:
message:
type: string
description: Discount code not applicable.
correlationId:
type: string
description: Unique identifier of the event.
payload:
type: object
description: Contains string values for `cartId` and the given `discountCode`.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/ExpiredSession.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ properties:
message:
type: string
description: Session is expired.
correlationId:
type: string
description: Unique identifier of the event.
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ properties:
message:
type: string
description: External terms and conditions pending.
correlationId:
type: string
description: Unique identifier of the event.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/InitError.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ properties:
message:
type: string
description: Error during initialization.
correlationId:
type: string
description: Unique identifier of the event.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/InitTimeout.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ properties:
message:
type: string
description: Timeout error, no init message received.
correlationId:
type: string
description: Unique identifier of the event.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/InvalidLocale.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ properties:
message:
type: string
description: The provided `{locale}` is invalid.
correlationId:
type: string
description: Unique identifier of the event.
payload:
type: object
description: Contains the provided locale string, the related locale field (language or currency), and the used fallback one.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/InvalidMode.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ properties:
message:
type: string
description: \`{mode}` mode requires an application with mode type `{modeTypeRequested}`. Current mode `{modeTypeReceived}`.
correlationId:
type: string
description: Unique identifier of the event.
9 changes: 6 additions & 3 deletions api-specs/checkout/types/responses/Message.raml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ discriminator: code
description:
properties:
code:
description: The Message code for the event.
description: Message code for the event.
type: string
severity:
description: |
The severity level of the event. It can be `info`, `warn`, or `error`.
Severity level of the event. Can be `info`, `warn`, or `error`.
type: string
message:
description: |
A human-readable description of the event.
Human-readable description of the event.
type: string
correlationId:
type: string
description: Unique identifier of the event.
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ properties:
message:
type: string
description: Multiple vendor button containers detected, this may cause issues.
correlationId:
type: string
description: Unique identifier of the event.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/NoPaymentMethods.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ properties:
message:
type: string
description: There are no payment methods configured.
correlationId:
type: string
description: Unique identifier of the event.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/NoShippingMethods.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ properties:
message:
type: string
description: There are no shipping methods matching cart.
correlationId:
type: string
description: Unique identifier of the event.
payload:
type: object
description: Contains the `cart` object with the `id` property.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/OrderCreated.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ properties:
message:
type: string
description: Order `{orderId}` created.
correlationId:
type: string
description: Unique identifier of the event.
payload:
type: object
description: Contains the `order` object with the `id` property.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/OrderCreationError.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ properties:
message:
type: string
description: Order creation failed with approved payment.
correlationId:
type: string
description: Unique identifier of the event.
payload:
type: object
description: Contains `paymentReference`, `sessionId`, and the `errors` array of objects, with the related `code` and `message` properties.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/PaymentCancelled.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ properties:
message:
type: string
description: Payment cancelled.
correlationId:
type: string
description: Unique identifier of the event.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/PaymentConnectorError.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ properties:
message:
type: string
description: Payment connector error.
correlationId:
type: string
description: Unique identifier of the event.
payload:
type: object
description: Contains the `connector` object with the `id` property.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/PaymentFailed.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ properties:
message:
type: string
description: Payment failed.
correlationId:
type: string
description: Unique identifier of the event.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/PaymentMethodLoaded.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ properties:
message:
type: string
description: Payment method loaded.
correlationId:
type: string
description: Unique identifier of the event.
payload:
type: object
description: Contains the `method` object with the `type` and `connectorId` properties.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/PaymentMethodLoading.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ properties:
message:
type: string
description: Payment method loading.
correlationId:
type: string
description: Unique identifier of the event.
payload:
type: object
description: Contains the `method` object with the `type` and `connectorId` properties.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ properties:
message:
type: string
description: Payment method loading failed.
correlationId:
type: string
description: Unique identifier of the event.
payload:
type: object
description: Contains the `method` object with the `type` and `connectorId` properties.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/PaymentMethodSelected.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ properties:
message:
type: string
description: Payment method selected.
correlationId:
type: string
description: Unique identifier of the event.
payload:
type: object
description: Contains the `method` object with the `type` and `hasVendorButton` properties.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ properties:
message:
type: string
description: Payment method selected.
correlationId:
type: string
description: Unique identifier of the event.
payload:
type: object
description: Contains the `method` object with the `type` and `hasVendorButton` properties.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ properties:
message:
type: string
description: Payment method selection failed.
correlationId:
type: string
description: Unique identifier of the event.
payload:
type: object
description: Contains the `method` object with the `type` property.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ properties:
message:
type: string
description: Payment methods received.
correlationId:
type: string
description: Unique identifier of the event.
payload:
type: object
description: Contains the `paymentMethods` array of objects with the `type` and `connectorId` properties.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/PaymentStarted.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ properties:
message:
type: string
description: Payment started.
correlationId:
type: string
description: Unique identifier of the event.
payload:
type: object
description: Contains the `method` object with the `type` property.
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ properties:
message:
type: string
description: Payment validation failed.
correlationId:
type: string
description: Unique identifier of the event.
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ properties:
message:
type: string
description: Payment validation passed.
correlationId:
type: string
description: Unique identifier of the event.
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ properties:
message:
type: string
description: Payment validation started.
correlationId:
type: string
description: Unique identifier of the event.
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ properties:
message:
type: string
description: Payment verification started.
correlationId:
type: string
description: Unique identifier of the event.
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ properties:
message:
type: string
description: Payment verification timeout.
correlationId:
type: string
description: Unique identifier of the event.
3 changes: 3 additions & 0 deletions api-specs/checkout/types/responses/ProjectIsDeactivated.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ properties:
message:
type: string
description: Project `{projectKey}` is deactivated.
correlationId:
type: string
description: Unique identifier of the event.
payload:
type: object
description: Contains the `project` object with the `key` property.
Loading

0 comments on commit 0323605

Please sign in to comment.