|
1
|
{ |
|
2
|
"PaymentProvider": { |
|
3
|
"filePath": "packages/modules/payment/src/models/payment-provider.ts", |
|
4
|
"properties": { |
|
5
|
"id": "The ID of the payment provider.", |
|
6
|
"is_enabled": "Whether the payment provider is enabled.", |
|
7
|
"payment_collections": "The associated payment collections.\n\n@expandable" |
|
8
|
}, |
|
9
|
"deprecated": { |
|
10
|
"is_deprecated": false |
|
11
|
} |
|
12
|
}, |
|
13
|
"PaymentSession": { |
|
14
|
"filePath": "packages/modules/payment/src/models/payment-session.ts", |
|
15
|
"properties": { |
|
16
|
"id": "The ID of the payment session.", |
|
17
|
"currency_code": "The currency code of the payment session.\n\n@example usd", |
|
18
|
"amount": "The authorized amount.", |
|
19
|
"provider_id": "The ID of the Payment Module Provider used to process the payment.", |
|
20
|
"data": "The data of the payment session that's useful for processing with third-party services. Learn more in [this documentation](https://docs.medusajs.com/resources/commerce-modules/payment/payment-session#data-property)", |
|
21
|
"context": "The context of the payment session, such as the billing address or the customer's email.", |
|
22
|
"status": "The status of the payment session", |
|
23
|
"authorized_at": "The date the payment session was authorized.", |
|
24
|
"payment_collection": "The associated payment collection.\n\n@expandable", |
|
25
|
"payment": "The associated payment.\n\n@expandable", |
|
26
|
"metadata": "Holds custom data in key-value pairs." |
|
27
|
}, |
|
28
|
"deprecated": { |
|
29
|
"is_deprecated": false |
|
30
|
} |
|
31
|
}, |
|
32
|
"PaymentCollection": { |
|
33
|
"filePath": "packages/modules/payment/src/models/payment-collection.ts", |
|
34
|
"properties": { |
|
35
|
"id": "The ID of the payment collection.", |
|
36
|
"currency_code": "The currency code of the payment collection.\n\n@example usd", |
|
37
|
"amount": "The amount of the payment collection", |
|
38
|
"authorized_amount": "The authorized amount of the payment collection", |
|
39
|
"captured_amount": "The captured amount of the payment collection", |
|
40
|
"refunded_amount": "The refunded amount of the payment collection", |
|
41
|
"completed_at": "The date the payment collection was completed", |
|
42
|
"status": "The status of the payment collection", |
|
43
|
"metadata": "Holds custom data in key-value pairs.", |
|
44
|
"payment_providers": "The associated payment providers.\n\n@expandable", |
|
45
|
"payment_sessions": "The associated payment sessions.\n\n@expandable", |
|
46
|
"payments": "The associated payments.\n\n@expandable" |
|
47
|
}, |
|
48
|
"deprecated": { |
|
49
|
"is_deprecated": false |
|
50
|
} |
|
51
|
}, |
|
52
|
"RefundReason": { |
|
53
|
"filePath": "packages/modules/payment/src/models/refund-reason.ts", |
|
54
|
"properties": { |
|
55
|
"id": "The ID of the refund reason.", |
|
56
|
"label": "The label of the refund reason", |
|
57
|
"description": "The description of the refund reason", |
|
58
|
"metadata": "Holds custom data in key-value pairs.", |
|
59
|
"refunds": "The associated refunds.\n\n@expandable", |
|
60
|
"code": "The code of the refund reason" |
|
61
|
}, |
|
62
|
"deprecated": { |
|
63
|
"is_deprecated": false |
|
64
|
} |
|
65
|
}, |
|
66
|
"Refund": { |
|
67
|
"filePath": "packages/modules/payment/src/models/refund.ts", |
|
68
|
"properties": { |
|
69
|
"id": "The ID of the refund.", |
|
70
|
"amount": "The refunded amount.", |
|
71
|
"payment": "The associated payment.\n\n@expandable", |
|
72
|
"refund_reason": "The associated refund reason.\n\n@expandable", |
|
73
|
"note": "A note with more explanation about the refund", |
|
74
|
"created_by": "The ID of the user that created the refund.", |
|
75
|
"metadata": "Holds custom data in key-value pairs." |
|
76
|
}, |
|
77
|
"deprecated": { |
|
78
|
"is_deprecated": false |
|
79
|
} |
|
80
|
}, |
|
81
|
"Payment": { |
|
82
|
"filePath": "packages/modules/payment/src/models/payment.ts", |
|
83
|
"properties": { |
|
84
|
"id": "The ID of the payment.", |
|
85
|
"amount": "The amount of the payment", |
|
86
|
"currency_code": "The currency code of the payment.\n\n@example usd", |
|
87
|
"provider_id": "The ID of the Payment Module Provider used to process the payment.", |
|
88
|
"data": "The data of the payment that's useful for processing with third-party services. Learn more in [this documentation](https://docs.medusajs.com/resources/commerce-modules/payment/payment-session#data-property)", |
|
89
|
"metadata": "Holds custom data in key-value pairs.", |
|
90
|
"captured_at": "The date that the payment was captured.", |
|
91
|
"canceled_at": "The date that the payment was canceled.", |
|
92
|
"payment_collection": "The associated payment collection.\n\n@expandable", |
|
93
|
"payment_session": "The associated payment session.\n\n@expandable", |
|
94
|
"refunds": "The associated refunds.\n\n@expandable", |
|
95
|
"captures": "The associated captures.\n\n@expandable" |
|
96
|
}, |
|
97
|
"deprecated": { |
|
98
|
"is_deprecated": false |
|
99
|
} |
|
100
|
}, |
|
101
|
"Capture": { |
|
102
|
"filePath": "packages/modules/payment/src/models/capture.ts", |
|
103
|
"properties": { |
|
104
|
"id": "The ID of the capture.", |
|
105
|
"amount": "The captured amount.", |
|
106
|
"payment": "The associated payment.\n\n@expandable", |
|
107
|
"metadata": "Holds custom data in key-value pairs.", |
|
108
|
"created_by": "The created by of the capture" |
|
109
|
}, |
|
110
|
"deprecated": { |
|
111
|
"is_deprecated": false |
|
112
|
} |
|
113
|
}, |
|
114
|
"AccountHolder": { |
|
115
|
"filePath": "packages/modules/payment/src/models/account-holder.ts", |
|
116
|
"properties": { |
|
117
|
"id": "The ID of the account holder.", |
|
118
|
"provider_id": "The ID of the payment provider storing the account holder's saved payment methods.", |
|
119
|
"external_id": "The ID of the account holder in the payment provider's system.", |
|
120
|
"email": "The email of the account holder", |
|
121
|
"data": "The data returned by the payment provider when the account holder is created.", |
|
122
|
"metadata": "Holds custom data in key-value pairs." |
|
123
|
}, |
|
124
|
"deprecated": { |
|
125
|
"is_deprecated": false |
|
126
|
} |
|
127
|
} |
|
128
|
} |