|
1
|
/** |
|
2
|
* @schema BasePaymentCollection |
|
3
|
* type: object |
|
4
|
* description: The payment collection's details. |
|
5
|
* x-schemaName: BasePaymentCollection |
|
6
|
* required: |
|
7
|
* - id |
|
8
|
* - currency_code |
|
9
|
* - amount |
|
10
|
* - status |
|
11
|
* - payment_providers |
|
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
|
* - completed |
|
68
|
* - failed |
|
69
|
* payment_providers: |
|
70
|
* type: array |
|
71
|
* description: The payment provider used to process the collection's payments and sessions. |
|
72
|
* items: |
|
73
|
* $ref: "#/components/schemas/BasePaymentProvider" |
|
74
|
* payment_sessions: |
|
75
|
* type: array |
|
76
|
* description: The payment collection's payment sessions. |
|
77
|
* items: |
|
78
|
* $ref: "#/components/schemas/BasePaymentSession" |
|
79
|
* payments: |
|
80
|
* type: array |
|
81
|
* description: The payment collection's payments. |
|
82
|
* items: |
|
83
|
* $ref: "#/components/schemas/BasePayment" |
|
84
|
* |
|
85
|
*/ |
|
86
|
|