react-native-tpay 0.3.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/LICENSE +22 -0
- package/README.md +555 -0
- package/android/build.gradle +95 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/AndroidManifestNew.xml +2 -0
- package/android/src/main/java/com/tpay/TpayAmbiguousBLIKPaymentHandler.kt +21 -0
- package/android/src/main/java/com/tpay/TpayModule.kt +528 -0
- package/android/src/main/java/com/tpay/TpayPackage.kt +17 -0
- package/android/src/main/java/com/tpay/TpayResult.kt +12 -0
- package/android/src/main/java/com/tpay/TpayScreenlessPaymentHandler.kt +102 -0
- package/android/src/main/java/com/tpay/TpayScreenlessResult.kt +25 -0
- package/android/src/main/java/com/tpay/TpayScreenlessResultHandler.kt +121 -0
- package/android/src/main/java/com/tpay/delegate/AddCardDelegateImpl.kt +30 -0
- package/android/src/main/java/com/tpay/delegate/PaymentDelegateImpl.kt +33 -0
- package/android/src/main/java/com/tpay/extension/AmbiguousAlias+.kt +11 -0
- package/android/src/main/java/com/tpay/extension/BlikAlias+.kt +18 -0
- package/android/src/main/java/com/tpay/extension/CardTokenTransaction+.kt +19 -0
- package/android/src/main/java/com/tpay/extension/Exception.kt +3 -0
- package/android/src/main/java/com/tpay/extension/JSONObject+.kt +10 -0
- package/android/src/main/java/com/tpay/extension/PaymentChannel+.kt +22 -0
- package/android/src/main/java/com/tpay/extension/PaymentConstraint+.kt +24 -0
- package/android/src/main/java/com/tpay/extension/PaymentGroup+.kt +21 -0
- package/android/src/main/java/com/tpay/extension/SingleTransaction+.kt +14 -0
- package/android/src/main/java/com/tpay/extension/String+.kt +30 -0
- package/android/src/main/java/com/tpay/model/CertificateConfiguration.kt +20 -0
- package/android/src/main/java/com/tpay/model/Configuration.kt +5 -0
- package/android/src/main/java/com/tpay/model/ConfigurationMerchant.kt +33 -0
- package/android/src/main/java/com/tpay/model/Languages.kt +24 -0
- package/android/src/main/java/com/tpay/model/LocalizedString.kt +21 -0
- package/android/src/main/java/com/tpay/model/MerchantAuthorization.kt +20 -0
- package/android/src/main/java/com/tpay/model/MerchantDetails.kt +32 -0
- package/android/src/main/java/com/tpay/model/PaymentMethods.kt +90 -0
- package/android/src/main/java/com/tpay/model/TpayConfiguration.kt +50 -0
- package/android/src/main/java/com/tpay/model/WalletConfiguration.kt +14 -0
- package/android/src/main/java/com/tpay/model/googlePay/GooglePayConfiguration.kt +13 -0
- package/android/src/main/java/com/tpay/model/googlePay/GooglePayConfigureResult.kt +6 -0
- package/android/src/main/java/com/tpay/model/googlePay/GooglePayUtilsConfiguration.kt +57 -0
- package/android/src/main/java/com/tpay/model/screenless/AmbiguousBLIKAlias.kt +35 -0
- package/android/src/main/java/com/tpay/model/screenless/AmbiguousBLIKPayment.kt +26 -0
- package/android/src/main/java/com/tpay/model/screenless/BLIKScreenlessPayment.kt +28 -0
- package/android/src/main/java/com/tpay/model/screenless/CreditCardData.kt +10 -0
- package/android/src/main/java/com/tpay/model/screenless/CreditCardScreenlessPayment.kt +75 -0
- package/android/src/main/java/com/tpay/model/screenless/ExpirationDate.kt +22 -0
- package/android/src/main/java/com/tpay/model/screenless/GooglePayScreenlessPayment.kt +19 -0
- package/android/src/main/java/com/tpay/model/screenless/PaymentConstraintType.kt +5 -0
- package/android/src/main/java/com/tpay/model/screenless/RatyPekaoScreenlessPayment.kt +9 -0
- package/android/src/main/java/com/tpay/model/screenless/ScreenlessPayment.kt +87 -0
- package/android/src/main/java/com/tpay/model/screenless/TransferScreenlessPayment.kt +9 -0
- package/android/src/main/java/com/tpay/util/JsonUtil.kt +178 -0
- package/android/src/main/java/com/tpay/util/TpayBackpressUtil.kt +23 -0
- package/android/src/main/java/com/tpay/util/TpayUtil.kt +67 -0
- package/android/src/main/java/com/tpay/util/ValidationMessages.kt +19 -0
- package/ios/Source/Configuration/MerchantConfiguration.swift +120 -0
- package/ios/Source/Configuration/PaymentMethodConfiguration.swift +41 -0
- package/ios/Source/Configuration/TransactionConfiguration.swift +200 -0
- package/ios/Source/Extension/TPay+Setup.swift +32 -0
- package/ios/Source/Model/Domain/BankPayment.swift +12 -0
- package/ios/Source/Model/Domain/BlikPayment.swift +14 -0
- package/ios/Source/Model/Domain/CardPayment.swift +14 -0
- package/ios/Source/Model/Domain/ConfigurationResult.swift +98 -0
- package/ios/Source/Model/Domain/ContinuePayment.swift +10 -0
- package/ios/Source/Model/Domain/DigitalWalletPayment.swift +13 -0
- package/ios/Source/Model/Domain/PaymentChannelResult.swift +44 -0
- package/ios/Source/Model/Domain/ScreenlessResult.swift +67 -0
- package/ios/Source/Model/Domain/TokenisationData.swift +16 -0
- package/ios/Source/Model/Transportation/Transportation+AmbiguousAlias.swift +10 -0
- package/ios/Source/Model/Transportation/Transportation+Bank.swift +11 -0
- package/ios/Source/Model/Transportation/Transportation+BankPayment.swift +13 -0
- package/ios/Source/Model/Transportation/Transportation+BlikPayment+Alias.swift +9 -0
- package/ios/Source/Model/Transportation/Transportation+BlikPayment.swift +13 -0
- package/ios/Source/Model/Transportation/Transportation+Callbacks+Notifications.swift +10 -0
- package/ios/Source/Model/Transportation/Transportation+Callbacks+Redirects.swift +10 -0
- package/ios/Source/Model/Transportation/Transportation+Callbacks.swift +10 -0
- package/ios/Source/Model/Transportation/Transportation+CardDetails+Configuration.swift +9 -0
- package/ios/Source/Model/Transportation/Transportation+CardDetails+ExpiryDate.swift +10 -0
- package/ios/Source/Model/Transportation/Transportation+CardDetails.swift +12 -0
- package/ios/Source/Model/Transportation/Transportation+CardPayment.swift +13 -0
- package/ios/Source/Model/Transportation/Transportation+CardToken.swift +11 -0
- package/ios/Source/Model/Transportation/Transportation+ContinuePayment.swift +11 -0
- package/ios/Source/Model/Transportation/Transportation+DigitalWalletPayment.swift +12 -0
- package/ios/Source/Model/Transportation/Transportation+Environment.swift +23 -0
- package/ios/Source/Model/Transportation/Transportation+Languages.swift +10 -0
- package/ios/Source/Model/Transportation/Transportation+Merchant+Authorization.swift +10 -0
- package/ios/Source/Model/Transportation/Transportation+Merchant+CertificatePinning.swift +9 -0
- package/ios/Source/Model/Transportation/Transportation+Merchant+WalletConfiguration+ApplePay.swift +10 -0
- package/ios/Source/Model/Transportation/Transportation+Merchant+WalletConfiguration.swift +9 -0
- package/ios/Source/Model/Transportation/Transportation+Merchant.swift +13 -0
- package/ios/Source/Model/Transportation/Transportation+MerchantConfiguration.swift +12 -0
- package/ios/Source/Model/Transportation/Transportation+MerchantDetails+Detail.swift +10 -0
- package/ios/Source/Model/Transportation/Transportation+MerchantDetails.swift +11 -0
- package/ios/Source/Model/Transportation/Transportation+Payer+Address.swift +12 -0
- package/ios/Source/Model/Transportation/Transportation+Payer.swift +12 -0
- package/ios/Source/Model/Transportation/Transportation+PayerContext+AutomaticPaymentMethods+BlikAlias.swift +9 -0
- package/ios/Source/Model/Transportation/Transportation+PayerContext+AutomaticPaymentMethods.swift +10 -0
- package/ios/Source/Model/Transportation/Transportation+PayerContext.swift +10 -0
- package/ios/Source/Model/Transportation/Transportation+PaymentChannel.swift +21 -0
- package/ios/Source/Model/Transportation/Transportation+PaymentDetails.swift +10 -0
- package/ios/Source/Model/Transportation/Transportation+PaymentMethod.swift +47 -0
- package/ios/Source/Model/Transportation/Transportation+PaymentMethods.swift +11 -0
- package/ios/Source/Model/Transportation/Transportation+PaymentMethodsInfo.swift +12 -0
- package/ios/Source/Model/Transportation/Transportation+SingleTransaction.swift +11 -0
- package/ios/Source/Model/Transportation/Transportation+TokenPayment.swift +12 -0
- package/ios/Source/Model/Transportation/Transportation+Tokenisation.swift +12 -0
- package/ios/Source/Model/Transportation/Transportation.swift +3 -0
- package/ios/Source/Presentation/AddCardPresentation.swift +43 -0
- package/ios/Source/Presentation/CardTokenPresentation.swift +48 -0
- package/ios/Source/Presentation/PaymentPresentation.swift +48 -0
- package/ios/Source/Provider/DefaultMerchantDetailsProvider.swift +32 -0
- package/ios/Source/Provider/DefaultSSLCertificatesProvider.swift +14 -0
- package/ios/Source/TpaySDK.mm +35 -0
- package/ios/Source/TpaySDK.swift +324 -0
- package/ios/Tpay-Bridging-Header.h +2 -0
- package/lib/commonjs/assets/tpay_logo.png +0 -0
- package/lib/commonjs/assets/tpay_logo@2x.png +0 -0
- package/lib/commonjs/assets/tpay_logo@3x.png +0 -0
- package/lib/commonjs/component/tpay_button.js +38 -0
- package/lib/commonjs/component/tpay_button.js.map +1 -0
- package/lib/commonjs/index.js +856 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/model/language/language.js +12 -0
- package/lib/commonjs/model/language/language.js.map +1 -0
- package/lib/commonjs/model/language/languages.js +21 -0
- package/lib/commonjs/model/language/languages.js.map +1 -0
- package/lib/commonjs/model/language/localized_string.js +17 -0
- package/lib/commonjs/model/language/localized_string.js.map +1 -0
- package/lib/commonjs/model/merchant/apple_pay_configuration.js +22 -0
- package/lib/commonjs/model/merchant/apple_pay_configuration.js.map +1 -0
- package/lib/commonjs/model/merchant/certificate_configuration.js +20 -0
- package/lib/commonjs/model/merchant/certificate_configuration.js.map +1 -0
- package/lib/commonjs/model/merchant/google_pay_configuration.js +19 -0
- package/lib/commonjs/model/merchant/google_pay_configuration.js.map +1 -0
- package/lib/commonjs/model/merchant/merchant.js +27 -0
- package/lib/commonjs/model/merchant/merchant.js.map +1 -0
- package/lib/commonjs/model/merchant/merchant_authorization.js +21 -0
- package/lib/commonjs/model/merchant/merchant_authorization.js.map +1 -0
- package/lib/commonjs/model/merchant/merchant_details.js +23 -0
- package/lib/commonjs/model/merchant/merchant_details.js.map +1 -0
- package/lib/commonjs/model/merchant/tpay_environment.js +12 -0
- package/lib/commonjs/model/merchant/tpay_environment.js.map +1 -0
- package/lib/commonjs/model/merchant/wallet_configuration.js +21 -0
- package/lib/commonjs/model/merchant/wallet_configuration.js.map +1 -0
- package/lib/commonjs/model/payer/address.js +25 -0
- package/lib/commonjs/model/payer/address.js.map +1 -0
- package/lib/commonjs/model/payer/payer.js +25 -0
- package/lib/commonjs/model/payer/payer.js.map +1 -0
- package/lib/commonjs/model/payer/payer_context.js +21 -0
- package/lib/commonjs/model/payer/payer_context.js.map +1 -0
- package/lib/commonjs/model/payment_channel/payment_channel.js +35 -0
- package/lib/commonjs/model/payment_channel/payment_channel.js.map +1 -0
- package/lib/commonjs/model/payment_channel/payment_constraint.js +47 -0
- package/lib/commonjs/model/payment_channel/payment_constraint.js.map +1 -0
- package/lib/commonjs/model/payment_channel/payment_group.js +30 -0
- package/lib/commonjs/model/payment_channel/payment_group.js.map +1 -0
- package/lib/commonjs/model/payment_method/automatic_payment_methods.js +21 -0
- package/lib/commonjs/model/payment_method/automatic_payment_methods.js.map +1 -0
- package/lib/commonjs/model/payment_method/blik_alias.js +23 -0
- package/lib/commonjs/model/payment_method/blik_alias.js.map +1 -0
- package/lib/commonjs/model/payment_method/credit_card_brand.js +16 -0
- package/lib/commonjs/model/payment_method/credit_card_brand.js.map +1 -0
- package/lib/commonjs/model/payment_method/digital_wallet.js +15 -0
- package/lib/commonjs/model/payment_method/digital_wallet.js.map +1 -0
- package/lib/commonjs/model/payment_method/installment_payment.js +14 -0
- package/lib/commonjs/model/payment_method/installment_payment.js.map +1 -0
- package/lib/commonjs/model/payment_method/payment_method.js +16 -0
- package/lib/commonjs/model/payment_method/payment_method.js.map +1 -0
- package/lib/commonjs/model/payment_method/payment_methods.js +23 -0
- package/lib/commonjs/model/payment_method/payment_methods.js.map +1 -0
- package/lib/commonjs/model/payment_method/tokenized_card.js +23 -0
- package/lib/commonjs/model/payment_method/tokenized_card.js.map +1 -0
- package/lib/commonjs/model/result/google_pay_configure_result.js +33 -0
- package/lib/commonjs/model/result/google_pay_configure_result.js.map +1 -0
- package/lib/commonjs/model/result/google_pay_open_result.js +61 -0
- package/lib/commonjs/model/result/google_pay_open_result.js.map +1 -0
- package/lib/commonjs/model/result/payment_channels_result.js +42 -0
- package/lib/commonjs/model/result/payment_channels_result.js.map +1 -0
- package/lib/commonjs/model/result/result.js +96 -0
- package/lib/commonjs/model/result/result.js.map +1 -0
- package/lib/commonjs/model/result/screenless_result.js +141 -0
- package/lib/commonjs/model/result/screenless_result.js.map +1 -0
- package/lib/commonjs/model/screenless/ambiguous_alias.js +25 -0
- package/lib/commonjs/model/screenless/ambiguous_alias.js.map +1 -0
- package/lib/commonjs/model/screenless/ambiguous_blik_payment.js +23 -0
- package/lib/commonjs/model/screenless/ambiguous_blik_payment.js.map +1 -0
- package/lib/commonjs/model/screenless/apple_pay_payment.js +21 -0
- package/lib/commonjs/model/screenless/apple_pay_payment.js.map +1 -0
- package/lib/commonjs/model/screenless/blik_payment.js +26 -0
- package/lib/commonjs/model/screenless/blik_payment.js.map +1 -0
- package/lib/commonjs/model/screenless/callbacks.js +21 -0
- package/lib/commonjs/model/screenless/callbacks.js.map +1 -0
- package/lib/commonjs/model/screenless/credit_card.js +25 -0
- package/lib/commonjs/model/screenless/credit_card.js.map +1 -0
- package/lib/commonjs/model/screenless/credit_card_config.js +22 -0
- package/lib/commonjs/model/screenless/credit_card_config.js.map +1 -0
- package/lib/commonjs/model/screenless/credit_card_payment.js +26 -0
- package/lib/commonjs/model/screenless/credit_card_payment.js.map +1 -0
- package/lib/commonjs/model/screenless/expiration_date.js +21 -0
- package/lib/commonjs/model/screenless/expiration_date.js.map +1 -0
- package/lib/commonjs/model/screenless/frequency.js +18 -0
- package/lib/commonjs/model/screenless/frequency.js.map +1 -0
- package/lib/commonjs/model/screenless/google_pay_environment.js +15 -0
- package/lib/commonjs/model/screenless/google_pay_environment.js.map +1 -0
- package/lib/commonjs/model/screenless/google_pay_payment.js +21 -0
- package/lib/commonjs/model/screenless/google_pay_payment.js.map +1 -0
- package/lib/commonjs/model/screenless/google_pay_utils_configuration.js +27 -0
- package/lib/commonjs/model/screenless/google_pay_utils_configuration.js.map +1 -0
- package/lib/commonjs/model/screenless/notifications.js +21 -0
- package/lib/commonjs/model/screenless/notifications.js.map +1 -0
- package/lib/commonjs/model/screenless/payment_details.js +25 -0
- package/lib/commonjs/model/screenless/payment_details.js.map +1 -0
- package/lib/commonjs/model/screenless/raty_pekao_payment.js +21 -0
- package/lib/commonjs/model/screenless/raty_pekao_payment.js.map +1 -0
- package/lib/commonjs/model/screenless/recursive.js +23 -0
- package/lib/commonjs/model/screenless/recursive.js.map +1 -0
- package/lib/commonjs/model/screenless/redirects.js +21 -0
- package/lib/commonjs/model/screenless/redirects.js.map +1 -0
- package/lib/commonjs/model/screenless/screenless_payment.js +23 -0
- package/lib/commonjs/model/screenless/screenless_payment.js.map +1 -0
- package/lib/commonjs/model/screenless/transfer_payment.js +21 -0
- package/lib/commonjs/model/screenless/transfer_payment.js.map +1 -0
- package/lib/commonjs/model/tokenization/tokenization.js +21 -0
- package/lib/commonjs/model/tokenization/tokenization.js.map +1 -0
- package/lib/commonjs/model/tpay_configuration.js +25 -0
- package/lib/commonjs/model/tpay_configuration.js.map +1 -0
- package/lib/commonjs/model/transaction/single_transaction.js +24 -0
- package/lib/commonjs/model/transaction/single_transaction.js.map +1 -0
- package/lib/commonjs/model/transaction/token_payment.js +26 -0
- package/lib/commonjs/model/transaction/token_payment.js.map +1 -0
- package/lib/commonjs/model/transaction/transaction.js +23 -0
- package/lib/commonjs/model/transaction/transaction.js.map +1 -0
- package/lib/commonjs/util/google_pay_configuration_util.js +22 -0
- package/lib/commonjs/util/google_pay_configuration_util.js.map +1 -0
- package/lib/commonjs/util/google_pay_open_util.js +24 -0
- package/lib/commonjs/util/google_pay_open_util.js.map +1 -0
- package/lib/commonjs/util/payment_channels_util.js +22 -0
- package/lib/commonjs/util/payment_channels_util.js.map +1 -0
- package/lib/commonjs/util/result_util.js +40 -0
- package/lib/commonjs/util/result_util.js.map +1 -0
- package/lib/commonjs/util/screenless_result_util.js +38 -0
- package/lib/commonjs/util/screenless_result_util.js.map +1 -0
- package/lib/module/assets/tpay_logo.png +0 -0
- package/lib/module/assets/tpay_logo@2x.png +0 -0
- package/lib/module/assets/tpay_logo@3x.png +0 -0
- package/lib/module/component/tpay_button.js +31 -0
- package/lib/module/component/tpay_button.js.map +1 -0
- package/lib/module/index.js +204 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/model/language/language.js +6 -0
- package/lib/module/model/language/language.js.map +1 -0
- package/lib/module/model/language/languages.js +14 -0
- package/lib/module/model/language/languages.js.map +1 -0
- package/lib/module/model/language/localized_string.js +10 -0
- package/lib/module/model/language/localized_string.js.map +1 -0
- package/lib/module/model/merchant/apple_pay_configuration.js +15 -0
- package/lib/module/model/merchant/apple_pay_configuration.js.map +1 -0
- package/lib/module/model/merchant/certificate_configuration.js +13 -0
- package/lib/module/model/merchant/certificate_configuration.js.map +1 -0
- package/lib/module/model/merchant/google_pay_configuration.js +12 -0
- package/lib/module/model/merchant/google_pay_configuration.js.map +1 -0
- package/lib/module/model/merchant/merchant.js +20 -0
- package/lib/module/model/merchant/merchant.js.map +1 -0
- package/lib/module/model/merchant/merchant_authorization.js +14 -0
- package/lib/module/model/merchant/merchant_authorization.js.map +1 -0
- package/lib/module/model/merchant/merchant_details.js +16 -0
- package/lib/module/model/merchant/merchant_details.js.map +1 -0
- package/lib/module/model/merchant/tpay_environment.js +6 -0
- package/lib/module/model/merchant/tpay_environment.js.map +1 -0
- package/lib/module/model/merchant/wallet_configuration.js +14 -0
- package/lib/module/model/merchant/wallet_configuration.js.map +1 -0
- package/lib/module/model/payer/address.js +18 -0
- package/lib/module/model/payer/address.js.map +1 -0
- package/lib/module/model/payer/payer.js +18 -0
- package/lib/module/model/payer/payer.js.map +1 -0
- package/lib/module/model/payer/payer_context.js +14 -0
- package/lib/module/model/payer/payer_context.js.map +1 -0
- package/lib/module/model/payment_channel/payment_channel.js +28 -0
- package/lib/module/model/payment_channel/payment_channel.js.map +1 -0
- package/lib/module/model/payment_channel/payment_constraint.js +40 -0
- package/lib/module/model/payment_channel/payment_constraint.js.map +1 -0
- package/lib/module/model/payment_channel/payment_group.js +23 -0
- package/lib/module/model/payment_channel/payment_group.js.map +1 -0
- package/lib/module/model/payment_method/automatic_payment_methods.js +14 -0
- package/lib/module/model/payment_method/automatic_payment_methods.js.map +1 -0
- package/lib/module/model/payment_method/blik_alias.js +16 -0
- package/lib/module/model/payment_method/blik_alias.js.map +1 -0
- package/lib/module/model/payment_method/credit_card_brand.js +10 -0
- package/lib/module/model/payment_method/credit_card_brand.js.map +1 -0
- package/lib/module/model/payment_method/digital_wallet.js +9 -0
- package/lib/module/model/payment_method/digital_wallet.js.map +1 -0
- package/lib/module/model/payment_method/installment_payment.js +8 -0
- package/lib/module/model/payment_method/installment_payment.js.map +1 -0
- package/lib/module/model/payment_method/payment_method.js +10 -0
- package/lib/module/model/payment_method/payment_method.js.map +1 -0
- package/lib/module/model/payment_method/payment_methods.js +16 -0
- package/lib/module/model/payment_method/payment_methods.js.map +1 -0
- package/lib/module/model/payment_method/tokenized_card.js +16 -0
- package/lib/module/model/payment_method/tokenized_card.js.map +1 -0
- package/lib/module/model/result/google_pay_configure_result.js +24 -0
- package/lib/module/model/result/google_pay_configure_result.js.map +1 -0
- package/lib/module/model/result/google_pay_open_result.js +50 -0
- package/lib/module/model/result/google_pay_open_result.js.map +1 -0
- package/lib/module/model/result/payment_channels_result.js +33 -0
- package/lib/module/model/result/payment_channels_result.js.map +1 -0
- package/lib/module/model/result/result.js +81 -0
- package/lib/module/model/result/result.js.map +1 -0
- package/lib/module/model/result/screenless_result.js +127 -0
- package/lib/module/model/result/screenless_result.js.map +1 -0
- package/lib/module/model/screenless/ambiguous_alias.js +18 -0
- package/lib/module/model/screenless/ambiguous_alias.js.map +1 -0
- package/lib/module/model/screenless/ambiguous_blik_payment.js +16 -0
- package/lib/module/model/screenless/ambiguous_blik_payment.js.map +1 -0
- package/lib/module/model/screenless/apple_pay_payment.js +15 -0
- package/lib/module/model/screenless/apple_pay_payment.js.map +1 -0
- package/lib/module/model/screenless/blik_payment.js +20 -0
- package/lib/module/model/screenless/blik_payment.js.map +1 -0
- package/lib/module/model/screenless/callbacks.js +14 -0
- package/lib/module/model/screenless/callbacks.js.map +1 -0
- package/lib/module/model/screenless/credit_card.js +18 -0
- package/lib/module/model/screenless/credit_card.js.map +1 -0
- package/lib/module/model/screenless/credit_card_config.js +15 -0
- package/lib/module/model/screenless/credit_card_config.js.map +1 -0
- package/lib/module/model/screenless/credit_card_payment.js +20 -0
- package/lib/module/model/screenless/credit_card_payment.js.map +1 -0
- package/lib/module/model/screenless/expiration_date.js +14 -0
- package/lib/module/model/screenless/expiration_date.js.map +1 -0
- package/lib/module/model/screenless/frequency.js +12 -0
- package/lib/module/model/screenless/frequency.js.map +1 -0
- package/lib/module/model/screenless/google_pay_environment.js +9 -0
- package/lib/module/model/screenless/google_pay_environment.js.map +1 -0
- package/lib/module/model/screenless/google_pay_payment.js +15 -0
- package/lib/module/model/screenless/google_pay_payment.js.map +1 -0
- package/lib/module/model/screenless/google_pay_utils_configuration.js +20 -0
- package/lib/module/model/screenless/google_pay_utils_configuration.js.map +1 -0
- package/lib/module/model/screenless/notifications.js +14 -0
- package/lib/module/model/screenless/notifications.js.map +1 -0
- package/lib/module/model/screenless/payment_details.js +18 -0
- package/lib/module/model/screenless/payment_details.js.map +1 -0
- package/lib/module/model/screenless/raty_pekao_payment.js +15 -0
- package/lib/module/model/screenless/raty_pekao_payment.js.map +1 -0
- package/lib/module/model/screenless/recursive.js +16 -0
- package/lib/module/model/screenless/recursive.js.map +1 -0
- package/lib/module/model/screenless/redirects.js +14 -0
- package/lib/module/model/screenless/redirects.js.map +1 -0
- package/lib/module/model/screenless/screenless_payment.js +16 -0
- package/lib/module/model/screenless/screenless_payment.js.map +1 -0
- package/lib/module/model/screenless/transfer_payment.js +15 -0
- package/lib/module/model/screenless/transfer_payment.js.map +1 -0
- package/lib/module/model/tokenization/tokenization.js +14 -0
- package/lib/module/model/tokenization/tokenization.js.map +1 -0
- package/lib/module/model/tpay_configuration.js +18 -0
- package/lib/module/model/tpay_configuration.js.map +1 -0
- package/lib/module/model/transaction/single_transaction.js +18 -0
- package/lib/module/model/transaction/single_transaction.js.map +1 -0
- package/lib/module/model/transaction/token_payment.js +20 -0
- package/lib/module/model/transaction/token_payment.js.map +1 -0
- package/lib/module/model/transaction/transaction.js +16 -0
- package/lib/module/model/transaction/transaction.js.map +1 -0
- package/lib/module/util/google_pay_configuration_util.js +16 -0
- package/lib/module/util/google_pay_configuration_util.js.map +1 -0
- package/lib/module/util/google_pay_open_util.js +18 -0
- package/lib/module/util/google_pay_open_util.js.map +1 -0
- package/lib/module/util/payment_channels_util.js +16 -0
- package/lib/module/util/payment_channels_util.js.map +1 -0
- package/lib/module/util/result_util.js +41 -0
- package/lib/module/util/result_util.js.map +1 -0
- package/lib/module/util/screenless_result_util.js +32 -0
- package/lib/module/util/screenless_result_util.js.map +1 -0
- package/lib/typescript/src/component/tpay_button.d.ts +13 -0
- package/lib/typescript/src/component/tpay_button.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +147 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/model/language/language.d.ts +5 -0
- package/lib/typescript/src/model/language/language.d.ts.map +1 -0
- package/lib/typescript/src/model/language/languages.d.ts +14 -0
- package/lib/typescript/src/model/language/languages.d.ts.map +1 -0
- package/lib/typescript/src/model/language/localized_string.d.ts +10 -0
- package/lib/typescript/src/model/language/localized_string.d.ts.map +1 -0
- package/lib/typescript/src/model/merchant/apple_pay_configuration.d.ts +14 -0
- package/lib/typescript/src/model/merchant/apple_pay_configuration.d.ts.map +1 -0
- package/lib/typescript/src/model/merchant/certificate_configuration.d.ts +12 -0
- package/lib/typescript/src/model/merchant/certificate_configuration.d.ts.map +1 -0
- package/lib/typescript/src/model/merchant/google_pay_configuration.d.ts +11 -0
- package/lib/typescript/src/model/merchant/google_pay_configuration.d.ts.map +1 -0
- package/lib/typescript/src/model/merchant/merchant.d.ts +23 -0
- package/lib/typescript/src/model/merchant/merchant.d.ts.map +1 -0
- package/lib/typescript/src/model/merchant/merchant_authorization.d.ts +13 -0
- package/lib/typescript/src/model/merchant/merchant_authorization.d.ts.map +1 -0
- package/lib/typescript/src/model/merchant/merchant_details.d.ts +16 -0
- package/lib/typescript/src/model/merchant/merchant_details.d.ts.map +1 -0
- package/lib/typescript/src/model/merchant/tpay_environment.d.ts +5 -0
- package/lib/typescript/src/model/merchant/tpay_environment.d.ts.map +1 -0
- package/lib/typescript/src/model/merchant/wallet_configuration.d.ts +15 -0
- package/lib/typescript/src/model/merchant/wallet_configuration.d.ts.map +1 -0
- package/lib/typescript/src/model/payer/address.d.ts +17 -0
- package/lib/typescript/src/model/payer/address.d.ts.map +1 -0
- package/lib/typescript/src/model/payer/payer.d.ts +18 -0
- package/lib/typescript/src/model/payer/payer.d.ts.map +1 -0
- package/lib/typescript/src/model/payer/payer_context.d.ts +15 -0
- package/lib/typescript/src/model/payer/payer_context.d.ts.map +1 -0
- package/lib/typescript/src/model/payment_channel/payment_channel.d.ts +24 -0
- package/lib/typescript/src/model/payment_channel/payment_channel.d.ts.map +1 -0
- package/lib/typescript/src/model/payment_channel/payment_constraint.d.ts +31 -0
- package/lib/typescript/src/model/payment_channel/payment_constraint.d.ts.map +1 -0
- package/lib/typescript/src/model/payment_channel/payment_group.d.ts +19 -0
- package/lib/typescript/src/model/payment_channel/payment_group.d.ts.map +1 -0
- package/lib/typescript/src/model/payment_method/automatic_payment_methods.d.ts +15 -0
- package/lib/typescript/src/model/payment_method/automatic_payment_methods.d.ts.map +1 -0
- package/lib/typescript/src/model/payment_method/blik_alias.d.ts +15 -0
- package/lib/typescript/src/model/payment_method/blik_alias.d.ts.map +1 -0
- package/lib/typescript/src/model/payment_method/credit_card_brand.d.ts +9 -0
- package/lib/typescript/src/model/payment_method/credit_card_brand.d.ts.map +1 -0
- package/lib/typescript/src/model/payment_method/digital_wallet.d.ts +8 -0
- package/lib/typescript/src/model/payment_method/digital_wallet.d.ts.map +1 -0
- package/lib/typescript/src/model/payment_method/installment_payment.d.ts +7 -0
- package/lib/typescript/src/model/payment_method/installment_payment.d.ts.map +1 -0
- package/lib/typescript/src/model/payment_method/payment_method.d.ts +9 -0
- package/lib/typescript/src/model/payment_method/payment_method.d.ts.map +1 -0
- package/lib/typescript/src/model/payment_method/payment_methods.d.ts +18 -0
- package/lib/typescript/src/model/payment_method/payment_methods.d.ts.map +1 -0
- package/lib/typescript/src/model/payment_method/tokenized_card.d.ts +16 -0
- package/lib/typescript/src/model/payment_method/tokenized_card.d.ts.map +1 -0
- package/lib/typescript/src/model/result/google_pay_configure_result.d.ts +21 -0
- package/lib/typescript/src/model/result/google_pay_configure_result.d.ts.map +1 -0
- package/lib/typescript/src/model/result/google_pay_open_result.d.ts +44 -0
- package/lib/typescript/src/model/result/google_pay_open_result.d.ts.map +1 -0
- package/lib/typescript/src/model/result/payment_channels_result.d.ts +27 -0
- package/lib/typescript/src/model/result/payment_channels_result.d.ts.map +1 -0
- package/lib/typescript/src/model/result/result.d.ts +66 -0
- package/lib/typescript/src/model/result/result.d.ts.map +1 -0
- package/lib/typescript/src/model/result/screenless_result.d.ts +98 -0
- package/lib/typescript/src/model/result/screenless_result.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/ambiguous_alias.d.ts +15 -0
- package/lib/typescript/src/model/screenless/ambiguous_alias.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/ambiguous_blik_payment.d.ts +17 -0
- package/lib/typescript/src/model/screenless/ambiguous_blik_payment.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/apple_pay_payment.d.ts +15 -0
- package/lib/typescript/src/model/screenless/apple_pay_payment.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/blik_payment.d.ts +21 -0
- package/lib/typescript/src/model/screenless/blik_payment.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/callbacks.d.ts +15 -0
- package/lib/typescript/src/model/screenless/callbacks.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/credit_card.d.ts +19 -0
- package/lib/typescript/src/model/screenless/credit_card.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/credit_card_config.d.ts +14 -0
- package/lib/typescript/src/model/screenless/credit_card_config.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/credit_card_payment.d.ts +21 -0
- package/lib/typescript/src/model/screenless/credit_card_payment.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/expiration_date.d.ts +13 -0
- package/lib/typescript/src/model/screenless/expiration_date.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/frequency.d.ts +11 -0
- package/lib/typescript/src/model/screenless/frequency.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/google_pay_environment.d.ts +8 -0
- package/lib/typescript/src/model/screenless/google_pay_environment.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/google_pay_payment.d.ts +15 -0
- package/lib/typescript/src/model/screenless/google_pay_payment.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/google_pay_utils_configuration.d.ts +20 -0
- package/lib/typescript/src/model/screenless/google_pay_utils_configuration.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/notifications.d.ts +13 -0
- package/lib/typescript/src/model/screenless/notifications.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/payment_details.d.ts +18 -0
- package/lib/typescript/src/model/screenless/payment_details.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/raty_pekao_payment.d.ts +15 -0
- package/lib/typescript/src/model/screenless/raty_pekao_payment.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/recursive.d.ts +16 -0
- package/lib/typescript/src/model/screenless/recursive.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/redirects.d.ts +13 -0
- package/lib/typescript/src/model/screenless/redirects.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/screenless_payment.d.ts +18 -0
- package/lib/typescript/src/model/screenless/screenless_payment.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/transfer_payment.d.ts +15 -0
- package/lib/typescript/src/model/screenless/transfer_payment.d.ts.map +1 -0
- package/lib/typescript/src/model/tokenization/tokenization.d.ts +14 -0
- package/lib/typescript/src/model/tokenization/tokenization.d.ts.map +1 -0
- package/lib/typescript/src/model/tpay_configuration.d.ts +21 -0
- package/lib/typescript/src/model/tpay_configuration.d.ts.map +1 -0
- package/lib/typescript/src/model/transaction/single_transaction.d.ts +17 -0
- package/lib/typescript/src/model/transaction/single_transaction.d.ts.map +1 -0
- package/lib/typescript/src/model/transaction/token_payment.d.ts +19 -0
- package/lib/typescript/src/model/transaction/token_payment.d.ts.map +1 -0
- package/lib/typescript/src/model/transaction/transaction.d.ts +16 -0
- package/lib/typescript/src/model/transaction/transaction.d.ts.map +1 -0
- package/lib/typescript/src/util/google_pay_configuration_util.d.ts +3 -0
- package/lib/typescript/src/util/google_pay_configuration_util.d.ts.map +1 -0
- package/lib/typescript/src/util/google_pay_open_util.d.ts +3 -0
- package/lib/typescript/src/util/google_pay_open_util.d.ts.map +1 -0
- package/lib/typescript/src/util/payment_channels_util.d.ts +3 -0
- package/lib/typescript/src/util/payment_channels_util.d.ts.map +1 -0
- package/lib/typescript/src/util/result_util.d.ts +3 -0
- package/lib/typescript/src/util/result_util.d.ts.map +1 -0
- package/lib/typescript/src/util/screenless_result_util.d.ts +3 -0
- package/lib/typescript/src/util/screenless_result_util.d.ts.map +1 -0
- package/package.json +164 -0
- package/react-native-tpay.podspec +42 -0
- package/src/assets/tpay_logo.png +0 -0
- package/src/assets/tpay_logo@2x.png +0 -0
- package/src/assets/tpay_logo@3x.png +0 -0
- package/src/component/tpay_button.tsx +44 -0
- package/src/index.tsx +267 -0
- package/src/model/language/language.ts +4 -0
- package/src/model/language/languages.ts +21 -0
- package/src/model/language/localized_string.ts +14 -0
- package/src/model/merchant/apple_pay_configuration.ts +17 -0
- package/src/model/merchant/certificate_configuration.ts +15 -0
- package/src/model/merchant/google_pay_configuration.ts +13 -0
- package/src/model/merchant/merchant.ts +36 -0
- package/src/model/merchant/merchant_authorization.ts +16 -0
- package/src/model/merchant/merchant_details.ts +25 -0
- package/src/model/merchant/tpay_environment.ts +4 -0
- package/src/model/merchant/wallet_configuration.ts +22 -0
- package/src/model/payer/address.ts +27 -0
- package/src/model/payer/payer.ts +29 -0
- package/src/model/payer/payer_context.ts +22 -0
- package/src/model/payment_channel/payment_channel.ts +38 -0
- package/src/model/payment_channel/payment_constraint.ts +41 -0
- package/src/model/payment_channel/payment_group.ts +25 -0
- package/src/model/payment_method/automatic_payment_methods.ts +22 -0
- package/src/model/payment_method/blik_alias.ts +19 -0
- package/src/model/payment_method/credit_card_brand.ts +8 -0
- package/src/model/payment_method/digital_wallet.ts +7 -0
- package/src/model/payment_method/installment_payment.ts +6 -0
- package/src/model/payment_method/payment_method.ts +8 -0
- package/src/model/payment_method/payment_methods.ts +27 -0
- package/src/model/payment_method/tokenized_card.ts +21 -0
- package/src/model/result/google_pay_configure_result.ts +25 -0
- package/src/model/result/google_pay_open_result.ts +58 -0
- package/src/model/result/payment_channels_result.ts +36 -0
- package/src/model/result/result.ts +84 -0
- package/src/model/result/screenless_result.ts +138 -0
- package/src/model/screenless/ambiguous_alias.ts +19 -0
- package/src/model/screenless/ambiguous_blik_payment.ts +26 -0
- package/src/model/screenless/apple_pay_payment.ts +24 -0
- package/src/model/screenless/blik_payment.ts +32 -0
- package/src/model/screenless/callbacks.ts +22 -0
- package/src/model/screenless/credit_card.ts +30 -0
- package/src/model/screenless/credit_card_config.ts +18 -0
- package/src/model/screenless/credit_card_payment.ts +32 -0
- package/src/model/screenless/expiration_date.ts +16 -0
- package/src/model/screenless/frequency.ts +10 -0
- package/src/model/screenless/google_pay_environment.ts +7 -0
- package/src/model/screenless/google_pay_payment.ts +24 -0
- package/src/model/screenless/google_pay_utils_configuration.ts +33 -0
- package/src/model/screenless/notifications.ts +16 -0
- package/src/model/screenless/payment_details.ts +29 -0
- package/src/model/screenless/raty_pekao_payment.ts +24 -0
- package/src/model/screenless/recursive.ts +21 -0
- package/src/model/screenless/redirects.ts +16 -0
- package/src/model/screenless/screenless_payment.ts +27 -0
- package/src/model/screenless/transfer_payment.ts +24 -0
- package/src/model/tokenization/tokenization.ts +18 -0
- package/src/model/tpay_configuration.ts +32 -0
- package/src/model/transaction/single_transaction.ts +26 -0
- package/src/model/transaction/token_payment.ts +30 -0
- package/src/model/transaction/transaction.ts +25 -0
- package/src/util/google_pay_configuration_util.ts +25 -0
- package/src/util/google_pay_open_util.ts +31 -0
- package/src/util/payment_channels_util.ts +22 -0
- package/src/util/result_util.ts +44 -0
- package/src/util/screenless_result_util.ts +50 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DigitalWallet = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Enum describing possible digital wallets
|
|
9
|
+
*/
|
|
10
|
+
let DigitalWallet = exports.DigitalWallet = /*#__PURE__*/function (DigitalWallet) {
|
|
11
|
+
DigitalWallet["googlePay"] = "googlePay";
|
|
12
|
+
DigitalWallet["applePay"] = "applePay";
|
|
13
|
+
return DigitalWallet;
|
|
14
|
+
}({});
|
|
15
|
+
//# sourceMappingURL=digital_wallet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DigitalWallet","exports"],"sourceRoot":"../../../../src","sources":["model/payment_method/digital_wallet.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AAFA,IAGYA,aAAa,GAAAC,OAAA,CAAAD,aAAA,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.InstallmentPayment = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Enum describing possible installment payments
|
|
9
|
+
*/
|
|
10
|
+
let InstallmentPayment = exports.InstallmentPayment = /*#__PURE__*/function (InstallmentPayment) {
|
|
11
|
+
InstallmentPayment["ratyPekao"] = "ratyPekao";
|
|
12
|
+
return InstallmentPayment;
|
|
13
|
+
}({});
|
|
14
|
+
//# sourceMappingURL=installment_payment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["InstallmentPayment","exports"],"sourceRoot":"../../../../src","sources":["model/payment_method/installment_payment.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AAFA,IAGYA,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,0BAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAA,OAAlBA,kBAAkB;AAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.PaymentMethod = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Enum describing possible payment methods
|
|
9
|
+
*/
|
|
10
|
+
let PaymentMethod = exports.PaymentMethod = /*#__PURE__*/function (PaymentMethod) {
|
|
11
|
+
PaymentMethod["blik"] = "blik";
|
|
12
|
+
PaymentMethod["transfer"] = "transfer";
|
|
13
|
+
PaymentMethod["card"] = "card";
|
|
14
|
+
return PaymentMethod;
|
|
15
|
+
}({});
|
|
16
|
+
//# sourceMappingURL=payment_method.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["PaymentMethod","exports"],"sourceRoot":"../../../../src","sources":["model/payment_method/payment_method.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AAFA,IAGYA,aAAa,GAAAC,OAAA,CAAAD,aAAA,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.PaymentMethods = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Class responsible for storing selected payment methods
|
|
9
|
+
*/
|
|
10
|
+
class PaymentMethods {
|
|
11
|
+
/**
|
|
12
|
+
* @param methods - selected payment methods
|
|
13
|
+
* @param wallets - selected digital wallets
|
|
14
|
+
* @param installmentPayments - selected installment payments
|
|
15
|
+
*/
|
|
16
|
+
constructor(methods, wallets, installmentPayments) {
|
|
17
|
+
this.methods = methods;
|
|
18
|
+
this.wallets = wallets;
|
|
19
|
+
this.installmentPayments = installmentPayments;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.PaymentMethods = PaymentMethods;
|
|
23
|
+
//# sourceMappingURL=payment_methods.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["PaymentMethods","constructor","methods","wallets","installmentPayments","exports"],"sourceRoot":"../../../../src","sources":["model/payment_method/payment_methods.ts"],"mappings":";;;;;;AAIA;AACA;AACA;AACO,MAAMA,cAAc,CAAC;EAK1B;AACF;AACA;AACA;AACA;EACEC,WAAWA,CACTC,OAA6B,EAC7BC,OAAoC,EACpCC,mBAAqD,EACrD;IACA,IAAI,CAACF,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACC,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACC,mBAAmB,GAAGA,mBAAmB;EAChD;AACF;AAACC,OAAA,CAAAL,cAAA,GAAAA,cAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TokenizedCard = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Class responsible for storing tokenized card information
|
|
9
|
+
*/
|
|
10
|
+
class TokenizedCard {
|
|
11
|
+
/**
|
|
12
|
+
* @param token - credit card token
|
|
13
|
+
* @param cardTail - 4 last numbers of credit card number
|
|
14
|
+
* @param brand - credit card brand
|
|
15
|
+
*/
|
|
16
|
+
constructor(token, cardTail, brand) {
|
|
17
|
+
this.token = token;
|
|
18
|
+
this.cardTail = cardTail;
|
|
19
|
+
this.brand = brand;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.TokenizedCard = TokenizedCard;
|
|
23
|
+
//# sourceMappingURL=tokenized_card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TokenizedCard","constructor","token","cardTail","brand","exports"],"sourceRoot":"../../../../src","sources":["model/payment_method/tokenized_card.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACO,MAAMA,aAAa,CAAC;EAKzB;AACF;AACA;AACA;AACA;EACEC,WAAWA,CAACC,KAAa,EAAEC,QAAgB,EAAEC,KAAsB,EAAE;IACnE,IAAI,CAACF,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACC,KAAK,GAAGA,KAAK;EACpB;AACF;AAACC,OAAA,CAAAL,aAAA,GAAAA,aAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.GooglePayConfigureSuccess = exports.GooglePayConfigureResult = exports.GooglePayConfigureError = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Indicates a result of Google Pay configuration
|
|
9
|
+
*/
|
|
10
|
+
class GooglePayConfigureResult {}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Indicates that Google Pay configuration was successful
|
|
14
|
+
*/
|
|
15
|
+
exports.GooglePayConfigureResult = GooglePayConfigureResult;
|
|
16
|
+
class GooglePayConfigureSuccess extends GooglePayConfigureResult {}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Indicates that there was an error during Google Pay configuration
|
|
20
|
+
*/
|
|
21
|
+
exports.GooglePayConfigureSuccess = GooglePayConfigureSuccess;
|
|
22
|
+
class GooglePayConfigureError extends GooglePayConfigureResult {
|
|
23
|
+
/**
|
|
24
|
+
* Error message
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
constructor(message) {
|
|
28
|
+
super();
|
|
29
|
+
this.message = message;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.GooglePayConfigureError = GooglePayConfigureError;
|
|
33
|
+
//# sourceMappingURL=google_pay_configure_result.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["GooglePayConfigureResult","exports","GooglePayConfigureSuccess","GooglePayConfigureError","constructor","message"],"sourceRoot":"../../../../src","sources":["model/result/google_pay_configure_result.ts"],"mappings":";;;;;;AACA;AACA;AACA;AACO,MAAMA,wBAAwB,CAAC;;AAEtC;AACA;AACA;AAFAC,OAAA,CAAAD,wBAAA,GAAAA,wBAAA;AAGO,MAAME,yBAAyB,SAASF,wBAAwB,CAAC;;AAExE;AACA;AACA;AAFAC,OAAA,CAAAC,yBAAA,GAAAA,yBAAA;AAGO,MAAMC,uBAAuB,SAASH,wBAAwB,CAAC;EACpE;AACF;AACA;;EAGEI,WAAWA,CAACC,OAAe,EAAE;IAC3B,KAAK,CAAC,CAAC;IACP,IAAI,CAACA,OAAO,GAAGA,OAAO;EACxB;AACF;AAACJ,OAAA,CAAAE,uBAAA,GAAAA,uBAAA"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.GooglePayOpenUnknownError = exports.GooglePayOpenSuccess = exports.GooglePayOpenResult = exports.GooglePayOpenNotConfigured = exports.GooglePayOpenCancelled = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Indicates a result of Google Pay open
|
|
9
|
+
*/
|
|
10
|
+
class GooglePayOpenResult {}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Indicates that Google Pay was successfully opened and user has selected a credit card
|
|
14
|
+
*/
|
|
15
|
+
exports.GooglePayOpenResult = GooglePayOpenResult;
|
|
16
|
+
class GooglePayOpenSuccess extends GooglePayOpenResult {
|
|
17
|
+
/**
|
|
18
|
+
* Google Pay card token, use it with GooglePayPayment
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Credit card description, for example "Visa •••• 1111"
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Credit card network
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Last digits of credit card number
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
constructor(token, description, cardNetwork, cardTail) {
|
|
34
|
+
super();
|
|
35
|
+
this.token = token;
|
|
36
|
+
this.description = description;
|
|
37
|
+
this.cardNetwork = cardNetwork;
|
|
38
|
+
this.cardTail = cardTail;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Indicates that Google Pay was opened successfully but user closed it without selecting a credit card
|
|
44
|
+
*/
|
|
45
|
+
exports.GooglePayOpenSuccess = GooglePayOpenSuccess;
|
|
46
|
+
class GooglePayOpenCancelled extends GooglePayOpenResult {}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Indicates that there was a unknown error
|
|
50
|
+
*/
|
|
51
|
+
exports.GooglePayOpenCancelled = GooglePayOpenCancelled;
|
|
52
|
+
class GooglePayOpenUnknownError extends GooglePayOpenResult {}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Indicates that Google Pay utils were not configured before trying to open Google Pay.
|
|
56
|
+
* Configure utils via configureGooglePayUtils(...) method
|
|
57
|
+
*/
|
|
58
|
+
exports.GooglePayOpenUnknownError = GooglePayOpenUnknownError;
|
|
59
|
+
class GooglePayOpenNotConfigured extends GooglePayOpenResult {}
|
|
60
|
+
exports.GooglePayOpenNotConfigured = GooglePayOpenNotConfigured;
|
|
61
|
+
//# sourceMappingURL=google_pay_open_result.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["GooglePayOpenResult","exports","GooglePayOpenSuccess","constructor","token","description","cardNetwork","cardTail","GooglePayOpenCancelled","GooglePayOpenUnknownError","GooglePayOpenNotConfigured"],"sourceRoot":"../../../../src","sources":["model/result/google_pay_open_result.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACO,MAAMA,mBAAmB,CAAC;;AAEjC;AACA;AACA;AAFAC,OAAA,CAAAD,mBAAA,GAAAA,mBAAA;AAGO,MAAME,oBAAoB,SAASF,mBAAmB,CAAC;EAC5D;AACF;AACA;;EAGE;AACF;AACA;;EAGE;AACF;AACA;;EAGE;AACF;AACA;;EAGEG,WAAWA,CACTC,KAAa,EACbC,WAAmB,EACnBC,WAAmB,EACnBC,QAAgB,EAChB;IACA,KAAK,CAAC,CAAC;IACP,IAAI,CAACH,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,WAAW,GAAGA,WAAW;IAC9B,IAAI,CAACC,WAAW,GAAGA,WAAW;IAC9B,IAAI,CAACC,QAAQ,GAAGA,QAAQ;EAC1B;AACF;;AAEA;AACA;AACA;AAFAN,OAAA,CAAAC,oBAAA,GAAAA,oBAAA;AAGO,MAAMM,sBAAsB,SAASR,mBAAmB,CAAC;;AAEhE;AACA;AACA;AAFAC,OAAA,CAAAO,sBAAA,GAAAA,sBAAA;AAGO,MAAMC,yBAAyB,SAAST,mBAAmB,CAAC;;AAEnE;AACA;AACA;AACA;AAHAC,OAAA,CAAAQ,yBAAA,GAAAA,yBAAA;AAIO,MAAMC,0BAA0B,SAASV,mBAAmB,CAAC;AAAEC,OAAA,CAAAS,0BAAA,GAAAA,0BAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.PaymentChannelsSuccess = exports.PaymentChannelsResult = exports.PaymentChannelsError = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Indicates a result of payment channels
|
|
9
|
+
*/
|
|
10
|
+
class PaymentChannelsResult {}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Indicates that payment channels were successfully received
|
|
14
|
+
*/
|
|
15
|
+
exports.PaymentChannelsResult = PaymentChannelsResult;
|
|
16
|
+
class PaymentChannelsSuccess extends PaymentChannelsResult {
|
|
17
|
+
/**
|
|
18
|
+
* Payment channels
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
constructor(channels) {
|
|
22
|
+
super();
|
|
23
|
+
this.channels = channels;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Indicates that there was an error while fetching payment channels
|
|
29
|
+
*/
|
|
30
|
+
exports.PaymentChannelsSuccess = PaymentChannelsSuccess;
|
|
31
|
+
class PaymentChannelsError extends PaymentChannelsResult {
|
|
32
|
+
/**
|
|
33
|
+
* Error message
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
constructor(message) {
|
|
37
|
+
super();
|
|
38
|
+
this.message = message;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.PaymentChannelsError = PaymentChannelsError;
|
|
42
|
+
//# sourceMappingURL=payment_channels_result.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["PaymentChannelsResult","exports","PaymentChannelsSuccess","constructor","channels","PaymentChannelsError","message"],"sourceRoot":"../../../../src","sources":["model/result/payment_channels_result.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACO,MAAMA,qBAAqB,CAAC;;AAEnC;AACA;AACA;AAFAC,OAAA,CAAAD,qBAAA,GAAAA,qBAAA;AAGO,MAAME,sBAAsB,SAASF,qBAAqB,CAAC;EAChE;AACF;AACA;;EAGEG,WAAWA,CAACC,QAA+B,EAAE;IAC3C,KAAK,CAAC,CAAC;IACP,IAAI,CAACA,QAAQ,GAAGA,QAAQ;EAC1B;AACF;;AAEA;AACA;AACA;AAFAH,OAAA,CAAAC,sBAAA,GAAAA,sBAAA;AAGO,MAAMG,oBAAoB,SAASL,qBAAqB,CAAC;EAC9D;AACF;AACA;;EAGEG,WAAWA,CAACG,OAAe,EAAE;IAC3B,KAAK,CAAC,CAAC;IACP,IAAI,CAACA,OAAO,GAAGA,OAAO;EACxB;AACF;AAACL,OAAA,CAAAI,oBAAA,GAAAA,oBAAA"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ValidationError = exports.TokenizationFailure = exports.TokenizationCompleted = exports.Result = exports.PaymentCompleted = exports.PaymentCancelled = exports.ModuleClosed = exports.MethodCallError = exports.ConfigurationSuccess = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Indicates a result of Tpay UI module action
|
|
9
|
+
*/
|
|
10
|
+
class Result {}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Indicates that credit card tokenization was successful and module was closed
|
|
14
|
+
*/
|
|
15
|
+
exports.Result = Result;
|
|
16
|
+
class TokenizationCompleted extends Result {}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Indicates that credit card tokenization failed and module was closed
|
|
20
|
+
*/
|
|
21
|
+
exports.TokenizationCompleted = TokenizationCompleted;
|
|
22
|
+
class TokenizationFailure extends Result {}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Indicates that configuration was successful
|
|
26
|
+
*/
|
|
27
|
+
exports.TokenizationFailure = TokenizationFailure;
|
|
28
|
+
class ConfigurationSuccess extends Result {}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Indicates that user closed the module without making a payment/tokenization
|
|
32
|
+
*/
|
|
33
|
+
exports.ConfigurationSuccess = ConfigurationSuccess;
|
|
34
|
+
class ModuleClosed extends Result {}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Indicates that some data passed to module is invalid
|
|
38
|
+
*/
|
|
39
|
+
exports.ModuleClosed = ModuleClosed;
|
|
40
|
+
class ValidationError extends Result {
|
|
41
|
+
/**
|
|
42
|
+
* Validation error message
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
constructor(message) {
|
|
46
|
+
super();
|
|
47
|
+
this.message = message;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Indicates that payment was successful and module was closed
|
|
53
|
+
*/
|
|
54
|
+
exports.ValidationError = ValidationError;
|
|
55
|
+
class PaymentCompleted extends Result {
|
|
56
|
+
/**
|
|
57
|
+
* Transaction id of the completed transaction
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
constructor(transactionId) {
|
|
61
|
+
super();
|
|
62
|
+
this.transactionId = transactionId;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Indicates that payment failed and module was closed
|
|
68
|
+
*/
|
|
69
|
+
exports.PaymentCompleted = PaymentCompleted;
|
|
70
|
+
class PaymentCancelled extends Result {
|
|
71
|
+
/**
|
|
72
|
+
* If exists, id of the transaction
|
|
73
|
+
*/
|
|
74
|
+
|
|
75
|
+
constructor(transactionId) {
|
|
76
|
+
super();
|
|
77
|
+
this.transactionId = transactionId;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Indicates a module error
|
|
83
|
+
*/
|
|
84
|
+
exports.PaymentCancelled = PaymentCancelled;
|
|
85
|
+
class MethodCallError extends Result {
|
|
86
|
+
/**
|
|
87
|
+
* Error message
|
|
88
|
+
*/
|
|
89
|
+
|
|
90
|
+
constructor(message) {
|
|
91
|
+
super();
|
|
92
|
+
this.message = message;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.MethodCallError = MethodCallError;
|
|
96
|
+
//# sourceMappingURL=result.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Result","exports","TokenizationCompleted","TokenizationFailure","ConfigurationSuccess","ModuleClosed","ValidationError","constructor","message","PaymentCompleted","transactionId","PaymentCancelled","MethodCallError"],"sourceRoot":"../../../../src","sources":["model/result/result.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACO,MAAMA,MAAM,CAAC;;AAEpB;AACA;AACA;AAFAC,OAAA,CAAAD,MAAA,GAAAA,MAAA;AAGO,MAAME,qBAAqB,SAASF,MAAM,CAAC;;AAElD;AACA;AACA;AAFAC,OAAA,CAAAC,qBAAA,GAAAA,qBAAA;AAGO,MAAMC,mBAAmB,SAASH,MAAM,CAAC;;AAEhD;AACA;AACA;AAFAC,OAAA,CAAAE,mBAAA,GAAAA,mBAAA;AAGO,MAAMC,oBAAoB,SAASJ,MAAM,CAAC;;AAEjD;AACA;AACA;AAFAC,OAAA,CAAAG,oBAAA,GAAAA,oBAAA;AAGO,MAAMC,YAAY,SAASL,MAAM,CAAC;;AAEzC;AACA;AACA;AAFAC,OAAA,CAAAI,YAAA,GAAAA,YAAA;AAGO,MAAMC,eAAe,SAASN,MAAM,CAAC;EAC1C;AACF;AACA;;EAGEO,WAAWA,CAACC,OAAe,EAAE;IAC3B,KAAK,CAAC,CAAC;IACP,IAAI,CAACA,OAAO,GAAGA,OAAO;EACxB;AACF;;AAEA;AACA;AACA;AAFAP,OAAA,CAAAK,eAAA,GAAAA,eAAA;AAGO,MAAMG,gBAAgB,SAAST,MAAM,CAAC;EAC3C;AACF;AACA;;EAGEO,WAAWA,CAACG,aAAqB,EAAE;IACjC,KAAK,CAAC,CAAC;IACP,IAAI,CAACA,aAAa,GAAGA,aAAa;EACpC;AACF;;AAEA;AACA;AACA;AAFAT,OAAA,CAAAQ,gBAAA,GAAAA,gBAAA;AAGO,MAAME,gBAAgB,SAASX,MAAM,CAAC;EAC3C;AACF;AACA;;EAGEO,WAAWA,CAACG,aAA4B,EAAE;IACxC,KAAK,CAAC,CAAC;IACP,IAAI,CAACA,aAAa,GAAGA,aAAa;EACpC;AACF;;AAEA;AACA;AACA;AAFAT,OAAA,CAAAU,gBAAA,GAAAA,gBAAA;AAGO,MAAMC,eAAe,SAASZ,MAAM,CAAC;EAC1C;AACF;AACA;;EAGEO,WAAWA,CAACC,OAAe,EAAE;IAC3B,KAAK,CAAC,CAAC;IACP,IAAI,CAACA,OAAO,GAAGA,OAAO;EACxB;AACF;AAACP,OAAA,CAAAW,eAAA,GAAAA,eAAA"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ScreenlessValidationError = exports.ScreenlessResult = exports.ScreenlessPaymentError = exports.ScreenlessPaymentCreated = exports.ScreenlessPaid = exports.ScreenlessMethodCallError = exports.ScreenlessConfiguredPaymentFailed = exports.ScreenlessBlikAmbiguousAlias = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Indicates a result of screenless action
|
|
9
|
+
*/
|
|
10
|
+
class ScreenlessResult {}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Indicates that some data passed to payment is invalid
|
|
14
|
+
*/
|
|
15
|
+
exports.ScreenlessResult = ScreenlessResult;
|
|
16
|
+
class ScreenlessValidationError extends ScreenlessResult {
|
|
17
|
+
/**
|
|
18
|
+
* Validation error message
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
constructor(message) {
|
|
22
|
+
super();
|
|
23
|
+
this.message = message;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Indicates a module error
|
|
29
|
+
*/
|
|
30
|
+
exports.ScreenlessValidationError = ScreenlessValidationError;
|
|
31
|
+
class ScreenlessMethodCallError extends ScreenlessResult {
|
|
32
|
+
/**
|
|
33
|
+
* Error message
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
constructor(message) {
|
|
37
|
+
super();
|
|
38
|
+
this.message = message;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Indicates that payment was completed successfully
|
|
44
|
+
*/
|
|
45
|
+
exports.ScreenlessMethodCallError = ScreenlessMethodCallError;
|
|
46
|
+
class ScreenlessPaid extends ScreenlessResult {
|
|
47
|
+
/**
|
|
48
|
+
* Transaction id of the completed transaction
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
constructor(transactionId) {
|
|
52
|
+
super();
|
|
53
|
+
this.transactionId = transactionId;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Indicates that payment was created.
|
|
59
|
+
* If it was a credit card or transfer payment you might
|
|
60
|
+
* have to display paymentUrl to the user to finish the payment.
|
|
61
|
+
* If it was a BLIK payment user has to accept it in bank app.
|
|
62
|
+
* It is advised to use long polling mechanism to observe
|
|
63
|
+
* payment status via transactionId.
|
|
64
|
+
*/
|
|
65
|
+
exports.ScreenlessPaid = ScreenlessPaid;
|
|
66
|
+
class ScreenlessPaymentCreated extends ScreenlessResult {
|
|
67
|
+
/**
|
|
68
|
+
* Transaction id of the created transaction
|
|
69
|
+
*/
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Payment url, needs to be displayed to the user to finish the payment
|
|
73
|
+
*/
|
|
74
|
+
|
|
75
|
+
constructor(transactionId, paymentUrl) {
|
|
76
|
+
super();
|
|
77
|
+
this.transactionId = transactionId;
|
|
78
|
+
this.paymentUrl = paymentUrl;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Indicates that creating payment failed because of error with:
|
|
84
|
+
* - credit card data or credit card token
|
|
85
|
+
* - BLIK code or BLIK alias
|
|
86
|
+
*/
|
|
87
|
+
exports.ScreenlessPaymentCreated = ScreenlessPaymentCreated;
|
|
88
|
+
class ScreenlessConfiguredPaymentFailed extends ScreenlessResult {
|
|
89
|
+
/**
|
|
90
|
+
* Transaction id of the created transaction
|
|
91
|
+
*/
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Optional error message
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
constructor(transactionId, error) {
|
|
98
|
+
super();
|
|
99
|
+
this.transactionId = transactionId;
|
|
100
|
+
this.error = error;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Indicates that payer has the same BLIK alias registered in more than one bank app.
|
|
106
|
+
* You need to display a list of aliases to user and then use AmbiguousBlikPayment to
|
|
107
|
+
* continue the payment.
|
|
108
|
+
*/
|
|
109
|
+
exports.ScreenlessConfiguredPaymentFailed = ScreenlessConfiguredPaymentFailed;
|
|
110
|
+
class ScreenlessBlikAmbiguousAlias extends ScreenlessResult {
|
|
111
|
+
/**
|
|
112
|
+
* Transaction id of the created transaction
|
|
113
|
+
*/
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Ambiguous aliases that need to be displayed to the user
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
constructor(transactionId, aliases) {
|
|
120
|
+
super();
|
|
121
|
+
this.transactionId = transactionId;
|
|
122
|
+
this.aliases = aliases;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Indicates that payment was not created because of an error
|
|
128
|
+
*/
|
|
129
|
+
exports.ScreenlessBlikAmbiguousAlias = ScreenlessBlikAmbiguousAlias;
|
|
130
|
+
class ScreenlessPaymentError extends ScreenlessResult {
|
|
131
|
+
/**
|
|
132
|
+
* Optional error message
|
|
133
|
+
*/
|
|
134
|
+
|
|
135
|
+
constructor(error) {
|
|
136
|
+
super();
|
|
137
|
+
this.error = error;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
exports.ScreenlessPaymentError = ScreenlessPaymentError;
|
|
141
|
+
//# sourceMappingURL=screenless_result.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ScreenlessResult","exports","ScreenlessValidationError","constructor","message","ScreenlessMethodCallError","ScreenlessPaid","transactionId","ScreenlessPaymentCreated","paymentUrl","ScreenlessConfiguredPaymentFailed","error","ScreenlessBlikAmbiguousAlias","aliases","ScreenlessPaymentError"],"sourceRoot":"../../../../src","sources":["model/result/screenless_result.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACO,MAAMA,gBAAgB,CAAC;;AAE9B;AACA;AACA;AAFAC,OAAA,CAAAD,gBAAA,GAAAA,gBAAA;AAGO,MAAME,yBAAyB,SAASF,gBAAgB,CAAC;EAC9D;AACF;AACA;;EAGEG,WAAWA,CAACC,OAAe,EAAE;IAC3B,KAAK,CAAC,CAAC;IACP,IAAI,CAACA,OAAO,GAAGA,OAAO;EACxB;AACF;;AAEA;AACA;AACA;AAFAH,OAAA,CAAAC,yBAAA,GAAAA,yBAAA;AAGO,MAAMG,yBAAyB,SAASL,gBAAgB,CAAC;EAC9D;AACF;AACA;;EAGEG,WAAWA,CAACC,OAAe,EAAE;IAC3B,KAAK,CAAC,CAAC;IACP,IAAI,CAACA,OAAO,GAAGA,OAAO;EACxB;AACF;;AAEA;AACA;AACA;AAFAH,OAAA,CAAAI,yBAAA,GAAAA,yBAAA;AAGO,MAAMC,cAAc,SAASN,gBAAgB,CAAC;EACnD;AACF;AACA;;EAGEG,WAAWA,CAACI,aAAqB,EAAE;IACjC,KAAK,CAAC,CAAC;IACP,IAAI,CAACA,aAAa,GAAGA,aAAa;EACpC;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPAN,OAAA,CAAAK,cAAA,GAAAA,cAAA;AAQO,MAAME,wBAAwB,SAASR,gBAAgB,CAAC;EAC7D;AACF;AACA;;EAGE;AACF;AACA;;EAGEG,WAAWA,CAACI,aAAqB,EAAEE,UAAyB,EAAE;IAC5D,KAAK,CAAC,CAAC;IACP,IAAI,CAACF,aAAa,GAAGA,aAAa;IAClC,IAAI,CAACE,UAAU,GAAGA,UAAU;EAC9B;AACF;;AAEA;AACA;AACA;AACA;AACA;AAJAR,OAAA,CAAAO,wBAAA,GAAAA,wBAAA;AAKO,MAAME,iCAAiC,SAASV,gBAAgB,CAAC;EACtE;AACF;AACA;;EAGE;AACF;AACA;;EAGEG,WAAWA,CAACI,aAAqB,EAAEI,KAAoB,EAAE;IACvD,KAAK,CAAC,CAAC;IACP,IAAI,CAACJ,aAAa,GAAGA,aAAa;IAClC,IAAI,CAACI,KAAK,GAAGA,KAAK;EACpB;AACF;;AAEA;AACA;AACA;AACA;AACA;AAJAV,OAAA,CAAAS,iCAAA,GAAAA,iCAAA;AAKO,MAAME,4BAA4B,SAASZ,gBAAgB,CAAC;EACjE;AACF;AACA;;EAGE;AACF;AACA;;EAGEG,WAAWA,CAACI,aAAqB,EAAEM,OAA8B,EAAE;IACjE,KAAK,CAAC,CAAC;IACP,IAAI,CAACN,aAAa,GAAGA,aAAa;IAClC,IAAI,CAACM,OAAO,GAAGA,OAAO;EACxB;AACF;;AAEA;AACA;AACA;AAFAZ,OAAA,CAAAW,4BAAA,GAAAA,4BAAA;AAGO,MAAME,sBAAsB,SAASd,gBAAgB,CAAC;EAC3D;AACF;AACA;;EAGEG,WAAWA,CAACQ,KAAoB,EAAE;IAChC,KAAK,CAAC,CAAC;IACP,IAAI,CAACA,KAAK,GAAGA,KAAK;EACpB;AACF;AAACV,OAAA,CAAAa,sBAAA,GAAAA,sBAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AmbiguousAlias = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Class responsible for storing ambiguous alias information
|
|
9
|
+
*/
|
|
10
|
+
class AmbiguousAlias {
|
|
11
|
+
/**
|
|
12
|
+
* Alias display name
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Alias identifier
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
constructor(name, code) {
|
|
20
|
+
this.name = name;
|
|
21
|
+
this.code = code;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.AmbiguousAlias = AmbiguousAlias;
|
|
25
|
+
//# sourceMappingURL=ambiguous_alias.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AmbiguousAlias","constructor","name","code","exports"],"sourceRoot":"../../../../src","sources":["model/screenless/ambiguous_alias.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACO,MAAMA,cAAc,CAAC;EAC1B;AACF;AACA;;EAGE;AACF;AACA;;EAGEC,WAAWA,CAACC,IAAY,EAAEC,IAAY,EAAE;IACtC,IAAI,CAACD,IAAI,GAAGA,IAAI;IAChB,IAAI,CAACC,IAAI,GAAGA,IAAI;EAClB;AACF;AAACC,OAAA,CAAAJ,cAAA,GAAAA,cAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AmbiguousBlikPayment = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Class responsible for storing information about ambiguous BLIK payment
|
|
9
|
+
*/
|
|
10
|
+
class AmbiguousBlikPayment {
|
|
11
|
+
/**
|
|
12
|
+
* @param transactionId - id of transaction received from ScreenlessBlikAmbiguousAlias result
|
|
13
|
+
* @param blikAlias - BLIK alias used to create transaction with BlikPayment
|
|
14
|
+
* @param ambiguousBlik - ambiguous alias selected by user
|
|
15
|
+
*/
|
|
16
|
+
constructor(transactionId, blikAlias, ambiguousBlik) {
|
|
17
|
+
this.transactionId = transactionId;
|
|
18
|
+
this.blikAlias = blikAlias;
|
|
19
|
+
this.ambiguousAlias = ambiguousBlik;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.AmbiguousBlikPayment = AmbiguousBlikPayment;
|
|
23
|
+
//# sourceMappingURL=ambiguous_blik_payment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AmbiguousBlikPayment","constructor","transactionId","blikAlias","ambiguousBlik","ambiguousAlias","exports"],"sourceRoot":"../../../../src","sources":["model/screenless/ambiguous_blik_payment.ts"],"mappings":";;;;;;AAGA;AACA;AACA;AACO,MAAMA,oBAAoB,CAAC;EAKhC;AACF;AACA;AACA;AACA;EACEC,WAAWA,CACTC,aAAqB,EACrBC,SAAoB,EACpBC,aAA6B,EAC7B;IACA,IAAI,CAACF,aAAa,GAAGA,aAAa;IAClC,IAAI,CAACC,SAAS,GAAGA,SAAS;IAC1B,IAAI,CAACE,cAAc,GAAGD,aAAa;EACrC;AACF;AAACE,OAAA,CAAAN,oBAAA,GAAAA,oBAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ApplePayPayment = void 0;
|
|
7
|
+
var _screenless_payment = require("./screenless_payment");
|
|
8
|
+
/**
|
|
9
|
+
* Class responsible for storing information about Apple Pay payment
|
|
10
|
+
*/
|
|
11
|
+
class ApplePayPayment extends _screenless_payment.ScreenlessPayment {
|
|
12
|
+
/**
|
|
13
|
+
* @param applePayToken - Token received from Apple Pay
|
|
14
|
+
*/
|
|
15
|
+
constructor(applePayToken, paymentDetails, payer, callbacks) {
|
|
16
|
+
super(paymentDetails, payer, callbacks);
|
|
17
|
+
this.applePayToken = applePayToken;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.ApplePayPayment = ApplePayPayment;
|
|
21
|
+
//# sourceMappingURL=apple_pay_payment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_screenless_payment","require","ApplePayPayment","ScreenlessPayment","constructor","applePayToken","paymentDetails","payer","callbacks","exports"],"sourceRoot":"../../../../src","sources":["model/screenless/apple_pay_payment.ts"],"mappings":";;;;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACO,MAAMC,eAAe,SAASC,qCAAiB,CAAC;EAGrD;AACF;AACA;EACEC,WAAWA,CACTC,aAAqB,EACrBC,cAA8B,EAC9BC,KAAY,EACZC,SAA2B,EAC3B;IACA,KAAK,CAACF,cAAc,EAAEC,KAAK,EAAEC,SAAS,CAAC;IACvC,IAAI,CAACH,aAAa,GAAGA,aAAa;EACpC;AACF;AAACI,OAAA,CAAAP,eAAA,GAAAA,eAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.BlikPayment = void 0;
|
|
7
|
+
var _screenless_payment = require("./screenless_payment");
|
|
8
|
+
/**
|
|
9
|
+
* Class responsible for storing BLIK payment information
|
|
10
|
+
*/
|
|
11
|
+
class BlikPayment extends _screenless_payment.ScreenlessPayment {
|
|
12
|
+
/**
|
|
13
|
+
* You have to provide either code or alias.
|
|
14
|
+
* If you provide both, module will try to register the alias.
|
|
15
|
+
*
|
|
16
|
+
* @param code - 6-digit code
|
|
17
|
+
* @param alias - BLIK alias to register/pay with
|
|
18
|
+
*/
|
|
19
|
+
constructor(code, alias, paymentDetails, payer, callbacks) {
|
|
20
|
+
super(paymentDetails, payer, callbacks);
|
|
21
|
+
this.code = code;
|
|
22
|
+
this.alias = alias;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.BlikPayment = BlikPayment;
|
|
26
|
+
//# sourceMappingURL=blik_payment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_screenless_payment","require","BlikPayment","ScreenlessPayment","constructor","code","alias","paymentDetails","payer","callbacks","exports"],"sourceRoot":"../../../../src","sources":["model/screenless/blik_payment.ts"],"mappings":";;;;;;AAIA,IAAAA,mBAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACO,MAAMC,WAAW,SAASC,qCAAiB,CAAC;EAIjD;AACF;AACA;AACA;AACA;AACA;AACA;EACEC,WAAWA,CACTC,IAAmB,EACnBC,KAAuB,EACvBC,cAA8B,EAC9BC,KAAY,EACZC,SAA2B,EAC3B;IACA,KAAK,CAACF,cAAc,EAAEC,KAAK,EAAEC,SAAS,CAAC;IACvC,IAAI,CAACJ,IAAI,GAAGA,IAAI;IAChB,IAAI,CAACC,KAAK,GAAGA,KAAK;EACpB;AACF;AAACI,OAAA,CAAAR,WAAA,GAAAA,WAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Callbacks = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Class storing the information about callbacks
|
|
9
|
+
*/
|
|
10
|
+
class Callbacks {
|
|
11
|
+
/**
|
|
12
|
+
* @param redirects - where should user be redirected after payment
|
|
13
|
+
* @param notifications - where should payment notifications be sent
|
|
14
|
+
*/
|
|
15
|
+
constructor(redirects, notifications) {
|
|
16
|
+
this.redirects = redirects;
|
|
17
|
+
this.notifications = notifications;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.Callbacks = Callbacks;
|
|
21
|
+
//# sourceMappingURL=callbacks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Callbacks","constructor","redirects","notifications","exports"],"sourceRoot":"../../../../src","sources":["model/screenless/callbacks.ts"],"mappings":";;;;;;AAGA;AACA;AACA;AACO,MAAMA,SAAS,CAAC;EAIrB;AACF;AACA;AACA;EACEC,WAAWA,CACTC,SAA2B,EAC3BC,aAAmC,EACnC;IACA,IAAI,CAACD,SAAS,GAAGA,SAAS;IAC1B,IAAI,CAACC,aAAa,GAAGA,aAAa;EACpC;AACF;AAACC,OAAA,CAAAJ,SAAA,GAAAA,SAAA"}
|