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 @@
|
|
|
1
|
+
{"version":3,"file":"payment_method.d.ts","sourceRoot":"","sources":["../../../../../src/model/payment_method/payment_method.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { DigitalWallet } from './digital_wallet';
|
|
2
|
+
import type { InstallmentPayment } from './installment_payment';
|
|
3
|
+
import type { PaymentMethod } from './payment_method';
|
|
4
|
+
/**
|
|
5
|
+
* Class responsible for storing selected payment methods
|
|
6
|
+
*/
|
|
7
|
+
export declare class PaymentMethods {
|
|
8
|
+
methods: Array<PaymentMethod>;
|
|
9
|
+
wallets: Array<DigitalWallet> | null;
|
|
10
|
+
installmentPayments: Array<InstallmentPayment> | null;
|
|
11
|
+
/**
|
|
12
|
+
* @param methods - selected payment methods
|
|
13
|
+
* @param wallets - selected digital wallets
|
|
14
|
+
* @param installmentPayments - selected installment payments
|
|
15
|
+
*/
|
|
16
|
+
constructor(methods: Array<PaymentMethod>, wallets: Array<DigitalWallet> | null, installmentPayments: Array<InstallmentPayment> | null);
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=payment_methods.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment_methods.d.ts","sourceRoot":"","sources":["../../../../../src/model/payment_method/payment_methods.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;GAEG;AACH,qBAAa,cAAc;IACzB,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAC9B,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC;IACrC,mBAAmB,EAAE,KAAK,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC;IAEtD;;;;OAIG;gBAED,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,EAC7B,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,IAAI,EACpC,mBAAmB,EAAE,KAAK,CAAC,kBAAkB,CAAC,GAAG,IAAI;CAMxD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { CreditCardBrand } from "./credit_card_brand";
|
|
2
|
+
/**
|
|
3
|
+
* Class responsible for storing tokenized card information
|
|
4
|
+
*/
|
|
5
|
+
export declare class TokenizedCard {
|
|
6
|
+
token: string;
|
|
7
|
+
cardTail: string;
|
|
8
|
+
brand: CreditCardBrand;
|
|
9
|
+
/**
|
|
10
|
+
* @param token - credit card token
|
|
11
|
+
* @param cardTail - 4 last numbers of credit card number
|
|
12
|
+
* @param brand - credit card brand
|
|
13
|
+
*/
|
|
14
|
+
constructor(token: string, cardTail: string, brand: CreditCardBrand);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=tokenized_card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokenized_card.d.ts","sourceRoot":"","sources":["../../../../../src/model/payment_method/tokenized_card.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D;;GAEG;AACH,qBAAa,aAAa;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,eAAe,CAAC;IAEvB;;;;OAIG;gBACS,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe;CAKpE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Indicates a result of Google Pay configuration
|
|
3
|
+
*/
|
|
4
|
+
export declare class GooglePayConfigureResult {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Indicates that Google Pay configuration was successful
|
|
8
|
+
*/
|
|
9
|
+
export declare class GooglePayConfigureSuccess extends GooglePayConfigureResult {
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Indicates that there was an error during Google Pay configuration
|
|
13
|
+
*/
|
|
14
|
+
export declare class GooglePayConfigureError extends GooglePayConfigureResult {
|
|
15
|
+
/**
|
|
16
|
+
* Error message
|
|
17
|
+
*/
|
|
18
|
+
message: string;
|
|
19
|
+
constructor(message: string);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=google_pay_configure_result.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google_pay_configure_result.d.ts","sourceRoot":"","sources":["../../../../../src/model/result/google_pay_configure_result.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,qBAAa,wBAAwB;CAAG;AAExC;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,wBAAwB;CAAG;AAE1E;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,wBAAwB;IACnE;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;gBAEJ,OAAO,EAAE,MAAM;CAI5B"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Indicates a result of Google Pay open
|
|
3
|
+
*/
|
|
4
|
+
export declare class GooglePayOpenResult {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Indicates that Google Pay was successfully opened and user has selected a credit card
|
|
8
|
+
*/
|
|
9
|
+
export declare class GooglePayOpenSuccess extends GooglePayOpenResult {
|
|
10
|
+
/**
|
|
11
|
+
* Google Pay card token, use it with GooglePayPayment
|
|
12
|
+
*/
|
|
13
|
+
token: string;
|
|
14
|
+
/**
|
|
15
|
+
* Credit card description, for example "Visa •••• 1111"
|
|
16
|
+
*/
|
|
17
|
+
description: string;
|
|
18
|
+
/**
|
|
19
|
+
* Credit card network
|
|
20
|
+
*/
|
|
21
|
+
cardNetwork: string;
|
|
22
|
+
/**
|
|
23
|
+
* Last digits of credit card number
|
|
24
|
+
*/
|
|
25
|
+
cardTail: string;
|
|
26
|
+
constructor(token: string, description: string, cardNetwork: string, cardTail: string);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Indicates that Google Pay was opened successfully but user closed it without selecting a credit card
|
|
30
|
+
*/
|
|
31
|
+
export declare class GooglePayOpenCancelled extends GooglePayOpenResult {
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Indicates that there was a unknown error
|
|
35
|
+
*/
|
|
36
|
+
export declare class GooglePayOpenUnknownError extends GooglePayOpenResult {
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Indicates that Google Pay utils were not configured before trying to open Google Pay.
|
|
40
|
+
* Configure utils via configureGooglePayUtils(...) method
|
|
41
|
+
*/
|
|
42
|
+
export declare class GooglePayOpenNotConfigured extends GooglePayOpenResult {
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=google_pay_open_result.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google_pay_open_result.d.ts","sourceRoot":"","sources":["../../../../../src/model/result/google_pay_open_result.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,mBAAmB;CAAG;AAEnC;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,mBAAmB;IAC3D;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;gBAGf,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM;CAQnB;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,mBAAmB;CAAG;AAElE;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,mBAAmB;CAAG;AAErE;;;GAGG;AACH,qBAAa,0BAA2B,SAAQ,mBAAmB;CAAG"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { PaymentChannel } from '../payment_channel/payment_channel';
|
|
2
|
+
/**
|
|
3
|
+
* Indicates a result of payment channels
|
|
4
|
+
*/
|
|
5
|
+
export declare class PaymentChannelsResult {
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Indicates that payment channels were successfully received
|
|
9
|
+
*/
|
|
10
|
+
export declare class PaymentChannelsSuccess extends PaymentChannelsResult {
|
|
11
|
+
/**
|
|
12
|
+
* Payment channels
|
|
13
|
+
*/
|
|
14
|
+
channels: Array<PaymentChannel>;
|
|
15
|
+
constructor(channels: Array<PaymentChannel>);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Indicates that there was an error while fetching payment channels
|
|
19
|
+
*/
|
|
20
|
+
export declare class PaymentChannelsError extends PaymentChannelsResult {
|
|
21
|
+
/**
|
|
22
|
+
* Error message
|
|
23
|
+
*/
|
|
24
|
+
message: string;
|
|
25
|
+
constructor(message: string);
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=payment_channels_result.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment_channels_result.d.ts","sourceRoot":"","sources":["../../../../../src/model/result/payment_channels_result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEzE;;GAEG;AACH,qBAAa,qBAAqB;CAAG;AAErC;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,qBAAqB;IAC/D;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;gBAEpB,QAAQ,EAAE,KAAK,CAAC,cAAc,CAAC;CAI5C;AAED;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,qBAAqB;IAC7D;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;gBAEJ,OAAO,EAAE,MAAM;CAI5B"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Indicates a result of Tpay UI module action
|
|
3
|
+
*/
|
|
4
|
+
export declare class Result {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Indicates that credit card tokenization was successful and module was closed
|
|
8
|
+
*/
|
|
9
|
+
export declare class TokenizationCompleted extends Result {
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Indicates that credit card tokenization failed and module was closed
|
|
13
|
+
*/
|
|
14
|
+
export declare class TokenizationFailure extends Result {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Indicates that configuration was successful
|
|
18
|
+
*/
|
|
19
|
+
export declare class ConfigurationSuccess extends Result {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Indicates that user closed the module without making a payment/tokenization
|
|
23
|
+
*/
|
|
24
|
+
export declare class ModuleClosed extends Result {
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Indicates that some data passed to module is invalid
|
|
28
|
+
*/
|
|
29
|
+
export declare class ValidationError extends Result {
|
|
30
|
+
/**
|
|
31
|
+
* Validation error message
|
|
32
|
+
*/
|
|
33
|
+
message: string;
|
|
34
|
+
constructor(message: string);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Indicates that payment was successful and module was closed
|
|
38
|
+
*/
|
|
39
|
+
export declare class PaymentCompleted extends Result {
|
|
40
|
+
/**
|
|
41
|
+
* Transaction id of the completed transaction
|
|
42
|
+
*/
|
|
43
|
+
transactionId: string;
|
|
44
|
+
constructor(transactionId: string);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Indicates that payment failed and module was closed
|
|
48
|
+
*/
|
|
49
|
+
export declare class PaymentCancelled extends Result {
|
|
50
|
+
/**
|
|
51
|
+
* If exists, id of the transaction
|
|
52
|
+
*/
|
|
53
|
+
transactionId: string | null;
|
|
54
|
+
constructor(transactionId: string | null);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Indicates a module error
|
|
58
|
+
*/
|
|
59
|
+
export declare class MethodCallError extends Result {
|
|
60
|
+
/**
|
|
61
|
+
* Error message
|
|
62
|
+
*/
|
|
63
|
+
message: string;
|
|
64
|
+
constructor(message: string);
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=result.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../../../../../src/model/result/result.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,MAAM;CAAG;AAEtB;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,MAAM;CAAG;AAEpD;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,MAAM;CAAG;AAElD;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,MAAM;CAAG;AAEnD;;GAEG;AACH,qBAAa,YAAa,SAAQ,MAAM;CAAG;AAE3C;;GAEG;AACH,qBAAa,eAAgB,SAAQ,MAAM;IACzC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;gBAEJ,OAAO,EAAE,MAAM;CAI5B;AAED;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,MAAM;IAC1C;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;gBAEV,aAAa,EAAE,MAAM;CAIlC;AAED;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,MAAM;IAC1C;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;gBAEjB,aAAa,EAAE,MAAM,GAAG,IAAI;CAIzC;AAED;;GAEG;AACH,qBAAa,eAAgB,SAAQ,MAAM;IACzC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;gBAEJ,OAAO,EAAE,MAAM;CAI5B"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { AmbiguousAlias } from 'react-native-tpay';
|
|
2
|
+
/**
|
|
3
|
+
* Indicates a result of screenless action
|
|
4
|
+
*/
|
|
5
|
+
export declare class ScreenlessResult {
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Indicates that some data passed to payment is invalid
|
|
9
|
+
*/
|
|
10
|
+
export declare class ScreenlessValidationError extends ScreenlessResult {
|
|
11
|
+
/**
|
|
12
|
+
* Validation error message
|
|
13
|
+
*/
|
|
14
|
+
message: string;
|
|
15
|
+
constructor(message: string);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Indicates a module error
|
|
19
|
+
*/
|
|
20
|
+
export declare class ScreenlessMethodCallError extends ScreenlessResult {
|
|
21
|
+
/**
|
|
22
|
+
* Error message
|
|
23
|
+
*/
|
|
24
|
+
message: string;
|
|
25
|
+
constructor(message: string);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Indicates that payment was completed successfully
|
|
29
|
+
*/
|
|
30
|
+
export declare class ScreenlessPaid extends ScreenlessResult {
|
|
31
|
+
/**
|
|
32
|
+
* Transaction id of the completed transaction
|
|
33
|
+
*/
|
|
34
|
+
transactionId: string;
|
|
35
|
+
constructor(transactionId: string);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Indicates that payment was created.
|
|
39
|
+
* If it was a credit card or transfer payment you might
|
|
40
|
+
* have to display paymentUrl to the user to finish the payment.
|
|
41
|
+
* If it was a BLIK payment user has to accept it in bank app.
|
|
42
|
+
* It is advised to use long polling mechanism to observe
|
|
43
|
+
* payment status via transactionId.
|
|
44
|
+
*/
|
|
45
|
+
export declare class ScreenlessPaymentCreated extends ScreenlessResult {
|
|
46
|
+
/**
|
|
47
|
+
* Transaction id of the created transaction
|
|
48
|
+
*/
|
|
49
|
+
transactionId: string;
|
|
50
|
+
/**
|
|
51
|
+
* Payment url, needs to be displayed to the user to finish the payment
|
|
52
|
+
*/
|
|
53
|
+
paymentUrl: string | null;
|
|
54
|
+
constructor(transactionId: string, paymentUrl: string | null);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Indicates that creating payment failed because of error with:
|
|
58
|
+
* - credit card data or credit card token
|
|
59
|
+
* - BLIK code or BLIK alias
|
|
60
|
+
*/
|
|
61
|
+
export declare class ScreenlessConfiguredPaymentFailed extends ScreenlessResult {
|
|
62
|
+
/**
|
|
63
|
+
* Transaction id of the created transaction
|
|
64
|
+
*/
|
|
65
|
+
transactionId: string;
|
|
66
|
+
/**
|
|
67
|
+
* Optional error message
|
|
68
|
+
*/
|
|
69
|
+
error: string | null;
|
|
70
|
+
constructor(transactionId: string, error: string | null);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Indicates that payer has the same BLIK alias registered in more than one bank app.
|
|
74
|
+
* You need to display a list of aliases to user and then use AmbiguousBlikPayment to
|
|
75
|
+
* continue the payment.
|
|
76
|
+
*/
|
|
77
|
+
export declare class ScreenlessBlikAmbiguousAlias extends ScreenlessResult {
|
|
78
|
+
/**
|
|
79
|
+
* Transaction id of the created transaction
|
|
80
|
+
*/
|
|
81
|
+
transactionId: string;
|
|
82
|
+
/**
|
|
83
|
+
* Ambiguous aliases that need to be displayed to the user
|
|
84
|
+
*/
|
|
85
|
+
aliases: Array<AmbiguousAlias>;
|
|
86
|
+
constructor(transactionId: string, aliases: Array<AmbiguousAlias>);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Indicates that payment was not created because of an error
|
|
90
|
+
*/
|
|
91
|
+
export declare class ScreenlessPaymentError extends ScreenlessResult {
|
|
92
|
+
/**
|
|
93
|
+
* Optional error message
|
|
94
|
+
*/
|
|
95
|
+
error: string | null;
|
|
96
|
+
constructor(error: string | null);
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=screenless_result.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"screenless_result.d.ts","sourceRoot":"","sources":["../../../../../src/model/result/screenless_result.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;GAEG;AACH,qBAAa,gBAAgB;CAAG;AAEhC;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,gBAAgB;IAC7D;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;gBAEJ,OAAO,EAAE,MAAM;CAI5B;AAED;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,gBAAgB;IAC7D;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;gBAEJ,OAAO,EAAE,MAAM;CAI5B;AAED;;GAEG;AACH,qBAAa,cAAe,SAAQ,gBAAgB;IAClD;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;gBAEV,aAAa,EAAE,MAAM;CAIlC;AAED;;;;;;;GAOG;AACH,qBAAa,wBAAyB,SAAQ,gBAAgB;IAC5D;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;gBAEd,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI;CAK7D;AAED;;;;GAIG;AACH,qBAAa,iCAAkC,SAAQ,gBAAgB;IACrE;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;gBAET,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAKxD;AAED;;;;GAIG;AACH,qBAAa,4BAA6B,SAAQ,gBAAgB;IAChE;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;gBAEnB,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,cAAc,CAAC;CAKlE;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,gBAAgB;IAC1D;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;gBAET,KAAK,EAAE,MAAM,GAAG,IAAI;CAIjC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class responsible for storing ambiguous alias information
|
|
3
|
+
*/
|
|
4
|
+
export declare class AmbiguousAlias {
|
|
5
|
+
/**
|
|
6
|
+
* Alias display name
|
|
7
|
+
*/
|
|
8
|
+
name: string;
|
|
9
|
+
/**
|
|
10
|
+
* Alias identifier
|
|
11
|
+
*/
|
|
12
|
+
code: string;
|
|
13
|
+
constructor(name: string, code: string);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=ambiguous_alias.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ambiguous_alias.d.ts","sourceRoot":"","sources":["../../../../../src/model/screenless/ambiguous_alias.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,cAAc;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;gBAED,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;CAIvC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { BlikAlias } from "../payment_method/blik_alias";
|
|
2
|
+
import type { AmbiguousAlias } from "./ambiguous_alias";
|
|
3
|
+
/**
|
|
4
|
+
* Class responsible for storing information about ambiguous BLIK payment
|
|
5
|
+
*/
|
|
6
|
+
export declare class AmbiguousBlikPayment {
|
|
7
|
+
transactionId: string;
|
|
8
|
+
blikAlias: BlikAlias;
|
|
9
|
+
ambiguousAlias: AmbiguousAlias;
|
|
10
|
+
/**
|
|
11
|
+
* @param transactionId - id of transaction received from ScreenlessBlikAmbiguousAlias result
|
|
12
|
+
* @param blikAlias - BLIK alias used to create transaction with BlikPayment
|
|
13
|
+
* @param ambiguousBlik - ambiguous alias selected by user
|
|
14
|
+
*/
|
|
15
|
+
constructor(transactionId: string, blikAlias: BlikAlias, ambiguousBlik: AmbiguousAlias);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=ambiguous_blik_payment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ambiguous_blik_payment.d.ts","sourceRoot":"","sources":["../../../../../src/model/screenless/ambiguous_blik_payment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD;;GAEG;AACH,qBAAa,oBAAoB;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,SAAS,CAAC;IACrB,cAAc,EAAE,cAAc,CAAC;IAE/B;;;;OAIG;gBAED,aAAa,EAAE,MAAM,EACrB,SAAS,EAAE,SAAS,EACpB,aAAa,EAAE,cAAc;CAMhC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Payer } from "../payer/payer";
|
|
2
|
+
import type { Callbacks } from "./callbacks";
|
|
3
|
+
import type { PaymentDetails } from "./payment_details";
|
|
4
|
+
import { ScreenlessPayment } from "./screenless_payment";
|
|
5
|
+
/**
|
|
6
|
+
* Class responsible for storing information about Apple Pay payment
|
|
7
|
+
*/
|
|
8
|
+
export declare class ApplePayPayment extends ScreenlessPayment {
|
|
9
|
+
applePayToken: string;
|
|
10
|
+
/**
|
|
11
|
+
* @param applePayToken - Token received from Apple Pay
|
|
12
|
+
*/
|
|
13
|
+
constructor(applePayToken: string, paymentDetails: PaymentDetails, payer: Payer, callbacks: Callbacks | null);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=apple_pay_payment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apple_pay_payment.d.ts","sourceRoot":"","sources":["../../../../../src/model/screenless/apple_pay_payment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD;;GAEG;AACH,qBAAa,eAAgB,SAAQ,iBAAiB;IACpD,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;gBAED,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,GAAG,IAAI;CAK9B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Payer } from '../payer/payer';
|
|
2
|
+
import type { BlikAlias } from '../payment_method/blik_alias';
|
|
3
|
+
import type { Callbacks } from './callbacks';
|
|
4
|
+
import type { PaymentDetails } from './payment_details';
|
|
5
|
+
import { ScreenlessPayment } from './screenless_payment';
|
|
6
|
+
/**
|
|
7
|
+
* Class responsible for storing BLIK payment information
|
|
8
|
+
*/
|
|
9
|
+
export declare class BlikPayment extends ScreenlessPayment {
|
|
10
|
+
code: string | null;
|
|
11
|
+
alias: BlikAlias | null;
|
|
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: string | null, alias: BlikAlias | null, paymentDetails: PaymentDetails, payer: Payer, callbacks: Callbacks | null);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=blik_payment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blik_payment.d.ts","sourceRoot":"","sources":["../../../../../src/model/screenless/blik_payment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD;;GAEG;AACH,qBAAa,WAAY,SAAQ,iBAAiB;IAChD,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,SAAS,GAAG,IAAI,CAAC;IAExB;;;;;;OAMG;gBAED,IAAI,EAAE,MAAM,GAAG,IAAI,EACnB,KAAK,EAAE,SAAS,GAAG,IAAI,EACvB,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,GAAG,IAAI;CAM9B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Notifications } from "./notifications";
|
|
2
|
+
import type { Redirects } from "./redirects";
|
|
3
|
+
/**
|
|
4
|
+
* Class storing the information about callbacks
|
|
5
|
+
*/
|
|
6
|
+
export declare class Callbacks {
|
|
7
|
+
redirects: Redirects | null;
|
|
8
|
+
notifications: Notifications | null;
|
|
9
|
+
/**
|
|
10
|
+
* @param redirects - where should user be redirected after payment
|
|
11
|
+
* @param notifications - where should payment notifications be sent
|
|
12
|
+
*/
|
|
13
|
+
constructor(redirects: Redirects | null, notifications: Notifications | null);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=callbacks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callbacks.d.ts","sourceRoot":"","sources":["../../../../../src/model/screenless/callbacks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;GAEG;AACH,qBAAa,SAAS;IACpB,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC;IAC5B,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IAEpC;;;OAGG;gBAED,SAAS,EAAE,SAAS,GAAG,IAAI,EAC3B,aAAa,EAAE,aAAa,GAAG,IAAI;CAKtC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { CreditCardConfig } from "./credit_card_config";
|
|
2
|
+
import type { ExpirationDate } from "./expiration_date";
|
|
3
|
+
/**
|
|
4
|
+
* Class responsible for storing information about a credit card
|
|
5
|
+
*/
|
|
6
|
+
export declare class CreditCard {
|
|
7
|
+
cardNumber: string;
|
|
8
|
+
expiryDate: ExpirationDate;
|
|
9
|
+
cvv: string;
|
|
10
|
+
config: CreditCardConfig;
|
|
11
|
+
/**
|
|
12
|
+
* @param cardNumber - credit card number
|
|
13
|
+
* @param expiryDate - credit card expiration date
|
|
14
|
+
* @param cvv - cvv code
|
|
15
|
+
* @param config - other credit card information
|
|
16
|
+
*/
|
|
17
|
+
constructor(cardNumber: string, expiryDate: ExpirationDate, cvv: string, config: CreditCardConfig);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=credit_card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credit_card.d.ts","sourceRoot":"","sources":["../../../../../src/model/screenless/credit_card.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD;;GAEG;AACH,qBAAa,UAAU;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,cAAc,CAAC;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,gBAAgB,CAAC;IAEzB;;;;;OAKG;gBAED,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,cAAc,EAC1B,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,gBAAgB;CAO3B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class responsible for storing payment related information about credit card
|
|
3
|
+
*/
|
|
4
|
+
export declare class CreditCardConfig {
|
|
5
|
+
shouldSave: boolean;
|
|
6
|
+
domain: string;
|
|
7
|
+
rocText: string | null;
|
|
8
|
+
/**
|
|
9
|
+
* @param shouldSave - whether credit card should be tokenized after payment
|
|
10
|
+
* @param domain - domain of your store
|
|
11
|
+
*/
|
|
12
|
+
constructor(shouldSave: boolean, domain: string, rocText: string | null);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=credit_card_config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credit_card_config.d.ts","sourceRoot":"","sources":["../../../../../src/model/screenless/credit_card_config.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,gBAAgB;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;;OAGG;gBACS,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;CAKxE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Payer } from "../payer/payer";
|
|
2
|
+
import type { Callbacks } from "./callbacks";
|
|
3
|
+
import type { CreditCard } from "./credit_card";
|
|
4
|
+
import type { PaymentDetails } from "./payment_details";
|
|
5
|
+
import { ScreenlessPayment } from "./screenless_payment";
|
|
6
|
+
/**
|
|
7
|
+
* Class responsible for storing information about credit card payment
|
|
8
|
+
*/
|
|
9
|
+
export declare class CreditCardPayment extends ScreenlessPayment {
|
|
10
|
+
creditCard: CreditCard | null;
|
|
11
|
+
creditCardToken: string | null;
|
|
12
|
+
/**
|
|
13
|
+
* You have to provide either creditCard or creditCardToken.
|
|
14
|
+
* If you provide both, creditCardToken will be used.
|
|
15
|
+
*
|
|
16
|
+
* @param creditCard - information about credit card
|
|
17
|
+
* @param creditCardToken - token of tokenized card (for returning customers)
|
|
18
|
+
*/
|
|
19
|
+
constructor(creditCard: CreditCard | null, creditCardToken: string | null, paymentDetails: PaymentDetails, payer: Payer, callbacks: Callbacks | null);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=credit_card_payment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credit_card_payment.d.ts","sourceRoot":"","sources":["../../../../../src/model/screenless/credit_card_payment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,iBAAiB;IACtD,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAC9B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;;;;;OAMG;gBAED,UAAU,EAAE,UAAU,GAAG,IAAI,EAC7B,eAAe,EAAE,MAAM,GAAG,IAAI,EAC9B,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,GAAG,IAAI;CAM9B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class responsible for storing information about expiration date
|
|
3
|
+
*/
|
|
4
|
+
export declare class ExpirationDate {
|
|
5
|
+
month: String;
|
|
6
|
+
year: String;
|
|
7
|
+
/**
|
|
8
|
+
* @param month - 2-digit month, for example '02'
|
|
9
|
+
* @param year - 2-digit year, for example '24'
|
|
10
|
+
*/
|
|
11
|
+
constructor(month: string, year: string);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=expiration_date.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expiration_date.d.ts","sourceRoot":"","sources":["../../../../../src/model/screenless/expiration_date.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,cAAc;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;gBACS,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;CAIxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frequency.d.ts","sourceRoot":"","sources":["../../../../../src/model/screenless/frequency.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,MAAM,WAAW;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google_pay_environment.d.ts","sourceRoot":"","sources":["../../../../../src/model/screenless/google_pay_environment.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,oBAAoB;IAC9B,UAAU,eAAe;IACzB,IAAI,SAAS;CACd"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Payer } from "../payer/payer";
|
|
2
|
+
import type { Callbacks } from "./callbacks";
|
|
3
|
+
import type { PaymentDetails } from "./payment_details";
|
|
4
|
+
import { ScreenlessPayment } from "./screenless_payment";
|
|
5
|
+
/**
|
|
6
|
+
* Class responsible for storing information about Google Pay payment
|
|
7
|
+
*/
|
|
8
|
+
export declare class GooglePayPayment extends ScreenlessPayment {
|
|
9
|
+
token: string;
|
|
10
|
+
/**
|
|
11
|
+
* @param token - token received from Google Pay
|
|
12
|
+
*/
|
|
13
|
+
constructor(token: string, paymentDetails: PaymentDetails, payer: Payer, callbacks: Callbacks | null);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=google_pay_payment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google_pay_payment.d.ts","sourceRoot":"","sources":["../../../../../src/model/screenless/google_pay_payment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,iBAAiB;IACrD,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;gBAED,KAAK,EAAE,MAAM,EACb,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,GAAG,IAAI;CAK9B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { GooglePayEnvironment } from "./google_pay_environment";
|
|
2
|
+
/**
|
|
3
|
+
* Class responsible for storing information about Google Pay utils configuration
|
|
4
|
+
*/
|
|
5
|
+
export declare class GooglePayUtilsConfiguration {
|
|
6
|
+
price: number;
|
|
7
|
+
merchantName: string;
|
|
8
|
+
merchantId: string;
|
|
9
|
+
environment: GooglePayEnvironment;
|
|
10
|
+
customRequestCode: number | null;
|
|
11
|
+
/**
|
|
12
|
+
* @param price - price that will be displayed in Google Pay
|
|
13
|
+
* @param merchantName - store name displayed in Google Pay
|
|
14
|
+
* @param merchantId - your merchantId in Tpay system
|
|
15
|
+
* @param environment - Google Pay environment
|
|
16
|
+
* @param customRequestCode - alternative request code that will be used to manage Google Pay data
|
|
17
|
+
*/
|
|
18
|
+
constructor(price: number, merchantName: string, merchantId: string, environment: GooglePayEnvironment, customRequestCode: number | null);
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=google_pay_utils_configuration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google_pay_utils_configuration.d.ts","sourceRoot":"","sources":["../../../../../src/model/screenless/google_pay_utils_configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE;;GAEG;AACH,qBAAa,2BAA2B;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,oBAAoB,CAAC;IAClC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC;;;;;;OAMG;gBAED,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,oBAAoB,EACjC,iBAAiB,EAAE,MAAM,GAAG,IAAI;CAQnC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class responsible for storing information about notifications
|
|
3
|
+
*/
|
|
4
|
+
export declare class Notifications {
|
|
5
|
+
url: string;
|
|
6
|
+
email: string;
|
|
7
|
+
/**
|
|
8
|
+
* @param url - notification url, payment notifications will be sent there
|
|
9
|
+
* @param email - notification email, payment notifications will be sent there
|
|
10
|
+
*/
|
|
11
|
+
constructor(url: string, email: string);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=notifications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../../../../src/model/screenless/notifications.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,aAAa;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;gBACS,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;CAIvC"}
|