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