mollie-api-typescript 1.6.5 → 1.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/models/captureresponse.d.ts +12 -10
- package/dist/commonjs/models/captureresponse.d.ts.map +1 -1
- package/dist/commonjs/models/captureresponse.js.map +1 -1
- package/dist/commonjs/models/clientlinkrequest.d.ts +1 -1
- package/dist/commonjs/models/customerresponse.d.ts +1 -1
- package/dist/commonjs/models/entitychargeback.d.ts +12 -12
- package/dist/commonjs/models/entitycustomer.d.ts +1 -1
- package/dist/commonjs/models/entityorganization.d.ts +2 -0
- package/dist/commonjs/models/entityorganization.d.ts.map +1 -1
- package/dist/commonjs/models/entityorganization.js +2 -0
- package/dist/commonjs/models/entityorganization.js.map +1 -1
- package/dist/commonjs/models/entityrefundresponse.d.ts +14 -20
- package/dist/commonjs/models/entityrefundresponse.d.ts.map +1 -1
- package/dist/commonjs/models/entityrefundresponse.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +1 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/listcaptureresponse.d.ts +12 -10
- package/dist/commonjs/models/listcaptureresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listcaptureresponse.js.map +1 -1
- package/dist/commonjs/models/listcustomerresponse.d.ts +1 -1
- package/dist/commonjs/models/listentitychargeback.d.ts +12 -12
- package/dist/commonjs/models/listentityrefund.d.ts +14 -20
- package/dist/commonjs/models/listentityrefund.d.ts.map +1 -1
- package/dist/commonjs/models/listentityrefund.js.map +1 -1
- package/dist/commonjs/models/listpaymentresponse.d.ts +17 -13
- package/dist/commonjs/models/listpaymentresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listpaymentresponse.js.map +1 -1
- package/dist/commonjs/models/listsettlementcaptureresponse.d.ts +2 -16
- package/dist/commonjs/models/listsettlementcaptureresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listsettlementcaptureresponse.js.map +1 -1
- package/dist/commonjs/models/listsettlementchargebackresponse.d.ts +127 -0
- package/dist/commonjs/models/listsettlementchargebackresponse.d.ts.map +1 -0
- package/dist/commonjs/models/listsettlementchargebackresponse.js +98 -0
- package/dist/commonjs/models/listsettlementchargebackresponse.js.map +1 -0
- package/dist/commonjs/models/listsettlementpaymentresponse.d.ts +7 -15
- package/dist/commonjs/models/listsettlementpaymentresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listsettlementpaymentresponse.js.map +1 -1
- package/dist/commonjs/models/listsettlementrefundresponse.d.ts +6 -24
- package/dist/commonjs/models/listsettlementrefundresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listsettlementrefundresponse.js.map +1 -1
- package/dist/commonjs/models/locale.d.ts +4 -2
- package/dist/commonjs/models/locale.d.ts.map +1 -1
- package/dist/commonjs/models/locale.js +3 -1
- package/dist/commonjs/models/locale.js.map +1 -1
- package/dist/commonjs/models/localeresponse.d.ts +4 -2
- package/dist/commonjs/models/localeresponse.d.ts.map +1 -1
- package/dist/commonjs/models/localeresponse.js +3 -1
- package/dist/commonjs/models/localeresponse.js.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.d.ts +1 -1
- package/dist/commonjs/models/operations/listsettlementchargebacks.d.ts +1 -1
- package/dist/commonjs/models/operations/listsettlementchargebacks.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsettlementchargebacks.js +1 -1
- package/dist/commonjs/models/operations/listsettlementchargebacks.js.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.d.ts +1 -1
- package/dist/commonjs/models/operations/updatepayment.d.ts +1 -1
- package/dist/commonjs/models/paymentrequest.d.ts +1 -1
- package/dist/commonjs/models/paymentresponse.d.ts +17 -13
- package/dist/commonjs/models/paymentresponse.d.ts.map +1 -1
- package/dist/commonjs/models/paymentresponse.js.map +1 -1
- package/dist/commonjs/models/statusreason.d.ts +3 -3
- package/dist/commonjs/models/statusreason.d.ts.map +1 -1
- package/dist/commonjs/models/statusreason.js +2 -1
- package/dist/commonjs/models/statusreason.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/models/captureresponse.d.ts +12 -10
- package/dist/esm/models/captureresponse.d.ts.map +1 -1
- package/dist/esm/models/captureresponse.js.map +1 -1
- package/dist/esm/models/clientlinkrequest.d.ts +1 -1
- package/dist/esm/models/customerresponse.d.ts +1 -1
- package/dist/esm/models/entitychargeback.d.ts +12 -12
- package/dist/esm/models/entitycustomer.d.ts +1 -1
- package/dist/esm/models/entityorganization.d.ts +2 -0
- package/dist/esm/models/entityorganization.d.ts.map +1 -1
- package/dist/esm/models/entityorganization.js +2 -0
- package/dist/esm/models/entityorganization.js.map +1 -1
- package/dist/esm/models/entityrefundresponse.d.ts +14 -20
- package/dist/esm/models/entityrefundresponse.d.ts.map +1 -1
- package/dist/esm/models/entityrefundresponse.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/listcaptureresponse.d.ts +12 -10
- package/dist/esm/models/listcaptureresponse.d.ts.map +1 -1
- package/dist/esm/models/listcaptureresponse.js.map +1 -1
- package/dist/esm/models/listcustomerresponse.d.ts +1 -1
- package/dist/esm/models/listentitychargeback.d.ts +12 -12
- package/dist/esm/models/listentityrefund.d.ts +14 -20
- package/dist/esm/models/listentityrefund.d.ts.map +1 -1
- package/dist/esm/models/listentityrefund.js.map +1 -1
- package/dist/esm/models/listpaymentresponse.d.ts +17 -13
- package/dist/esm/models/listpaymentresponse.d.ts.map +1 -1
- package/dist/esm/models/listpaymentresponse.js.map +1 -1
- package/dist/esm/models/listsettlementcaptureresponse.d.ts +2 -16
- package/dist/esm/models/listsettlementcaptureresponse.d.ts.map +1 -1
- package/dist/esm/models/listsettlementcaptureresponse.js.map +1 -1
- package/dist/esm/models/listsettlementchargebackresponse.d.ts +127 -0
- package/dist/esm/models/listsettlementchargebackresponse.d.ts.map +1 -0
- package/dist/esm/models/listsettlementchargebackresponse.js +58 -0
- package/dist/esm/models/listsettlementchargebackresponse.js.map +1 -0
- package/dist/esm/models/listsettlementpaymentresponse.d.ts +7 -15
- package/dist/esm/models/listsettlementpaymentresponse.d.ts.map +1 -1
- package/dist/esm/models/listsettlementpaymentresponse.js.map +1 -1
- package/dist/esm/models/listsettlementrefundresponse.d.ts +6 -24
- package/dist/esm/models/listsettlementrefundresponse.d.ts.map +1 -1
- package/dist/esm/models/listsettlementrefundresponse.js.map +1 -1
- package/dist/esm/models/locale.d.ts +4 -2
- package/dist/esm/models/locale.d.ts.map +1 -1
- package/dist/esm/models/locale.js +3 -1
- package/dist/esm/models/locale.js.map +1 -1
- package/dist/esm/models/localeresponse.d.ts +4 -2
- package/dist/esm/models/localeresponse.d.ts.map +1 -1
- package/dist/esm/models/localeresponse.js +3 -1
- package/dist/esm/models/localeresponse.js.map +1 -1
- package/dist/esm/models/operations/getcustomer.d.ts +1 -1
- package/dist/esm/models/operations/listsettlementchargebacks.d.ts +1 -1
- package/dist/esm/models/operations/listsettlementchargebacks.d.ts.map +1 -1
- package/dist/esm/models/operations/listsettlementchargebacks.js +1 -1
- package/dist/esm/models/operations/listsettlementchargebacks.js.map +1 -1
- package/dist/esm/models/operations/updatecustomer.d.ts +1 -1
- package/dist/esm/models/operations/updatepayment.d.ts +1 -1
- package/dist/esm/models/paymentrequest.d.ts +1 -1
- package/dist/esm/models/paymentresponse.d.ts +17 -13
- package/dist/esm/models/paymentresponse.d.ts.map +1 -1
- package/dist/esm/models/paymentresponse.js.map +1 -1
- package/dist/esm/models/statusreason.d.ts +3 -3
- package/dist/esm/models/statusreason.d.ts.map +1 -1
- package/dist/esm/models/statusreason.js +2 -1
- package/dist/esm/models/statusreason.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/captureresponse.ts +12 -10
- package/src/models/clientlinkrequest.ts +1 -1
- package/src/models/customerresponse.ts +1 -1
- package/src/models/entitychargeback.ts +12 -12
- package/src/models/entitycustomer.ts +1 -1
- package/src/models/entityorganization.ts +2 -0
- package/src/models/entityrefundresponse.ts +14 -20
- package/src/models/index.ts +1 -0
- package/src/models/listcaptureresponse.ts +12 -10
- package/src/models/listcustomerresponse.ts +1 -1
- package/src/models/listentitychargeback.ts +12 -12
- package/src/models/listentityrefund.ts +14 -20
- package/src/models/listpaymentresponse.ts +17 -13
- package/src/models/listsettlementcaptureresponse.ts +2 -16
- package/src/models/listsettlementchargebackresponse.ts +240 -0
- package/src/models/listsettlementpaymentresponse.ts +7 -15
- package/src/models/listsettlementrefundresponse.ts +6 -24
- package/src/models/locale.ts +4 -2
- package/src/models/localeresponse.ts +4 -2
- package/src/models/operations/getcustomer.ts +1 -1
- package/src/models/operations/listsettlementchargebacks.ts +2 -2
- package/src/models/operations/updatecustomer.ts +1 -1
- package/src/models/operations/updatepayment.ts +1 -1
- package/src/models/paymentrequest.ts +1 -1
- package/src/models/paymentresponse.ts +17 -13
- package/src/models/statusreason.ts +5 -5
|
@@ -20,14 +20,15 @@ import { Url, Url$inboundSchema } from "./url.js";
|
|
|
20
20
|
import { UrlNullable, UrlNullable$inboundSchema } from "./urlnullable.js";
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* This
|
|
23
|
+
* **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
|
|
24
24
|
*
|
|
25
25
|
* @remarks
|
|
26
|
-
*
|
|
26
|
+
* the [List balance transactions endpoint](list-balance-transactions) for settlement data.
|
|
27
27
|
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
28
|
+
* The amount that will be settled to your account for this capture, converted to the currency your account is
|
|
29
|
+
* settled in. Only available once the capture is finalized and the final settlement amount has been determined.
|
|
30
|
+
*
|
|
31
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
31
32
|
*/
|
|
32
33
|
export type ListCaptureResponseSettlementAmount = {
|
|
33
34
|
/**
|
|
@@ -99,14 +100,15 @@ export type ListCaptureResponse = {
|
|
|
99
100
|
*/
|
|
100
101
|
amount: AmountNullable | null;
|
|
101
102
|
/**
|
|
102
|
-
* This
|
|
103
|
+
* **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
|
|
103
104
|
*
|
|
104
105
|
* @remarks
|
|
105
|
-
*
|
|
106
|
+
* the [List balance transactions endpoint](list-balance-transactions) for settlement data.
|
|
107
|
+
*
|
|
108
|
+
* The amount that will be settled to your account for this capture, converted to the currency your account is
|
|
109
|
+
* settled in. Only available once the capture is finalized and the final settlement amount has been determined.
|
|
106
110
|
*
|
|
107
|
-
*
|
|
108
|
-
* accurate settlement amounts we recommend using the [List balance transactions endpoint](list-balance-transactions)
|
|
109
|
-
* instead.
|
|
111
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
110
112
|
*/
|
|
111
113
|
settlementAmount?: ListCaptureResponseSettlementAmount | null | undefined;
|
|
112
114
|
status: ListCaptureResponseStatus;
|
|
@@ -13,16 +13,16 @@ import { Url, Url$inboundSchema } from "./url.js";
|
|
|
13
13
|
import { UrlNullable, UrlNullable$inboundSchema } from "./urlnullable.js";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* This
|
|
16
|
+
* **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
|
-
*
|
|
19
|
+
* the [List balance transactions endpoint](list-balance-transactions) for settlement data.
|
|
20
20
|
*
|
|
21
|
-
* The amount
|
|
21
|
+
* The amount deducted from your account balance for this chargeback, converted to the currency your account is
|
|
22
|
+
* settled in. Always a **negative** amount. Only available once the chargeback is finalized and the final settlement
|
|
23
|
+
* amount has been determined.
|
|
22
24
|
*
|
|
23
|
-
*
|
|
24
|
-
* accurate settlement amounts we recommend using the [List balance transactions endpoint](list-balance-transactions)
|
|
25
|
-
* instead.
|
|
25
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
26
26
|
*/
|
|
27
27
|
export type ListEntityChargebackSettlementAmount = {
|
|
28
28
|
/**
|
|
@@ -84,16 +84,16 @@ export type ListEntityChargeback = {
|
|
|
84
84
|
*/
|
|
85
85
|
amount: Amount;
|
|
86
86
|
/**
|
|
87
|
-
* This
|
|
87
|
+
* **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
|
|
88
88
|
*
|
|
89
89
|
* @remarks
|
|
90
|
-
*
|
|
90
|
+
* the [List balance transactions endpoint](list-balance-transactions) for settlement data.
|
|
91
91
|
*
|
|
92
|
-
* The amount
|
|
92
|
+
* The amount deducted from your account balance for this chargeback, converted to the currency your account is
|
|
93
|
+
* settled in. Always a **negative** amount. Only available once the chargeback is finalized and the final settlement
|
|
94
|
+
* amount has been determined.
|
|
93
95
|
*
|
|
94
|
-
*
|
|
95
|
-
* accurate settlement amounts we recommend using the [List balance transactions endpoint](list-balance-transactions)
|
|
96
|
-
* instead.
|
|
96
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
97
97
|
*/
|
|
98
98
|
settlementAmount?: ListEntityChargebackSettlementAmount | null | undefined;
|
|
99
99
|
/**
|
|
@@ -21,21 +21,18 @@ import { Url, Url$inboundSchema } from "./url.js";
|
|
|
21
21
|
import { UrlNullable, UrlNullable$inboundSchema } from "./urlnullable.js";
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* This
|
|
24
|
+
* **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
|
|
25
25
|
*
|
|
26
26
|
* @remarks
|
|
27
|
-
*
|
|
27
|
+
* the [List balance transactions endpoint](list-balance-transactions) for settlement data.
|
|
28
28
|
*
|
|
29
|
-
* The amount
|
|
29
|
+
* The amount deducted from your account balance for this refund, converted to the currency your account is settled
|
|
30
|
+
* in. Always a **negative** amount. Only available once the refund is finalized and the final settlement amount has
|
|
31
|
+
* been determined.
|
|
30
32
|
*
|
|
31
|
-
*
|
|
32
|
-
* zero.
|
|
33
|
+
* For refunds not directly processed by Mollie (e.g. PayPal), the settlement amount is zero.
|
|
33
34
|
*
|
|
34
|
-
*
|
|
35
|
-
* the refund is queued the settlement amount is likely not yet available.
|
|
36
|
-
*
|
|
37
|
-
* To retrieve accurate settlement amounts we recommend using the
|
|
38
|
-
* [List balance transactions endpoint](list-balance-transactions) instead.
|
|
35
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
39
36
|
*/
|
|
40
37
|
export type ListEntityRefundSettlementAmount = {
|
|
41
38
|
/**
|
|
@@ -130,21 +127,18 @@ export type ListEntityRefund = {
|
|
|
130
127
|
*/
|
|
131
128
|
amount: Amount;
|
|
132
129
|
/**
|
|
133
|
-
* This
|
|
130
|
+
* **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
|
|
134
131
|
*
|
|
135
132
|
* @remarks
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
* The amount is a **negative** amount.
|
|
133
|
+
* the [List balance transactions endpoint](list-balance-transactions) for settlement data.
|
|
139
134
|
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
135
|
+
* The amount deducted from your account balance for this refund, converted to the currency your account is settled
|
|
136
|
+
* in. Always a **negative** amount. Only available once the refund is finalized and the final settlement amount has
|
|
137
|
+
* been determined.
|
|
142
138
|
*
|
|
143
|
-
*
|
|
144
|
-
* the refund is queued the settlement amount is likely not yet available.
|
|
139
|
+
* For refunds not directly processed by Mollie (e.g. PayPal), the settlement amount is zero.
|
|
145
140
|
*
|
|
146
|
-
*
|
|
147
|
-
* [List balance transactions endpoint](list-balance-transactions) instead.
|
|
141
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
148
142
|
*/
|
|
149
143
|
settlementAmount?: ListEntityRefundSettlementAmount | null | undefined;
|
|
150
144
|
/**
|
|
@@ -162,16 +162,18 @@ export type ListPaymentResponseAmountChargedBack = {
|
|
|
162
162
|
};
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
|
-
* This
|
|
165
|
+
* **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
|
|
166
166
|
*
|
|
167
167
|
* @remarks
|
|
168
|
-
*
|
|
168
|
+
* the [List balance transactions endpoint](list-balance-transactions) for settlement data.
|
|
169
169
|
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
170
|
+
* The amount that will be settled to your account, converted to the currency your account is settled in. Only
|
|
171
|
+
* available once the payment is finalized and the final settlement amount has been determined.
|
|
172
172
|
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
173
|
+
* Amounts not settled by Mollie are not reflected here (e.g. PayPal or gift cards). If no amount is settled by
|
|
174
|
+
* Mollie, this field is omitted from the response.
|
|
175
|
+
*
|
|
176
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
175
177
|
*/
|
|
176
178
|
export type ListPaymentResponseSettlementAmount = {
|
|
177
179
|
/**
|
|
@@ -849,16 +851,18 @@ export type ListPaymentResponse = {
|
|
|
849
851
|
*/
|
|
850
852
|
amountChargedBack?: ListPaymentResponseAmountChargedBack | undefined;
|
|
851
853
|
/**
|
|
852
|
-
* This
|
|
854
|
+
* **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
|
|
853
855
|
*
|
|
854
856
|
* @remarks
|
|
855
|
-
*
|
|
857
|
+
* the [List balance transactions endpoint](list-balance-transactions) for settlement data.
|
|
858
|
+
*
|
|
859
|
+
* The amount that will be settled to your account, converted to the currency your account is settled in. Only
|
|
860
|
+
* available once the payment is finalized and the final settlement amount has been determined.
|
|
856
861
|
*
|
|
857
|
-
*
|
|
858
|
-
*
|
|
862
|
+
* Amounts not settled by Mollie are not reflected here (e.g. PayPal or gift cards). If no amount is settled by
|
|
863
|
+
* Mollie, this field is omitted from the response.
|
|
859
864
|
*
|
|
860
|
-
*
|
|
861
|
-
* using the List balance transactions endpoint instead to get more accurate settlement amounts for your payments.
|
|
865
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
862
866
|
*/
|
|
863
867
|
settlementAmount?: ListPaymentResponseSettlementAmount | undefined;
|
|
864
868
|
/**
|
|
@@ -921,7 +925,7 @@ export type ListPaymentResponse = {
|
|
|
921
925
|
billingAddress?: ListPaymentResponseBillingAddress | undefined;
|
|
922
926
|
shippingAddress?: PaymentAddress | undefined;
|
|
923
927
|
/**
|
|
924
|
-
*
|
|
928
|
+
* Sets the language for customer-facing content and communications.
|
|
925
929
|
*/
|
|
926
930
|
locale?: LocaleResponse | null | undefined;
|
|
927
931
|
/**
|
|
@@ -25,14 +25,7 @@ import { Url, Url$inboundSchema } from "./url.js";
|
|
|
25
25
|
import { UrlNullable, UrlNullable$inboundSchema } from "./urlnullable.js";
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* @remarks
|
|
31
|
-
* currency your account is settled in.
|
|
32
|
-
*
|
|
33
|
-
* Since the field contains an estimated amount during capture processing, it may change over time. To retrieve
|
|
34
|
-
* accurate settlement amounts we recommend using the [List balance transactions endpoint](list-balance-transactions)
|
|
35
|
-
* instead.
|
|
28
|
+
* The amount settled to your account for this capture, converted to the currency your account is settled in.
|
|
36
29
|
*/
|
|
37
30
|
export type ListSettlementCaptureResponseSettlementAmount = {
|
|
38
31
|
/**
|
|
@@ -89,14 +82,7 @@ export type ListSettlementCaptureResponse = {
|
|
|
89
82
|
*/
|
|
90
83
|
amount: AmountNullable | null;
|
|
91
84
|
/**
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
* @remarks
|
|
95
|
-
* currency your account is settled in.
|
|
96
|
-
*
|
|
97
|
-
* Since the field contains an estimated amount during capture processing, it may change over time. To retrieve
|
|
98
|
-
* accurate settlement amounts we recommend using the [List balance transactions endpoint](list-balance-transactions)
|
|
99
|
-
* instead.
|
|
85
|
+
* The amount settled to your account for this capture, converted to the currency your account is settled in.
|
|
100
86
|
*/
|
|
101
87
|
settlementAmount?:
|
|
102
88
|
| ListSettlementCaptureResponseSettlementAmount
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 6798922f9369
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
|
+
import { Amount, Amount$inboundSchema } from "./amount.js";
|
|
11
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
12
|
+
import {
|
|
13
|
+
SettlementMode,
|
|
14
|
+
SettlementMode$inboundSchema,
|
|
15
|
+
} from "./settlementmode.js";
|
|
16
|
+
import { Url, Url$inboundSchema } from "./url.js";
|
|
17
|
+
import { UrlNullable, UrlNullable$inboundSchema } from "./urlnullable.js";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The amount deducted from your account balance for this chargeback, converted to the currency your account is
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* settled in. Always a **negative** amount.
|
|
24
|
+
*/
|
|
25
|
+
export type ListSettlementChargebackResponseSettlementAmount = {
|
|
26
|
+
/**
|
|
27
|
+
* A three-character ISO 4217 currency code.
|
|
28
|
+
*/
|
|
29
|
+
currency: string;
|
|
30
|
+
/**
|
|
31
|
+
* A string containing an exact monetary amount in the given currency.
|
|
32
|
+
*/
|
|
33
|
+
value: string;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Reason for the chargeback as given by the bank. Only available for chargebacks of SEPA Direct Debit payments.
|
|
38
|
+
*/
|
|
39
|
+
export type ListSettlementChargebackResponseReason = {
|
|
40
|
+
/**
|
|
41
|
+
* Technical code provided by the bank.
|
|
42
|
+
*/
|
|
43
|
+
code: string;
|
|
44
|
+
/**
|
|
45
|
+
* A more detailed human-friendly description.
|
|
46
|
+
*/
|
|
47
|
+
description: string;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
52
|
+
*/
|
|
53
|
+
export type ListSettlementChargebackResponseLinks = {
|
|
54
|
+
/**
|
|
55
|
+
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
56
|
+
*/
|
|
57
|
+
self: Url;
|
|
58
|
+
/**
|
|
59
|
+
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
60
|
+
*/
|
|
61
|
+
payment: Url;
|
|
62
|
+
/**
|
|
63
|
+
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
64
|
+
*/
|
|
65
|
+
settlement?: UrlNullable | null | undefined;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export type ListSettlementChargebackResponse = {
|
|
69
|
+
/**
|
|
70
|
+
* Indicates the response contains a chargeback object. Will always contain the string `chargeback` for this
|
|
71
|
+
*
|
|
72
|
+
* @remarks
|
|
73
|
+
* endpoint.
|
|
74
|
+
*/
|
|
75
|
+
resource: string;
|
|
76
|
+
/**
|
|
77
|
+
* The identifier uniquely referring to this chargeback. Example: `chb_n9z0tp`.
|
|
78
|
+
*/
|
|
79
|
+
id: string;
|
|
80
|
+
/**
|
|
81
|
+
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
82
|
+
*/
|
|
83
|
+
amount: Amount;
|
|
84
|
+
/**
|
|
85
|
+
* The amount deducted from your account balance for this chargeback, converted to the currency your account is
|
|
86
|
+
*
|
|
87
|
+
* @remarks
|
|
88
|
+
* settled in. Always a **negative** amount.
|
|
89
|
+
*/
|
|
90
|
+
settlementAmount?:
|
|
91
|
+
| ListSettlementChargebackResponseSettlementAmount
|
|
92
|
+
| null
|
|
93
|
+
| undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Reason for the chargeback as given by the bank. Only available for chargebacks of SEPA Direct Debit payments.
|
|
96
|
+
*/
|
|
97
|
+
reason?: ListSettlementChargebackResponseReason | null | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* The unique identifier of the payment this chargeback was created for. For example: `tr_5B8cwPMGnU6qLbRvo7qEZo`.
|
|
100
|
+
*
|
|
101
|
+
* @remarks
|
|
102
|
+
* The full payment object can be retrieved via the payment URL in the `_links` object.
|
|
103
|
+
*/
|
|
104
|
+
paymentId: string;
|
|
105
|
+
/**
|
|
106
|
+
* The identifier referring to the settlement this payment was settled with. For example, `stl_BkEjN2eBb`. This field
|
|
107
|
+
*
|
|
108
|
+
* @remarks
|
|
109
|
+
* is omitted if the refund is not settled (yet).
|
|
110
|
+
*/
|
|
111
|
+
settlementId?: string | null | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
114
|
+
*/
|
|
115
|
+
createdAt: string;
|
|
116
|
+
/**
|
|
117
|
+
* The date and time the chargeback was reversed if applicable, in
|
|
118
|
+
*
|
|
119
|
+
* @remarks
|
|
120
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
121
|
+
*/
|
|
122
|
+
reversedAt?: string | null | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
125
|
+
*/
|
|
126
|
+
links: ListSettlementChargebackResponseLinks;
|
|
127
|
+
/**
|
|
128
|
+
* Whether this entity was created in live mode or in test mode. Settlements are always in live mode.
|
|
129
|
+
*/
|
|
130
|
+
mode?: SettlementMode | undefined;
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
/** @internal */
|
|
134
|
+
export const ListSettlementChargebackResponseSettlementAmount$inboundSchema:
|
|
135
|
+
z.ZodType<
|
|
136
|
+
ListSettlementChargebackResponseSettlementAmount,
|
|
137
|
+
z.ZodTypeDef,
|
|
138
|
+
unknown
|
|
139
|
+
> = z.object({
|
|
140
|
+
currency: z.string(),
|
|
141
|
+
value: z.string(),
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
export function listSettlementChargebackResponseSettlementAmountFromJSON(
|
|
145
|
+
jsonString: string,
|
|
146
|
+
): SafeParseResult<
|
|
147
|
+
ListSettlementChargebackResponseSettlementAmount,
|
|
148
|
+
SDKValidationError
|
|
149
|
+
> {
|
|
150
|
+
return safeParse(
|
|
151
|
+
jsonString,
|
|
152
|
+
(x) =>
|
|
153
|
+
ListSettlementChargebackResponseSettlementAmount$inboundSchema.parse(
|
|
154
|
+
JSON.parse(x),
|
|
155
|
+
),
|
|
156
|
+
`Failed to parse 'ListSettlementChargebackResponseSettlementAmount' from JSON`,
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/** @internal */
|
|
161
|
+
export const ListSettlementChargebackResponseReason$inboundSchema: z.ZodType<
|
|
162
|
+
ListSettlementChargebackResponseReason,
|
|
163
|
+
z.ZodTypeDef,
|
|
164
|
+
unknown
|
|
165
|
+
> = z.object({
|
|
166
|
+
code: z.string(),
|
|
167
|
+
description: z.string(),
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
export function listSettlementChargebackResponseReasonFromJSON(
|
|
171
|
+
jsonString: string,
|
|
172
|
+
): SafeParseResult<ListSettlementChargebackResponseReason, SDKValidationError> {
|
|
173
|
+
return safeParse(
|
|
174
|
+
jsonString,
|
|
175
|
+
(x) =>
|
|
176
|
+
ListSettlementChargebackResponseReason$inboundSchema.parse(JSON.parse(x)),
|
|
177
|
+
`Failed to parse 'ListSettlementChargebackResponseReason' from JSON`,
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/** @internal */
|
|
182
|
+
export const ListSettlementChargebackResponseLinks$inboundSchema: z.ZodType<
|
|
183
|
+
ListSettlementChargebackResponseLinks,
|
|
184
|
+
z.ZodTypeDef,
|
|
185
|
+
unknown
|
|
186
|
+
> = z.object({
|
|
187
|
+
self: Url$inboundSchema,
|
|
188
|
+
payment: Url$inboundSchema,
|
|
189
|
+
settlement: z.nullable(UrlNullable$inboundSchema).optional(),
|
|
190
|
+
});
|
|
191
|
+
|
|
192
|
+
export function listSettlementChargebackResponseLinksFromJSON(
|
|
193
|
+
jsonString: string,
|
|
194
|
+
): SafeParseResult<ListSettlementChargebackResponseLinks, SDKValidationError> {
|
|
195
|
+
return safeParse(
|
|
196
|
+
jsonString,
|
|
197
|
+
(x) =>
|
|
198
|
+
ListSettlementChargebackResponseLinks$inboundSchema.parse(JSON.parse(x)),
|
|
199
|
+
`Failed to parse 'ListSettlementChargebackResponseLinks' from JSON`,
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/** @internal */
|
|
204
|
+
export const ListSettlementChargebackResponse$inboundSchema: z.ZodType<
|
|
205
|
+
ListSettlementChargebackResponse,
|
|
206
|
+
z.ZodTypeDef,
|
|
207
|
+
unknown
|
|
208
|
+
> = z.object({
|
|
209
|
+
resource: z.string(),
|
|
210
|
+
id: z.string(),
|
|
211
|
+
amount: Amount$inboundSchema,
|
|
212
|
+
settlementAmount: z.nullable(
|
|
213
|
+
z.lazy(() =>
|
|
214
|
+
ListSettlementChargebackResponseSettlementAmount$inboundSchema
|
|
215
|
+
),
|
|
216
|
+
).optional(),
|
|
217
|
+
reason: z.nullable(
|
|
218
|
+
z.lazy(() => ListSettlementChargebackResponseReason$inboundSchema),
|
|
219
|
+
).optional(),
|
|
220
|
+
paymentId: z.string(),
|
|
221
|
+
settlementId: z.nullable(z.string()).optional(),
|
|
222
|
+
createdAt: z.string(),
|
|
223
|
+
reversedAt: z.nullable(z.string()).optional(),
|
|
224
|
+
_links: z.lazy(() => ListSettlementChargebackResponseLinks$inboundSchema),
|
|
225
|
+
mode: SettlementMode$inboundSchema.optional(),
|
|
226
|
+
}).transform((v) => {
|
|
227
|
+
return remap$(v, {
|
|
228
|
+
"_links": "links",
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
|
|
232
|
+
export function listSettlementChargebackResponseFromJSON(
|
|
233
|
+
jsonString: string,
|
|
234
|
+
): SafeParseResult<ListSettlementChargebackResponse, SDKValidationError> {
|
|
235
|
+
return safeParse(
|
|
236
|
+
jsonString,
|
|
237
|
+
(x) => ListSettlementChargebackResponse$inboundSchema.parse(JSON.parse(x)),
|
|
238
|
+
`Failed to parse 'ListSettlementChargebackResponse' from JSON`,
|
|
239
|
+
);
|
|
240
|
+
}
|
|
@@ -167,16 +167,12 @@ export type ListSettlementPaymentResponseAmountChargedBack = {
|
|
|
167
167
|
};
|
|
168
168
|
|
|
169
169
|
/**
|
|
170
|
-
*
|
|
170
|
+
* The amount settled to your account for this payment, converted to the currency your account is settled in.
|
|
171
171
|
*
|
|
172
172
|
* @remarks
|
|
173
|
-
* currency your account is settled in.
|
|
174
173
|
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
* Please note that this amount might be recalculated and changed when the status of the payment changes. We suggest
|
|
179
|
-
* using the List balance transactions endpoint instead to get more accurate settlement amounts for your payments.
|
|
174
|
+
* Amounts not settled by Mollie are not reflected here (e.g. PayPal or gift cards). If no amount is settled by
|
|
175
|
+
* Mollie, this field is omitted from the response.
|
|
180
176
|
*/
|
|
181
177
|
export type ListSettlementPaymentResponseSettlementAmount = {
|
|
182
178
|
/**
|
|
@@ -831,16 +827,12 @@ export type ListSettlementPaymentResponse = {
|
|
|
831
827
|
| ListSettlementPaymentResponseAmountChargedBack
|
|
832
828
|
| undefined;
|
|
833
829
|
/**
|
|
834
|
-
*
|
|
830
|
+
* The amount settled to your account for this payment, converted to the currency your account is settled in.
|
|
835
831
|
*
|
|
836
832
|
* @remarks
|
|
837
|
-
* currency your account is settled in.
|
|
838
|
-
*
|
|
839
|
-
* Any amounts not settled by Mollie will not be reflected in this amount, e.g. PayPal or gift cards. If no amount is
|
|
840
|
-
* settled by Mollie the `settlementAmount` is omitted from the response.
|
|
841
833
|
*
|
|
842
|
-
*
|
|
843
|
-
*
|
|
834
|
+
* Amounts not settled by Mollie are not reflected here (e.g. PayPal or gift cards). If no amount is settled by
|
|
835
|
+
* Mollie, this field is omitted from the response.
|
|
844
836
|
*/
|
|
845
837
|
settlementAmount?: ListSettlementPaymentResponseSettlementAmount | undefined;
|
|
846
838
|
/**
|
|
@@ -903,7 +895,7 @@ export type ListSettlementPaymentResponse = {
|
|
|
903
895
|
billingAddress?: ListSettlementPaymentResponseBillingAddress | undefined;
|
|
904
896
|
shippingAddress?: PaymentAddress | undefined;
|
|
905
897
|
/**
|
|
906
|
-
*
|
|
898
|
+
* Sets the language for customer-facing content and communications.
|
|
907
899
|
*/
|
|
908
900
|
locale?: LocaleResponse | null | undefined;
|
|
909
901
|
/**
|
|
@@ -26,21 +26,12 @@ import { Url, Url$inboundSchema } from "./url.js";
|
|
|
26
26
|
import { UrlNullable, UrlNullable$inboundSchema } from "./urlnullable.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* The amount deducted from your account balance for this refund, converted to the currency your account is
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
*
|
|
32
|
+
* settled in. Always a **negative** amount.
|
|
33
33
|
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* If the refund is not directly processed by Mollie, for example for PayPal refunds, the settlement amount will be
|
|
37
|
-
* zero.
|
|
38
|
-
*
|
|
39
|
-
* Since the field contains an estimated amount during refund processing, it may change over time. For example, while
|
|
40
|
-
* the refund is queued the settlement amount is likely not yet available.
|
|
41
|
-
*
|
|
42
|
-
* To retrieve accurate settlement amounts we recommend using the
|
|
43
|
-
* [List balance transactions endpoint](list-balance-transactions) instead.
|
|
34
|
+
* For refunds not directly processed by Mollie (e.g. PayPal), the settlement amount is zero.
|
|
44
35
|
*/
|
|
45
36
|
export type ListSettlementRefundResponseSettlementAmount = {
|
|
46
37
|
/**
|
|
@@ -125,21 +116,12 @@ export type ListSettlementRefundResponse = {
|
|
|
125
116
|
*/
|
|
126
117
|
amount: Amount;
|
|
127
118
|
/**
|
|
128
|
-
*
|
|
119
|
+
* The amount deducted from your account balance for this refund, converted to the currency your account is
|
|
129
120
|
*
|
|
130
121
|
* @remarks
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
* The amount is a **negative** amount.
|
|
134
|
-
*
|
|
135
|
-
* If the refund is not directly processed by Mollie, for example for PayPal refunds, the settlement amount will be
|
|
136
|
-
* zero.
|
|
137
|
-
*
|
|
138
|
-
* Since the field contains an estimated amount during refund processing, it may change over time. For example, while
|
|
139
|
-
* the refund is queued the settlement amount is likely not yet available.
|
|
122
|
+
* settled in. Always a **negative** amount.
|
|
140
123
|
*
|
|
141
|
-
*
|
|
142
|
-
* [List balance transactions endpoint](list-balance-transactions) instead.
|
|
124
|
+
* For refunds not directly processed by Mollie (e.g. PayPal), the settlement amount is zero.
|
|
143
125
|
*/
|
|
144
126
|
settlementAmount?:
|
|
145
127
|
| ListSettlementRefundResponseSettlementAmount
|
package/src/models/locale.ts
CHANGED
|
@@ -7,7 +7,7 @@ import * as z from "zod/v3";
|
|
|
7
7
|
import { ClosedEnum } from "../types/enums.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets the language for customer-facing content and communications.
|
|
11
11
|
*/
|
|
12
12
|
export const Locale = {
|
|
13
13
|
EnUS: "en_US",
|
|
@@ -17,8 +17,10 @@ export const Locale = {
|
|
|
17
17
|
DEDE: "de_DE",
|
|
18
18
|
DeAT: "de_AT",
|
|
19
19
|
DeCH: "de_CH",
|
|
20
|
+
DeLU: "de_LU",
|
|
20
21
|
FRFR: "fr_FR",
|
|
21
22
|
FrBE: "fr_BE",
|
|
23
|
+
FrLU: "fr_LU",
|
|
22
24
|
ESES: "es_ES",
|
|
23
25
|
CaES: "ca_ES",
|
|
24
26
|
PTPT: "pt_PT",
|
|
@@ -35,7 +37,7 @@ export const Locale = {
|
|
|
35
37
|
Null: "null",
|
|
36
38
|
} as const;
|
|
37
39
|
/**
|
|
38
|
-
*
|
|
40
|
+
* Sets the language for customer-facing content and communications.
|
|
39
41
|
*/
|
|
40
42
|
export type Locale = ClosedEnum<typeof Locale>;
|
|
41
43
|
|