mollie-api-typescript 1.12.2 → 1.12.4

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 (231) 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/retries.js +7 -0
  4. package/dist/commonjs/lib/retries.js.map +1 -1
  5. package/dist/commonjs/models/captureresponse.d.ts +0 -36
  6. package/dist/commonjs/models/captureresponse.d.ts.map +1 -1
  7. package/dist/commonjs/models/captureresponse.js +1 -11
  8. package/dist/commonjs/models/captureresponse.js.map +1 -1
  9. package/dist/commonjs/models/entitybalance.d.ts +0 -16
  10. package/dist/commonjs/models/entitybalance.d.ts.map +1 -1
  11. package/dist/commonjs/models/entitybalance.js.map +1 -1
  12. package/dist/commonjs/models/entitychargeback.d.ts +0 -38
  13. package/dist/commonjs/models/entitychargeback.d.ts.map +1 -1
  14. package/dist/commonjs/models/entitychargeback.js +1 -11
  15. package/dist/commonjs/models/entitychargeback.js.map +1 -1
  16. package/dist/commonjs/models/entityinvoice.d.ts +0 -13
  17. package/dist/commonjs/models/entityinvoice.d.ts.map +1 -1
  18. package/dist/commonjs/models/entityinvoice.js.map +1 -1
  19. package/dist/commonjs/models/entitymethodget.d.ts +0 -3
  20. package/dist/commonjs/models/entitymethodget.d.ts.map +1 -1
  21. package/dist/commonjs/models/entitymethodget.js.map +1 -1
  22. package/dist/commonjs/models/entityrefundresponse.d.ts +0 -42
  23. package/dist/commonjs/models/entityrefundresponse.d.ts.map +1 -1
  24. package/dist/commonjs/models/entityrefundresponse.js +1 -11
  25. package/dist/commonjs/models/entityrefundresponse.js.map +1 -1
  26. package/dist/commonjs/models/entitysettlement.d.ts +0 -3
  27. package/dist/commonjs/models/entitysettlement.d.ts.map +1 -1
  28. package/dist/commonjs/models/entitysettlement.js.map +1 -1
  29. package/dist/commonjs/models/index.d.ts +1 -0
  30. package/dist/commonjs/models/index.d.ts.map +1 -1
  31. package/dist/commonjs/models/index.js +1 -0
  32. package/dist/commonjs/models/index.js.map +1 -1
  33. package/dist/commonjs/models/listcaptureresponse.d.ts +0 -36
  34. package/dist/commonjs/models/listcaptureresponse.d.ts.map +1 -1
  35. package/dist/commonjs/models/listcaptureresponse.js +1 -11
  36. package/dist/commonjs/models/listcaptureresponse.js.map +1 -1
  37. package/dist/commonjs/models/listentitybalance.d.ts +0 -16
  38. package/dist/commonjs/models/listentitybalance.d.ts.map +1 -1
  39. package/dist/commonjs/models/listentitybalance.js.map +1 -1
  40. package/dist/commonjs/models/listentitychargeback.d.ts +0 -38
  41. package/dist/commonjs/models/listentitychargeback.d.ts.map +1 -1
  42. package/dist/commonjs/models/listentitychargeback.js +1 -11
  43. package/dist/commonjs/models/listentitychargeback.js.map +1 -1
  44. package/dist/commonjs/models/listentityinvoice.d.ts +0 -13
  45. package/dist/commonjs/models/listentityinvoice.d.ts.map +1 -1
  46. package/dist/commonjs/models/listentityinvoice.js.map +1 -1
  47. package/dist/commonjs/models/listentitymethod.d.ts +0 -3
  48. package/dist/commonjs/models/listentitymethod.d.ts.map +1 -1
  49. package/dist/commonjs/models/listentitymethod.js.map +1 -1
  50. package/dist/commonjs/models/listentitymethodall.d.ts +0 -3
  51. package/dist/commonjs/models/listentitymethodall.d.ts.map +1 -1
  52. package/dist/commonjs/models/listentitymethodall.js.map +1 -1
  53. package/dist/commonjs/models/listentityrefund.d.ts +0 -42
  54. package/dist/commonjs/models/listentityrefund.d.ts.map +1 -1
  55. package/dist/commonjs/models/listentityrefund.js +1 -11
  56. package/dist/commonjs/models/listentityrefund.js.map +1 -1
  57. package/dist/commonjs/models/listentitysettlement.d.ts +0 -3
  58. package/dist/commonjs/models/listentitysettlement.d.ts.map +1 -1
  59. package/dist/commonjs/models/listentitysettlement.js.map +1 -1
  60. package/dist/commonjs/models/listpaymentresponse.d.ts +2 -404
  61. package/dist/commonjs/models/listpaymentresponse.d.ts.map +1 -1
  62. package/dist/commonjs/models/listpaymentresponse.js +3 -113
  63. package/dist/commonjs/models/listpaymentresponse.js.map +1 -1
  64. package/dist/commonjs/models/listsalesinvoiceresponse.d.ts +0 -15
  65. package/dist/commonjs/models/listsalesinvoiceresponse.d.ts.map +1 -1
  66. package/dist/commonjs/models/listsalesinvoiceresponse.js.map +1 -1
  67. package/dist/commonjs/models/listsettlementcaptureresponse.d.ts +20 -20
  68. package/dist/commonjs/models/listsettlementcaptureresponse.d.ts.map +1 -1
  69. package/dist/commonjs/models/listsettlementcaptureresponse.js +11 -11
  70. package/dist/commonjs/models/listsettlementcaptureresponse.js.map +1 -1
  71. package/dist/commonjs/models/listsettlementchargebackresponse.d.ts +26 -26
  72. package/dist/commonjs/models/listsettlementchargebackresponse.d.ts.map +1 -1
  73. package/dist/commonjs/models/listsettlementchargebackresponse.js +11 -11
  74. package/dist/commonjs/models/listsettlementchargebackresponse.js.map +1 -1
  75. package/dist/commonjs/models/listsettlementpaymentresponse.d.ts +24 -392
  76. package/dist/commonjs/models/listsettlementpaymentresponse.d.ts.map +1 -1
  77. package/dist/commonjs/models/listsettlementpaymentresponse.js +13 -114
  78. package/dist/commonjs/models/listsettlementpaymentresponse.js.map +1 -1
  79. package/dist/commonjs/models/listsettlementrefundresponse.d.ts +30 -30
  80. package/dist/commonjs/models/listsettlementrefundresponse.d.ts.map +1 -1
  81. package/dist/commonjs/models/listsettlementrefundresponse.js +11 -11
  82. package/dist/commonjs/models/listsettlementrefundresponse.js.map +1 -1
  83. package/dist/commonjs/models/paymentdetails.d.ts +367 -0
  84. package/dist/commonjs/models/paymentdetails.d.ts.map +1 -0
  85. package/dist/commonjs/models/paymentdetails.js +144 -0
  86. package/dist/commonjs/models/paymentdetails.js.map +1 -0
  87. package/dist/commonjs/models/paymentrequest.d.ts +61 -26
  88. package/dist/commonjs/models/paymentrequest.d.ts.map +1 -1
  89. package/dist/commonjs/models/paymentrequest.js.map +1 -1
  90. package/dist/commonjs/models/paymentresponse.d.ts +2 -404
  91. package/dist/commonjs/models/paymentresponse.d.ts.map +1 -1
  92. package/dist/commonjs/models/paymentresponse.js +3 -114
  93. package/dist/commonjs/models/paymentresponse.js.map +1 -1
  94. package/dist/commonjs/models/salesinvoiceresponse.d.ts +0 -15
  95. package/dist/commonjs/models/salesinvoiceresponse.d.ts.map +1 -1
  96. package/dist/commonjs/models/salesinvoiceresponse.js.map +1 -1
  97. package/dist/commonjs/models/statusreason.d.ts +59 -41
  98. package/dist/commonjs/models/statusreason.d.ts.map +1 -1
  99. package/dist/commonjs/models/statusreason.js +70 -42
  100. package/dist/commonjs/models/statusreason.js.map +1 -1
  101. package/dist/esm/lib/config.d.ts +3 -3
  102. package/dist/esm/lib/config.js +3 -3
  103. package/dist/esm/lib/retries.js +7 -0
  104. package/dist/esm/lib/retries.js.map +1 -1
  105. package/dist/esm/models/captureresponse.d.ts +0 -36
  106. package/dist/esm/models/captureresponse.d.ts.map +1 -1
  107. package/dist/esm/models/captureresponse.js +0 -9
  108. package/dist/esm/models/captureresponse.js.map +1 -1
  109. package/dist/esm/models/entitybalance.d.ts +0 -16
  110. package/dist/esm/models/entitybalance.d.ts.map +1 -1
  111. package/dist/esm/models/entitybalance.js.map +1 -1
  112. package/dist/esm/models/entitychargeback.d.ts +0 -38
  113. package/dist/esm/models/entitychargeback.d.ts.map +1 -1
  114. package/dist/esm/models/entitychargeback.js +0 -9
  115. package/dist/esm/models/entitychargeback.js.map +1 -1
  116. package/dist/esm/models/entityinvoice.d.ts +0 -13
  117. package/dist/esm/models/entityinvoice.d.ts.map +1 -1
  118. package/dist/esm/models/entityinvoice.js.map +1 -1
  119. package/dist/esm/models/entitymethodget.d.ts +0 -3
  120. package/dist/esm/models/entitymethodget.d.ts.map +1 -1
  121. package/dist/esm/models/entitymethodget.js.map +1 -1
  122. package/dist/esm/models/entityrefundresponse.d.ts +0 -42
  123. package/dist/esm/models/entityrefundresponse.d.ts.map +1 -1
  124. package/dist/esm/models/entityrefundresponse.js +0 -9
  125. package/dist/esm/models/entityrefundresponse.js.map +1 -1
  126. package/dist/esm/models/entitysettlement.d.ts +0 -3
  127. package/dist/esm/models/entitysettlement.d.ts.map +1 -1
  128. package/dist/esm/models/entitysettlement.js.map +1 -1
  129. package/dist/esm/models/index.d.ts +1 -0
  130. package/dist/esm/models/index.d.ts.map +1 -1
  131. package/dist/esm/models/index.js +1 -0
  132. package/dist/esm/models/index.js.map +1 -1
  133. package/dist/esm/models/listcaptureresponse.d.ts +0 -36
  134. package/dist/esm/models/listcaptureresponse.d.ts.map +1 -1
  135. package/dist/esm/models/listcaptureresponse.js +0 -9
  136. package/dist/esm/models/listcaptureresponse.js.map +1 -1
  137. package/dist/esm/models/listentitybalance.d.ts +0 -16
  138. package/dist/esm/models/listentitybalance.d.ts.map +1 -1
  139. package/dist/esm/models/listentitybalance.js.map +1 -1
  140. package/dist/esm/models/listentitychargeback.d.ts +0 -38
  141. package/dist/esm/models/listentitychargeback.d.ts.map +1 -1
  142. package/dist/esm/models/listentitychargeback.js +0 -9
  143. package/dist/esm/models/listentitychargeback.js.map +1 -1
  144. package/dist/esm/models/listentityinvoice.d.ts +0 -13
  145. package/dist/esm/models/listentityinvoice.d.ts.map +1 -1
  146. package/dist/esm/models/listentityinvoice.js.map +1 -1
  147. package/dist/esm/models/listentitymethod.d.ts +0 -3
  148. package/dist/esm/models/listentitymethod.d.ts.map +1 -1
  149. package/dist/esm/models/listentitymethod.js.map +1 -1
  150. package/dist/esm/models/listentitymethodall.d.ts +0 -3
  151. package/dist/esm/models/listentitymethodall.d.ts.map +1 -1
  152. package/dist/esm/models/listentitymethodall.js.map +1 -1
  153. package/dist/esm/models/listentityrefund.d.ts +0 -42
  154. package/dist/esm/models/listentityrefund.d.ts.map +1 -1
  155. package/dist/esm/models/listentityrefund.js +0 -9
  156. package/dist/esm/models/listentityrefund.js.map +1 -1
  157. package/dist/esm/models/listentitysettlement.d.ts +0 -3
  158. package/dist/esm/models/listentitysettlement.d.ts.map +1 -1
  159. package/dist/esm/models/listentitysettlement.js.map +1 -1
  160. package/dist/esm/models/listpaymentresponse.d.ts +2 -404
  161. package/dist/esm/models/listpaymentresponse.d.ts.map +1 -1
  162. package/dist/esm/models/listpaymentresponse.js +2 -108
  163. package/dist/esm/models/listpaymentresponse.js.map +1 -1
  164. package/dist/esm/models/listsalesinvoiceresponse.d.ts +0 -15
  165. package/dist/esm/models/listsalesinvoiceresponse.d.ts.map +1 -1
  166. package/dist/esm/models/listsalesinvoiceresponse.js.map +1 -1
  167. package/dist/esm/models/listsettlementcaptureresponse.d.ts +20 -20
  168. package/dist/esm/models/listsettlementcaptureresponse.d.ts.map +1 -1
  169. package/dist/esm/models/listsettlementcaptureresponse.js +9 -9
  170. package/dist/esm/models/listsettlementcaptureresponse.js.map +1 -1
  171. package/dist/esm/models/listsettlementchargebackresponse.d.ts +26 -26
  172. package/dist/esm/models/listsettlementchargebackresponse.d.ts.map +1 -1
  173. package/dist/esm/models/listsettlementchargebackresponse.js +9 -9
  174. package/dist/esm/models/listsettlementchargebackresponse.js.map +1 -1
  175. package/dist/esm/models/listsettlementpaymentresponse.d.ts +24 -392
  176. package/dist/esm/models/listsettlementpaymentresponse.d.ts.map +1 -1
  177. package/dist/esm/models/listsettlementpaymentresponse.js +11 -109
  178. package/dist/esm/models/listsettlementpaymentresponse.js.map +1 -1
  179. package/dist/esm/models/listsettlementrefundresponse.d.ts +30 -30
  180. package/dist/esm/models/listsettlementrefundresponse.d.ts.map +1 -1
  181. package/dist/esm/models/listsettlementrefundresponse.js +9 -9
  182. package/dist/esm/models/listsettlementrefundresponse.js.map +1 -1
  183. package/dist/esm/models/paymentdetails.d.ts +367 -0
  184. package/dist/esm/models/paymentdetails.d.ts.map +1 -0
  185. package/dist/esm/models/paymentdetails.js +105 -0
  186. package/dist/esm/models/paymentdetails.js.map +1 -0
  187. package/dist/esm/models/paymentrequest.d.ts +61 -26
  188. package/dist/esm/models/paymentrequest.d.ts.map +1 -1
  189. package/dist/esm/models/paymentrequest.js.map +1 -1
  190. package/dist/esm/models/paymentresponse.d.ts +2 -404
  191. package/dist/esm/models/paymentresponse.d.ts.map +1 -1
  192. package/dist/esm/models/paymentresponse.js +2 -109
  193. package/dist/esm/models/paymentresponse.js.map +1 -1
  194. package/dist/esm/models/salesinvoiceresponse.d.ts +0 -15
  195. package/dist/esm/models/salesinvoiceresponse.d.ts.map +1 -1
  196. package/dist/esm/models/salesinvoiceresponse.js.map +1 -1
  197. package/dist/esm/models/statusreason.d.ts +59 -41
  198. package/dist/esm/models/statusreason.d.ts.map +1 -1
  199. package/dist/esm/models/statusreason.js +68 -41
  200. package/dist/esm/models/statusreason.js.map +1 -1
  201. package/jsr.json +1 -1
  202. package/package.json +1 -1
  203. package/src/lib/config.ts +3 -3
  204. package/src/lib/retries.ts +8 -0
  205. package/src/models/captureresponse.ts +0 -57
  206. package/src/models/entitybalance.ts +0 -16
  207. package/src/models/entitychargeback.ts +0 -59
  208. package/src/models/entityinvoice.ts +0 -13
  209. package/src/models/entitymethodget.ts +0 -3
  210. package/src/models/entityrefundresponse.ts +0 -64
  211. package/src/models/entitysettlement.ts +0 -3
  212. package/src/models/index.ts +1 -0
  213. package/src/models/listcaptureresponse.ts +0 -58
  214. package/src/models/listentitybalance.ts +0 -16
  215. package/src/models/listentitychargeback.ts +0 -60
  216. package/src/models/listentityinvoice.ts +0 -13
  217. package/src/models/listentitymethod.ts +0 -3
  218. package/src/models/listentitymethodall.ts +0 -3
  219. package/src/models/listentityrefund.ts +0 -63
  220. package/src/models/listentitysettlement.ts +0 -3
  221. package/src/models/listpaymentresponse.ts +5 -579
  222. package/src/models/listsalesinvoiceresponse.ts +0 -15
  223. package/src/models/listsettlementcaptureresponse.ts +47 -47
  224. package/src/models/listsettlementchargebackresponse.ts +59 -59
  225. package/src/models/listsettlementpaymentresponse.ts +55 -579
  226. package/src/models/listsettlementrefundresponse.ts +61 -61
  227. package/src/models/paymentdetails.ts +521 -0
  228. package/src/models/paymentrequest.ts +61 -26
  229. package/src/models/paymentresponse.ts +5 -577
  230. package/src/models/salesinvoiceresponse.ts +0 -15
  231. package/src/models/statusreason.ts +121 -44
@@ -0,0 +1,367 @@
1
+ import * as z from "zod/v3";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { RFCDate } from "../types/rfcdate.js";
4
+ import { Amount } from "./amount.js";
5
+ import { AmountNullable } from "./amountnullable.js";
6
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
7
+ import { PaymentDetailsCardAuditionResponse } from "./paymentdetailscardauditionresponse.js";
8
+ import { PaymentDetailsCardFundingResponse } from "./paymentdetailscardfundingresponse.js";
9
+ import { PaymentDetailsCardLabelResponse } from "./paymentdetailscardlabelresponse.js";
10
+ import { PaymentDetailsCardSecurityResponse } from "./paymentdetailscardsecurityresponse.js";
11
+ import { PaymentDetailsFailureReasonResponse } from "./paymentdetailsfailurereasonresponse.js";
12
+ import { PaymentDetailsFeeRegionResponse } from "./paymentdetailsfeeregionresponse.js";
13
+ import { PaymentDetailsReceiptCardReadMethodResponse } from "./paymentdetailsreceiptcardreadmethodresponse.js";
14
+ import { PaymentDetailsReceiptCardVerificationMethodResponse } from "./paymentdetailsreceiptcardverificationmethodresponse.js";
15
+ import { PaymentDetailsSellerProtectionResponse } from "./paymentdetailssellerprotectionresponse.js";
16
+ import { PaymentDetailsWalletResponse } from "./paymentdetailswalletresponse.js";
17
+ /**
18
+ * The Point of sale receipt object.
19
+ *
20
+ * @remarks
21
+ *
22
+ * * `authorizationCode` _string|null_ - a unique code provided by the cardholder's bank to confirm that the
23
+ * transaction was successfully approved.
24
+ * * `applicationIdentifier` _string|null_ - the unique number that identifies a specific payment application
25
+ * on a chip card.
26
+ * * `cardReadMethod` _string|null_ - the method by which the card was read by the terminal. Possible values:
27
+ * `chip` | `magnetic-stripe` | `near-field-communication` | `contactless` | `moto`.
28
+ * * `cardVerificationMethod` _string|null_ - the method used to verify the cardholder's identity. Possible
29
+ * values: `no-cvm-required` | `online-pin` | `offline-pin` | `consumer-device` | `signature` |
30
+ * `signature-and-online-pin` | `online-pin-and-signature` | `none` | `failed`.
31
+ */
32
+ export type Receipt = {
33
+ /**
34
+ * A unique code provided by the cardholder's bank to confirm that the transaction was successfully approved.
35
+ */
36
+ authorizationCode?: string | null | undefined;
37
+ /**
38
+ * The unique number that identifies a specific payment application on a chip card.
39
+ */
40
+ applicationIdentifier?: string | null | undefined;
41
+ /**
42
+ * The method by which the card was read by the terminal.
43
+ */
44
+ cardReadMethod?: PaymentDetailsReceiptCardReadMethodResponse | null | undefined;
45
+ /**
46
+ * The method used to verify the cardholder's identity.
47
+ */
48
+ cardVerificationMethod?: PaymentDetailsReceiptCardVerificationMethodResponse | null | undefined;
49
+ };
50
+ /**
51
+ * **Optional include.** If a QR code was requested during payment creation for a QR-compatible payment method,
52
+ *
53
+ * @remarks
54
+ * the QR code details will be available in this object.
55
+ *
56
+ * The QR code can be scanned by the customer to complete the payment on their mobile device. For example,
57
+ * Bancontact QR payments can be completed by the customer using the Bancontact app.
58
+ *
59
+ * * `height` _integer_
60
+ * * `width` _integer_
61
+ * * `src` _string_
62
+ */
63
+ export type PaymentDetailsQrCode = {
64
+ /**
65
+ * The height of the QR code image in pixels.
66
+ */
67
+ height?: number | undefined;
68
+ /**
69
+ * The width of the QR code image in pixels.
70
+ */
71
+ width?: number | undefined;
72
+ /**
73
+ * The URL to the QR code image.
74
+ */
75
+ src?: string | undefined;
76
+ };
77
+ /**
78
+ * An object containing payment details collected during the payment process. For example, details may include the
79
+ *
80
+ * @remarks
81
+ * customer's card or bank details and a payment reference. For the full list of details, please refer to the
82
+ * [method-specific parameters](extra-payment-parameters) guide.
83
+ */
84
+ export type PaymentDetails = {
85
+ /**
86
+ * The customer's name, if made available by the payment method. For card payments, refer to `details.cardHolder`.
87
+ */
88
+ consumerName?: string | null | undefined;
89
+ /**
90
+ * The customer's account reference.
91
+ *
92
+ * @remarks
93
+ *
94
+ * For banking-based payment methods — such as iDEAL — this is normally either an IBAN or a domestic bank
95
+ * account number.
96
+ *
97
+ * For PayPal, the account reference is an email address.
98
+ *
99
+ * For card and Bancontact payments, refer to `details.cardNumber`.
100
+ */
101
+ consumerAccount?: string | null | undefined;
102
+ /**
103
+ * The BIC of the customer's bank account, if applicable.
104
+ */
105
+ consumerBic?: string | null | undefined;
106
+ /**
107
+ * For wallet payment methods — such as Apple Pay and PayPal — the shipping address is often already known by
108
+ *
109
+ * @remarks
110
+ * the wallet provider. In these cases the shipping address may be available as a payment detail.
111
+ */
112
+ shippingAddress?: {
113
+ [k: string]: any;
114
+ } | null | undefined;
115
+ /**
116
+ * The customer's masked card number.
117
+ */
118
+ cardNumber?: string | null | undefined;
119
+ /**
120
+ * The name of the bank that the customer will need to make the bank transfer payment towards.
121
+ */
122
+ bankName?: string | undefined;
123
+ /**
124
+ * The bank account number the customer will need to make the bank transfer payment towards.
125
+ */
126
+ bankAccount?: string | undefined;
127
+ /**
128
+ * The BIC of the bank the customer will need to make the bank transfer payment towards.
129
+ */
130
+ bankBic?: string | undefined;
131
+ /**
132
+ * The Mollie-generated reference the customer needs to use when transfering the amount. Do not apply any
133
+ *
134
+ * @remarks
135
+ * formatting here; show it to the customer as-is.
136
+ */
137
+ transferReference?: string | null | undefined;
138
+ /**
139
+ * Bizum payment reference of the transaction.
140
+ */
141
+ bizumReference?: string | null | undefined;
142
+ /**
143
+ * A unique fingerprint for this specific card. Can be used to identify returning customers.
144
+ */
145
+ cardFingerprint?: string | null | undefined;
146
+ /**
147
+ * The customer's name as shown on their card.
148
+ */
149
+ cardHolder?: string | null | undefined;
150
+ /**
151
+ * The card's target audience, if known.
152
+ */
153
+ cardAudience?: PaymentDetailsCardAuditionResponse | null | undefined;
154
+ /**
155
+ * The card's label, if known.
156
+ */
157
+ cardLabel?: PaymentDetailsCardLabelResponse | null | undefined;
158
+ /**
159
+ * The ISO 3166-1 alpha-2 country code of the country the card was issued in.
160
+ */
161
+ cardCountryCode?: string | null | undefined;
162
+ /**
163
+ * The expiry date (`MM/YY`) of the card as displayed on the card.
164
+ */
165
+ cardExpiryDate?: string | null | undefined;
166
+ /**
167
+ * The card type.
168
+ */
169
+ cardFunding?: PaymentDetailsCardFundingResponse | null | undefined;
170
+ /**
171
+ * The level of security applied during card processing.
172
+ */
173
+ cardSecurity?: PaymentDetailsCardSecurityResponse | null | undefined;
174
+ /**
175
+ * The applicable card fee region.
176
+ */
177
+ feeRegion?: PaymentDetailsFeeRegionResponse | null | undefined;
178
+ /**
179
+ * The first6 and last4 digits of the card number.
180
+ */
181
+ cardMaskedNumber?: string | null | undefined;
182
+ /**
183
+ * The outcome of authentication attempted on transactions enforced by 3DS (ie valid only for `oneoff` and `first`).
184
+ */
185
+ card3dsEci?: string | null | undefined;
186
+ /**
187
+ * The first6 digit of the card bank identification number.
188
+ */
189
+ cardBin?: string | null | undefined;
190
+ /**
191
+ * The issuer of the Card.
192
+ */
193
+ cardIssuer?: string | null | undefined;
194
+ /**
195
+ * A failure code to help understand why the payment failed.
196
+ */
197
+ failureReason?: PaymentDetailsFailureReasonResponse | null | undefined;
198
+ /**
199
+ * A human-friendly failure message that can be shown to the customer. The message is translated in accordance
200
+ *
201
+ * @remarks
202
+ * with the payment's locale setting.
203
+ */
204
+ failureMessage?: string | null | undefined;
205
+ /**
206
+ * The wallet used when creating the payment.
207
+ */
208
+ wallet?: PaymentDetailsWalletResponse | null | undefined;
209
+ /**
210
+ * Multibanco payment reference of the transaction.
211
+ */
212
+ multibancoReference?: string | null | undefined;
213
+ /**
214
+ * Multibanco entity reference of the transaction.
215
+ */
216
+ multibancoEntity?: string | null | undefined;
217
+ /**
218
+ * PayPal's reference for the payment.
219
+ */
220
+ paypalReference?: string | null | undefined;
221
+ /**
222
+ * ID of the customer's PayPal account.
223
+ */
224
+ paypalPayerId?: string | null | undefined;
225
+ /**
226
+ * Indicates to what extent the payment is eligible for PayPal's Seller Protection. Only available for PayPal
227
+ *
228
+ * @remarks
229
+ * payments, and if the information is made available by PayPal.
230
+ */
231
+ sellerProtection?: PaymentDetailsSellerProtectionResponse | null | undefined;
232
+ /**
233
+ * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
234
+ */
235
+ paypalFee?: AmountNullable | null | undefined;
236
+ /**
237
+ * The paysafecard customer reference either provided via the API or otherwise auto-generated by Mollie.
238
+ */
239
+ customerReference?: string | undefined;
240
+ /**
241
+ * The ID of the terminal device where the payment took place on.
242
+ */
243
+ terminalId?: string | undefined;
244
+ /**
245
+ * The first 6 digits & last 4 digits of the customer's masked card number.
246
+ */
247
+ maskedNumber?: string | null | undefined;
248
+ /**
249
+ * The Point of sale receipt object.
250
+ *
251
+ * @remarks
252
+ *
253
+ * * `authorizationCode` _string|null_ - a unique code provided by the cardholder's bank to confirm that the
254
+ * transaction was successfully approved.
255
+ * * `applicationIdentifier` _string|null_ - the unique number that identifies a specific payment application
256
+ * on a chip card.
257
+ * * `cardReadMethod` _string|null_ - the method by which the card was read by the terminal. Possible values:
258
+ * `chip` | `magnetic-stripe` | `near-field-communication` | `contactless` | `moto`.
259
+ * * `cardVerificationMethod` _string|null_ - the method used to verify the cardholder's identity. Possible
260
+ * values: `no-cvm-required` | `online-pin` | `offline-pin` | `consumer-device` | `signature` |
261
+ * `signature-and-online-pin` | `online-pin-and-signature` | `none` | `failed`.
262
+ */
263
+ receipt?: Receipt | undefined;
264
+ /**
265
+ * The creditor identifier indicates who is authorized to execute the payment. In this case, it is a reference
266
+ *
267
+ * @remarks
268
+ * to Mollie.
269
+ */
270
+ creditorIdentifier?: string | null | undefined;
271
+ /**
272
+ * Estimated date the payment is debited from the customer's bank account, in `YYYY-MM-DD` format.
273
+ */
274
+ dueDate?: RFCDate | null | undefined;
275
+ /**
276
+ * Date the payment has been signed by the customer, in `YYYY-MM-DD` format. Only available if the payment has
277
+ *
278
+ * @remarks
279
+ * been signed.
280
+ */
281
+ signatureDate?: RFCDate | null | undefined;
282
+ /**
283
+ * The official reason why this payment has failed. A detailed description of each reason is available on the
284
+ *
285
+ * @remarks
286
+ * website of the European Payments Council.
287
+ */
288
+ bankReasonCode?: string | null | undefined;
289
+ /**
290
+ * A human-friendly description of the failure reason.
291
+ */
292
+ bankReason?: string | null | undefined;
293
+ /**
294
+ * The end-to-end identifier you provided in the batch file.
295
+ */
296
+ endToEndIdentifier?: string | null | undefined;
297
+ /**
298
+ * The mandate reference you provided in the batch file.
299
+ */
300
+ mandateReference?: string | null | undefined;
301
+ /**
302
+ * The batch reference you provided in the batch file.
303
+ */
304
+ batchReference?: string | null | undefined;
305
+ /**
306
+ * The file reference you provided in the batch file.
307
+ */
308
+ fileReference?: string | null | undefined;
309
+ /**
310
+ * **Optional include.** If a QR code was requested during payment creation for a QR-compatible payment method,
311
+ *
312
+ * @remarks
313
+ * the QR code details will be available in this object.
314
+ *
315
+ * The QR code can be scanned by the customer to complete the payment on their mobile device. For example,
316
+ * Bancontact QR payments can be completed by the customer using the Bancontact app.
317
+ *
318
+ * * `height` _integer_
319
+ * * `width` _integer_
320
+ * * `src` _string_
321
+ */
322
+ qrCode?: PaymentDetailsQrCode | undefined;
323
+ /**
324
+ * For payments with gift cards: the masked gift card number of the first gift card applied to the payment.
325
+ */
326
+ voucherNumber?: string | undefined;
327
+ /**
328
+ * An array of detail objects for each gift card that was used on this payment, if any.
329
+ */
330
+ giftcards?: Array<{
331
+ [k: string]: any;
332
+ }> | undefined;
333
+ /**
334
+ * For payments with vouchers: the brand name of the first voucher applied.
335
+ */
336
+ issuer?: string | undefined;
337
+ /**
338
+ * An array of detail objects for each voucher that was used on this payment, if any.
339
+ */
340
+ vouchers?: Array<{
341
+ [k: string]: any;
342
+ }> | undefined;
343
+ /**
344
+ * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
345
+ */
346
+ remainderAmount?: Amount | undefined;
347
+ /**
348
+ * The payment method used to pay the remainder amount, after all gift cards or vouchers were applied.
349
+ */
350
+ remainderMethod?: string | undefined;
351
+ /**
352
+ * **Optional include.** The full payment method details of the remainder payment.
353
+ */
354
+ remainderDetails?: {
355
+ [k: string]: any;
356
+ } | undefined;
357
+ };
358
+ /** @internal */
359
+ export declare const Receipt$inboundSchema: z.ZodType<Receipt, z.ZodTypeDef, unknown>;
360
+ export declare function receiptFromJSON(jsonString: string): SafeParseResult<Receipt, SDKValidationError>;
361
+ /** @internal */
362
+ export declare const PaymentDetailsQrCode$inboundSchema: z.ZodType<PaymentDetailsQrCode, z.ZodTypeDef, unknown>;
363
+ export declare function paymentDetailsQrCodeFromJSON(jsonString: string): SafeParseResult<PaymentDetailsQrCode, SDKValidationError>;
364
+ /** @internal */
365
+ export declare const PaymentDetails$inboundSchema: z.ZodType<PaymentDetails, z.ZodTypeDef, unknown>;
366
+ export declare function paymentDetailsFromJSON(jsonString: string): SafeParseResult<PaymentDetails, SDKValidationError>;
367
+ //# sourceMappingURL=paymentdetails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paymentdetails.d.ts","sourceRoot":"","sources":["../../../src/models/paymentdetails.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAwB,MAAM,aAAa,CAAC;AAC3D,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EACL,kCAAkC,EAEnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,iCAAiC,EAElC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,+BAA+B,EAEhC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,kCAAkC,EAEnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,mCAAmC,EAEpC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,+BAA+B,EAEhC,MAAM,sCAAsC,CAAC;AA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F,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAUxE,CAAC;AAEL,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAM9C;AAED,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D;AAED,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,cAAc,EACd,CAAC,CAAC,UAAU,EACZ,OAAO,CAgEP,CAAC;AAEH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
@@ -0,0 +1,105 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 45ee14e5d815
4
+ */
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { RFCDate } from "../types/rfcdate.js";
8
+ import { Amount$inboundSchema } from "./amount.js";
9
+ import { AmountNullable$inboundSchema, } from "./amountnullable.js";
10
+ import { PaymentDetailsCardAuditionResponse$inboundSchema, } from "./paymentdetailscardauditionresponse.js";
11
+ import { PaymentDetailsCardFundingResponse$inboundSchema, } from "./paymentdetailscardfundingresponse.js";
12
+ import { PaymentDetailsCardLabelResponse$inboundSchema, } from "./paymentdetailscardlabelresponse.js";
13
+ import { PaymentDetailsCardSecurityResponse$inboundSchema, } from "./paymentdetailscardsecurityresponse.js";
14
+ import { PaymentDetailsFailureReasonResponse$inboundSchema, } from "./paymentdetailsfailurereasonresponse.js";
15
+ import { PaymentDetailsFeeRegionResponse$inboundSchema, } from "./paymentdetailsfeeregionresponse.js";
16
+ import { PaymentDetailsReceiptCardReadMethodResponse$inboundSchema, } from "./paymentdetailsreceiptcardreadmethodresponse.js";
17
+ import { PaymentDetailsReceiptCardVerificationMethodResponse$inboundSchema, } from "./paymentdetailsreceiptcardverificationmethodresponse.js";
18
+ import { PaymentDetailsSellerProtectionResponse$inboundSchema, } from "./paymentdetailssellerprotectionresponse.js";
19
+ import { PaymentDetailsWalletResponse$inboundSchema, } from "./paymentdetailswalletresponse.js";
20
+ /** @internal */
21
+ export const Receipt$inboundSchema = z.object({
22
+ authorizationCode: z.nullable(z.string()).optional(),
23
+ applicationIdentifier: z.nullable(z.string()).optional(),
24
+ cardReadMethod: z.nullable(PaymentDetailsReceiptCardReadMethodResponse$inboundSchema).optional(),
25
+ cardVerificationMethod: z.nullable(PaymentDetailsReceiptCardVerificationMethodResponse$inboundSchema).optional(),
26
+ });
27
+ export function receiptFromJSON(jsonString) {
28
+ return safeParse(jsonString, (x) => Receipt$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Receipt' from JSON`);
29
+ }
30
+ /** @internal */
31
+ export const PaymentDetailsQrCode$inboundSchema = z.object({
32
+ height: z.number().int().optional(),
33
+ width: z.number().int().optional(),
34
+ src: z.string().optional(),
35
+ });
36
+ export function paymentDetailsQrCodeFromJSON(jsonString) {
37
+ return safeParse(jsonString, (x) => PaymentDetailsQrCode$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PaymentDetailsQrCode' from JSON`);
38
+ }
39
+ /** @internal */
40
+ export const PaymentDetails$inboundSchema = z.object({
41
+ consumerName: z.nullable(z.string()).optional(),
42
+ consumerAccount: z.nullable(z.string()).optional(),
43
+ consumerBic: z.nullable(z.string()).optional(),
44
+ shippingAddress: z.nullable(z.record(z.any())).optional(),
45
+ cardNumber: z.nullable(z.string()).optional(),
46
+ bankName: z.string().optional(),
47
+ bankAccount: z.string().optional(),
48
+ bankBic: z.string().optional(),
49
+ transferReference: z.nullable(z.string()).optional(),
50
+ bizumReference: z.nullable(z.string()).optional(),
51
+ cardFingerprint: z.nullable(z.string()).optional(),
52
+ cardHolder: z.nullable(z.string()).optional(),
53
+ cardAudience: z.nullable(PaymentDetailsCardAuditionResponse$inboundSchema)
54
+ .optional(),
55
+ cardLabel: z.nullable(PaymentDetailsCardLabelResponse$inboundSchema)
56
+ .optional(),
57
+ cardCountryCode: z.nullable(z.string()).optional(),
58
+ cardExpiryDate: z.nullable(z.string()).optional(),
59
+ cardFunding: z.nullable(PaymentDetailsCardFundingResponse$inboundSchema)
60
+ .optional(),
61
+ cardSecurity: z.nullable(PaymentDetailsCardSecurityResponse$inboundSchema)
62
+ .optional(),
63
+ feeRegion: z.nullable(PaymentDetailsFeeRegionResponse$inboundSchema)
64
+ .optional(),
65
+ cardMaskedNumber: z.nullable(z.string()).optional(),
66
+ card3dsEci: z.nullable(z.string()).optional(),
67
+ cardBin: z.nullable(z.string()).optional(),
68
+ cardIssuer: z.nullable(z.string()).optional(),
69
+ failureReason: z.nullable(PaymentDetailsFailureReasonResponse$inboundSchema)
70
+ .optional(),
71
+ failureMessage: z.nullable(z.string()).optional(),
72
+ wallet: z.nullable(PaymentDetailsWalletResponse$inboundSchema).optional(),
73
+ multibancoReference: z.nullable(z.string()).optional(),
74
+ multibancoEntity: z.nullable(z.string()).optional(),
75
+ paypalReference: z.nullable(z.string()).optional(),
76
+ paypalPayerId: z.nullable(z.string()).optional(),
77
+ sellerProtection: z.nullable(PaymentDetailsSellerProtectionResponse$inboundSchema).optional(),
78
+ paypalFee: z.nullable(AmountNullable$inboundSchema).optional(),
79
+ customerReference: z.string().optional(),
80
+ terminalId: z.string().optional(),
81
+ maskedNumber: z.nullable(z.string()).optional(),
82
+ receipt: z.lazy(() => Receipt$inboundSchema).optional(),
83
+ creditorIdentifier: z.nullable(z.string()).optional(),
84
+ dueDate: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
85
+ signatureDate: z.nullable(z.string().transform(v => new RFCDate(v)))
86
+ .optional(),
87
+ bankReasonCode: z.nullable(z.string()).optional(),
88
+ bankReason: z.nullable(z.string()).optional(),
89
+ endToEndIdentifier: z.nullable(z.string()).optional(),
90
+ mandateReference: z.nullable(z.string()).optional(),
91
+ batchReference: z.nullable(z.string()).optional(),
92
+ fileReference: z.nullable(z.string()).optional(),
93
+ qrCode: z.lazy(() => PaymentDetailsQrCode$inboundSchema).optional(),
94
+ voucherNumber: z.string().optional(),
95
+ giftcards: z.array(z.record(z.any())).optional(),
96
+ issuer: z.string().optional(),
97
+ vouchers: z.array(z.record(z.any())).optional(),
98
+ remainderAmount: Amount$inboundSchema.optional(),
99
+ remainderMethod: z.string().optional(),
100
+ remainderDetails: z.record(z.any()).optional(),
101
+ });
102
+ export function paymentDetailsFromJSON(jsonString) {
103
+ return safeParse(jsonString, (x) => PaymentDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PaymentDetails' from JSON`);
104
+ }
105
+ //# sourceMappingURL=paymentdetails.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paymentdetails.js","sourceRoot":"","sources":["../../../src/models/paymentdetails.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAU,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAEL,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAEL,gDAAgD,GACjD,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAEL,+CAA+C,GAChD,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAEL,6CAA6C,GAC9C,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAEL,gDAAgD,GACjD,MAAM,yCAAyC,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AoB,CAAC,QAAQ,EAAE;IAChD,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,gBAAgB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC;AAEH,MAAM,UAAU,sBAAsB,CACpC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,4BAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
@@ -204,11 +204,16 @@ export type PaymentRequestApplicationFee = {
204
204
  description?: string | undefined;
205
205
  };
206
206
  /**
207
- * Billie is a business-to-business (B2B) payment method. It requires extra information to identify the organization
207
+ * Billie is a business-to-business (B2B) payment method. It requires extra information to identify the
208
208
  *
209
209
  * @remarks
210
- * that is completing the payment. It is recommended to include these parameters up front for a seamless flow.
211
- * Otherwise, Billie will ask the customer to complete the missing fields during checkout.
210
+ * organization that is completing the payment. It is recommended to include these parameters up front for a
211
+ * seamless flow. Otherwise, Billie will ask the customer to complete the missing fields during checkout.
212
+ *
213
+ * * `billingAddress.organizationName`: The organization's name.
214
+ * * `registrationNumber` _string_: The organization's registration number.
215
+ * * `vatNumber` _string_: The organization's VAT number.
216
+ * * `entityType` _string_: The organization's entity type.
212
217
  */
213
218
  export type Company = {
214
219
  /**
@@ -432,7 +437,19 @@ export type PaymentRequest = {
432
437
  */
433
438
  profileId?: string | undefined;
434
439
  /**
435
- * The date by which the payment should be completed in `YYYY-MM-DD` format
440
+ * The date the bank transfer payment should expire, in `YYYY-MM-DD` format. The minimum date is tomorrow, and the
441
+ *
442
+ * @remarks
443
+ * maximum date is 100 days after tomorrow.
444
+ *
445
+ * After you created the payment, you can still update the `dueDate` via [Update payment](update-payment).
446
+ *
447
+ * <Callout icon="📘" theme="info">
448
+ * If `dueDate` falls out of business days, it will be set to the **next business day** and the payment will
449
+ * expire at 00:00 (on the following business day).
450
+ * Example: `dueDate` is `2025-12-06` (Saturday) -> `dueDate` will be set for `2025-12-08`, `expiresAt`
451
+ * `2025-12-09 00:00`
452
+ * </Callout>
436
453
  */
437
454
  dueDate?: string | undefined;
438
455
  /**
@@ -453,45 +470,52 @@ export type PaymentRequest = {
453
470
  */
454
471
  testmode?: boolean | null | undefined;
455
472
  /**
456
- * The Apple Pay Payment token object (encoded as JSON) that is part of the result of authorizing a payment request.
473
+ * The [Apple Pay Payment](https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypayment) token
457
474
  *
458
475
  * @remarks
459
- * The token contains the payment information needed to authorize the payment.
476
+ * object (encoded as JSON) that is part of the result of authorizing a payment request. The token contains the
477
+ * payment information needed to authorize the payment.
460
478
  *
461
- * The object should be passed encoded in a JSON string.
479
+ * The object should be passed encoded in a JSON string. For example:
480
+ * `{"paymentData": {"version": "EC_v1", "data": "vK3BbrCbI/...."}}`
462
481
  */
463
482
  applePayPaymentToken?: string | undefined;
464
483
  /**
465
- * Billie is a business-to-business (B2B) payment method. It requires extra information to identify the organization
484
+ * Billie is a business-to-business (B2B) payment method. It requires extra information to identify the
466
485
  *
467
486
  * @remarks
468
- * that is completing the payment. It is recommended to include these parameters up front for a seamless flow.
469
- * Otherwise, Billie will ask the customer to complete the missing fields during checkout.
487
+ * organization that is completing the payment. It is recommended to include these parameters up front for a
488
+ * seamless flow. Otherwise, Billie will ask the customer to complete the missing fields during checkout.
489
+ *
490
+ * * `billingAddress.organizationName`: The organization's name.
491
+ * * `registrationNumber` _string_: The organization's registration number.
492
+ * * `vatNumber` _string_: The organization's VAT number.
493
+ * * `entityType` _string_: The organization's entity type.
470
494
  */
471
495
  company?: Company | undefined;
472
496
  /**
473
- * When creating credit card payments using Mollie Components, you need to provide the card token you received from
497
+ * When creating credit card payments using Mollie Components, you need to provide the card token you received
474
498
  *
475
499
  * @remarks
476
- * the card component in this field. The token represents the customer's card information needed to complete the
477
- * payment. Note: field only valid for oneoff and first payments. For recurring payments, the customerId alone is
478
- * enough.
500
+ * from the card component in this field. The token represents the customer's card information needed to complete
501
+ * the payment. **Note:** field only valid for `oneoff` and `first` payments. For recurring payments, the
502
+ * `customerId` alone is enough.
479
503
  */
480
504
  cardToken?: string | undefined;
481
505
  /**
482
- * The Google Pay payment token object (encoded as JSON) returned by the Google Pay SDK after the customer authorizes
506
+ * The Google Pay payment token object (encoded as JSON) returned by the Google Pay SDK after the customer
483
507
  *
484
508
  * @remarks
485
- * the payment. The token contains the payment information needed to complete the payment.
509
+ * authorizes the payment. The token contains the payment information needed to complete the payment.
486
510
  *
487
511
  * The object should be passed encoded in a JSON string.
488
512
  */
489
513
  googlePayPaymentToken?: string | undefined;
490
514
  /**
491
- * The card token you received from the card component of Mollie Components. The token represents the customer's card
515
+ * The card token you received from the card component of Mollie Components. The token represents the customer's
492
516
  *
493
517
  * @remarks
494
- * information needed to complete the payment.
518
+ * card information needed to complete the payment.
495
519
  */
496
520
  voucherNumber?: string | undefined;
497
521
  /**
@@ -499,10 +523,10 @@ export type PaymentRequest = {
499
523
  */
500
524
  voucherPin?: string | undefined;
501
525
  /**
502
- * The customer's date of birth. If not provided via the API, iDeal in3 will ask the customer to provide it during
526
+ * The customer's date of birth. If not provided via the API, iDeal in3 will ask the customer to provide it
503
527
  *
504
528
  * @remarks
505
- * the payment process.
529
+ * during the payment process.
506
530
  */
507
531
  consumerDateOfBirth?: RFCDate | undefined;
508
532
  /**
@@ -510,7 +534,11 @@ export type PaymentRequest = {
510
534
  *
511
535
  * @remarks
512
536
  * You can submit your extra data in this field if you have agreed upon this with Klarna. This field should be an
513
- * object containing any of the allowed keys and sub-objects described at the Klarna Developer Documentation.
537
+ * object containing any of the allowed keys and sub-objects described at the
538
+ * <Anchor label="Klarna Developer Documentation" target="_blank" href="https://docs.klarna.com/acquirer/mollie/api/extra-merchant-data/">Klarna Developer Documentation</Anchor>.
539
+ *
540
+ * Reach out to your account manager at Mollie to enable this feature with Klarna, and to agree on which fields
541
+ * you can send.
514
542
  */
515
543
  extraMerchantData?: {
516
544
  [k: string]: any;
@@ -523,21 +551,28 @@ export type PaymentRequest = {
523
551
  */
524
552
  sessionId?: string | undefined;
525
553
  /**
526
- * Indicate if you are about to deliver digital goods, such as for example a software license. Setting this parameter
554
+ * Indicate if you are about to deliver digital goods, such as for example a software license. Setting this
527
555
  *
528
556
  * @remarks
529
- * can have consequences for your PayPal Seller Protection. Refer to PayPal's documentation for more information.
557
+ * parameter can have consequences for your PayPal Seller Protection. Refer to
558
+ * [PayPal's documentation](https://www.paypal.com/us/webapps/mpp/ua/seller-protection) for more information.
530
559
  */
531
560
  digitalGoods?: boolean | undefined;
532
561
  /**
533
- * Used by paysafecard for customer identification across payments. When you generate a customer reference yourself,
562
+ * Used by paysafecard for customer identification across payments. When you generate a customer reference
534
563
  *
535
564
  * @remarks
536
- * make sure not to put personal identifiable information or IP addresses in the customer reference directly.
565
+ * yourself, make sure not to put personal identifiable information or IP addresses in the customer reference
566
+ * directly.
567
+ *
568
+ * If not provided, Mollie will use a hashed version of the customer's IP address.
537
569
  */
538
570
  customerReference?: string | undefined;
539
571
  /**
540
- * The ID of the terminal device where you want to initiate the payment on.
572
+ * The ID of the terminal device where you want to initiate the payment on. See also the
573
+ *
574
+ * @remarks
575
+ * [Terminals API](ref:terminals-api).
541
576
  */
542
577
  terminalId?: string | undefined;
543
578
  };