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.
Files changed (165) hide show
  1. package/dist/commonjs/lib/config.d.ts +3 -3
  2. package/dist/commonjs/lib/config.js +3 -3
  3. package/dist/commonjs/lib/config.js.map +1 -1
  4. package/dist/commonjs/models/captureresponse.d.ts +12 -10
  5. package/dist/commonjs/models/captureresponse.d.ts.map +1 -1
  6. package/dist/commonjs/models/captureresponse.js.map +1 -1
  7. package/dist/commonjs/models/clientlinkrequest.d.ts +1 -1
  8. package/dist/commonjs/models/customerresponse.d.ts +1 -1
  9. package/dist/commonjs/models/entitychargeback.d.ts +12 -12
  10. package/dist/commonjs/models/entitycustomer.d.ts +1 -1
  11. package/dist/commonjs/models/entityorganization.d.ts +2 -0
  12. package/dist/commonjs/models/entityorganization.d.ts.map +1 -1
  13. package/dist/commonjs/models/entityorganization.js +2 -0
  14. package/dist/commonjs/models/entityorganization.js.map +1 -1
  15. package/dist/commonjs/models/entityrefundresponse.d.ts +14 -20
  16. package/dist/commonjs/models/entityrefundresponse.d.ts.map +1 -1
  17. package/dist/commonjs/models/entityrefundresponse.js.map +1 -1
  18. package/dist/commonjs/models/index.d.ts +1 -0
  19. package/dist/commonjs/models/index.d.ts.map +1 -1
  20. package/dist/commonjs/models/index.js +1 -0
  21. package/dist/commonjs/models/index.js.map +1 -1
  22. package/dist/commonjs/models/listcaptureresponse.d.ts +12 -10
  23. package/dist/commonjs/models/listcaptureresponse.d.ts.map +1 -1
  24. package/dist/commonjs/models/listcaptureresponse.js.map +1 -1
  25. package/dist/commonjs/models/listcustomerresponse.d.ts +1 -1
  26. package/dist/commonjs/models/listentitychargeback.d.ts +12 -12
  27. package/dist/commonjs/models/listentityrefund.d.ts +14 -20
  28. package/dist/commonjs/models/listentityrefund.d.ts.map +1 -1
  29. package/dist/commonjs/models/listentityrefund.js.map +1 -1
  30. package/dist/commonjs/models/listpaymentresponse.d.ts +17 -13
  31. package/dist/commonjs/models/listpaymentresponse.d.ts.map +1 -1
  32. package/dist/commonjs/models/listpaymentresponse.js.map +1 -1
  33. package/dist/commonjs/models/listsettlementcaptureresponse.d.ts +2 -16
  34. package/dist/commonjs/models/listsettlementcaptureresponse.d.ts.map +1 -1
  35. package/dist/commonjs/models/listsettlementcaptureresponse.js.map +1 -1
  36. package/dist/commonjs/models/listsettlementchargebackresponse.d.ts +127 -0
  37. package/dist/commonjs/models/listsettlementchargebackresponse.d.ts.map +1 -0
  38. package/dist/commonjs/models/listsettlementchargebackresponse.js +98 -0
  39. package/dist/commonjs/models/listsettlementchargebackresponse.js.map +1 -0
  40. package/dist/commonjs/models/listsettlementpaymentresponse.d.ts +7 -15
  41. package/dist/commonjs/models/listsettlementpaymentresponse.d.ts.map +1 -1
  42. package/dist/commonjs/models/listsettlementpaymentresponse.js.map +1 -1
  43. package/dist/commonjs/models/listsettlementrefundresponse.d.ts +6 -24
  44. package/dist/commonjs/models/listsettlementrefundresponse.d.ts.map +1 -1
  45. package/dist/commonjs/models/listsettlementrefundresponse.js.map +1 -1
  46. package/dist/commonjs/models/locale.d.ts +4 -2
  47. package/dist/commonjs/models/locale.d.ts.map +1 -1
  48. package/dist/commonjs/models/locale.js +3 -1
  49. package/dist/commonjs/models/locale.js.map +1 -1
  50. package/dist/commonjs/models/localeresponse.d.ts +4 -2
  51. package/dist/commonjs/models/localeresponse.d.ts.map +1 -1
  52. package/dist/commonjs/models/localeresponse.js +3 -1
  53. package/dist/commonjs/models/localeresponse.js.map +1 -1
  54. package/dist/commonjs/models/operations/getcustomer.d.ts +1 -1
  55. package/dist/commonjs/models/operations/listsettlementchargebacks.d.ts +1 -1
  56. package/dist/commonjs/models/operations/listsettlementchargebacks.d.ts.map +1 -1
  57. package/dist/commonjs/models/operations/listsettlementchargebacks.js +1 -1
  58. package/dist/commonjs/models/operations/listsettlementchargebacks.js.map +1 -1
  59. package/dist/commonjs/models/operations/updatecustomer.d.ts +1 -1
  60. package/dist/commonjs/models/operations/updatepayment.d.ts +1 -1
  61. package/dist/commonjs/models/paymentrequest.d.ts +1 -1
  62. package/dist/commonjs/models/paymentresponse.d.ts +17 -13
  63. package/dist/commonjs/models/paymentresponse.d.ts.map +1 -1
  64. package/dist/commonjs/models/paymentresponse.js.map +1 -1
  65. package/dist/commonjs/models/statusreason.d.ts +3 -3
  66. package/dist/commonjs/models/statusreason.d.ts.map +1 -1
  67. package/dist/commonjs/models/statusreason.js +2 -1
  68. package/dist/commonjs/models/statusreason.js.map +1 -1
  69. package/dist/esm/lib/config.d.ts +3 -3
  70. package/dist/esm/lib/config.js +3 -3
  71. package/dist/esm/lib/config.js.map +1 -1
  72. package/dist/esm/models/captureresponse.d.ts +12 -10
  73. package/dist/esm/models/captureresponse.d.ts.map +1 -1
  74. package/dist/esm/models/captureresponse.js.map +1 -1
  75. package/dist/esm/models/clientlinkrequest.d.ts +1 -1
  76. package/dist/esm/models/customerresponse.d.ts +1 -1
  77. package/dist/esm/models/entitychargeback.d.ts +12 -12
  78. package/dist/esm/models/entitycustomer.d.ts +1 -1
  79. package/dist/esm/models/entityorganization.d.ts +2 -0
  80. package/dist/esm/models/entityorganization.d.ts.map +1 -1
  81. package/dist/esm/models/entityorganization.js +2 -0
  82. package/dist/esm/models/entityorganization.js.map +1 -1
  83. package/dist/esm/models/entityrefundresponse.d.ts +14 -20
  84. package/dist/esm/models/entityrefundresponse.d.ts.map +1 -1
  85. package/dist/esm/models/entityrefundresponse.js.map +1 -1
  86. package/dist/esm/models/index.d.ts +1 -0
  87. package/dist/esm/models/index.d.ts.map +1 -1
  88. package/dist/esm/models/index.js +1 -0
  89. package/dist/esm/models/index.js.map +1 -1
  90. package/dist/esm/models/listcaptureresponse.d.ts +12 -10
  91. package/dist/esm/models/listcaptureresponse.d.ts.map +1 -1
  92. package/dist/esm/models/listcaptureresponse.js.map +1 -1
  93. package/dist/esm/models/listcustomerresponse.d.ts +1 -1
  94. package/dist/esm/models/listentitychargeback.d.ts +12 -12
  95. package/dist/esm/models/listentityrefund.d.ts +14 -20
  96. package/dist/esm/models/listentityrefund.d.ts.map +1 -1
  97. package/dist/esm/models/listentityrefund.js.map +1 -1
  98. package/dist/esm/models/listpaymentresponse.d.ts +17 -13
  99. package/dist/esm/models/listpaymentresponse.d.ts.map +1 -1
  100. package/dist/esm/models/listpaymentresponse.js.map +1 -1
  101. package/dist/esm/models/listsettlementcaptureresponse.d.ts +2 -16
  102. package/dist/esm/models/listsettlementcaptureresponse.d.ts.map +1 -1
  103. package/dist/esm/models/listsettlementcaptureresponse.js.map +1 -1
  104. package/dist/esm/models/listsettlementchargebackresponse.d.ts +127 -0
  105. package/dist/esm/models/listsettlementchargebackresponse.d.ts.map +1 -0
  106. package/dist/esm/models/listsettlementchargebackresponse.js +58 -0
  107. package/dist/esm/models/listsettlementchargebackresponse.js.map +1 -0
  108. package/dist/esm/models/listsettlementpaymentresponse.d.ts +7 -15
  109. package/dist/esm/models/listsettlementpaymentresponse.d.ts.map +1 -1
  110. package/dist/esm/models/listsettlementpaymentresponse.js.map +1 -1
  111. package/dist/esm/models/listsettlementrefundresponse.d.ts +6 -24
  112. package/dist/esm/models/listsettlementrefundresponse.d.ts.map +1 -1
  113. package/dist/esm/models/listsettlementrefundresponse.js.map +1 -1
  114. package/dist/esm/models/locale.d.ts +4 -2
  115. package/dist/esm/models/locale.d.ts.map +1 -1
  116. package/dist/esm/models/locale.js +3 -1
  117. package/dist/esm/models/locale.js.map +1 -1
  118. package/dist/esm/models/localeresponse.d.ts +4 -2
  119. package/dist/esm/models/localeresponse.d.ts.map +1 -1
  120. package/dist/esm/models/localeresponse.js +3 -1
  121. package/dist/esm/models/localeresponse.js.map +1 -1
  122. package/dist/esm/models/operations/getcustomer.d.ts +1 -1
  123. package/dist/esm/models/operations/listsettlementchargebacks.d.ts +1 -1
  124. package/dist/esm/models/operations/listsettlementchargebacks.d.ts.map +1 -1
  125. package/dist/esm/models/operations/listsettlementchargebacks.js +1 -1
  126. package/dist/esm/models/operations/listsettlementchargebacks.js.map +1 -1
  127. package/dist/esm/models/operations/updatecustomer.d.ts +1 -1
  128. package/dist/esm/models/operations/updatepayment.d.ts +1 -1
  129. package/dist/esm/models/paymentrequest.d.ts +1 -1
  130. package/dist/esm/models/paymentresponse.d.ts +17 -13
  131. package/dist/esm/models/paymentresponse.d.ts.map +1 -1
  132. package/dist/esm/models/paymentresponse.js.map +1 -1
  133. package/dist/esm/models/statusreason.d.ts +3 -3
  134. package/dist/esm/models/statusreason.d.ts.map +1 -1
  135. package/dist/esm/models/statusreason.js +2 -1
  136. package/dist/esm/models/statusreason.js.map +1 -1
  137. package/jsr.json +1 -1
  138. package/package.json +1 -1
  139. package/src/lib/config.ts +3 -3
  140. package/src/models/captureresponse.ts +12 -10
  141. package/src/models/clientlinkrequest.ts +1 -1
  142. package/src/models/customerresponse.ts +1 -1
  143. package/src/models/entitychargeback.ts +12 -12
  144. package/src/models/entitycustomer.ts +1 -1
  145. package/src/models/entityorganization.ts +2 -0
  146. package/src/models/entityrefundresponse.ts +14 -20
  147. package/src/models/index.ts +1 -0
  148. package/src/models/listcaptureresponse.ts +12 -10
  149. package/src/models/listcustomerresponse.ts +1 -1
  150. package/src/models/listentitychargeback.ts +12 -12
  151. package/src/models/listentityrefund.ts +14 -20
  152. package/src/models/listpaymentresponse.ts +17 -13
  153. package/src/models/listsettlementcaptureresponse.ts +2 -16
  154. package/src/models/listsettlementchargebackresponse.ts +240 -0
  155. package/src/models/listsettlementpaymentresponse.ts +7 -15
  156. package/src/models/listsettlementrefundresponse.ts +6 -24
  157. package/src/models/locale.ts +4 -2
  158. package/src/models/localeresponse.ts +4 -2
  159. package/src/models/operations/getcustomer.ts +1 -1
  160. package/src/models/operations/listsettlementchargebacks.ts +2 -2
  161. package/src/models/operations/updatecustomer.ts +1 -1
  162. package/src/models/operations/updatepayment.ts +1 -1
  163. package/src/models/paymentrequest.ts +1 -1
  164. package/src/models/paymentresponse.ts +17 -13
  165. 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 optional field will contain the approximate amount that will be settled to your account, converted to the
23
+ * **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
24
24
  *
25
25
  * @remarks
26
- * currency your account is settled in.
26
+ * the [List balance transactions endpoint](list-balance-transactions) for settlement data.
27
27
  *
28
- * Since the field contains an estimated amount during capture processing, it may change over time. To retrieve
29
- * accurate settlement amounts we recommend using the [List balance transactions endpoint](list-balance-transactions)
30
- * instead.
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 optional field will contain the approximate amount that will be settled to your account, converted to the
103
+ * **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
103
104
  *
104
105
  * @remarks
105
- * currency your account is settled in.
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
- * Since the field contains an estimated amount during capture processing, it may change over time. To retrieve
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;
@@ -69,7 +69,7 @@ export type ListCustomerResponse = {
69
69
  */
70
70
  email: string | null;
71
71
  /**
72
- * Allows you to preset the language to be used.
72
+ * Sets the language for customer-facing content and communications.
73
73
  */
74
74
  locale: LocaleResponse | null;
75
75
  /**
@@ -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 optional field will contain the approximate amount that will be deducted from your account balance, converted
16
+ * **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
17
17
  *
18
18
  * @remarks
19
- * to the currency your account is settled in.
19
+ * the [List balance transactions endpoint](list-balance-transactions) for settlement data.
20
20
  *
21
- * The amount is a **negative** 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
- * Since the field contains an estimated amount during chargeback processing, it may change over time. To retrieve
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 optional field will contain the approximate amount that will be deducted from your account balance, converted
87
+ * **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
88
88
  *
89
89
  * @remarks
90
- * to the currency your account is settled in.
90
+ * the [List balance transactions endpoint](list-balance-transactions) for settlement data.
91
91
  *
92
- * The amount is a **negative** 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
- * Since the field contains an estimated amount during chargeback processing, it may change over time. To retrieve
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 optional field will contain the approximate amount that will be deducted from your account balance, converted
24
+ * **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
25
25
  *
26
26
  * @remarks
27
- * to the currency your account is settled in.
27
+ * the [List balance transactions endpoint](list-balance-transactions) for settlement data.
28
28
  *
29
- * The amount is a **negative** 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
- * If the refund is not directly processed by Mollie, for example for PayPal refunds, the settlement amount will be
32
- * zero.
33
+ * For refunds not directly processed by Mollie (e.g. PayPal), the settlement amount is zero.
33
34
  *
34
- * Since the field contains an estimated amount during refund processing, it may change over time. For example, while
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 optional field will contain the approximate amount that will be deducted from your account balance, converted
130
+ * **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
134
131
  *
135
132
  * @remarks
136
- * to the currency your account is settled in.
137
- *
138
- * The amount is a **negative** amount.
133
+ * the [List balance transactions endpoint](list-balance-transactions) for settlement data.
139
134
  *
140
- * If the refund is not directly processed by Mollie, for example for PayPal refunds, the settlement amount will be
141
- * zero.
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
- * Since the field contains an estimated amount during refund processing, it may change over time. For example, while
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
- * To retrieve accurate settlement amounts we recommend using the
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 optional field will contain the approximate amount that will be settled to your account, converted to the
165
+ * **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
166
166
  *
167
167
  * @remarks
168
- * currency your account is settled in.
168
+ * the [List balance transactions endpoint](list-balance-transactions) for settlement data.
169
169
  *
170
- * Any amounts not settled by Mollie will not be reflected in this amount, e.g. PayPal or gift cards. If no amount is
171
- * settled by Mollie the `settlementAmount` is omitted from the response.
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
- * Please note that this amount might be recalculated and changed when the status of the payment changes. We suggest
174
- * using the List balance transactions endpoint instead to get more accurate settlement amounts for your payments.
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 optional field will contain the approximate amount that will be settled to your account, converted to the
854
+ * **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
853
855
  *
854
856
  * @remarks
855
- * currency your account is settled in.
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
- * Any amounts not settled by Mollie will not be reflected in this amount, e.g. PayPal or gift cards. If no amount is
858
- * settled by Mollie the `settlementAmount` is omitted from the response.
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
- * Please note that this amount might be recalculated and changed when the status of the payment changes. We suggest
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
- * Allows you to preset the language to be used.
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
- * This optional field will contain the approximate amount that will be settled to your account, converted to the
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
- * This optional field will contain the approximate amount that will be settled to your account, converted to the
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
- * This optional field will contain the approximate amount that will be settled to your account, converted to the
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
- * Any amounts not settled by Mollie will not be reflected in this amount, e.g. PayPal or gift cards. If no amount is
176
- * settled by Mollie the `settlementAmount` is omitted from the response.
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
- * This optional field will contain the approximate amount that will be settled to your account, converted to the
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
- * Please note that this amount might be recalculated and changed when the status of the payment changes. We suggest
843
- * using the List balance transactions endpoint instead to get more accurate settlement amounts for your payments.
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
- * Allows you to preset the language to be used.
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
- * This optional field will contain the approximate amount that will be deducted from your account balance, converted
29
+ * The amount deducted from your account balance for this refund, converted to the currency your account is
30
30
  *
31
31
  * @remarks
32
- * to the currency your account is settled in.
32
+ * settled in. Always a **negative** amount.
33
33
  *
34
- * The amount is a **negative** amount.
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
- * This optional field will contain the approximate amount that will be deducted from your account balance, converted
119
+ * The amount deducted from your account balance for this refund, converted to the currency your account is
129
120
  *
130
121
  * @remarks
131
- * to the currency your account is settled in.
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
- * To retrieve accurate settlement amounts we recommend using the
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
@@ -7,7 +7,7 @@ import * as z from "zod/v3";
7
7
  import { ClosedEnum } from "../types/enums.js";
8
8
 
9
9
  /**
10
- * Allows you to preset the language to be used.
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
- * Allows you to preset the language to be used.
40
+ * Sets the language for customer-facing content and communications.
39
41
  */
40
42
  export type Locale = ClosedEnum<typeof Locale>;
41
43