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