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