|
1
|
/** |
|
2
|
* @schema BasePayment |
|
3
|
* type: object |
|
4
|
* description: The payment's details. |
|
5
|
* x-schemaName: BasePayment |
|
6
|
* required: |
|
7
|
* - id |
|
8
|
* - amount |
|
9
|
* - currency_code |
|
10
|
* - provider_id |
|
11
|
* properties: |
|
12
|
* id: |
|
13
|
* type: string |
|
14
|
* title: id |
|
15
|
* description: The payment's ID. |
|
16
|
* amount: |
|
17
|
* type: number |
|
18
|
* title: amount |
|
19
|
* description: The payment's amount. |
|
20
|
* authorized_amount: |
|
21
|
* type: number |
|
22
|
* title: authorized_amount |
|
23
|
* description: The amount authorized of the payment. |
|
24
|
* currency_code: |
|
25
|
* type: string |
|
26
|
* title: currency_code |
|
27
|
* description: The payment's currency code. |
|
28
|
* provider_id: |
|
29
|
* type: string |
|
30
|
* title: provider_id |
|
31
|
* description: The ID of the payment provider used to process this payment. |
|
32
|
* data: |
|
33
|
* type: object |
|
34
|
* description: The payment's data, useful for processing by the payment provider. |
|
35
|
* externalDocs: |
|
36
|
* url: https://docs.medusajs.com/resources/commerce-modules/payment/payment#whats-a-payment |
|
37
|
* created_at: |
|
38
|
* type: string |
|
39
|
* format: date-time |
|
40
|
* title: created_at |
|
41
|
* description: The date the payment was created. |
|
42
|
* updated_at: |
|
43
|
* type: string |
|
44
|
* format: date-time |
|
45
|
* title: updated_at |
|
46
|
* description: The date the payment was updated. |
|
47
|
* captured_at: |
|
48
|
* type: string |
|
49
|
* format: date-time |
|
50
|
* title: captured_at |
|
51
|
* description: The date the payment was captured. |
|
52
|
* canceled_at: |
|
53
|
* type: string |
|
54
|
* format: date-time |
|
55
|
* title: canceled_at |
|
56
|
* description: The date the payment was canceled. |
|
57
|
* captured_amount: |
|
58
|
* type: number |
|
59
|
* title: captured_amount |
|
60
|
* description: The captured amount of the payment. |
|
61
|
* refunded_amount: |
|
62
|
* type: number |
|
63
|
* title: captured_amount |
|
64
|
* description: The refunded amount of the payment. |
|
65
|
* captures: |
|
66
|
* type: array |
|
67
|
* description: The details of payment captures. |
|
68
|
* items: |
|
69
|
* $ref: "#/components/schemas/BaseCapture" |
|
70
|
* refunds: |
|
71
|
* type: array |
|
72
|
* description: The details of payment refunds. |
|
73
|
* items: |
|
74
|
* $ref: "#/components/schemas/BaseRefund" |
|
75
|
* payment_collection: |
|
76
|
* $ref: "#/components/schemas/BasePaymentCollection" |
|
77
|
* payment_session: |
|
78
|
* $ref: "#/components/schemas/BasePaymentSession" |
|
79
|
* |
|
80
|
*/ |
|
81
|
|