1 /**
2 * @schema BasePaymentSession
3 * type: object
4 * description: The payment session's details.
5 * x-schemaName: BasePaymentSession
6 * required:
7 * - id
8 * - amount
9 * - currency_code
10 * - provider_id
11 * - data
12 * - status
13 * properties:
14 * id:
15 * type: string
16 * title: id
17 * description: The payment session's ID.
18 * amount:
19 * type: number
20 * title: amount
21 * description: The payment session's amount.
22 * currency_code:
23 * type: string
24 * title: currency_code
25 * description: The payment session's currency code.
26 * example: usd
27 * provider_id:
28 * type: string
29 * title: provider_id
30 * description: The ID of the payment provider processing this session.
31 * data:
32 * type: object
33 * description: The payment session's data, useful for the payment provider processing the payment.
34 * externalDocs:
35 * url: https://docs.medusajs.com/resources/commerce-modules/payment/payment-session#data-property
36 * context:
37 * type: object
38 * description: The context around the payment, such as the customer's details.
39 * example:
40 * customer:
41 * id: cus_123
42 * status:
43 * type: string
44 * description: The payment session's status.
45 * enum:
46 * - error
47 * - authorized
48 * - canceled
49 * - captured
50 * - pending
51 * - requires_more
52 * authorized_at:
53 * type: string
54 * title: authorized_at
55 * description: The date the payment session was authorized.
56 * format: date-time
57 * payment_collection:
58 * $ref: "#/components/schemas/BasePaymentCollection"
59 * payment:
60 * $ref: "#/components/schemas/BasePayment"
61 *
62 */
63