mollie-api-typescript 1.12.2 → 1.12.3

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 (154) 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/entitychargeback.d.ts +0 -38
  10. package/dist/commonjs/models/entitychargeback.d.ts.map +1 -1
  11. package/dist/commonjs/models/entitychargeback.js +1 -11
  12. package/dist/commonjs/models/entitychargeback.js.map +1 -1
  13. package/dist/commonjs/models/entityrefundresponse.d.ts +0 -42
  14. package/dist/commonjs/models/entityrefundresponse.d.ts.map +1 -1
  15. package/dist/commonjs/models/entityrefundresponse.js +1 -11
  16. package/dist/commonjs/models/entityrefundresponse.js.map +1 -1
  17. package/dist/commonjs/models/index.d.ts +1 -0
  18. package/dist/commonjs/models/index.d.ts.map +1 -1
  19. package/dist/commonjs/models/index.js +1 -0
  20. package/dist/commonjs/models/index.js.map +1 -1
  21. package/dist/commonjs/models/listcaptureresponse.d.ts +0 -36
  22. package/dist/commonjs/models/listcaptureresponse.d.ts.map +1 -1
  23. package/dist/commonjs/models/listcaptureresponse.js +1 -11
  24. package/dist/commonjs/models/listcaptureresponse.js.map +1 -1
  25. package/dist/commonjs/models/listentitychargeback.d.ts +0 -38
  26. package/dist/commonjs/models/listentitychargeback.d.ts.map +1 -1
  27. package/dist/commonjs/models/listentitychargeback.js +1 -11
  28. package/dist/commonjs/models/listentitychargeback.js.map +1 -1
  29. package/dist/commonjs/models/listentityrefund.d.ts +0 -42
  30. package/dist/commonjs/models/listentityrefund.d.ts.map +1 -1
  31. package/dist/commonjs/models/listentityrefund.js +1 -11
  32. package/dist/commonjs/models/listentityrefund.js.map +1 -1
  33. package/dist/commonjs/models/listpaymentresponse.d.ts +2 -385
  34. package/dist/commonjs/models/listpaymentresponse.d.ts.map +1 -1
  35. package/dist/commonjs/models/listpaymentresponse.js +3 -113
  36. package/dist/commonjs/models/listpaymentresponse.js.map +1 -1
  37. package/dist/commonjs/models/listsettlementcaptureresponse.d.ts +20 -20
  38. package/dist/commonjs/models/listsettlementcaptureresponse.d.ts.map +1 -1
  39. package/dist/commonjs/models/listsettlementcaptureresponse.js +11 -11
  40. package/dist/commonjs/models/listsettlementcaptureresponse.js.map +1 -1
  41. package/dist/commonjs/models/listsettlementchargebackresponse.d.ts +26 -26
  42. package/dist/commonjs/models/listsettlementchargebackresponse.d.ts.map +1 -1
  43. package/dist/commonjs/models/listsettlementchargebackresponse.js +11 -11
  44. package/dist/commonjs/models/listsettlementchargebackresponse.js.map +1 -1
  45. package/dist/commonjs/models/listsettlementpaymentresponse.d.ts +32 -373
  46. package/dist/commonjs/models/listsettlementpaymentresponse.d.ts.map +1 -1
  47. package/dist/commonjs/models/listsettlementpaymentresponse.js +13 -114
  48. package/dist/commonjs/models/listsettlementpaymentresponse.js.map +1 -1
  49. package/dist/commonjs/models/listsettlementrefundresponse.d.ts +30 -30
  50. package/dist/commonjs/models/listsettlementrefundresponse.d.ts.map +1 -1
  51. package/dist/commonjs/models/listsettlementrefundresponse.js +11 -11
  52. package/dist/commonjs/models/listsettlementrefundresponse.js.map +1 -1
  53. package/dist/commonjs/models/paymentdetails.d.ts +367 -0
  54. package/dist/commonjs/models/paymentdetails.d.ts.map +1 -0
  55. package/dist/commonjs/models/paymentdetails.js +144 -0
  56. package/dist/commonjs/models/paymentdetails.js.map +1 -0
  57. package/dist/commonjs/models/paymentrequest.d.ts +61 -26
  58. package/dist/commonjs/models/paymentrequest.d.ts.map +1 -1
  59. package/dist/commonjs/models/paymentrequest.js.map +1 -1
  60. package/dist/commonjs/models/paymentresponse.d.ts +2 -385
  61. package/dist/commonjs/models/paymentresponse.d.ts.map +1 -1
  62. package/dist/commonjs/models/paymentresponse.js +3 -114
  63. package/dist/commonjs/models/paymentresponse.js.map +1 -1
  64. package/dist/commonjs/models/statusreason.d.ts +59 -41
  65. package/dist/commonjs/models/statusreason.d.ts.map +1 -1
  66. package/dist/commonjs/models/statusreason.js +70 -42
  67. package/dist/commonjs/models/statusreason.js.map +1 -1
  68. package/dist/esm/lib/config.d.ts +3 -3
  69. package/dist/esm/lib/config.js +3 -3
  70. package/dist/esm/lib/retries.js +7 -0
  71. package/dist/esm/lib/retries.js.map +1 -1
  72. package/dist/esm/models/captureresponse.d.ts +0 -36
  73. package/dist/esm/models/captureresponse.d.ts.map +1 -1
  74. package/dist/esm/models/captureresponse.js +0 -9
  75. package/dist/esm/models/captureresponse.js.map +1 -1
  76. package/dist/esm/models/entitychargeback.d.ts +0 -38
  77. package/dist/esm/models/entitychargeback.d.ts.map +1 -1
  78. package/dist/esm/models/entitychargeback.js +0 -9
  79. package/dist/esm/models/entitychargeback.js.map +1 -1
  80. package/dist/esm/models/entityrefundresponse.d.ts +0 -42
  81. package/dist/esm/models/entityrefundresponse.d.ts.map +1 -1
  82. package/dist/esm/models/entityrefundresponse.js +0 -9
  83. package/dist/esm/models/entityrefundresponse.js.map +1 -1
  84. package/dist/esm/models/index.d.ts +1 -0
  85. package/dist/esm/models/index.d.ts.map +1 -1
  86. package/dist/esm/models/index.js +1 -0
  87. package/dist/esm/models/index.js.map +1 -1
  88. package/dist/esm/models/listcaptureresponse.d.ts +0 -36
  89. package/dist/esm/models/listcaptureresponse.d.ts.map +1 -1
  90. package/dist/esm/models/listcaptureresponse.js +0 -9
  91. package/dist/esm/models/listcaptureresponse.js.map +1 -1
  92. package/dist/esm/models/listentitychargeback.d.ts +0 -38
  93. package/dist/esm/models/listentitychargeback.d.ts.map +1 -1
  94. package/dist/esm/models/listentitychargeback.js +0 -9
  95. package/dist/esm/models/listentitychargeback.js.map +1 -1
  96. package/dist/esm/models/listentityrefund.d.ts +0 -42
  97. package/dist/esm/models/listentityrefund.d.ts.map +1 -1
  98. package/dist/esm/models/listentityrefund.js +0 -9
  99. package/dist/esm/models/listentityrefund.js.map +1 -1
  100. package/dist/esm/models/listpaymentresponse.d.ts +2 -385
  101. package/dist/esm/models/listpaymentresponse.d.ts.map +1 -1
  102. package/dist/esm/models/listpaymentresponse.js +2 -108
  103. package/dist/esm/models/listpaymentresponse.js.map +1 -1
  104. package/dist/esm/models/listsettlementcaptureresponse.d.ts +20 -20
  105. package/dist/esm/models/listsettlementcaptureresponse.d.ts.map +1 -1
  106. package/dist/esm/models/listsettlementcaptureresponse.js +9 -9
  107. package/dist/esm/models/listsettlementcaptureresponse.js.map +1 -1
  108. package/dist/esm/models/listsettlementchargebackresponse.d.ts +26 -26
  109. package/dist/esm/models/listsettlementchargebackresponse.d.ts.map +1 -1
  110. package/dist/esm/models/listsettlementchargebackresponse.js +9 -9
  111. package/dist/esm/models/listsettlementchargebackresponse.js.map +1 -1
  112. package/dist/esm/models/listsettlementpaymentresponse.d.ts +32 -373
  113. package/dist/esm/models/listsettlementpaymentresponse.d.ts.map +1 -1
  114. package/dist/esm/models/listsettlementpaymentresponse.js +11 -109
  115. package/dist/esm/models/listsettlementpaymentresponse.js.map +1 -1
  116. package/dist/esm/models/listsettlementrefundresponse.d.ts +30 -30
  117. package/dist/esm/models/listsettlementrefundresponse.d.ts.map +1 -1
  118. package/dist/esm/models/listsettlementrefundresponse.js +9 -9
  119. package/dist/esm/models/listsettlementrefundresponse.js.map +1 -1
  120. package/dist/esm/models/paymentdetails.d.ts +367 -0
  121. package/dist/esm/models/paymentdetails.d.ts.map +1 -0
  122. package/dist/esm/models/paymentdetails.js +105 -0
  123. package/dist/esm/models/paymentdetails.js.map +1 -0
  124. package/dist/esm/models/paymentrequest.d.ts +61 -26
  125. package/dist/esm/models/paymentrequest.d.ts.map +1 -1
  126. package/dist/esm/models/paymentrequest.js.map +1 -1
  127. package/dist/esm/models/paymentresponse.d.ts +2 -385
  128. package/dist/esm/models/paymentresponse.d.ts.map +1 -1
  129. package/dist/esm/models/paymentresponse.js +2 -109
  130. package/dist/esm/models/paymentresponse.js.map +1 -1
  131. package/dist/esm/models/statusreason.d.ts +59 -41
  132. package/dist/esm/models/statusreason.d.ts.map +1 -1
  133. package/dist/esm/models/statusreason.js +68 -41
  134. package/dist/esm/models/statusreason.js.map +1 -1
  135. package/jsr.json +1 -1
  136. package/package.json +1 -1
  137. package/src/lib/config.ts +3 -3
  138. package/src/lib/retries.ts +8 -0
  139. package/src/models/captureresponse.ts +0 -57
  140. package/src/models/entitychargeback.ts +0 -59
  141. package/src/models/entityrefundresponse.ts +0 -64
  142. package/src/models/index.ts +1 -0
  143. package/src/models/listcaptureresponse.ts +0 -58
  144. package/src/models/listentitychargeback.ts +0 -60
  145. package/src/models/listentityrefund.ts +0 -63
  146. package/src/models/listpaymentresponse.ts +5 -560
  147. package/src/models/listsettlementcaptureresponse.ts +47 -47
  148. package/src/models/listsettlementchargebackresponse.ts +59 -59
  149. package/src/models/listsettlementpaymentresponse.ts +63 -560
  150. package/src/models/listsettlementrefundresponse.ts +61 -61
  151. package/src/models/paymentdetails.ts +521 -0
  152. package/src/models/paymentrequest.ts +61 -26
  153. package/src/models/paymentresponse.ts +5 -558
  154. package/src/models/statusreason.ts +121 -44
@@ -236,11 +236,16 @@ export type PaymentRequestApplicationFee = {
236
236
  };
237
237
 
238
238
  /**
239
- * Billie is a business-to-business (B2B) payment method. It requires extra information to identify the organization
239
+ * Billie is a business-to-business (B2B) payment method. It requires extra information to identify the
240
240
  *
241
241
  * @remarks
242
- * that is completing the payment. It is recommended to include these parameters up front for a seamless flow.
243
- * Otherwise, Billie will ask the customer to complete the missing fields during checkout.
242
+ * organization that is completing the payment. It is recommended to include these parameters up front for a
243
+ * seamless flow. Otherwise, Billie will ask the customer to complete the missing fields during checkout.
244
+ *
245
+ * * `billingAddress.organizationName`: The organization's name.
246
+ * * `registrationNumber` _string_: The organization's registration number.
247
+ * * `vatNumber` _string_: The organization's VAT number.
248
+ * * `entityType` _string_: The organization's entity type.
244
249
  */
245
250
  export type Company = {
246
251
  /**
@@ -465,7 +470,19 @@ export type PaymentRequest = {
465
470
  */
466
471
  profileId?: string | undefined;
467
472
  /**
468
- * The date by which the payment should be completed in `YYYY-MM-DD` format
473
+ * The date the bank transfer payment should expire, in `YYYY-MM-DD` format. The minimum date is tomorrow, and the
474
+ *
475
+ * @remarks
476
+ * maximum date is 100 days after tomorrow.
477
+ *
478
+ * After you created the payment, you can still update the `dueDate` via [Update payment](update-payment).
479
+ *
480
+ * <Callout icon="📘" theme="info">
481
+ * If `dueDate` falls out of business days, it will be set to the **next business day** and the payment will
482
+ * expire at 00:00 (on the following business day).
483
+ * Example: `dueDate` is `2025-12-06` (Saturday) -> `dueDate` will be set for `2025-12-08`, `expiresAt`
484
+ * `2025-12-09 00:00`
485
+ * </Callout>
469
486
  */
470
487
  dueDate?: string | undefined;
471
488
  /**
@@ -486,45 +503,52 @@ export type PaymentRequest = {
486
503
  */
487
504
  testmode?: boolean | null | undefined;
488
505
  /**
489
- * The Apple Pay Payment token object (encoded as JSON) that is part of the result of authorizing a payment request.
506
+ * The [Apple Pay Payment](https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypayment) token
490
507
  *
491
508
  * @remarks
492
- * The token contains the payment information needed to authorize the payment.
509
+ * object (encoded as JSON) that is part of the result of authorizing a payment request. The token contains the
510
+ * payment information needed to authorize the payment.
493
511
  *
494
- * The object should be passed encoded in a JSON string.
512
+ * The object should be passed encoded in a JSON string. For example:
513
+ * `{"paymentData": {"version": "EC_v1", "data": "vK3BbrCbI/...."}}`
495
514
  */
496
515
  applePayPaymentToken?: string | undefined;
497
516
  /**
498
- * Billie is a business-to-business (B2B) payment method. It requires extra information to identify the organization
517
+ * Billie is a business-to-business (B2B) payment method. It requires extra information to identify the
499
518
  *
500
519
  * @remarks
501
- * that is completing the payment. It is recommended to include these parameters up front for a seamless flow.
502
- * Otherwise, Billie will ask the customer to complete the missing fields during checkout.
520
+ * organization that is completing the payment. It is recommended to include these parameters up front for a
521
+ * seamless flow. Otherwise, Billie will ask the customer to complete the missing fields during checkout.
522
+ *
523
+ * * `billingAddress.organizationName`: The organization's name.
524
+ * * `registrationNumber` _string_: The organization's registration number.
525
+ * * `vatNumber` _string_: The organization's VAT number.
526
+ * * `entityType` _string_: The organization's entity type.
503
527
  */
504
528
  company?: Company | undefined;
505
529
  /**
506
- * When creating credit card payments using Mollie Components, you need to provide the card token you received from
530
+ * When creating credit card payments using Mollie Components, you need to provide the card token you received
507
531
  *
508
532
  * @remarks
509
- * the card component in this field. The token represents the customer's card information needed to complete the
510
- * payment. Note: field only valid for oneoff and first payments. For recurring payments, the customerId alone is
511
- * enough.
533
+ * from the card component in this field. The token represents the customer's card information needed to complete
534
+ * the payment. **Note:** field only valid for `oneoff` and `first` payments. For recurring payments, the
535
+ * `customerId` alone is enough.
512
536
  */
513
537
  cardToken?: string | undefined;
514
538
  /**
515
- * The Google Pay payment token object (encoded as JSON) returned by the Google Pay SDK after the customer authorizes
539
+ * The Google Pay payment token object (encoded as JSON) returned by the Google Pay SDK after the customer
516
540
  *
517
541
  * @remarks
518
- * the payment. The token contains the payment information needed to complete the payment.
542
+ * authorizes the payment. The token contains the payment information needed to complete the payment.
519
543
  *
520
544
  * The object should be passed encoded in a JSON string.
521
545
  */
522
546
  googlePayPaymentToken?: string | undefined;
523
547
  /**
524
- * The card token you received from the card component of Mollie Components. The token represents the customer's card
548
+ * The card token you received from the card component of Mollie Components. The token represents the customer's
525
549
  *
526
550
  * @remarks
527
- * information needed to complete the payment.
551
+ * card information needed to complete the payment.
528
552
  */
529
553
  voucherNumber?: string | undefined;
530
554
  /**
@@ -532,10 +556,10 @@ export type PaymentRequest = {
532
556
  */
533
557
  voucherPin?: string | undefined;
534
558
  /**
535
- * The customer's date of birth. If not provided via the API, iDeal in3 will ask the customer to provide it during
559
+ * The customer's date of birth. If not provided via the API, iDeal in3 will ask the customer to provide it
536
560
  *
537
561
  * @remarks
538
- * the payment process.
562
+ * during the payment process.
539
563
  */
540
564
  consumerDateOfBirth?: RFCDate | undefined;
541
565
  /**
@@ -543,7 +567,11 @@ export type PaymentRequest = {
543
567
  *
544
568
  * @remarks
545
569
  * You can submit your extra data in this field if you have agreed upon this with Klarna. This field should be an
546
- * object containing any of the allowed keys and sub-objects described at the Klarna Developer Documentation.
570
+ * object containing any of the allowed keys and sub-objects described at the
571
+ * <Anchor label="Klarna Developer Documentation" target="_blank" href="https://docs.klarna.com/acquirer/mollie/api/extra-merchant-data/">Klarna Developer Documentation</Anchor>.
572
+ *
573
+ * Reach out to your account manager at Mollie to enable this feature with Klarna, and to agree on which fields
574
+ * you can send.
547
575
  */
548
576
  extraMerchantData?: { [k: string]: any } | undefined;
549
577
  /**
@@ -554,21 +582,28 @@ export type PaymentRequest = {
554
582
  */
555
583
  sessionId?: string | undefined;
556
584
  /**
557
- * Indicate if you are about to deliver digital goods, such as for example a software license. Setting this parameter
585
+ * Indicate if you are about to deliver digital goods, such as for example a software license. Setting this
558
586
  *
559
587
  * @remarks
560
- * can have consequences for your PayPal Seller Protection. Refer to PayPal's documentation for more information.
588
+ * parameter can have consequences for your PayPal Seller Protection. Refer to
589
+ * [PayPal's documentation](https://www.paypal.com/us/webapps/mpp/ua/seller-protection) for more information.
561
590
  */
562
591
  digitalGoods?: boolean | undefined;
563
592
  /**
564
- * Used by paysafecard for customer identification across payments. When you generate a customer reference yourself,
593
+ * Used by paysafecard for customer identification across payments. When you generate a customer reference
565
594
  *
566
595
  * @remarks
567
- * make sure not to put personal identifiable information or IP addresses in the customer reference directly.
596
+ * yourself, make sure not to put personal identifiable information or IP addresses in the customer reference
597
+ * directly.
598
+ *
599
+ * If not provided, Mollie will use a hashed version of the customer's IP address.
568
600
  */
569
601
  customerReference?: string | undefined;
570
602
  /**
571
- * The ID of the terminal device where you want to initiate the payment on.
603
+ * The ID of the terminal device where you want to initiate the payment on. See also the
604
+ *
605
+ * @remarks
606
+ * [Terminals API](ref:terminals-api).
572
607
  */
573
608
  terminalId?: string | undefined;
574
609
  };