1 /**
2 * @schema StorePaymentCollection
3 * type: object
4 * description: The payment collection's details.
5 * x-schemaName: StorePaymentCollection
6 * required:
7 * - payment_providers
8 * - id
9 * - currency_code
10 * - amount
11 * - status
12 * properties:
13 * id:
14 * type: string
15 * title: id
16 * description: The payment collection's ID.
17 * currency_code:
18 * type: string
19 * title: currency_code
20 * description: The payment collection's currency code.
21 * amount:
22 * type: number
23 * title: amount
24 * description: The total amount to be paid.
25 * authorized_amount:
26 * type: number
27 * title: authorized_amount
28 * description: The total authorized amount of the collection's payments.
29 * captured_amount:
30 * type: number
31 * title: captured_amount
32 * description: The total captured amount of the collection's payments.
33 * refunded_amount:
34 * type: number
35 * title: refunded_amount
36 * description: The total refunded amount of the collection's payments.
37 * completed_at:
38 * type: string
39 * format: date-time
40 * title: completed_at
41 * description: The date the payment collection was completed.
42 * created_at:
43 * type: string
44 * format: date-time
45 * title: created_at
46 * description: The date the payment collection was created.
47 * updated_at:
48 * type: string
49 * format: date-time
50 * title: updated_at
51 * description: The date the payment collection was updated.
52 * metadata:
53 * type: object
54 * description: The payment collection's metadata, can hold custom key-value pairs.
55 * externalDocs:
56 * url: https://docs.medusajs.com/api/store#manage-metadata
57 * description: Learn how to manage metadata
58 * status:
59 * type: string
60 * description: The payment collection's status.
61 * enum:
62 * - canceled
63 * - not_paid
64 * - awaiting
65 * - authorized
66 * - partially_authorized
67 * payment_providers:
68 * type: array
69 * description: The payment provider used to process the collection's payments and sessions.
70 * items:
71 * $ref: "#/components/schemas/StorePaymentProvider"
72 * payment_sessions:
73 * type: array
74 * description: The payment collection's payment sessions.
75 * items:
76 * $ref: "#/components/schemas/StorePaymentSession"
77 * payments:
78 * type: array
79 * description: The payment collection's payments.
80 * items:
81 * $ref: "#/components/schemas/BasePayment"
82 *
83 */
84