@adyen/adyen-web 5.2.2 → 5.5.0
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/adyen.css +7 -7
- package/dist/adyen.css.map +1 -1
- package/dist/adyen.js +1 -1
- package/dist/adyen.js.map +1 -1
- package/dist/cjs/adyen.css +7 -7
- package/dist/cjs/adyen.css.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es/adyen.css +7 -7
- package/dist/es/adyen.css.map +1 -1
- package/dist/es/ar.js +1 -1
- package/dist/es/cs-CZ.js +1 -1
- package/dist/es/da-DK.js +1 -1
- package/dist/es/de-DE.js +1 -1
- package/dist/es/el-GR.js +1 -1
- package/dist/es/es-ES.js +1 -1
- package/dist/es/fi-FI.js +1 -1
- package/dist/es/fr-FR.js +1 -1
- package/dist/es/hr-HR.js +1 -1
- package/dist/es/hu-HU.js +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es/it-IT.js +1 -1
- package/dist/es/ja-JP.js +1 -1
- package/dist/es/ko-KR.js +1 -1
- package/dist/es/nl-NL.js +1 -1
- package/dist/es/no-NO.js +1 -1
- package/dist/es/pl-PL.js +1 -1
- package/dist/es/pt-BR.js +1 -1
- package/dist/es/ro-RO.js +1 -1
- package/dist/es/ru-RU.js +1 -1
- package/dist/es/sk-SK.js +1 -1
- package/dist/es/sl-SI.js +1 -1
- package/dist/es/sv-SE.js +1 -1
- package/dist/es/zh-CN.js +1 -1
- package/dist/es/zh-TW.js +1 -1
- package/dist/es.modern/adyen.css +54 -0
- package/dist/es.modern/adyen.css.map +1 -0
- package/dist/es.modern/ar.js +1 -0
- package/dist/es.modern/cs-CZ.js +1 -0
- package/dist/es.modern/da-DK.js +1 -0
- package/dist/es.modern/de-DE.js +1 -0
- package/dist/es.modern/el-GR.js +1 -0
- package/dist/es.modern/es-ES.js +1 -0
- package/dist/es.modern/fi-FI.js +1 -0
- package/dist/es.modern/fr-FR.js +1 -0
- package/dist/es.modern/hr-HR.js +1 -0
- package/dist/es.modern/hu-HU.js +1 -0
- package/dist/es.modern/index.js +1 -0
- package/dist/es.modern/it-IT.js +1 -0
- package/dist/es.modern/ja-JP.js +1 -0
- package/dist/es.modern/ko-KR.js +1 -0
- package/dist/es.modern/nl-NL.js +1 -0
- package/dist/es.modern/no-NO.js +1 -0
- package/dist/es.modern/pl-PL.js +1 -0
- package/dist/es.modern/pt-BR.js +1 -0
- package/dist/es.modern/ro-RO.js +1 -0
- package/dist/es.modern/ru-RU.js +1 -0
- package/dist/es.modern/sk-SK.js +1 -0
- package/dist/es.modern/sl-SI.js +1 -0
- package/dist/es.modern/sv-SE.js +1 -0
- package/dist/es.modern/zh-CN.js +1 -0
- package/dist/es.modern/zh-TW.js +1 -0
- package/dist/types/components/Ach/Ach.d.ts +19 -19
- package/dist/types/components/Ach/components/AchInput/AchInput.d.ts +31 -31
- package/dist/types/components/Ach/components/AchInput/components/AchSFInput.d.ts +14 -14
- package/dist/types/components/Ach/components/AchInput/components/AchSecuredFields.d.ts +8 -8
- package/dist/types/components/Ach/components/AchInput/defaultProps.d.ts +26 -26
- package/dist/types/components/Ach/components/AchInput/defaultStyles.d.ts +6 -6
- package/dist/types/components/Ach/components/AchInput/index.d.ts +1 -1
- package/dist/types/components/Ach/components/AchInput/types.d.ts +12 -12
- package/dist/types/components/Ach/index.d.ts +1 -1
- package/dist/types/components/Address/Address.d.ts +8 -8
- package/dist/types/components/Address/index.d.ts +1 -1
- package/dist/types/components/Affirm/Affirm.d.ts +5 -5
- package/dist/types/components/Affirm/config.d.ts +1 -1
- package/dist/types/components/Affirm/index.d.ts +1 -1
- package/dist/types/components/AfterPay/AfterPay.d.ts +5 -5
- package/dist/types/components/AfterPay/AfterPayB2B.d.ts +20 -20
- package/dist/types/components/AfterPay/components/ConsentCheckboxLabel/ConsentCheckboxLabel.d.ts +6 -6
- package/dist/types/components/AfterPay/components/ConsentCheckboxLabel/index.d.ts +1 -1
- package/dist/types/components/AfterPay/config.d.ts +6 -6
- package/dist/types/components/AfterPay/index.d.ts +3 -3
- package/dist/types/components/AfterPay/utils.d.ts +2 -2
- package/dist/types/components/AmazonPay/AmazonPay.d.ts +35 -35
- package/dist/types/components/AmazonPay/components/AmazonPayButton.d.ts +3 -3
- package/dist/types/components/AmazonPay/components/AmazonPayComponent.d.ts +3 -3
- package/dist/types/components/AmazonPay/components/ChangePaymentDetailsButton.d.ts +3 -3
- package/dist/types/components/AmazonPay/components/OrderButton.d.ts +3 -3
- package/dist/types/components/AmazonPay/components/SignOutButton.d.ts +3 -3
- package/dist/types/components/AmazonPay/config.d.ts +12 -12
- package/dist/types/components/AmazonPay/defaultProps.d.ts +17 -17
- package/dist/types/components/AmazonPay/index.d.ts +1 -1
- package/dist/types/components/AmazonPay/services.d.ts +25 -25
- package/dist/types/components/AmazonPay/types.d.ts +211 -211
- package/dist/types/components/AmazonPay/utils.d.ts +52 -52
- package/dist/types/components/ApplePay/ApplePay.d.ts +68 -68
- package/dist/types/components/ApplePay/ApplePayService.d.ts +69 -69
- package/dist/types/components/ApplePay/components/ApplePayButton.d.ts +22 -22
- package/dist/types/components/ApplePay/config.d.ts +1 -1
- package/dist/types/components/ApplePay/defaultProps.d.ts +67 -67
- package/dist/types/components/ApplePay/index.d.ts +1 -1
- package/dist/types/components/ApplePay/payment-request.d.ts +8 -8
- package/dist/types/components/ApplePay/types.d.ts +127 -123
- package/dist/types/components/ApplePay/utils.d.ts +2 -2
- package/dist/types/components/BacsDD/BacsDD.d.ts +19 -19
- package/dist/types/components/BacsDD/components/BacsInput.d.ts +11 -11
- package/dist/types/components/BacsDD/components/BacsResult.d.ts +5 -5
- package/dist/types/components/BacsDD/components/types.d.ts +27 -27
- package/dist/types/components/BacsDD/components/validate.d.ts +6 -6
- package/dist/types/components/BacsDD/index.d.ts +1 -1
- package/dist/types/components/BankTransfer/BankTransfer.d.ts +24 -24
- package/dist/types/components/BankTransfer/components/BankTransferInput/BankTransferInput.d.ts +4 -4
- package/dist/types/components/BankTransfer/components/BankTransferInput/index.d.ts +1 -1
- package/dist/types/components/BankTransfer/components/BankTransferResult/BankTransferResult.d.ts +2 -2
- package/dist/types/components/BankTransfer/components/BankTransferResult/index.d.ts +1 -1
- package/dist/types/components/BankTransfer/index.d.ts +1 -1
- package/dist/types/components/BankTransfer/types.d.ts +15 -15
- package/dist/types/components/BaseElement.d.ts +57 -56
- package/dist/types/components/BcmcMobile/BcmcMobile.d.ts +48 -47
- package/dist/types/components/BcmcMobile/config.d.ts +7 -7
- package/dist/types/components/BcmcMobile/index.d.ts +1 -1
- package/dist/types/components/BillDesk/BillDeskOnline.d.ts +6 -6
- package/dist/types/components/BillDesk/BillDeskWallet.d.ts +6 -6
- package/dist/types/components/BillDesk/index.d.ts +3 -3
- package/dist/types/components/Blik/Blik.d.ts +15 -15
- package/dist/types/components/Blik/components/BlikInput.d.ts +18 -18
- package/dist/types/components/Blik/config.d.ts +15 -15
- package/dist/types/components/Blik/index.d.ts +1 -1
- package/dist/types/components/Boleto/Boleto.d.ts +24 -24
- package/dist/types/components/Boleto/components/BoletoInput/BoletoInput.d.ts +11 -11
- package/dist/types/components/Boleto/components/BoletoInput/index.d.ts +1 -1
- package/dist/types/components/Boleto/components/BoletoInput/utils.d.ts +3 -3
- package/dist/types/components/Boleto/components/BoletoInput/validate.d.ts +2 -2
- package/dist/types/components/Boleto/components/BoletoVoucherResult/BoletoVoucherResult.d.ts +4 -4
- package/dist/types/components/Boleto/components/BoletoVoucherResult/index.d.ts +1 -1
- package/dist/types/components/Boleto/index.d.ts +1 -1
- package/dist/types/components/Boleto/types.d.ts +28 -28
- package/dist/types/components/Card/Bancontact.d.ts +77 -76
- package/dist/types/components/Card/Card.d.ts +92 -91
- package/dist/types/components/Card/components/CardInput/CardInput.d.ts +42 -42
- package/dist/types/components/Card/components/CardInput/components/BrandIcon.d.ts +3 -3
- package/dist/types/components/Card/components/CardInput/components/CVC.d.ts +3 -3
- package/dist/types/components/Card/components/CardInput/components/CVCHint.d.ts +3 -3
- package/dist/types/components/Card/components/CardInput/components/CardFields.d.ts +3 -3
- package/dist/types/components/Card/components/CardInput/components/CardHolderName.d.ts +3 -3
- package/dist/types/components/Card/components/CardInput/components/CardNumber.d.ts +3 -3
- package/dist/types/components/Card/components/CardInput/components/DataSfSpan.d.ts +7 -7
- package/dist/types/components/Card/components/CardInput/components/DualBrandingIcon/DualBrandingIcon.d.ts +5 -5
- package/dist/types/components/Card/components/CardInput/components/ExpirationDate.d.ts +3 -3
- package/dist/types/components/Card/components/CardInput/components/Installments/Installments.d.ts +14 -14
- package/dist/types/components/Card/components/CardInput/components/Installments/index.d.ts +1 -1
- package/dist/types/components/Card/components/CardInput/components/KCPAuthentication.d.ts +3 -3
- package/dist/types/components/Card/components/CardInput/components/StoredCardFields.d.ts +3 -3
- package/dist/types/components/Card/components/CardInput/components/types.d.ts +138 -138
- package/dist/types/components/Card/components/CardInput/defaultProps.d.ts +37 -37
- package/dist/types/components/Card/components/CardInput/defaultStyles.d.ts +6 -6
- package/dist/types/components/Card/components/CardInput/index.d.ts +1 -1
- package/dist/types/components/Card/components/CardInput/types.d.ts +91 -91
- package/dist/types/components/Card/components/CardInput/utils.d.ts +1 -1
- package/dist/types/components/Card/components/CardInput/validate.d.ts +7 -7
- package/dist/types/components/Card/index.d.ts +1 -1
- package/dist/types/components/Card/types.d.ts +139 -139
- package/dist/types/components/Doku/Doku.d.ts +13 -13
- package/dist/types/components/Doku/components/DokuInput/DokuInput.d.ts +2 -2
- package/dist/types/components/Doku/components/DokuInput/index.d.ts +1 -1
- package/dist/types/components/Doku/components/DokuVoucherResult/DokuVoucherResult.d.ts +4 -4
- package/dist/types/components/Doku/components/DokuVoucherResult/index.d.ts +1 -1
- package/dist/types/components/Doku/index.d.ts +1 -1
- package/dist/types/components/Doku/types.d.ts +18 -18
- package/dist/types/components/Donation/Donation.d.ts +26 -26
- package/dist/types/components/Donation/components/CampaignContainer.d.ts +2 -2
- package/dist/types/components/Donation/components/CampaignContent.d.ts +8 -8
- package/dist/types/components/Donation/components/DonationComponent.d.ts +13 -13
- package/dist/types/components/Donation/index.d.ts +1 -1
- package/dist/types/components/Dotpay/index.d.ts +5 -5
- package/dist/types/components/Dragonpay/Dragonpay.d.ts +57 -56
- package/dist/types/components/Dragonpay/components/DragonpayInput/DragonpayInput.d.ts +11 -11
- package/dist/types/components/Dragonpay/components/DragonpayInput/index.d.ts +1 -1
- package/dist/types/components/Dragonpay/components/DragonpayVoucherResult/DragonpayVoucherResult.d.ts +3 -3
- package/dist/types/components/Dragonpay/components/DragonpayVoucherResult/index.d.ts +1 -1
- package/dist/types/components/Dragonpay/index.d.ts +1 -1
- package/dist/types/components/Dragonpay/types.d.ts +44 -44
- package/dist/types/components/Dropin/Dropin.d.ts +94 -45
- package/dist/types/components/Dropin/components/DropinComponent.d.ts +22 -21
- package/dist/types/components/Dropin/components/PaymentMethod/DisableOneClickConfirmation.d.ts +9 -9
- package/dist/types/components/Dropin/components/PaymentMethod/InstantPaymentMethods.d.ts +7 -0
- package/dist/types/components/Dropin/components/PaymentMethod/OrderPaymentMethods.d.ts +8 -8
- package/dist/types/components/Dropin/components/PaymentMethod/PaymentMethodDetails.d.ts +6 -6
- package/dist/types/components/Dropin/components/PaymentMethod/PaymentMethodIcon.d.ts +12 -12
- package/dist/types/components/Dropin/components/PaymentMethod/PaymentMethodItem.d.ts +49 -49
- package/dist/types/components/Dropin/components/PaymentMethod/PaymentMethodList.d.ts +32 -30
- package/dist/types/components/Dropin/components/PaymentMethod/Surcharge.d.ts +8 -8
- package/dist/types/components/Dropin/components/status/Error.d.ts +5 -5
- package/dist/types/components/Dropin/components/status/Success.d.ts +5 -5
- package/dist/types/components/Dropin/components/status/index.d.ts +10 -10
- package/dist/types/components/Dropin/components/utils.d.ts +7 -7
- package/dist/types/components/Dropin/defaultProps.d.ts +21 -20
- package/dist/types/components/Dropin/elements/createElements.d.ts +9 -9
- package/dist/types/components/Dropin/elements/createInstantPaymentElements.d.ts +10 -0
- package/dist/types/components/Dropin/elements/createStoredElements.d.ts +9 -9
- package/dist/types/components/Dropin/elements/filters.d.ts +4 -4
- package/dist/types/components/Dropin/elements/index.d.ts +2 -2
- package/dist/types/components/Dropin/index.d.ts +1 -1
- package/dist/types/components/Dropin/types.d.ts +67 -58
- package/dist/types/components/EPS/index.d.ts +6 -6
- package/dist/types/components/Econtext/Econtext.d.ts +23 -23
- package/dist/types/components/Econtext/components/EcontextInput/EcontextInput.d.ts +14 -14
- package/dist/types/components/Econtext/components/EcontextInput/index.d.ts +1 -1
- package/dist/types/components/Econtext/components/EcontextVoucherResult/EcontextVoucherResult.d.ts +4 -4
- package/dist/types/components/Econtext/components/EcontextVoucherResult/index.d.ts +1 -1
- package/dist/types/components/Econtext/index.d.ts +1 -1
- package/dist/types/components/Econtext/types.d.ts +17 -17
- package/dist/types/components/Econtext/validate.d.ts +2 -2
- package/dist/types/components/Entercash/index.d.ts +5 -5
- package/dist/types/components/EventEmitter.d.ts +7 -7
- package/dist/types/components/FacilyPay/FacilyPay10x.d.ts +5 -5
- package/dist/types/components/FacilyPay/FacilyPay12x.d.ts +5 -5
- package/dist/types/components/FacilyPay/FacilyPay3x.d.ts +5 -5
- package/dist/types/components/FacilyPay/FacilyPay4x.d.ts +5 -5
- package/dist/types/components/FacilyPay/FacilyPay6x.d.ts +5 -5
- package/dist/types/components/FacilyPay/config.d.ts +1 -1
- package/dist/types/components/FacilyPay/index.d.ts +6 -6
- package/dist/types/components/Giftcard/Giftcard.d.ts +29 -29
- package/dist/types/components/Giftcard/components/GiftcardComponent.d.ts +43 -43
- package/dist/types/components/Giftcard/components/GiftcardResult.d.ts +10 -10
- package/dist/types/components/Giftcard/index.d.ts +1 -1
- package/dist/types/components/Giftcard/validationRules.d.ts +7 -7
- package/dist/types/components/Giropay/Giropay.d.ts +17 -17
- package/dist/types/components/Giropay/index.d.ts +1 -1
- package/dist/types/components/GooglePay/GooglePay.d.ts +75 -75
- package/dist/types/components/GooglePay/GooglePayService.d.ts +25 -25
- package/dist/types/components/GooglePay/components/GooglePayButton.d.ts +24 -24
- package/dist/types/components/GooglePay/config.d.ts +7 -7
- package/dist/types/components/GooglePay/defaultProps.d.ts +35 -35
- package/dist/types/components/GooglePay/index.d.ts +1 -1
- package/dist/types/components/GooglePay/requests.d.ts +21 -21
- package/dist/types/components/GooglePay/types.d.ts +112 -112
- package/dist/types/components/GooglePay/utils.d.ts +7 -7
- package/dist/types/components/Ideal/index.d.ts +5 -5
- package/dist/types/components/Klarna/KlarnaPayments.d.ts +22 -22
- package/dist/types/components/Klarna/components/KlarnaContainer/KlarnaContainer.d.ts +1 -1
- package/dist/types/components/Klarna/components/KlarnaWidget/KlarnaWidget.d.ts +4 -4
- package/dist/types/components/Klarna/constants.d.ts +1 -1
- package/dist/types/components/Klarna/index.d.ts +1 -1
- package/dist/types/components/Klarna/types.d.ts +40 -40
- package/dist/types/components/MBWay/MBWay.d.ts +14 -14
- package/dist/types/components/MBWay/components/MBWayAwait/config.d.ts +15 -15
- package/dist/types/components/MBWay/components/MBWayInput/MBWayInput.d.ts +10 -10
- package/dist/types/components/MBWay/components/MBWayInput/index.d.ts +1 -1
- package/dist/types/components/MBWay/components/MBWayInput/types.d.ts +17 -17
- package/dist/types/components/MBWay/index.d.ts +1 -1
- package/dist/types/components/MolPayEBanking/MolPayEBankingMY.d.ts +5 -5
- package/dist/types/components/MolPayEBanking/MolPayEBankingTH.d.ts +5 -5
- package/dist/types/components/MolPayEBanking/MolPayEBankingVN.d.ts +5 -5
- package/dist/types/components/MolPayEBanking/index.d.ts +4 -4
- package/dist/types/components/Multibanco/Multibanco.d.ts +21 -21
- package/dist/types/components/Multibanco/components/MultibancoVoucherResult/MultibancoVoucherResult.d.ts +4 -4
- package/dist/types/components/Multibanco/components/MultibancoVoucherResult/index.d.ts +1 -1
- package/dist/types/components/Multibanco/index.d.ts +1 -1
- package/dist/types/components/Multibanco/types.d.ts +11 -11
- package/dist/types/components/OpenBankingUK/index.d.ts +5 -5
- package/dist/types/components/Oxxo/Oxxo.d.ts +18 -18
- package/dist/types/components/Oxxo/components/OxxoVoucherResult/OxxoVoucherResult.d.ts +5 -5
- package/dist/types/components/Oxxo/components/OxxoVoucherResult/index.d.ts +1 -1
- package/dist/types/components/Oxxo/index.d.ts +1 -1
- package/dist/types/components/Oxxo/types.d.ts +11 -11
- package/dist/types/components/PayPal/Paypal.d.ts +42 -41
- package/dist/types/components/PayPal/components/PaypalButtons.d.ts +3 -3
- package/dist/types/components/PayPal/components/PaypalComponent.d.ts +3 -3
- package/dist/types/components/PayPal/config.d.ts +7 -7
- package/dist/types/components/PayPal/constants.d.ts +7 -7
- package/dist/types/components/PayPal/defaultProps.d.ts +3 -3
- package/dist/types/components/PayPal/index.d.ts +1 -1
- package/dist/types/components/PayPal/types.d.ts +155 -150
- package/dist/types/components/PayPal/utils.d.ts +15 -15
- package/dist/types/components/PayU/PayuCashcard.d.ts +6 -6
- package/dist/types/components/PayU/PayuNetBanking.d.ts +6 -6
- package/dist/types/components/PayU/index.d.ts +3 -3
- package/dist/types/components/PersonalDetails/PersonalDetails.d.ts +8 -8
- package/dist/types/components/PersonalDetails/index.d.ts +1 -1
- package/dist/types/components/Pix/Pix.d.ts +73 -72
- package/dist/types/components/Pix/PixInput/PixInput.d.ts +9 -9
- package/dist/types/components/Pix/PixInput/index.d.ts +1 -1
- package/dist/types/components/Pix/PixInput/utils.d.ts +3 -3
- package/dist/types/components/Pix/PixInput/validate.d.ts +2 -2
- package/dist/types/components/Pix/index.d.ts +1 -1
- package/dist/types/components/Pix/types.d.ts +19 -19
- package/dist/types/components/QiwiWallet/QiwiWallet.d.ts +25 -25
- package/dist/types/components/QiwiWallet/countries.d.ts +6 -6
- package/dist/types/components/QiwiWallet/index.d.ts +1 -1
- package/dist/types/components/QiwiWallet/utils.d.ts +12 -12
- package/dist/types/components/RatePay/RatePay.d.ts +5 -5
- package/dist/types/components/RatePay/config.d.ts +1 -1
- package/dist/types/components/RatePay/index.d.ts +1 -1
- package/dist/types/components/Redirect/Redirect.d.ts +28 -28
- package/dist/types/components/Redirect/components/RedirectShopper/RedirectShopper.d.ts +21 -21
- package/dist/types/components/Redirect/components/RedirectShopper/index.d.ts +1 -1
- package/dist/types/components/Redirect/index.d.ts +1 -1
- package/dist/types/components/SecuredFields/SecuredFields.d.ts +31 -31
- package/dist/types/components/SecuredFields/SecuredFieldsInput/SecuredFieldsInput.d.ts +14 -14
- package/dist/types/components/SecuredFields/SecuredFieldsInput/index.d.ts +1 -1
- package/dist/types/components/SecuredFields/index.d.ts +1 -1
- package/dist/types/components/Sepa/Sepa.d.ts +23 -23
- package/dist/types/components/Sepa/components/IbanInput/IbanInput.d.ts +43 -43
- package/dist/types/components/Sepa/components/IbanInput/index.d.ts +1 -1
- package/dist/types/components/Sepa/components/IbanInput/specifications.d.ts +1 -1
- package/dist/types/components/Sepa/components/IbanInput/utils.d.ts +13 -13
- package/dist/types/components/Sepa/components/IbanInput/validate.d.ts +15 -15
- package/dist/types/components/Sepa/index.d.ts +1 -1
- package/dist/types/components/Sepa/types.d.ts +7 -7
- package/dist/types/components/Swish/Swish.d.ts +48 -47
- package/dist/types/components/Swish/index.d.ts +1 -1
- package/dist/types/components/ThreeDS2/ThreeDS2Challenge.d.ts +24 -24
- package/dist/types/components/ThreeDS2/ThreeDS2DeviceFingerprint.d.ts +26 -26
- package/dist/types/components/ThreeDS2/callSubmit3DS2Fingerprint.d.ts +6 -6
- package/dist/types/components/ThreeDS2/components/Challenge/DoChallenge3DS2.d.ts +20 -20
- package/dist/types/components/ThreeDS2/components/Challenge/PrepareChallenge3DS2.d.ts +15 -15
- package/dist/types/components/ThreeDS2/components/Challenge/index.d.ts +1 -1
- package/dist/types/components/ThreeDS2/components/Challenge/types.d.ts +18 -18
- package/dist/types/components/ThreeDS2/components/DeviceFingerprint/DoFingerprint3DS2.d.ts +28 -28
- package/dist/types/components/ThreeDS2/components/DeviceFingerprint/PrepareFingerprint3DS2.d.ts +19 -19
- package/dist/types/components/ThreeDS2/components/DeviceFingerprint/index.d.ts +1 -1
- package/dist/types/components/ThreeDS2/components/DeviceFingerprint/types.d.ts +18 -18
- package/dist/types/components/ThreeDS2/components/Form/ThreeDS2Form.d.ts +20 -20
- package/dist/types/components/ThreeDS2/components/Form/index.d.ts +1 -1
- package/dist/types/components/ThreeDS2/components/utils.d.ts +94 -94
- package/dist/types/components/ThreeDS2/config.d.ts +31 -31
- package/dist/types/components/ThreeDS2/index.d.ts +3 -3
- package/dist/types/components/ThreeDS2/types.d.ts +43 -43
- package/dist/types/components/Twint/Twint.d.ts +23 -23
- package/dist/types/components/Twint/index.d.ts +1 -1
- package/dist/types/components/UIElement.d.ts +61 -61
- package/dist/types/components/Vipps/Vipps.d.ts +10 -10
- package/dist/types/components/Vipps/index.d.ts +1 -1
- package/dist/types/components/WeChat/WeChat.d.ts +48 -47
- package/dist/types/components/WeChat/config.d.ts +7 -7
- package/dist/types/components/WeChat/index.d.ts +1 -1
- package/dist/types/components/helpers/IssuerListContainer.d.ts +40 -40
- package/dist/types/components/helpers/OpenInvoiceContainer/OpenInvoiceContainer.d.ts +32 -32
- package/dist/types/components/helpers/OpenInvoiceContainer/index.d.ts +1 -1
- package/dist/types/components/helpers/QRLoaderContainer.d.ts +36 -36
- package/dist/types/components/index.d.ts +166 -166
- package/dist/types/components/internal/Address/Address.d.ts +14 -14
- package/dist/types/components/internal/Address/Specifications.d.ts +43 -43
- package/dist/types/components/internal/Address/components/CountryField.d.ts +3 -3
- package/dist/types/components/internal/Address/components/FieldContainer.d.ts +4 -4
- package/dist/types/components/internal/Address/components/ReadOnlyAddress.d.ts +4 -4
- package/dist/types/components/internal/Address/components/StateField.d.ts +3 -3
- package/dist/types/components/internal/Address/constants.d.ts +4 -4
- package/dist/types/components/internal/Address/index.d.ts +1 -1
- package/dist/types/components/internal/Address/types.d.ts +84 -84
- package/dist/types/components/internal/Address/validate.d.ts +2 -2
- package/dist/types/components/internal/Alert/Alert.d.ts +11 -11
- package/dist/types/components/internal/Alert/index.d.ts +1 -1
- package/dist/types/components/internal/Await/Await.d.ts +18 -18
- package/dist/types/components/internal/Await/index.d.ts +1 -1
- package/dist/types/components/internal/Await/types.d.ts +29 -29
- package/dist/types/components/internal/Button/Button.d.ts +29 -29
- package/dist/types/components/internal/Button/index.d.ts +1 -1
- package/dist/types/components/internal/Button/types.d.ts +19 -19
- package/dist/types/components/internal/ButtonGroup/ButtonGroup.d.ts +8 -8
- package/dist/types/components/internal/ButtonGroup/index.d.ts +1 -1
- package/dist/types/components/internal/CompanyDetails/CompanyDetails.d.ts +18 -18
- package/dist/types/components/internal/CompanyDetails/ReadOnlyCompanyDetails.d.ts +5 -5
- package/dist/types/components/internal/CompanyDetails/index.d.ts +1 -1
- package/dist/types/components/internal/CompanyDetails/types.d.ts +21 -21
- package/dist/types/components/internal/CompanyDetails/utils.d.ts +6 -6
- package/dist/types/components/internal/CompanyDetails/validate.d.ts +6 -6
- package/dist/types/components/internal/ContentSeparator/ContentSeparator.d.ts +7 -0
- package/dist/types/components/internal/{IssuerList/ContentSeparator → ContentSeparator}/index.d.ts +1 -1
- package/dist/types/components/internal/Countdown/index.d.ts +30 -30
- package/dist/types/components/internal/Countdown/utils.d.ts +31 -31
- package/dist/types/components/internal/FormFields/Checkbox/Checkbox.d.ts +20 -20
- package/dist/types/components/internal/FormFields/Checkbox/index.d.ts +1 -1
- package/dist/types/components/internal/FormFields/ConsentCheckbox/ConsentCheckbox.d.ts +7 -7
- package/dist/types/components/internal/FormFields/ConsentCheckbox/index.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Field/Field.d.ts +32 -32
- package/dist/types/components/internal/FormFields/Field/index.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Field/types.d.ts +28 -28
- package/dist/types/components/internal/FormFields/Fieldset/Fieldset.d.ts +10 -10
- package/dist/types/components/internal/FormFields/Fieldset/index.d.ts +1 -1
- package/dist/types/components/internal/FormFields/InputBase.d.ts +9 -9
- package/dist/types/components/internal/FormFields/InputDate/InputDate.d.ts +6 -6
- package/dist/types/components/internal/FormFields/InputDate/index.d.ts +1 -1
- package/dist/types/components/internal/FormFields/InputDate/utils.d.ts +21 -21
- package/dist/types/components/internal/FormFields/InputEmail.d.ts +2 -2
- package/dist/types/components/internal/FormFields/InputTelephone.d.ts +2 -2
- package/dist/types/components/internal/FormFields/InputText.d.ts +2 -2
- package/dist/types/components/internal/FormFields/RadioGroup/RadioGroup.d.ts +11 -11
- package/dist/types/components/internal/FormFields/RadioGroup/index.d.ts +1 -1
- package/dist/types/components/internal/FormFields/RadioGroup/types.d.ts +16 -16
- package/dist/types/components/internal/FormFields/Select/Select.d.ts +15 -15
- package/dist/types/components/internal/FormFields/Select/components/SelectButton.d.ts +4 -4
- package/dist/types/components/internal/FormFields/Select/components/SelectList.d.ts +4 -4
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +4 -4
- package/dist/types/components/internal/FormFields/Select/constants.d.ts +8 -8
- package/dist/types/components/internal/FormFields/Select/index.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts +54 -54
- package/dist/types/components/internal/FormFields/index.d.ts +4 -4
- package/dist/types/components/internal/FormFields/utils.d.ts +2 -2
- package/dist/types/components/internal/IFrame/Iframe.d.ts +41 -41
- package/dist/types/components/internal/IFrame/index.d.ts +1 -1
- package/dist/types/components/internal/Icon/Icon.d.ts +7 -7
- package/dist/types/components/internal/Icon/index.d.ts +1 -1
- package/dist/types/components/internal/Img/Img.d.ts +4 -4
- package/dist/types/components/internal/Img/index.d.ts +1 -1
- package/dist/types/components/internal/Img/types.d.ts +16 -16
- package/dist/types/components/internal/IssuerList/IssuerButtonGroup/IssuerButton.d.ts +11 -11
- package/dist/types/components/internal/IssuerList/IssuerButtonGroup/IssuerButtonGroup.d.ts +10 -10
- package/dist/types/components/internal/IssuerList/IssuerButtonGroup/index.d.ts +1 -1
- package/dist/types/components/internal/IssuerList/IssuerList.d.ts +10 -10
- package/dist/types/components/internal/IssuerList/index.d.ts +1 -1
- package/dist/types/components/internal/IssuerList/types.d.ts +16 -16
- package/dist/types/components/internal/LoadingWrapper/LoadingWrapper.d.ts +7 -7
- package/dist/types/components/internal/LoadingWrapper/index.d.ts +1 -1
- package/dist/types/components/internal/OpenInvoice/OpenInvoice.d.ts +4 -4
- package/dist/types/components/internal/OpenInvoice/index.d.ts +1 -1
- package/dist/types/components/internal/OpenInvoice/types.d.ts +57 -57
- package/dist/types/components/internal/OpenInvoice/utils.d.ts +4 -4
- package/dist/types/components/internal/PayButton/PayButton.d.ts +16 -16
- package/dist/types/components/internal/PayButton/index.d.ts +1 -1
- package/dist/types/components/internal/PersonalDetails/PersonalDetails.d.ts +15 -15
- package/dist/types/components/internal/PersonalDetails/ReadOnlyPersonalDetails.d.ts +5 -5
- package/dist/types/components/internal/PersonalDetails/index.d.ts +1 -1
- package/dist/types/components/internal/PersonalDetails/types.d.ts +42 -42
- package/dist/types/components/internal/PersonalDetails/utils.d.ts +10 -10
- package/dist/types/components/internal/PersonalDetails/validate.d.ts +2 -2
- package/dist/types/components/internal/PhoneInput/PhoneInput.d.ts +9 -9
- package/dist/types/components/internal/PhoneInput/index.d.ts +1 -1
- package/dist/types/components/internal/PhoneInput/types.d.ts +29 -29
- package/dist/types/components/internal/PhoneInput/validate.d.ts +5 -5
- package/dist/types/components/internal/QRLoader/QRLoader.d.ts +33 -33
- package/dist/types/components/internal/QRLoader/index.d.ts +1 -1
- package/dist/types/components/internal/QRLoader/types.d.ts +34 -34
- package/dist/types/components/internal/RedirectButton/RedirectButton.d.ts +9 -9
- package/dist/types/components/internal/RedirectButton/index.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/SecuredFieldsProvider.d.ts +93 -93
- package/dist/types/components/internal/SecuredFields/SecuredFieldsProviderHandlers.d.ts +48 -48
- package/dist/types/components/internal/SecuredFields/binLookup/createCardVariantSwitcher.d.ts +10 -10
- package/dist/types/components/internal/SecuredFields/binLookup/extensions.d.ts +15 -15
- package/dist/types/components/internal/SecuredFields/binLookup/sortBinLookupBrands.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/binLookup/triggerBinLookUp.d.ts +3 -3
- package/dist/types/components/internal/SecuredFields/defaultProps.d.ts +104 -104
- package/dist/types/components/internal/SecuredFields/lib/configuration/configureCallbacks.d.ts +2 -2
- package/dist/types/components/internal/SecuredFields/lib/configuration/constants.d.ts +29 -29
- package/dist/types/components/internal/SecuredFields/lib/configuration/handleConfig.d.ts +7 -7
- package/dist/types/components/internal/SecuredFields/lib/core/AbstractCSF.d.ts +42 -42
- package/dist/types/components/internal/SecuredFields/lib/core/AbstractSecuredField.d.ts +97 -97
- package/dist/types/components/internal/SecuredFields/lib/core/CSF.d.ts +12 -12
- package/dist/types/components/internal/SecuredFields/lib/core/SecuredField.d.ts +39 -39
- package/dist/types/components/internal/SecuredFields/lib/core/createSecuredFields.d.ts +8 -8
- package/dist/types/components/internal/SecuredFields/lib/core/destroySecuredFields.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/lib/core/handleEncryption.d.ts +2 -2
- package/dist/types/components/internal/SecuredFields/lib/core/handleValidation.d.ts +2 -2
- package/dist/types/components/internal/SecuredFields/lib/core/initCSF.d.ts +3 -3
- package/dist/types/components/internal/SecuredFields/lib/core/utils/callbackUtils.d.ts +12 -12
- package/dist/types/components/internal/SecuredFields/lib/core/utils/getCardGroupTypes.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/lib/core/utils/handleBinValue.d.ts +2 -2
- package/dist/types/components/internal/SecuredFields/lib/core/utils/handleBrandFromBinLookup.d.ts +5 -5
- package/dist/types/components/internal/SecuredFields/lib/core/utils/iframes/handleFocus.d.ts +2 -2
- package/dist/types/components/internal/SecuredFields/lib/core/utils/iframes/handleIframeConfigFeedback.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/lib/core/utils/iframes/postMessageToAllIframes.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/lib/core/utils/iframes/postMessageToIframe.d.ts +2 -2
- package/dist/types/components/internal/SecuredFields/lib/core/utils/iframes/postMessageValidation.d.ts +3 -3
- package/dist/types/components/internal/SecuredFields/lib/core/utils/iframes/setFocusOnFrame.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/lib/core/utils/init/processAriaConfig.d.ts +12 -12
- package/dist/types/components/internal/SecuredFields/lib/core/utils/init/processPlaceholders.d.ts +5 -5
- package/dist/types/components/internal/SecuredFields/lib/core/utils/isConfigured.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/lib/core/utils/processAutoComplete.d.ts +2 -2
- package/dist/types/components/internal/SecuredFields/lib/core/utils/processBrand.d.ts +8 -8
- package/dist/types/components/internal/SecuredFields/lib/core/utils/processErrors.d.ts +5 -5
- package/dist/types/components/internal/SecuredFields/lib/core/utils/registerAdditionalField.d.ts +9 -9
- package/dist/types/components/internal/SecuredFields/lib/core/utils/tabbing/handleTab.d.ts +7 -7
- package/dist/types/components/internal/SecuredFields/lib/core/utils/tabbing/tabScenarioACH.d.ts +2 -2
- package/dist/types/components/internal/SecuredFields/lib/core/utils/tabbing/tabScenarioCreditCard.d.ts +2 -2
- package/dist/types/components/internal/SecuredFields/lib/core/utils/tabbing/tabScenarioGiftCard.d.ts +2 -2
- package/dist/types/components/internal/SecuredFields/lib/core/utils/tabbing/tabScenarioKCP.d.ts +2 -2
- package/dist/types/components/internal/SecuredFields/lib/core/utils/validateForm.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/lib/index.d.ts +2 -2
- package/dist/types/components/internal/SecuredFields/lib/types.d.ts +262 -262
- package/dist/types/components/internal/SecuredFields/lib/ui/domUtils.d.ts +2 -2
- package/dist/types/components/internal/SecuredFields/lib/ui/encryptedElements.d.ts +2 -2
- package/dist/types/components/internal/SecuredFields/lib/utilities/cardType.d.ts +15 -15
- package/dist/types/components/internal/SecuredFields/lib/utilities/commonUtils.d.ts +39 -39
- package/dist/types/components/internal/SecuredFields/lib/utilities/createIframe.d.ts +6 -6
- package/dist/types/components/internal/SecuredFields/lib/utilities/dom.d.ts +6 -6
- package/dist/types/components/internal/SecuredFields/lib/utilities/logger.d.ts +17 -17
- package/dist/types/components/internal/SecuredFields/lib/utilities/userAgent.d.ts +8 -8
- package/dist/types/components/internal/SecuredFields/utils.d.ts +57 -57
- package/dist/types/components/internal/SendCopyToEmail/SendCopyToEmail.d.ts +2 -2
- package/dist/types/components/internal/SendCopyToEmail/index.d.ts +1 -1
- package/dist/types/components/internal/SocialSecurityNumberBrazil/BrazilPersonalDetail.d.ts +2 -2
- package/dist/types/components/internal/SocialSecurityNumberBrazil/SocialSecurityNumberBrazil.d.ts +8 -8
- package/dist/types/components/internal/SocialSecurityNumberBrazil/constants.d.ts +1 -1
- package/dist/types/components/internal/SocialSecurityNumberBrazil/utils.d.ts +4 -4
- package/dist/types/components/internal/SocialSecurityNumberBrazil/validate.d.ts +1 -1
- package/dist/types/components/internal/Spinner/Spinner.d.ts +18 -18
- package/dist/types/components/internal/Spinner/index.d.ts +1 -1
- package/dist/types/components/internal/StoreDetails/StoreDetails.d.ts +9 -9
- package/dist/types/components/internal/StoreDetails/index.d.ts +1 -1
- package/dist/types/components/internal/Voucher/Voucher.d.ts +4 -4
- package/dist/types/components/internal/Voucher/index.d.ts +1 -1
- package/dist/types/components/internal/Voucher/types.d.ts +34 -34
- package/dist/types/components/types.d.ts +49 -48
- package/dist/types/components/utils.d.ts +3 -3
- package/dist/types/core/Analytics/Analytics.d.ts +13 -13
- package/dist/types/core/Analytics/EventsQueue.d.ts +7 -7
- package/dist/types/core/Analytics/index.d.ts +1 -1
- package/dist/types/core/Analytics/types.d.ts +32 -32
- package/dist/types/core/CheckoutSession/CheckoutSession.d.ts +47 -47
- package/dist/types/core/CheckoutSession/index.d.ts +1 -1
- package/dist/types/core/CheckoutSession/utils.d.ts +2 -2
- package/dist/types/core/Context/CoreContext.d.ts +5 -5
- package/dist/types/core/Context/CoreProvider.d.ts +18 -18
- package/dist/types/core/Context/useCoreContext.d.ts +5 -5
- package/dist/types/core/Environment/Environment.d.ts +3 -3
- package/dist/types/core/Environment/index.d.ts +1 -1
- package/dist/types/core/Errors/AdyenCheckoutError.d.ts +14 -14
- package/dist/types/core/Errors/constants.d.ts +29 -29
- package/dist/types/core/Errors/utils.d.ts +15 -15
- package/dist/types/core/ProcessResponse/PaymentAction/PaymentAction.d.ts +3 -3
- package/dist/types/core/ProcessResponse/PaymentAction/actionTypes.d.ts +13 -13
- package/dist/types/core/ProcessResponse/PaymentAction/index.d.ts +1 -1
- package/dist/types/core/ProcessResponse/PaymentMethodsResponse/PaymentMethodsResponse.d.ts +9 -9
- package/dist/types/core/ProcessResponse/PaymentMethodsResponse/filters.d.ts +4 -4
- package/dist/types/core/ProcessResponse/PaymentMethodsResponse/index.d.ts +1 -1
- package/dist/types/core/ProcessResponse/PaymentMethodsResponse/types.d.ts +13 -13
- package/dist/types/core/ProcessResponse/PaymentMethodsResponse/utils.d.ts +10 -10
- package/dist/types/core/ProcessResponse/index.d.ts +1 -1
- package/dist/types/core/ProcessResponse/process-response.d.ts +8 -8
- package/dist/types/core/RiskModule/RiskModule.d.ts +35 -35
- package/dist/types/core/RiskModule/components/DeviceFingerprint/DeviceFingerprint.d.ts +16 -16
- package/dist/types/core/RiskModule/components/DeviceFingerprint/GetDeviceFingerprint.d.ts +14 -14
- package/dist/types/core/RiskModule/components/DeviceFingerprint/index.d.ts +1 -1
- package/dist/types/core/RiskModule/components/DeviceFingerprint/types.d.ts +15 -15
- package/dist/types/core/RiskModule/components/DeviceFingerprint/utils.d.ts +6 -6
- package/dist/types/core/RiskModule/constants.d.ts +31 -31
- package/dist/types/core/RiskModule/index.d.ts +1 -1
- package/dist/types/core/Services/analytics/collect-id.d.ts +11 -11
- package/dist/types/core/Services/analytics/log-event.d.ts +7 -7
- package/dist/types/core/Services/analytics/post-telemetry.d.ts +6 -6
- package/dist/types/core/Services/fetch.d.ts +2 -2
- package/dist/types/core/Services/get-dataset.d.ts +1 -1
- package/dist/types/core/Services/http.d.ts +14 -14
- package/dist/types/core/Services/order-status.d.ts +5 -5
- package/dist/types/core/Services/payment-status.d.ts +8 -8
- package/dist/types/core/Services/sessions/check-balance.d.ts +6 -6
- package/dist/types/core/Services/sessions/constants.d.ts +1 -1
- package/dist/types/core/Services/sessions/create-order.d.ts +6 -6
- package/dist/types/core/Services/sessions/make-payment.d.ts +6 -6
- package/dist/types/core/Services/sessions/setup-session.d.ts +6 -6
- package/dist/types/core/Services/sessions/submit-details.d.ts +6 -6
- package/dist/types/core/config.d.ts +10 -10
- package/dist/types/core/core.d.ts +58 -58
- package/dist/types/core/index.d.ts +1 -1
- package/dist/types/core/types.d.ts +60 -60
- package/dist/types/core/utils.d.ts +6 -6
- package/dist/types/index.d.ts +3 -4
- package/dist/types/language/Language.d.ts +30 -30
- package/dist/types/language/config.d.ts +221 -215
- package/dist/types/language/index.d.ts +1 -1
- package/dist/types/language/locales/index.d.ts +10735 -10435
- package/dist/types/language/types.d.ts +7 -7
- package/dist/types/language/utils.d.ts +38 -38
- package/dist/types/types/index.d.ts +214 -210
- package/dist/types/utils/Script.d.ts +24 -24
- package/dist/types/utils/Storage.d.ts +10 -10
- package/dist/types/utils/Validator/Validator.d.ts +59 -59
- package/dist/types/utils/Validator/defaultRules.d.ts +10 -10
- package/dist/types/utils/Validator/index.d.ts +1 -1
- package/dist/types/utils/amount-util.d.ts +1 -1
- package/dist/types/utils/base64.d.ts +1 -1
- package/dist/types/utils/browserInfo.d.ts +13 -13
- package/dist/types/utils/clipboard.d.ts +2 -2
- package/dist/types/utils/constants/currency-codes.d.ts +170 -170
- package/dist/types/utils/constants/currency-decimals.d.ts +28 -28
- package/dist/types/utils/get-image.d.ts +13 -13
- package/dist/types/utils/get-issuer-image.d.ts +2 -2
- package/dist/types/utils/get-process-message-handler.d.ts +11 -11
- package/dist/types/utils/getOrigin.d.ts +11 -11
- package/dist/types/utils/getProp.d.ts +14 -14
- package/dist/types/utils/hasOwnProperty.d.ts +1 -1
- package/dist/types/utils/idGenerator.d.ts +1 -1
- package/dist/types/utils/promiseTimeout.d.ts +12 -12
- package/dist/types/utils/regex.d.ts +8 -8
- package/dist/types/utils/useForm/index.d.ts +1 -1
- package/dist/types/utils/useForm/reducer.d.ts +14 -14
- package/dist/types/utils/useForm/types.d.ts +14 -14
- package/dist/types/utils/useForm/useForm.d.ts +23 -23
- package/dist/types/utils/uuid.d.ts +1 -1
- package/dist/types/utils/wait.d.ts +2 -2
- package/package.json +21 -6
- package/dist/types/components/internal/IssuerList/ContentSeparator/ContentSeparator.d.ts +0 -4
- package/dist/types/polyfills.d.ts +0 -6
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { CheckoutDetailsRequest, PayloadJSON, UpdateAmazonCheckoutSessionRequest } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Calls the Sign String endpoint to the PayloadJSON string.
|
|
4
|
-
* @param loadingContext - Loading context to be used in the call
|
|
5
|
-
* @param clientKey - Key to be used as a public token
|
|
6
|
-
* @param payloadJSON - Object to be signed
|
|
7
|
-
* @returns A promise containing the response of the call
|
|
8
|
-
*/
|
|
9
|
-
export declare function getAmazonSignature(loadingContext: string, clientKey: string, payloadJSON: PayloadJSON): Promise<any>;
|
|
10
|
-
/**
|
|
11
|
-
* Calls the getCheckoutDetails details to either get the shopper details or the decline flow URL.
|
|
12
|
-
* @param loadingContext - Loading context to be used in the call
|
|
13
|
-
* @param clientKey - Key to be used as a public token
|
|
14
|
-
* @param request - Object to sent
|
|
15
|
-
* @returns A promise containing the response of the call
|
|
16
|
-
*/
|
|
17
|
-
export declare function getCheckoutDetails(loadingContext: string, clientKey: string, request: CheckoutDetailsRequest): Promise<any>;
|
|
18
|
-
/**
|
|
19
|
-
* Calls the Update Checkout Session endpoint to create an order.
|
|
20
|
-
* @param loadingContext - Loading context to be used in the call
|
|
21
|
-
* @param clientKey - Key to be used as a public token
|
|
22
|
-
* @param data -
|
|
23
|
-
* @returns A promise containing the response of the call
|
|
24
|
-
*/
|
|
25
|
-
export declare function updateAmazonCheckoutSession(loadingContext: string, clientKey: string, data: UpdateAmazonCheckoutSessionRequest): Promise<any>;
|
|
1
|
+
import { CheckoutDetailsRequest, PayloadJSON, UpdateAmazonCheckoutSessionRequest } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Calls the Sign String endpoint to the PayloadJSON string.
|
|
4
|
+
* @param loadingContext - Loading context to be used in the call
|
|
5
|
+
* @param clientKey - Key to be used as a public token
|
|
6
|
+
* @param payloadJSON - Object to be signed
|
|
7
|
+
* @returns A promise containing the response of the call
|
|
8
|
+
*/
|
|
9
|
+
export declare function getAmazonSignature(loadingContext: string, clientKey: string, payloadJSON: PayloadJSON): Promise<any>;
|
|
10
|
+
/**
|
|
11
|
+
* Calls the getCheckoutDetails details to either get the shopper details or the decline flow URL.
|
|
12
|
+
* @param loadingContext - Loading context to be used in the call
|
|
13
|
+
* @param clientKey - Key to be used as a public token
|
|
14
|
+
* @param request - Object to sent
|
|
15
|
+
* @returns A promise containing the response of the call
|
|
16
|
+
*/
|
|
17
|
+
export declare function getCheckoutDetails(loadingContext: string, clientKey: string, request: CheckoutDetailsRequest): Promise<any>;
|
|
18
|
+
/**
|
|
19
|
+
* Calls the Update Checkout Session endpoint to create an order.
|
|
20
|
+
* @param loadingContext - Loading context to be used in the call
|
|
21
|
+
* @param clientKey - Key to be used as a public token
|
|
22
|
+
* @param data -
|
|
23
|
+
* @returns A promise containing the response of the call
|
|
24
|
+
*/
|
|
25
|
+
export declare function updateAmazonCheckoutSession(loadingContext: string, clientKey: string, data: UpdateAmazonCheckoutSessionRequest): Promise<any>;
|
|
@@ -1,211 +1,211 @@
|
|
|
1
|
-
import Language from '../../language/Language';
|
|
2
|
-
import { SUPPORTED_LOCALES_EU, SUPPORTED_LOCALES_US } from './config';
|
|
3
|
-
import { BrowserInfo, PaymentAmount } from '../../types';
|
|
4
|
-
import UIElement from '../UIElement';
|
|
5
|
-
declare global {
|
|
6
|
-
interface Window {
|
|
7
|
-
amazon: object;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
declare type ButtonColor = 'Gold' | 'LightGray' | 'DarkGray';
|
|
11
|
-
declare type Placement = 'Home' | 'Product' | 'Cart' | 'Checkout' | 'Other';
|
|
12
|
-
declare type ProductType = 'PayOnly' | 'PayAndShip';
|
|
13
|
-
export declare type Currency = 'EUR' | 'GBP' | 'USD';
|
|
14
|
-
export declare type Region = 'EU' | 'UK' | 'US';
|
|
15
|
-
export declare type SupportedLocale = typeof SUPPORTED_LOCALES_EU[number] | typeof SUPPORTED_LOCALES_US[number];
|
|
16
|
-
export interface AmazonPayConfiguration {
|
|
17
|
-
merchantId?: string;
|
|
18
|
-
publicKeyId?: string;
|
|
19
|
-
region?: Region;
|
|
20
|
-
storeId?: string;
|
|
21
|
-
}
|
|
22
|
-
export interface AmazonPayElementProps {
|
|
23
|
-
addressDetails?: AddressDetails;
|
|
24
|
-
amazonPayToken?: string;
|
|
25
|
-
amazonCheckoutSessionId?: string;
|
|
26
|
-
amount?: PaymentAmount;
|
|
27
|
-
buttonColor?: ButtonColor;
|
|
28
|
-
cancelUrl?: string;
|
|
29
|
-
clientKey?: string;
|
|
30
|
-
configuration?: AmazonPayConfiguration;
|
|
31
|
-
currency?: Currency;
|
|
32
|
-
deliverySpecifications?: DeliverySpecifications;
|
|
33
|
-
design?: string;
|
|
34
|
-
environment?: string;
|
|
35
|
-
i18n: Language;
|
|
36
|
-
loadingContext?: string;
|
|
37
|
-
locale?: string;
|
|
38
|
-
merchantMetadata?: MerchantMetadata;
|
|
39
|
-
onSubmit?: (state: any, element: UIElement) => void;
|
|
40
|
-
payButton?: any;
|
|
41
|
-
placement?: Placement;
|
|
42
|
-
productType?: ProductType;
|
|
43
|
-
region?: Region;
|
|
44
|
-
returnUrl?: string;
|
|
45
|
-
showChangePaymentDetailsButton: boolean;
|
|
46
|
-
showOrderButton: boolean;
|
|
47
|
-
showPayButton: boolean;
|
|
48
|
-
showSignOutButton: boolean;
|
|
49
|
-
signature?: string;
|
|
50
|
-
onClick: (resolve: any, reject: any) => Promise<void>;
|
|
51
|
-
onError: (error: any, component: any) => void;
|
|
52
|
-
onSignOut: (resolve: any, reject: any) => Promise<void>;
|
|
53
|
-
}
|
|
54
|
-
export interface AmazonPayComponentProps extends AmazonPayElementProps {
|
|
55
|
-
ref: any;
|
|
56
|
-
}
|
|
57
|
-
export interface AmazonPayButtonProps {
|
|
58
|
-
amount?: PaymentAmount;
|
|
59
|
-
amazonRef: any;
|
|
60
|
-
buttonColor?: ButtonColor;
|
|
61
|
-
cancelUrl?: string;
|
|
62
|
-
clientKey?: string;
|
|
63
|
-
configuration?: AmazonPayConfiguration;
|
|
64
|
-
currency?: Currency;
|
|
65
|
-
deliverySpecifications?: DeliverySpecifications;
|
|
66
|
-
environment?: string;
|
|
67
|
-
locale?: string;
|
|
68
|
-
onClick: (resolve: any, reject: any) => Promise<void>;
|
|
69
|
-
onError: (error: any, component: any) => void;
|
|
70
|
-
placement?: Placement;
|
|
71
|
-
productType?: ProductType;
|
|
72
|
-
ref: any;
|
|
73
|
-
region?: Region;
|
|
74
|
-
returnUrl?: string;
|
|
75
|
-
showPayButton: boolean;
|
|
76
|
-
}
|
|
77
|
-
export interface SignOutButtonProps {
|
|
78
|
-
amazonRef: any;
|
|
79
|
-
onSignOut: (resolve: any, reject: any) => Promise<void>;
|
|
80
|
-
}
|
|
81
|
-
export interface ChangePaymentDetailsButtonProps {
|
|
82
|
-
amazonCheckoutSessionId: string;
|
|
83
|
-
amazonRef: any;
|
|
84
|
-
}
|
|
85
|
-
export interface ChangeActionOptions {
|
|
86
|
-
amazonCheckoutSessionId: string;
|
|
87
|
-
changeAction: 'changeAddress' | 'changePayment';
|
|
88
|
-
}
|
|
89
|
-
export interface OrderButtonProps {
|
|
90
|
-
amazonCheckoutSessionId: string;
|
|
91
|
-
amount: PaymentAmount;
|
|
92
|
-
clientKey: string;
|
|
93
|
-
onError: (error: any, component: any) => void;
|
|
94
|
-
ref: any;
|
|
95
|
-
region: Region;
|
|
96
|
-
returnUrl: string;
|
|
97
|
-
publicKeyId: string;
|
|
98
|
-
}
|
|
99
|
-
export interface AmazonPayElementData {
|
|
100
|
-
paymentMethod: {
|
|
101
|
-
type: string;
|
|
102
|
-
checkoutSessionId?: string;
|
|
103
|
-
};
|
|
104
|
-
browserInfo: BrowserInfo;
|
|
105
|
-
}
|
|
106
|
-
export interface AmazonPayButtonSettings {
|
|
107
|
-
buttonColor?: ButtonColor;
|
|
108
|
-
design?: string;
|
|
109
|
-
/**
|
|
110
|
-
* Amazon Pay merchant account identifier
|
|
111
|
-
*/
|
|
112
|
-
merchantId: string;
|
|
113
|
-
/**
|
|
114
|
-
* Sets button to Sandbox environment
|
|
115
|
-
*/
|
|
116
|
-
sandbox: boolean;
|
|
117
|
-
/**
|
|
118
|
-
* Product type selected for checkout
|
|
119
|
-
*/
|
|
120
|
-
productType: ProductType;
|
|
121
|
-
/**
|
|
122
|
-
* Placement of the Amazon Pay button on your website
|
|
123
|
-
*/
|
|
124
|
-
placement: Placement;
|
|
125
|
-
/**
|
|
126
|
-
* Language used to render the button and text on Amazon Pay hosted pages. Please note that supported language(s) is dependent on the region that your Amazon Pay account was registered for
|
|
127
|
-
*/
|
|
128
|
-
checkoutLanguage: SupportedLocale;
|
|
129
|
-
/**
|
|
130
|
-
* Ledger currency provided during registration for the given merchant identifier
|
|
131
|
-
*/
|
|
132
|
-
ledgerCurrency: Currency;
|
|
133
|
-
}
|
|
134
|
-
interface MerchantMetadata {
|
|
135
|
-
customInformation?: string;
|
|
136
|
-
merchantReferenceId?: string;
|
|
137
|
-
merchantStoreName?: string;
|
|
138
|
-
noteToBuyer?: string;
|
|
139
|
-
}
|
|
140
|
-
interface AddressDetails {
|
|
141
|
-
name?: string;
|
|
142
|
-
addressLine1?: string;
|
|
143
|
-
addressLine2?: string;
|
|
144
|
-
addressLine3?: string;
|
|
145
|
-
city?: string;
|
|
146
|
-
districtOrCounty?: string;
|
|
147
|
-
stateOrRegion?: string;
|
|
148
|
-
postalCode?: string;
|
|
149
|
-
countryCode?: string;
|
|
150
|
-
phoneNumber?: string;
|
|
151
|
-
}
|
|
152
|
-
export interface ChargeAmount {
|
|
153
|
-
amount: string;
|
|
154
|
-
currencyCode: Currency;
|
|
155
|
-
}
|
|
156
|
-
export declare type LedgerCurrencies = {
|
|
157
|
-
[key in Region]: Currency;
|
|
158
|
-
};
|
|
159
|
-
export interface PayloadJSON {
|
|
160
|
-
addressDetails?: AddressDetails;
|
|
161
|
-
deliverySpecifications?: DeliverySpecifications;
|
|
162
|
-
merchantMetadata?: MerchantMetadata;
|
|
163
|
-
paymentDetails?: {
|
|
164
|
-
chargeAmount: ChargeAmount;
|
|
165
|
-
paymentIntent: 'Confirm';
|
|
166
|
-
presentmentCurrency: Currency;
|
|
167
|
-
totalOrderAmount: ChargeAmount;
|
|
168
|
-
};
|
|
169
|
-
storeId: string;
|
|
170
|
-
webCheckoutDetails: {
|
|
171
|
-
checkoutCancelUrl?: string;
|
|
172
|
-
checkoutMode?: 'ProcessOrder';
|
|
173
|
-
checkoutResultReturnUrl?: string;
|
|
174
|
-
checkoutReviewReturnUrl?: string;
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
export interface CheckoutDetailsRequest {
|
|
178
|
-
checkoutSessionId: string;
|
|
179
|
-
getDeliveryAddress?: boolean;
|
|
180
|
-
getDeclineFlowUrl?: boolean;
|
|
181
|
-
publicKeyId: string;
|
|
182
|
-
region: Region;
|
|
183
|
-
}
|
|
184
|
-
export interface UpdateAmazonCheckoutSessionRequest {
|
|
185
|
-
amount: PaymentAmount;
|
|
186
|
-
checkoutCancelUrl?: string;
|
|
187
|
-
checkoutResultReturnUrl: string;
|
|
188
|
-
checkoutSessionId: string;
|
|
189
|
-
publicKeyId: string;
|
|
190
|
-
region: Region;
|
|
191
|
-
}
|
|
192
|
-
export interface CheckoutSessionConfig {
|
|
193
|
-
payloadJSON: string;
|
|
194
|
-
signature: string;
|
|
195
|
-
publicKeyId: string;
|
|
196
|
-
}
|
|
197
|
-
export interface DeliverySpecifications {
|
|
198
|
-
specialRestrictions?: string[];
|
|
199
|
-
addressRestrictions?: AddressRestrictions;
|
|
200
|
-
}
|
|
201
|
-
interface AddressRestrictions {
|
|
202
|
-
type?: 'Allowed' | 'NotAllowed';
|
|
203
|
-
restrictions?: Restrictions;
|
|
204
|
-
}
|
|
205
|
-
interface Restrictions {
|
|
206
|
-
[key: string]: {
|
|
207
|
-
zipCodes?: string[];
|
|
208
|
-
statesOrRegions?: string[];
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
export {};
|
|
1
|
+
import Language from '../../language/Language';
|
|
2
|
+
import { SUPPORTED_LOCALES_EU, SUPPORTED_LOCALES_US } from './config';
|
|
3
|
+
import { BrowserInfo, PaymentAmount } from '../../types';
|
|
4
|
+
import UIElement from '../UIElement';
|
|
5
|
+
declare global {
|
|
6
|
+
interface Window {
|
|
7
|
+
amazon: object;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
declare type ButtonColor = 'Gold' | 'LightGray' | 'DarkGray';
|
|
11
|
+
declare type Placement = 'Home' | 'Product' | 'Cart' | 'Checkout' | 'Other';
|
|
12
|
+
declare type ProductType = 'PayOnly' | 'PayAndShip';
|
|
13
|
+
export declare type Currency = 'EUR' | 'GBP' | 'USD';
|
|
14
|
+
export declare type Region = 'EU' | 'UK' | 'US';
|
|
15
|
+
export declare type SupportedLocale = typeof SUPPORTED_LOCALES_EU[number] | typeof SUPPORTED_LOCALES_US[number];
|
|
16
|
+
export interface AmazonPayConfiguration {
|
|
17
|
+
merchantId?: string;
|
|
18
|
+
publicKeyId?: string;
|
|
19
|
+
region?: Region;
|
|
20
|
+
storeId?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface AmazonPayElementProps {
|
|
23
|
+
addressDetails?: AddressDetails;
|
|
24
|
+
amazonPayToken?: string;
|
|
25
|
+
amazonCheckoutSessionId?: string;
|
|
26
|
+
amount?: PaymentAmount;
|
|
27
|
+
buttonColor?: ButtonColor;
|
|
28
|
+
cancelUrl?: string;
|
|
29
|
+
clientKey?: string;
|
|
30
|
+
configuration?: AmazonPayConfiguration;
|
|
31
|
+
currency?: Currency;
|
|
32
|
+
deliverySpecifications?: DeliverySpecifications;
|
|
33
|
+
design?: string;
|
|
34
|
+
environment?: string;
|
|
35
|
+
i18n: Language;
|
|
36
|
+
loadingContext?: string;
|
|
37
|
+
locale?: string;
|
|
38
|
+
merchantMetadata?: MerchantMetadata;
|
|
39
|
+
onSubmit?: (state: any, element: UIElement) => void;
|
|
40
|
+
payButton?: any;
|
|
41
|
+
placement?: Placement;
|
|
42
|
+
productType?: ProductType;
|
|
43
|
+
region?: Region;
|
|
44
|
+
returnUrl?: string;
|
|
45
|
+
showChangePaymentDetailsButton: boolean;
|
|
46
|
+
showOrderButton: boolean;
|
|
47
|
+
showPayButton: boolean;
|
|
48
|
+
showSignOutButton: boolean;
|
|
49
|
+
signature?: string;
|
|
50
|
+
onClick: (resolve: any, reject: any) => Promise<void>;
|
|
51
|
+
onError: (error: any, component: any) => void;
|
|
52
|
+
onSignOut: (resolve: any, reject: any) => Promise<void>;
|
|
53
|
+
}
|
|
54
|
+
export interface AmazonPayComponentProps extends AmazonPayElementProps {
|
|
55
|
+
ref: any;
|
|
56
|
+
}
|
|
57
|
+
export interface AmazonPayButtonProps {
|
|
58
|
+
amount?: PaymentAmount;
|
|
59
|
+
amazonRef: any;
|
|
60
|
+
buttonColor?: ButtonColor;
|
|
61
|
+
cancelUrl?: string;
|
|
62
|
+
clientKey?: string;
|
|
63
|
+
configuration?: AmazonPayConfiguration;
|
|
64
|
+
currency?: Currency;
|
|
65
|
+
deliverySpecifications?: DeliverySpecifications;
|
|
66
|
+
environment?: string;
|
|
67
|
+
locale?: string;
|
|
68
|
+
onClick: (resolve: any, reject: any) => Promise<void>;
|
|
69
|
+
onError: (error: any, component: any) => void;
|
|
70
|
+
placement?: Placement;
|
|
71
|
+
productType?: ProductType;
|
|
72
|
+
ref: any;
|
|
73
|
+
region?: Region;
|
|
74
|
+
returnUrl?: string;
|
|
75
|
+
showPayButton: boolean;
|
|
76
|
+
}
|
|
77
|
+
export interface SignOutButtonProps {
|
|
78
|
+
amazonRef: any;
|
|
79
|
+
onSignOut: (resolve: any, reject: any) => Promise<void>;
|
|
80
|
+
}
|
|
81
|
+
export interface ChangePaymentDetailsButtonProps {
|
|
82
|
+
amazonCheckoutSessionId: string;
|
|
83
|
+
amazonRef: any;
|
|
84
|
+
}
|
|
85
|
+
export interface ChangeActionOptions {
|
|
86
|
+
amazonCheckoutSessionId: string;
|
|
87
|
+
changeAction: 'changeAddress' | 'changePayment';
|
|
88
|
+
}
|
|
89
|
+
export interface OrderButtonProps {
|
|
90
|
+
amazonCheckoutSessionId: string;
|
|
91
|
+
amount: PaymentAmount;
|
|
92
|
+
clientKey: string;
|
|
93
|
+
onError: (error: any, component: any) => void;
|
|
94
|
+
ref: any;
|
|
95
|
+
region: Region;
|
|
96
|
+
returnUrl: string;
|
|
97
|
+
publicKeyId: string;
|
|
98
|
+
}
|
|
99
|
+
export interface AmazonPayElementData {
|
|
100
|
+
paymentMethod: {
|
|
101
|
+
type: string;
|
|
102
|
+
checkoutSessionId?: string;
|
|
103
|
+
};
|
|
104
|
+
browserInfo: BrowserInfo;
|
|
105
|
+
}
|
|
106
|
+
export interface AmazonPayButtonSettings {
|
|
107
|
+
buttonColor?: ButtonColor;
|
|
108
|
+
design?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Amazon Pay merchant account identifier
|
|
111
|
+
*/
|
|
112
|
+
merchantId: string;
|
|
113
|
+
/**
|
|
114
|
+
* Sets button to Sandbox environment
|
|
115
|
+
*/
|
|
116
|
+
sandbox: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Product type selected for checkout
|
|
119
|
+
*/
|
|
120
|
+
productType: ProductType;
|
|
121
|
+
/**
|
|
122
|
+
* Placement of the Amazon Pay button on your website
|
|
123
|
+
*/
|
|
124
|
+
placement: Placement;
|
|
125
|
+
/**
|
|
126
|
+
* Language used to render the button and text on Amazon Pay hosted pages. Please note that supported language(s) is dependent on the region that your Amazon Pay account was registered for
|
|
127
|
+
*/
|
|
128
|
+
checkoutLanguage: SupportedLocale;
|
|
129
|
+
/**
|
|
130
|
+
* Ledger currency provided during registration for the given merchant identifier
|
|
131
|
+
*/
|
|
132
|
+
ledgerCurrency: Currency;
|
|
133
|
+
}
|
|
134
|
+
interface MerchantMetadata {
|
|
135
|
+
customInformation?: string;
|
|
136
|
+
merchantReferenceId?: string;
|
|
137
|
+
merchantStoreName?: string;
|
|
138
|
+
noteToBuyer?: string;
|
|
139
|
+
}
|
|
140
|
+
interface AddressDetails {
|
|
141
|
+
name?: string;
|
|
142
|
+
addressLine1?: string;
|
|
143
|
+
addressLine2?: string;
|
|
144
|
+
addressLine3?: string;
|
|
145
|
+
city?: string;
|
|
146
|
+
districtOrCounty?: string;
|
|
147
|
+
stateOrRegion?: string;
|
|
148
|
+
postalCode?: string;
|
|
149
|
+
countryCode?: string;
|
|
150
|
+
phoneNumber?: string;
|
|
151
|
+
}
|
|
152
|
+
export interface ChargeAmount {
|
|
153
|
+
amount: string;
|
|
154
|
+
currencyCode: Currency;
|
|
155
|
+
}
|
|
156
|
+
export declare type LedgerCurrencies = {
|
|
157
|
+
[key in Region]: Currency;
|
|
158
|
+
};
|
|
159
|
+
export interface PayloadJSON {
|
|
160
|
+
addressDetails?: AddressDetails;
|
|
161
|
+
deliverySpecifications?: DeliverySpecifications;
|
|
162
|
+
merchantMetadata?: MerchantMetadata;
|
|
163
|
+
paymentDetails?: {
|
|
164
|
+
chargeAmount: ChargeAmount;
|
|
165
|
+
paymentIntent: 'Confirm';
|
|
166
|
+
presentmentCurrency: Currency;
|
|
167
|
+
totalOrderAmount: ChargeAmount;
|
|
168
|
+
};
|
|
169
|
+
storeId: string;
|
|
170
|
+
webCheckoutDetails: {
|
|
171
|
+
checkoutCancelUrl?: string;
|
|
172
|
+
checkoutMode?: 'ProcessOrder';
|
|
173
|
+
checkoutResultReturnUrl?: string;
|
|
174
|
+
checkoutReviewReturnUrl?: string;
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
export interface CheckoutDetailsRequest {
|
|
178
|
+
checkoutSessionId: string;
|
|
179
|
+
getDeliveryAddress?: boolean;
|
|
180
|
+
getDeclineFlowUrl?: boolean;
|
|
181
|
+
publicKeyId: string;
|
|
182
|
+
region: Region;
|
|
183
|
+
}
|
|
184
|
+
export interface UpdateAmazonCheckoutSessionRequest {
|
|
185
|
+
amount: PaymentAmount;
|
|
186
|
+
checkoutCancelUrl?: string;
|
|
187
|
+
checkoutResultReturnUrl: string;
|
|
188
|
+
checkoutSessionId: string;
|
|
189
|
+
publicKeyId: string;
|
|
190
|
+
region: Region;
|
|
191
|
+
}
|
|
192
|
+
export interface CheckoutSessionConfig {
|
|
193
|
+
payloadJSON: string;
|
|
194
|
+
signature: string;
|
|
195
|
+
publicKeyId: string;
|
|
196
|
+
}
|
|
197
|
+
export interface DeliverySpecifications {
|
|
198
|
+
specialRestrictions?: string[];
|
|
199
|
+
addressRestrictions?: AddressRestrictions;
|
|
200
|
+
}
|
|
201
|
+
interface AddressRestrictions {
|
|
202
|
+
type?: 'Allowed' | 'NotAllowed';
|
|
203
|
+
restrictions?: Restrictions;
|
|
204
|
+
}
|
|
205
|
+
interface Restrictions {
|
|
206
|
+
[key: string]: {
|
|
207
|
+
zipCodes?: string[];
|
|
208
|
+
statesOrRegions?: string[];
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
export {};
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import { AmazonPayButtonSettings, ChargeAmount, PayloadJSON, Region, SupportedLocale } from './types';
|
|
2
|
-
import { PaymentAmount } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Returns the AmazonPay script URL for passed region.
|
|
5
|
-
* @param region - Two-letter country code in ISO 3166 format
|
|
6
|
-
* @returns the AmazonPay script URL
|
|
7
|
-
*/
|
|
8
|
-
export declare function getAmazonPayUrl(region: Region): string;
|
|
9
|
-
/**
|
|
10
|
-
* Returns the AmazonPay button settings object
|
|
11
|
-
* @param props -
|
|
12
|
-
* @returns the AmazonPay button settings
|
|
13
|
-
*/
|
|
14
|
-
export declare function getAmazonPaySettings(props: any): AmazonPayButtonSettings;
|
|
15
|
-
/**
|
|
16
|
-
* Returns the fallback locale for passed region.
|
|
17
|
-
* @param region - Two-letter country code in ISO 3166 format
|
|
18
|
-
* @returns A fallback locale
|
|
19
|
-
*/
|
|
20
|
-
export declare function getFallbackLocale(region: Region): SupportedLocale;
|
|
21
|
-
/**
|
|
22
|
-
* Returns an array of supported locales for passed region.
|
|
23
|
-
* @param region - Two-letter country code in ISO 3166 format
|
|
24
|
-
* @returns An array of supported locales
|
|
25
|
-
*/
|
|
26
|
-
export declare function getSupportedLocales(region: Region): SupportedLocale[];
|
|
27
|
-
/**
|
|
28
|
-
* Gets a locale and matches it with one of the supported locales for the given region.
|
|
29
|
-
* If there's no match, it will return the region's fallback option.
|
|
30
|
-
* @param locale - Locale to be processed
|
|
31
|
-
* @param region - Two-letter country code in ISO 3166 format
|
|
32
|
-
* @returns A supported locale
|
|
33
|
-
*/
|
|
34
|
-
export declare function getCheckoutLocale(locale: string, region: Region): SupportedLocale;
|
|
35
|
-
/**
|
|
36
|
-
* Gets the design code from the given alias.
|
|
37
|
-
* @param design - The alias of one of the possible designs.
|
|
38
|
-
* @returns A design code
|
|
39
|
-
*/
|
|
40
|
-
export declare function getDesignCode(design: string): string;
|
|
41
|
-
/**
|
|
42
|
-
* Returns the amount in the format Amazon expects.
|
|
43
|
-
* @param amount - The amount object in the Adyen format
|
|
44
|
-
* @returns the charge amount object in the Amazon format
|
|
45
|
-
*/
|
|
46
|
-
export declare function getChargeAmount(amount: PaymentAmount): ChargeAmount;
|
|
47
|
-
/**
|
|
48
|
-
* Returns a PayloadJSON object.
|
|
49
|
-
* @param props -
|
|
50
|
-
* @returns PayloadJSON
|
|
51
|
-
*/
|
|
52
|
-
export declare function getPayloadJSON(props: any): PayloadJSON;
|
|
1
|
+
import { AmazonPayButtonSettings, ChargeAmount, PayloadJSON, Region, SupportedLocale } from './types';
|
|
2
|
+
import { PaymentAmount } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Returns the AmazonPay script URL for passed region.
|
|
5
|
+
* @param region - Two-letter country code in ISO 3166 format
|
|
6
|
+
* @returns the AmazonPay script URL
|
|
7
|
+
*/
|
|
8
|
+
export declare function getAmazonPayUrl(region: Region): string;
|
|
9
|
+
/**
|
|
10
|
+
* Returns the AmazonPay button settings object
|
|
11
|
+
* @param props -
|
|
12
|
+
* @returns the AmazonPay button settings
|
|
13
|
+
*/
|
|
14
|
+
export declare function getAmazonPaySettings(props: any): AmazonPayButtonSettings;
|
|
15
|
+
/**
|
|
16
|
+
* Returns the fallback locale for passed region.
|
|
17
|
+
* @param region - Two-letter country code in ISO 3166 format
|
|
18
|
+
* @returns A fallback locale
|
|
19
|
+
*/
|
|
20
|
+
export declare function getFallbackLocale(region: Region): SupportedLocale;
|
|
21
|
+
/**
|
|
22
|
+
* Returns an array of supported locales for passed region.
|
|
23
|
+
* @param region - Two-letter country code in ISO 3166 format
|
|
24
|
+
* @returns An array of supported locales
|
|
25
|
+
*/
|
|
26
|
+
export declare function getSupportedLocales(region: Region): SupportedLocale[];
|
|
27
|
+
/**
|
|
28
|
+
* Gets a locale and matches it with one of the supported locales for the given region.
|
|
29
|
+
* If there's no match, it will return the region's fallback option.
|
|
30
|
+
* @param locale - Locale to be processed
|
|
31
|
+
* @param region - Two-letter country code in ISO 3166 format
|
|
32
|
+
* @returns A supported locale
|
|
33
|
+
*/
|
|
34
|
+
export declare function getCheckoutLocale(locale: string, region: Region): SupportedLocale;
|
|
35
|
+
/**
|
|
36
|
+
* Gets the design code from the given alias.
|
|
37
|
+
* @param design - The alias of one of the possible designs.
|
|
38
|
+
* @returns A design code
|
|
39
|
+
*/
|
|
40
|
+
export declare function getDesignCode(design: string): string;
|
|
41
|
+
/**
|
|
42
|
+
* Returns the amount in the format Amazon expects.
|
|
43
|
+
* @param amount - The amount object in the Adyen format
|
|
44
|
+
* @returns the charge amount object in the Amazon format
|
|
45
|
+
*/
|
|
46
|
+
export declare function getChargeAmount(amount: PaymentAmount): ChargeAmount;
|
|
47
|
+
/**
|
|
48
|
+
* Returns a PayloadJSON object.
|
|
49
|
+
* @param props -
|
|
50
|
+
* @returns PayloadJSON
|
|
51
|
+
*/
|
|
52
|
+
export declare function getPayloadJSON(props: any): PayloadJSON;
|