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