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.
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/retries.js +7 -0
- package/dist/commonjs/lib/retries.js.map +1 -1
- package/dist/commonjs/models/captureresponse.d.ts +0 -36
- package/dist/commonjs/models/captureresponse.d.ts.map +1 -1
- package/dist/commonjs/models/captureresponse.js +1 -11
- package/dist/commonjs/models/captureresponse.js.map +1 -1
- package/dist/commonjs/models/entitychargeback.d.ts +0 -38
- package/dist/commonjs/models/entitychargeback.d.ts.map +1 -1
- package/dist/commonjs/models/entitychargeback.js +1 -11
- package/dist/commonjs/models/entitychargeback.js.map +1 -1
- package/dist/commonjs/models/entityrefundresponse.d.ts +0 -42
- package/dist/commonjs/models/entityrefundresponse.d.ts.map +1 -1
- package/dist/commonjs/models/entityrefundresponse.js +1 -11
- package/dist/commonjs/models/entityrefundresponse.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +1 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/listcaptureresponse.d.ts +0 -36
- package/dist/commonjs/models/listcaptureresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listcaptureresponse.js +1 -11
- package/dist/commonjs/models/listcaptureresponse.js.map +1 -1
- package/dist/commonjs/models/listentitychargeback.d.ts +0 -38
- package/dist/commonjs/models/listentitychargeback.d.ts.map +1 -1
- package/dist/commonjs/models/listentitychargeback.js +1 -11
- package/dist/commonjs/models/listentitychargeback.js.map +1 -1
- package/dist/commonjs/models/listentityrefund.d.ts +0 -42
- package/dist/commonjs/models/listentityrefund.d.ts.map +1 -1
- package/dist/commonjs/models/listentityrefund.js +1 -11
- package/dist/commonjs/models/listentityrefund.js.map +1 -1
- package/dist/commonjs/models/listpaymentresponse.d.ts +2 -385
- package/dist/commonjs/models/listpaymentresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listpaymentresponse.js +3 -113
- package/dist/commonjs/models/listpaymentresponse.js.map +1 -1
- package/dist/commonjs/models/listsettlementcaptureresponse.d.ts +20 -20
- package/dist/commonjs/models/listsettlementcaptureresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listsettlementcaptureresponse.js +11 -11
- package/dist/commonjs/models/listsettlementcaptureresponse.js.map +1 -1
- package/dist/commonjs/models/listsettlementchargebackresponse.d.ts +26 -26
- package/dist/commonjs/models/listsettlementchargebackresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listsettlementchargebackresponse.js +11 -11
- package/dist/commonjs/models/listsettlementchargebackresponse.js.map +1 -1
- package/dist/commonjs/models/listsettlementpaymentresponse.d.ts +32 -373
- package/dist/commonjs/models/listsettlementpaymentresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listsettlementpaymentresponse.js +13 -114
- package/dist/commonjs/models/listsettlementpaymentresponse.js.map +1 -1
- package/dist/commonjs/models/listsettlementrefundresponse.d.ts +30 -30
- package/dist/commonjs/models/listsettlementrefundresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listsettlementrefundresponse.js +11 -11
- package/dist/commonjs/models/listsettlementrefundresponse.js.map +1 -1
- package/dist/commonjs/models/paymentdetails.d.ts +367 -0
- package/dist/commonjs/models/paymentdetails.d.ts.map +1 -0
- package/dist/commonjs/models/paymentdetails.js +144 -0
- package/dist/commonjs/models/paymentdetails.js.map +1 -0
- package/dist/commonjs/models/paymentrequest.d.ts +61 -26
- package/dist/commonjs/models/paymentrequest.d.ts.map +1 -1
- package/dist/commonjs/models/paymentrequest.js.map +1 -1
- package/dist/commonjs/models/paymentresponse.d.ts +2 -385
- package/dist/commonjs/models/paymentresponse.d.ts.map +1 -1
- package/dist/commonjs/models/paymentresponse.js +3 -114
- package/dist/commonjs/models/paymentresponse.js.map +1 -1
- package/dist/commonjs/models/statusreason.d.ts +59 -41
- package/dist/commonjs/models/statusreason.d.ts.map +1 -1
- package/dist/commonjs/models/statusreason.js +70 -42
- package/dist/commonjs/models/statusreason.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/retries.js +7 -0
- package/dist/esm/lib/retries.js.map +1 -1
- package/dist/esm/models/captureresponse.d.ts +0 -36
- package/dist/esm/models/captureresponse.d.ts.map +1 -1
- package/dist/esm/models/captureresponse.js +0 -9
- package/dist/esm/models/captureresponse.js.map +1 -1
- package/dist/esm/models/entitychargeback.d.ts +0 -38
- package/dist/esm/models/entitychargeback.d.ts.map +1 -1
- package/dist/esm/models/entitychargeback.js +0 -9
- package/dist/esm/models/entitychargeback.js.map +1 -1
- package/dist/esm/models/entityrefundresponse.d.ts +0 -42
- package/dist/esm/models/entityrefundresponse.d.ts.map +1 -1
- package/dist/esm/models/entityrefundresponse.js +0 -9
- package/dist/esm/models/entityrefundresponse.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/listcaptureresponse.d.ts +0 -36
- package/dist/esm/models/listcaptureresponse.d.ts.map +1 -1
- package/dist/esm/models/listcaptureresponse.js +0 -9
- package/dist/esm/models/listcaptureresponse.js.map +1 -1
- package/dist/esm/models/listentitychargeback.d.ts +0 -38
- package/dist/esm/models/listentitychargeback.d.ts.map +1 -1
- package/dist/esm/models/listentitychargeback.js +0 -9
- package/dist/esm/models/listentitychargeback.js.map +1 -1
- package/dist/esm/models/listentityrefund.d.ts +0 -42
- package/dist/esm/models/listentityrefund.d.ts.map +1 -1
- package/dist/esm/models/listentityrefund.js +0 -9
- package/dist/esm/models/listentityrefund.js.map +1 -1
- package/dist/esm/models/listpaymentresponse.d.ts +2 -385
- package/dist/esm/models/listpaymentresponse.d.ts.map +1 -1
- package/dist/esm/models/listpaymentresponse.js +2 -108
- package/dist/esm/models/listpaymentresponse.js.map +1 -1
- package/dist/esm/models/listsettlementcaptureresponse.d.ts +20 -20
- package/dist/esm/models/listsettlementcaptureresponse.d.ts.map +1 -1
- package/dist/esm/models/listsettlementcaptureresponse.js +9 -9
- package/dist/esm/models/listsettlementcaptureresponse.js.map +1 -1
- package/dist/esm/models/listsettlementchargebackresponse.d.ts +26 -26
- package/dist/esm/models/listsettlementchargebackresponse.d.ts.map +1 -1
- package/dist/esm/models/listsettlementchargebackresponse.js +9 -9
- package/dist/esm/models/listsettlementchargebackresponse.js.map +1 -1
- package/dist/esm/models/listsettlementpaymentresponse.d.ts +32 -373
- package/dist/esm/models/listsettlementpaymentresponse.d.ts.map +1 -1
- package/dist/esm/models/listsettlementpaymentresponse.js +11 -109
- package/dist/esm/models/listsettlementpaymentresponse.js.map +1 -1
- package/dist/esm/models/listsettlementrefundresponse.d.ts +30 -30
- package/dist/esm/models/listsettlementrefundresponse.d.ts.map +1 -1
- package/dist/esm/models/listsettlementrefundresponse.js +9 -9
- package/dist/esm/models/listsettlementrefundresponse.js.map +1 -1
- package/dist/esm/models/paymentdetails.d.ts +367 -0
- package/dist/esm/models/paymentdetails.d.ts.map +1 -0
- package/dist/esm/models/paymentdetails.js +105 -0
- package/dist/esm/models/paymentdetails.js.map +1 -0
- package/dist/esm/models/paymentrequest.d.ts +61 -26
- package/dist/esm/models/paymentrequest.d.ts.map +1 -1
- package/dist/esm/models/paymentrequest.js.map +1 -1
- package/dist/esm/models/paymentresponse.d.ts +2 -385
- package/dist/esm/models/paymentresponse.d.ts.map +1 -1
- package/dist/esm/models/paymentresponse.js +2 -109
- package/dist/esm/models/paymentresponse.js.map +1 -1
- package/dist/esm/models/statusreason.d.ts +59 -41
- package/dist/esm/models/statusreason.d.ts.map +1 -1
- package/dist/esm/models/statusreason.js +68 -41
- package/dist/esm/models/statusreason.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/retries.ts +8 -0
- package/src/models/captureresponse.ts +0 -57
- package/src/models/entitychargeback.ts +0 -59
- package/src/models/entityrefundresponse.ts +0 -64
- package/src/models/index.ts +1 -0
- package/src/models/listcaptureresponse.ts +0 -58
- package/src/models/listentitychargeback.ts +0 -60
- package/src/models/listentityrefund.ts +0 -63
- package/src/models/listpaymentresponse.ts +5 -560
- package/src/models/listsettlementcaptureresponse.ts +47 -47
- package/src/models/listsettlementchargebackresponse.ts +59 -59
- package/src/models/listsettlementpaymentresponse.ts +63 -560
- package/src/models/listsettlementrefundresponse.ts +61 -61
- package/src/models/paymentdetails.ts +521 -0
- package/src/models/paymentrequest.ts +61 -26
- package/src/models/paymentresponse.ts +5 -558
- 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
|
|
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
|
|
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
|
|
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
|
|
506
|
+
* The [Apple Pay Payment](https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypayment) token
|
|
490
507
|
*
|
|
491
508
|
* @remarks
|
|
492
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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
|
|
510
|
-
* payment. Note
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
};
|