UNPKG

supersonic-models

Version:

Supersonic models and API specifications

48 lines (47 loc) 1.2 kB
type: object required: - customer - kiosk - cart - settings - timestamp - cartId - total - paymentType - payment - receipt properties: customer: $ref: "./customer.yaml" kiosk: $ref: "./kiosk.yaml" cart: $ref: "./cart.yaml" settings: $ref: "./cloud-bridge-settings.yaml" timestamp: type: string example: "2020-12-06T19:50:00Z" description: Timestamp from the cart state, it's part of the document path on firestore. Send the value from a previous request if you are trying to update an existing order. cartId: type: string example: "cf9d9350-1ed5-11eb-98af-d198a7520869" description: Cart ID from the cart state, it's part of the document path on firestore. Send the same value from a previous request if you are trying to update an existing order. mock: type: boolean default: true example: true description: Mock provider responses. total: type: number example: 13.95 description: Order total paymentType: $ref: "./payment-type.yaml" payment: type: object description: Payment provider details receipt: $ref: "./receipt.yaml" messages: $ref: "./messages-array.yaml"