Files
medusa-store/docs/api/store/components/schemas/StoreCompleteCartRes.yaml
github-actions[bot] 658339767b chore(docs): Generated API Reference (#4706)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-08-07 16:54:48 +03:00

37 lines
1.2 KiB
YAML

type: object
required:
- type
- data
properties:
type:
type: string
description: >-
The type of the data property. If the cart completion fails, type will be
`cart` and the data object will be the cart's details. If the cart
completion is successful and the cart is used for checkout, type will be
`order` and the data object will be the order's details. If the cart
completion is successful and the cart is used for swap creation, type will
be `swap` and the data object will be the swap's details.
enum:
- order
- cart
- swap
data:
type: object
description: The data of the result object. Its type depends on the type field.
oneOf:
- type: object
allOf:
- description: >-
Cart was successfully authorized and order was placed
successfully.
- $ref: ./Order.yaml
- type: object
allOf:
- description: Cart was successfully authorized but requires further actions.
- $ref: ./Cart.yaml
- type: object
allOf:
- description: Cart was used for a swap and it has been completed successfully.
- $ref: ./Swap.yaml