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.
Files changed (558) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +555 -0
  3. package/android/build.gradle +95 -0
  4. package/android/gradle.properties +5 -0
  5. package/android/src/main/AndroidManifest.xml +3 -0
  6. package/android/src/main/AndroidManifestNew.xml +2 -0
  7. package/android/src/main/java/com/tpay/TpayAmbiguousBLIKPaymentHandler.kt +21 -0
  8. package/android/src/main/java/com/tpay/TpayModule.kt +528 -0
  9. package/android/src/main/java/com/tpay/TpayPackage.kt +17 -0
  10. package/android/src/main/java/com/tpay/TpayResult.kt +12 -0
  11. package/android/src/main/java/com/tpay/TpayScreenlessPaymentHandler.kt +102 -0
  12. package/android/src/main/java/com/tpay/TpayScreenlessResult.kt +25 -0
  13. package/android/src/main/java/com/tpay/TpayScreenlessResultHandler.kt +121 -0
  14. package/android/src/main/java/com/tpay/delegate/AddCardDelegateImpl.kt +30 -0
  15. package/android/src/main/java/com/tpay/delegate/PaymentDelegateImpl.kt +33 -0
  16. package/android/src/main/java/com/tpay/extension/AmbiguousAlias+.kt +11 -0
  17. package/android/src/main/java/com/tpay/extension/BlikAlias+.kt +18 -0
  18. package/android/src/main/java/com/tpay/extension/CardTokenTransaction+.kt +19 -0
  19. package/android/src/main/java/com/tpay/extension/Exception.kt +3 -0
  20. package/android/src/main/java/com/tpay/extension/JSONObject+.kt +10 -0
  21. package/android/src/main/java/com/tpay/extension/PaymentChannel+.kt +22 -0
  22. package/android/src/main/java/com/tpay/extension/PaymentConstraint+.kt +24 -0
  23. package/android/src/main/java/com/tpay/extension/PaymentGroup+.kt +21 -0
  24. package/android/src/main/java/com/tpay/extension/SingleTransaction+.kt +14 -0
  25. package/android/src/main/java/com/tpay/extension/String+.kt +30 -0
  26. package/android/src/main/java/com/tpay/model/CertificateConfiguration.kt +20 -0
  27. package/android/src/main/java/com/tpay/model/Configuration.kt +5 -0
  28. package/android/src/main/java/com/tpay/model/ConfigurationMerchant.kt +33 -0
  29. package/android/src/main/java/com/tpay/model/Languages.kt +24 -0
  30. package/android/src/main/java/com/tpay/model/LocalizedString.kt +21 -0
  31. package/android/src/main/java/com/tpay/model/MerchantAuthorization.kt +20 -0
  32. package/android/src/main/java/com/tpay/model/MerchantDetails.kt +32 -0
  33. package/android/src/main/java/com/tpay/model/PaymentMethods.kt +90 -0
  34. package/android/src/main/java/com/tpay/model/TpayConfiguration.kt +50 -0
  35. package/android/src/main/java/com/tpay/model/WalletConfiguration.kt +14 -0
  36. package/android/src/main/java/com/tpay/model/googlePay/GooglePayConfiguration.kt +13 -0
  37. package/android/src/main/java/com/tpay/model/googlePay/GooglePayConfigureResult.kt +6 -0
  38. package/android/src/main/java/com/tpay/model/googlePay/GooglePayUtilsConfiguration.kt +57 -0
  39. package/android/src/main/java/com/tpay/model/screenless/AmbiguousBLIKAlias.kt +35 -0
  40. package/android/src/main/java/com/tpay/model/screenless/AmbiguousBLIKPayment.kt +26 -0
  41. package/android/src/main/java/com/tpay/model/screenless/BLIKScreenlessPayment.kt +28 -0
  42. package/android/src/main/java/com/tpay/model/screenless/CreditCardData.kt +10 -0
  43. package/android/src/main/java/com/tpay/model/screenless/CreditCardScreenlessPayment.kt +75 -0
  44. package/android/src/main/java/com/tpay/model/screenless/ExpirationDate.kt +22 -0
  45. package/android/src/main/java/com/tpay/model/screenless/GooglePayScreenlessPayment.kt +19 -0
  46. package/android/src/main/java/com/tpay/model/screenless/PaymentConstraintType.kt +5 -0
  47. package/android/src/main/java/com/tpay/model/screenless/RatyPekaoScreenlessPayment.kt +9 -0
  48. package/android/src/main/java/com/tpay/model/screenless/ScreenlessPayment.kt +87 -0
  49. package/android/src/main/java/com/tpay/model/screenless/TransferScreenlessPayment.kt +9 -0
  50. package/android/src/main/java/com/tpay/util/JsonUtil.kt +178 -0
  51. package/android/src/main/java/com/tpay/util/TpayBackpressUtil.kt +23 -0
  52. package/android/src/main/java/com/tpay/util/TpayUtil.kt +67 -0
  53. package/android/src/main/java/com/tpay/util/ValidationMessages.kt +19 -0
  54. package/ios/Source/Configuration/MerchantConfiguration.swift +120 -0
  55. package/ios/Source/Configuration/PaymentMethodConfiguration.swift +41 -0
  56. package/ios/Source/Configuration/TransactionConfiguration.swift +200 -0
  57. package/ios/Source/Extension/TPay+Setup.swift +32 -0
  58. package/ios/Source/Model/Domain/BankPayment.swift +12 -0
  59. package/ios/Source/Model/Domain/BlikPayment.swift +14 -0
  60. package/ios/Source/Model/Domain/CardPayment.swift +14 -0
  61. package/ios/Source/Model/Domain/ConfigurationResult.swift +98 -0
  62. package/ios/Source/Model/Domain/ContinuePayment.swift +10 -0
  63. package/ios/Source/Model/Domain/DigitalWalletPayment.swift +13 -0
  64. package/ios/Source/Model/Domain/PaymentChannelResult.swift +44 -0
  65. package/ios/Source/Model/Domain/ScreenlessResult.swift +67 -0
  66. package/ios/Source/Model/Domain/TokenisationData.swift +16 -0
  67. package/ios/Source/Model/Transportation/Transportation+AmbiguousAlias.swift +10 -0
  68. package/ios/Source/Model/Transportation/Transportation+Bank.swift +11 -0
  69. package/ios/Source/Model/Transportation/Transportation+BankPayment.swift +13 -0
  70. package/ios/Source/Model/Transportation/Transportation+BlikPayment+Alias.swift +9 -0
  71. package/ios/Source/Model/Transportation/Transportation+BlikPayment.swift +13 -0
  72. package/ios/Source/Model/Transportation/Transportation+Callbacks+Notifications.swift +10 -0
  73. package/ios/Source/Model/Transportation/Transportation+Callbacks+Redirects.swift +10 -0
  74. package/ios/Source/Model/Transportation/Transportation+Callbacks.swift +10 -0
  75. package/ios/Source/Model/Transportation/Transportation+CardDetails+Configuration.swift +9 -0
  76. package/ios/Source/Model/Transportation/Transportation+CardDetails+ExpiryDate.swift +10 -0
  77. package/ios/Source/Model/Transportation/Transportation+CardDetails.swift +12 -0
  78. package/ios/Source/Model/Transportation/Transportation+CardPayment.swift +13 -0
  79. package/ios/Source/Model/Transportation/Transportation+CardToken.swift +11 -0
  80. package/ios/Source/Model/Transportation/Transportation+ContinuePayment.swift +11 -0
  81. package/ios/Source/Model/Transportation/Transportation+DigitalWalletPayment.swift +12 -0
  82. package/ios/Source/Model/Transportation/Transportation+Environment.swift +23 -0
  83. package/ios/Source/Model/Transportation/Transportation+Languages.swift +10 -0
  84. package/ios/Source/Model/Transportation/Transportation+Merchant+Authorization.swift +10 -0
  85. package/ios/Source/Model/Transportation/Transportation+Merchant+CertificatePinning.swift +9 -0
  86. package/ios/Source/Model/Transportation/Transportation+Merchant+WalletConfiguration+ApplePay.swift +10 -0
  87. package/ios/Source/Model/Transportation/Transportation+Merchant+WalletConfiguration.swift +9 -0
  88. package/ios/Source/Model/Transportation/Transportation+Merchant.swift +13 -0
  89. package/ios/Source/Model/Transportation/Transportation+MerchantConfiguration.swift +12 -0
  90. package/ios/Source/Model/Transportation/Transportation+MerchantDetails+Detail.swift +10 -0
  91. package/ios/Source/Model/Transportation/Transportation+MerchantDetails.swift +11 -0
  92. package/ios/Source/Model/Transportation/Transportation+Payer+Address.swift +12 -0
  93. package/ios/Source/Model/Transportation/Transportation+Payer.swift +12 -0
  94. package/ios/Source/Model/Transportation/Transportation+PayerContext+AutomaticPaymentMethods+BlikAlias.swift +9 -0
  95. package/ios/Source/Model/Transportation/Transportation+PayerContext+AutomaticPaymentMethods.swift +10 -0
  96. package/ios/Source/Model/Transportation/Transportation+PayerContext.swift +10 -0
  97. package/ios/Source/Model/Transportation/Transportation+PaymentChannel.swift +21 -0
  98. package/ios/Source/Model/Transportation/Transportation+PaymentDetails.swift +10 -0
  99. package/ios/Source/Model/Transportation/Transportation+PaymentMethod.swift +47 -0
  100. package/ios/Source/Model/Transportation/Transportation+PaymentMethods.swift +11 -0
  101. package/ios/Source/Model/Transportation/Transportation+PaymentMethodsInfo.swift +12 -0
  102. package/ios/Source/Model/Transportation/Transportation+SingleTransaction.swift +11 -0
  103. package/ios/Source/Model/Transportation/Transportation+TokenPayment.swift +12 -0
  104. package/ios/Source/Model/Transportation/Transportation+Tokenisation.swift +12 -0
  105. package/ios/Source/Model/Transportation/Transportation.swift +3 -0
  106. package/ios/Source/Presentation/AddCardPresentation.swift +43 -0
  107. package/ios/Source/Presentation/CardTokenPresentation.swift +48 -0
  108. package/ios/Source/Presentation/PaymentPresentation.swift +48 -0
  109. package/ios/Source/Provider/DefaultMerchantDetailsProvider.swift +32 -0
  110. package/ios/Source/Provider/DefaultSSLCertificatesProvider.swift +14 -0
  111. package/ios/Source/TpaySDK.mm +35 -0
  112. package/ios/Source/TpaySDK.swift +324 -0
  113. package/ios/Tpay-Bridging-Header.h +2 -0
  114. package/lib/commonjs/assets/tpay_logo.png +0 -0
  115. package/lib/commonjs/assets/tpay_logo@2x.png +0 -0
  116. package/lib/commonjs/assets/tpay_logo@3x.png +0 -0
  117. package/lib/commonjs/component/tpay_button.js +38 -0
  118. package/lib/commonjs/component/tpay_button.js.map +1 -0
  119. package/lib/commonjs/index.js +856 -0
  120. package/lib/commonjs/index.js.map +1 -0
  121. package/lib/commonjs/model/language/language.js +12 -0
  122. package/lib/commonjs/model/language/language.js.map +1 -0
  123. package/lib/commonjs/model/language/languages.js +21 -0
  124. package/lib/commonjs/model/language/languages.js.map +1 -0
  125. package/lib/commonjs/model/language/localized_string.js +17 -0
  126. package/lib/commonjs/model/language/localized_string.js.map +1 -0
  127. package/lib/commonjs/model/merchant/apple_pay_configuration.js +22 -0
  128. package/lib/commonjs/model/merchant/apple_pay_configuration.js.map +1 -0
  129. package/lib/commonjs/model/merchant/certificate_configuration.js +20 -0
  130. package/lib/commonjs/model/merchant/certificate_configuration.js.map +1 -0
  131. package/lib/commonjs/model/merchant/google_pay_configuration.js +19 -0
  132. package/lib/commonjs/model/merchant/google_pay_configuration.js.map +1 -0
  133. package/lib/commonjs/model/merchant/merchant.js +27 -0
  134. package/lib/commonjs/model/merchant/merchant.js.map +1 -0
  135. package/lib/commonjs/model/merchant/merchant_authorization.js +21 -0
  136. package/lib/commonjs/model/merchant/merchant_authorization.js.map +1 -0
  137. package/lib/commonjs/model/merchant/merchant_details.js +23 -0
  138. package/lib/commonjs/model/merchant/merchant_details.js.map +1 -0
  139. package/lib/commonjs/model/merchant/tpay_environment.js +12 -0
  140. package/lib/commonjs/model/merchant/tpay_environment.js.map +1 -0
  141. package/lib/commonjs/model/merchant/wallet_configuration.js +21 -0
  142. package/lib/commonjs/model/merchant/wallet_configuration.js.map +1 -0
  143. package/lib/commonjs/model/payer/address.js +25 -0
  144. package/lib/commonjs/model/payer/address.js.map +1 -0
  145. package/lib/commonjs/model/payer/payer.js +25 -0
  146. package/lib/commonjs/model/payer/payer.js.map +1 -0
  147. package/lib/commonjs/model/payer/payer_context.js +21 -0
  148. package/lib/commonjs/model/payer/payer_context.js.map +1 -0
  149. package/lib/commonjs/model/payment_channel/payment_channel.js +35 -0
  150. package/lib/commonjs/model/payment_channel/payment_channel.js.map +1 -0
  151. package/lib/commonjs/model/payment_channel/payment_constraint.js +47 -0
  152. package/lib/commonjs/model/payment_channel/payment_constraint.js.map +1 -0
  153. package/lib/commonjs/model/payment_channel/payment_group.js +30 -0
  154. package/lib/commonjs/model/payment_channel/payment_group.js.map +1 -0
  155. package/lib/commonjs/model/payment_method/automatic_payment_methods.js +21 -0
  156. package/lib/commonjs/model/payment_method/automatic_payment_methods.js.map +1 -0
  157. package/lib/commonjs/model/payment_method/blik_alias.js +23 -0
  158. package/lib/commonjs/model/payment_method/blik_alias.js.map +1 -0
  159. package/lib/commonjs/model/payment_method/credit_card_brand.js +16 -0
  160. package/lib/commonjs/model/payment_method/credit_card_brand.js.map +1 -0
  161. package/lib/commonjs/model/payment_method/digital_wallet.js +15 -0
  162. package/lib/commonjs/model/payment_method/digital_wallet.js.map +1 -0
  163. package/lib/commonjs/model/payment_method/installment_payment.js +14 -0
  164. package/lib/commonjs/model/payment_method/installment_payment.js.map +1 -0
  165. package/lib/commonjs/model/payment_method/payment_method.js +16 -0
  166. package/lib/commonjs/model/payment_method/payment_method.js.map +1 -0
  167. package/lib/commonjs/model/payment_method/payment_methods.js +23 -0
  168. package/lib/commonjs/model/payment_method/payment_methods.js.map +1 -0
  169. package/lib/commonjs/model/payment_method/tokenized_card.js +23 -0
  170. package/lib/commonjs/model/payment_method/tokenized_card.js.map +1 -0
  171. package/lib/commonjs/model/result/google_pay_configure_result.js +33 -0
  172. package/lib/commonjs/model/result/google_pay_configure_result.js.map +1 -0
  173. package/lib/commonjs/model/result/google_pay_open_result.js +61 -0
  174. package/lib/commonjs/model/result/google_pay_open_result.js.map +1 -0
  175. package/lib/commonjs/model/result/payment_channels_result.js +42 -0
  176. package/lib/commonjs/model/result/payment_channels_result.js.map +1 -0
  177. package/lib/commonjs/model/result/result.js +96 -0
  178. package/lib/commonjs/model/result/result.js.map +1 -0
  179. package/lib/commonjs/model/result/screenless_result.js +141 -0
  180. package/lib/commonjs/model/result/screenless_result.js.map +1 -0
  181. package/lib/commonjs/model/screenless/ambiguous_alias.js +25 -0
  182. package/lib/commonjs/model/screenless/ambiguous_alias.js.map +1 -0
  183. package/lib/commonjs/model/screenless/ambiguous_blik_payment.js +23 -0
  184. package/lib/commonjs/model/screenless/ambiguous_blik_payment.js.map +1 -0
  185. package/lib/commonjs/model/screenless/apple_pay_payment.js +21 -0
  186. package/lib/commonjs/model/screenless/apple_pay_payment.js.map +1 -0
  187. package/lib/commonjs/model/screenless/blik_payment.js +26 -0
  188. package/lib/commonjs/model/screenless/blik_payment.js.map +1 -0
  189. package/lib/commonjs/model/screenless/callbacks.js +21 -0
  190. package/lib/commonjs/model/screenless/callbacks.js.map +1 -0
  191. package/lib/commonjs/model/screenless/credit_card.js +25 -0
  192. package/lib/commonjs/model/screenless/credit_card.js.map +1 -0
  193. package/lib/commonjs/model/screenless/credit_card_config.js +22 -0
  194. package/lib/commonjs/model/screenless/credit_card_config.js.map +1 -0
  195. package/lib/commonjs/model/screenless/credit_card_payment.js +26 -0
  196. package/lib/commonjs/model/screenless/credit_card_payment.js.map +1 -0
  197. package/lib/commonjs/model/screenless/expiration_date.js +21 -0
  198. package/lib/commonjs/model/screenless/expiration_date.js.map +1 -0
  199. package/lib/commonjs/model/screenless/frequency.js +18 -0
  200. package/lib/commonjs/model/screenless/frequency.js.map +1 -0
  201. package/lib/commonjs/model/screenless/google_pay_environment.js +15 -0
  202. package/lib/commonjs/model/screenless/google_pay_environment.js.map +1 -0
  203. package/lib/commonjs/model/screenless/google_pay_payment.js +21 -0
  204. package/lib/commonjs/model/screenless/google_pay_payment.js.map +1 -0
  205. package/lib/commonjs/model/screenless/google_pay_utils_configuration.js +27 -0
  206. package/lib/commonjs/model/screenless/google_pay_utils_configuration.js.map +1 -0
  207. package/lib/commonjs/model/screenless/notifications.js +21 -0
  208. package/lib/commonjs/model/screenless/notifications.js.map +1 -0
  209. package/lib/commonjs/model/screenless/payment_details.js +25 -0
  210. package/lib/commonjs/model/screenless/payment_details.js.map +1 -0
  211. package/lib/commonjs/model/screenless/raty_pekao_payment.js +21 -0
  212. package/lib/commonjs/model/screenless/raty_pekao_payment.js.map +1 -0
  213. package/lib/commonjs/model/screenless/recursive.js +23 -0
  214. package/lib/commonjs/model/screenless/recursive.js.map +1 -0
  215. package/lib/commonjs/model/screenless/redirects.js +21 -0
  216. package/lib/commonjs/model/screenless/redirects.js.map +1 -0
  217. package/lib/commonjs/model/screenless/screenless_payment.js +23 -0
  218. package/lib/commonjs/model/screenless/screenless_payment.js.map +1 -0
  219. package/lib/commonjs/model/screenless/transfer_payment.js +21 -0
  220. package/lib/commonjs/model/screenless/transfer_payment.js.map +1 -0
  221. package/lib/commonjs/model/tokenization/tokenization.js +21 -0
  222. package/lib/commonjs/model/tokenization/tokenization.js.map +1 -0
  223. package/lib/commonjs/model/tpay_configuration.js +25 -0
  224. package/lib/commonjs/model/tpay_configuration.js.map +1 -0
  225. package/lib/commonjs/model/transaction/single_transaction.js +24 -0
  226. package/lib/commonjs/model/transaction/single_transaction.js.map +1 -0
  227. package/lib/commonjs/model/transaction/token_payment.js +26 -0
  228. package/lib/commonjs/model/transaction/token_payment.js.map +1 -0
  229. package/lib/commonjs/model/transaction/transaction.js +23 -0
  230. package/lib/commonjs/model/transaction/transaction.js.map +1 -0
  231. package/lib/commonjs/util/google_pay_configuration_util.js +22 -0
  232. package/lib/commonjs/util/google_pay_configuration_util.js.map +1 -0
  233. package/lib/commonjs/util/google_pay_open_util.js +24 -0
  234. package/lib/commonjs/util/google_pay_open_util.js.map +1 -0
  235. package/lib/commonjs/util/payment_channels_util.js +22 -0
  236. package/lib/commonjs/util/payment_channels_util.js.map +1 -0
  237. package/lib/commonjs/util/result_util.js +40 -0
  238. package/lib/commonjs/util/result_util.js.map +1 -0
  239. package/lib/commonjs/util/screenless_result_util.js +38 -0
  240. package/lib/commonjs/util/screenless_result_util.js.map +1 -0
  241. package/lib/module/assets/tpay_logo.png +0 -0
  242. package/lib/module/assets/tpay_logo@2x.png +0 -0
  243. package/lib/module/assets/tpay_logo@3x.png +0 -0
  244. package/lib/module/component/tpay_button.js +31 -0
  245. package/lib/module/component/tpay_button.js.map +1 -0
  246. package/lib/module/index.js +204 -0
  247. package/lib/module/index.js.map +1 -0
  248. package/lib/module/model/language/language.js +6 -0
  249. package/lib/module/model/language/language.js.map +1 -0
  250. package/lib/module/model/language/languages.js +14 -0
  251. package/lib/module/model/language/languages.js.map +1 -0
  252. package/lib/module/model/language/localized_string.js +10 -0
  253. package/lib/module/model/language/localized_string.js.map +1 -0
  254. package/lib/module/model/merchant/apple_pay_configuration.js +15 -0
  255. package/lib/module/model/merchant/apple_pay_configuration.js.map +1 -0
  256. package/lib/module/model/merchant/certificate_configuration.js +13 -0
  257. package/lib/module/model/merchant/certificate_configuration.js.map +1 -0
  258. package/lib/module/model/merchant/google_pay_configuration.js +12 -0
  259. package/lib/module/model/merchant/google_pay_configuration.js.map +1 -0
  260. package/lib/module/model/merchant/merchant.js +20 -0
  261. package/lib/module/model/merchant/merchant.js.map +1 -0
  262. package/lib/module/model/merchant/merchant_authorization.js +14 -0
  263. package/lib/module/model/merchant/merchant_authorization.js.map +1 -0
  264. package/lib/module/model/merchant/merchant_details.js +16 -0
  265. package/lib/module/model/merchant/merchant_details.js.map +1 -0
  266. package/lib/module/model/merchant/tpay_environment.js +6 -0
  267. package/lib/module/model/merchant/tpay_environment.js.map +1 -0
  268. package/lib/module/model/merchant/wallet_configuration.js +14 -0
  269. package/lib/module/model/merchant/wallet_configuration.js.map +1 -0
  270. package/lib/module/model/payer/address.js +18 -0
  271. package/lib/module/model/payer/address.js.map +1 -0
  272. package/lib/module/model/payer/payer.js +18 -0
  273. package/lib/module/model/payer/payer.js.map +1 -0
  274. package/lib/module/model/payer/payer_context.js +14 -0
  275. package/lib/module/model/payer/payer_context.js.map +1 -0
  276. package/lib/module/model/payment_channel/payment_channel.js +28 -0
  277. package/lib/module/model/payment_channel/payment_channel.js.map +1 -0
  278. package/lib/module/model/payment_channel/payment_constraint.js +40 -0
  279. package/lib/module/model/payment_channel/payment_constraint.js.map +1 -0
  280. package/lib/module/model/payment_channel/payment_group.js +23 -0
  281. package/lib/module/model/payment_channel/payment_group.js.map +1 -0
  282. package/lib/module/model/payment_method/automatic_payment_methods.js +14 -0
  283. package/lib/module/model/payment_method/automatic_payment_methods.js.map +1 -0
  284. package/lib/module/model/payment_method/blik_alias.js +16 -0
  285. package/lib/module/model/payment_method/blik_alias.js.map +1 -0
  286. package/lib/module/model/payment_method/credit_card_brand.js +10 -0
  287. package/lib/module/model/payment_method/credit_card_brand.js.map +1 -0
  288. package/lib/module/model/payment_method/digital_wallet.js +9 -0
  289. package/lib/module/model/payment_method/digital_wallet.js.map +1 -0
  290. package/lib/module/model/payment_method/installment_payment.js +8 -0
  291. package/lib/module/model/payment_method/installment_payment.js.map +1 -0
  292. package/lib/module/model/payment_method/payment_method.js +10 -0
  293. package/lib/module/model/payment_method/payment_method.js.map +1 -0
  294. package/lib/module/model/payment_method/payment_methods.js +16 -0
  295. package/lib/module/model/payment_method/payment_methods.js.map +1 -0
  296. package/lib/module/model/payment_method/tokenized_card.js +16 -0
  297. package/lib/module/model/payment_method/tokenized_card.js.map +1 -0
  298. package/lib/module/model/result/google_pay_configure_result.js +24 -0
  299. package/lib/module/model/result/google_pay_configure_result.js.map +1 -0
  300. package/lib/module/model/result/google_pay_open_result.js +50 -0
  301. package/lib/module/model/result/google_pay_open_result.js.map +1 -0
  302. package/lib/module/model/result/payment_channels_result.js +33 -0
  303. package/lib/module/model/result/payment_channels_result.js.map +1 -0
  304. package/lib/module/model/result/result.js +81 -0
  305. package/lib/module/model/result/result.js.map +1 -0
  306. package/lib/module/model/result/screenless_result.js +127 -0
  307. package/lib/module/model/result/screenless_result.js.map +1 -0
  308. package/lib/module/model/screenless/ambiguous_alias.js +18 -0
  309. package/lib/module/model/screenless/ambiguous_alias.js.map +1 -0
  310. package/lib/module/model/screenless/ambiguous_blik_payment.js +16 -0
  311. package/lib/module/model/screenless/ambiguous_blik_payment.js.map +1 -0
  312. package/lib/module/model/screenless/apple_pay_payment.js +15 -0
  313. package/lib/module/model/screenless/apple_pay_payment.js.map +1 -0
  314. package/lib/module/model/screenless/blik_payment.js +20 -0
  315. package/lib/module/model/screenless/blik_payment.js.map +1 -0
  316. package/lib/module/model/screenless/callbacks.js +14 -0
  317. package/lib/module/model/screenless/callbacks.js.map +1 -0
  318. package/lib/module/model/screenless/credit_card.js +18 -0
  319. package/lib/module/model/screenless/credit_card.js.map +1 -0
  320. package/lib/module/model/screenless/credit_card_config.js +15 -0
  321. package/lib/module/model/screenless/credit_card_config.js.map +1 -0
  322. package/lib/module/model/screenless/credit_card_payment.js +20 -0
  323. package/lib/module/model/screenless/credit_card_payment.js.map +1 -0
  324. package/lib/module/model/screenless/expiration_date.js +14 -0
  325. package/lib/module/model/screenless/expiration_date.js.map +1 -0
  326. package/lib/module/model/screenless/frequency.js +12 -0
  327. package/lib/module/model/screenless/frequency.js.map +1 -0
  328. package/lib/module/model/screenless/google_pay_environment.js +9 -0
  329. package/lib/module/model/screenless/google_pay_environment.js.map +1 -0
  330. package/lib/module/model/screenless/google_pay_payment.js +15 -0
  331. package/lib/module/model/screenless/google_pay_payment.js.map +1 -0
  332. package/lib/module/model/screenless/google_pay_utils_configuration.js +20 -0
  333. package/lib/module/model/screenless/google_pay_utils_configuration.js.map +1 -0
  334. package/lib/module/model/screenless/notifications.js +14 -0
  335. package/lib/module/model/screenless/notifications.js.map +1 -0
  336. package/lib/module/model/screenless/payment_details.js +18 -0
  337. package/lib/module/model/screenless/payment_details.js.map +1 -0
  338. package/lib/module/model/screenless/raty_pekao_payment.js +15 -0
  339. package/lib/module/model/screenless/raty_pekao_payment.js.map +1 -0
  340. package/lib/module/model/screenless/recursive.js +16 -0
  341. package/lib/module/model/screenless/recursive.js.map +1 -0
  342. package/lib/module/model/screenless/redirects.js +14 -0
  343. package/lib/module/model/screenless/redirects.js.map +1 -0
  344. package/lib/module/model/screenless/screenless_payment.js +16 -0
  345. package/lib/module/model/screenless/screenless_payment.js.map +1 -0
  346. package/lib/module/model/screenless/transfer_payment.js +15 -0
  347. package/lib/module/model/screenless/transfer_payment.js.map +1 -0
  348. package/lib/module/model/tokenization/tokenization.js +14 -0
  349. package/lib/module/model/tokenization/tokenization.js.map +1 -0
  350. package/lib/module/model/tpay_configuration.js +18 -0
  351. package/lib/module/model/tpay_configuration.js.map +1 -0
  352. package/lib/module/model/transaction/single_transaction.js +18 -0
  353. package/lib/module/model/transaction/single_transaction.js.map +1 -0
  354. package/lib/module/model/transaction/token_payment.js +20 -0
  355. package/lib/module/model/transaction/token_payment.js.map +1 -0
  356. package/lib/module/model/transaction/transaction.js +16 -0
  357. package/lib/module/model/transaction/transaction.js.map +1 -0
  358. package/lib/module/util/google_pay_configuration_util.js +16 -0
  359. package/lib/module/util/google_pay_configuration_util.js.map +1 -0
  360. package/lib/module/util/google_pay_open_util.js +18 -0
  361. package/lib/module/util/google_pay_open_util.js.map +1 -0
  362. package/lib/module/util/payment_channels_util.js +16 -0
  363. package/lib/module/util/payment_channels_util.js.map +1 -0
  364. package/lib/module/util/result_util.js +41 -0
  365. package/lib/module/util/result_util.js.map +1 -0
  366. package/lib/module/util/screenless_result_util.js +32 -0
  367. package/lib/module/util/screenless_result_util.js.map +1 -0
  368. package/lib/typescript/src/component/tpay_button.d.ts +13 -0
  369. package/lib/typescript/src/component/tpay_button.d.ts.map +1 -0
  370. package/lib/typescript/src/index.d.ts +147 -0
  371. package/lib/typescript/src/index.d.ts.map +1 -0
  372. package/lib/typescript/src/model/language/language.d.ts +5 -0
  373. package/lib/typescript/src/model/language/language.d.ts.map +1 -0
  374. package/lib/typescript/src/model/language/languages.d.ts +14 -0
  375. package/lib/typescript/src/model/language/languages.d.ts.map +1 -0
  376. package/lib/typescript/src/model/language/localized_string.d.ts +10 -0
  377. package/lib/typescript/src/model/language/localized_string.d.ts.map +1 -0
  378. package/lib/typescript/src/model/merchant/apple_pay_configuration.d.ts +14 -0
  379. package/lib/typescript/src/model/merchant/apple_pay_configuration.d.ts.map +1 -0
  380. package/lib/typescript/src/model/merchant/certificate_configuration.d.ts +12 -0
  381. package/lib/typescript/src/model/merchant/certificate_configuration.d.ts.map +1 -0
  382. package/lib/typescript/src/model/merchant/google_pay_configuration.d.ts +11 -0
  383. package/lib/typescript/src/model/merchant/google_pay_configuration.d.ts.map +1 -0
  384. package/lib/typescript/src/model/merchant/merchant.d.ts +23 -0
  385. package/lib/typescript/src/model/merchant/merchant.d.ts.map +1 -0
  386. package/lib/typescript/src/model/merchant/merchant_authorization.d.ts +13 -0
  387. package/lib/typescript/src/model/merchant/merchant_authorization.d.ts.map +1 -0
  388. package/lib/typescript/src/model/merchant/merchant_details.d.ts +16 -0
  389. package/lib/typescript/src/model/merchant/merchant_details.d.ts.map +1 -0
  390. package/lib/typescript/src/model/merchant/tpay_environment.d.ts +5 -0
  391. package/lib/typescript/src/model/merchant/tpay_environment.d.ts.map +1 -0
  392. package/lib/typescript/src/model/merchant/wallet_configuration.d.ts +15 -0
  393. package/lib/typescript/src/model/merchant/wallet_configuration.d.ts.map +1 -0
  394. package/lib/typescript/src/model/payer/address.d.ts +17 -0
  395. package/lib/typescript/src/model/payer/address.d.ts.map +1 -0
  396. package/lib/typescript/src/model/payer/payer.d.ts +18 -0
  397. package/lib/typescript/src/model/payer/payer.d.ts.map +1 -0
  398. package/lib/typescript/src/model/payer/payer_context.d.ts +15 -0
  399. package/lib/typescript/src/model/payer/payer_context.d.ts.map +1 -0
  400. package/lib/typescript/src/model/payment_channel/payment_channel.d.ts +24 -0
  401. package/lib/typescript/src/model/payment_channel/payment_channel.d.ts.map +1 -0
  402. package/lib/typescript/src/model/payment_channel/payment_constraint.d.ts +31 -0
  403. package/lib/typescript/src/model/payment_channel/payment_constraint.d.ts.map +1 -0
  404. package/lib/typescript/src/model/payment_channel/payment_group.d.ts +19 -0
  405. package/lib/typescript/src/model/payment_channel/payment_group.d.ts.map +1 -0
  406. package/lib/typescript/src/model/payment_method/automatic_payment_methods.d.ts +15 -0
  407. package/lib/typescript/src/model/payment_method/automatic_payment_methods.d.ts.map +1 -0
  408. package/lib/typescript/src/model/payment_method/blik_alias.d.ts +15 -0
  409. package/lib/typescript/src/model/payment_method/blik_alias.d.ts.map +1 -0
  410. package/lib/typescript/src/model/payment_method/credit_card_brand.d.ts +9 -0
  411. package/lib/typescript/src/model/payment_method/credit_card_brand.d.ts.map +1 -0
  412. package/lib/typescript/src/model/payment_method/digital_wallet.d.ts +8 -0
  413. package/lib/typescript/src/model/payment_method/digital_wallet.d.ts.map +1 -0
  414. package/lib/typescript/src/model/payment_method/installment_payment.d.ts +7 -0
  415. package/lib/typescript/src/model/payment_method/installment_payment.d.ts.map +1 -0
  416. package/lib/typescript/src/model/payment_method/payment_method.d.ts +9 -0
  417. package/lib/typescript/src/model/payment_method/payment_method.d.ts.map +1 -0
  418. package/lib/typescript/src/model/payment_method/payment_methods.d.ts +18 -0
  419. package/lib/typescript/src/model/payment_method/payment_methods.d.ts.map +1 -0
  420. package/lib/typescript/src/model/payment_method/tokenized_card.d.ts +16 -0
  421. package/lib/typescript/src/model/payment_method/tokenized_card.d.ts.map +1 -0
  422. package/lib/typescript/src/model/result/google_pay_configure_result.d.ts +21 -0
  423. package/lib/typescript/src/model/result/google_pay_configure_result.d.ts.map +1 -0
  424. package/lib/typescript/src/model/result/google_pay_open_result.d.ts +44 -0
  425. package/lib/typescript/src/model/result/google_pay_open_result.d.ts.map +1 -0
  426. package/lib/typescript/src/model/result/payment_channels_result.d.ts +27 -0
  427. package/lib/typescript/src/model/result/payment_channels_result.d.ts.map +1 -0
  428. package/lib/typescript/src/model/result/result.d.ts +66 -0
  429. package/lib/typescript/src/model/result/result.d.ts.map +1 -0
  430. package/lib/typescript/src/model/result/screenless_result.d.ts +98 -0
  431. package/lib/typescript/src/model/result/screenless_result.d.ts.map +1 -0
  432. package/lib/typescript/src/model/screenless/ambiguous_alias.d.ts +15 -0
  433. package/lib/typescript/src/model/screenless/ambiguous_alias.d.ts.map +1 -0
  434. package/lib/typescript/src/model/screenless/ambiguous_blik_payment.d.ts +17 -0
  435. package/lib/typescript/src/model/screenless/ambiguous_blik_payment.d.ts.map +1 -0
  436. package/lib/typescript/src/model/screenless/apple_pay_payment.d.ts +15 -0
  437. package/lib/typescript/src/model/screenless/apple_pay_payment.d.ts.map +1 -0
  438. package/lib/typescript/src/model/screenless/blik_payment.d.ts +21 -0
  439. package/lib/typescript/src/model/screenless/blik_payment.d.ts.map +1 -0
  440. package/lib/typescript/src/model/screenless/callbacks.d.ts +15 -0
  441. package/lib/typescript/src/model/screenless/callbacks.d.ts.map +1 -0
  442. package/lib/typescript/src/model/screenless/credit_card.d.ts +19 -0
  443. package/lib/typescript/src/model/screenless/credit_card.d.ts.map +1 -0
  444. package/lib/typescript/src/model/screenless/credit_card_config.d.ts +14 -0
  445. package/lib/typescript/src/model/screenless/credit_card_config.d.ts.map +1 -0
  446. package/lib/typescript/src/model/screenless/credit_card_payment.d.ts +21 -0
  447. package/lib/typescript/src/model/screenless/credit_card_payment.d.ts.map +1 -0
  448. package/lib/typescript/src/model/screenless/expiration_date.d.ts +13 -0
  449. package/lib/typescript/src/model/screenless/expiration_date.d.ts.map +1 -0
  450. package/lib/typescript/src/model/screenless/frequency.d.ts +11 -0
  451. package/lib/typescript/src/model/screenless/frequency.d.ts.map +1 -0
  452. package/lib/typescript/src/model/screenless/google_pay_environment.d.ts +8 -0
  453. package/lib/typescript/src/model/screenless/google_pay_environment.d.ts.map +1 -0
  454. package/lib/typescript/src/model/screenless/google_pay_payment.d.ts +15 -0
  455. package/lib/typescript/src/model/screenless/google_pay_payment.d.ts.map +1 -0
  456. package/lib/typescript/src/model/screenless/google_pay_utils_configuration.d.ts +20 -0
  457. package/lib/typescript/src/model/screenless/google_pay_utils_configuration.d.ts.map +1 -0
  458. package/lib/typescript/src/model/screenless/notifications.d.ts +13 -0
  459. package/lib/typescript/src/model/screenless/notifications.d.ts.map +1 -0
  460. package/lib/typescript/src/model/screenless/payment_details.d.ts +18 -0
  461. package/lib/typescript/src/model/screenless/payment_details.d.ts.map +1 -0
  462. package/lib/typescript/src/model/screenless/raty_pekao_payment.d.ts +15 -0
  463. package/lib/typescript/src/model/screenless/raty_pekao_payment.d.ts.map +1 -0
  464. package/lib/typescript/src/model/screenless/recursive.d.ts +16 -0
  465. package/lib/typescript/src/model/screenless/recursive.d.ts.map +1 -0
  466. package/lib/typescript/src/model/screenless/redirects.d.ts +13 -0
  467. package/lib/typescript/src/model/screenless/redirects.d.ts.map +1 -0
  468. package/lib/typescript/src/model/screenless/screenless_payment.d.ts +18 -0
  469. package/lib/typescript/src/model/screenless/screenless_payment.d.ts.map +1 -0
  470. package/lib/typescript/src/model/screenless/transfer_payment.d.ts +15 -0
  471. package/lib/typescript/src/model/screenless/transfer_payment.d.ts.map +1 -0
  472. package/lib/typescript/src/model/tokenization/tokenization.d.ts +14 -0
  473. package/lib/typescript/src/model/tokenization/tokenization.d.ts.map +1 -0
  474. package/lib/typescript/src/model/tpay_configuration.d.ts +21 -0
  475. package/lib/typescript/src/model/tpay_configuration.d.ts.map +1 -0
  476. package/lib/typescript/src/model/transaction/single_transaction.d.ts +17 -0
  477. package/lib/typescript/src/model/transaction/single_transaction.d.ts.map +1 -0
  478. package/lib/typescript/src/model/transaction/token_payment.d.ts +19 -0
  479. package/lib/typescript/src/model/transaction/token_payment.d.ts.map +1 -0
  480. package/lib/typescript/src/model/transaction/transaction.d.ts +16 -0
  481. package/lib/typescript/src/model/transaction/transaction.d.ts.map +1 -0
  482. package/lib/typescript/src/util/google_pay_configuration_util.d.ts +3 -0
  483. package/lib/typescript/src/util/google_pay_configuration_util.d.ts.map +1 -0
  484. package/lib/typescript/src/util/google_pay_open_util.d.ts +3 -0
  485. package/lib/typescript/src/util/google_pay_open_util.d.ts.map +1 -0
  486. package/lib/typescript/src/util/payment_channels_util.d.ts +3 -0
  487. package/lib/typescript/src/util/payment_channels_util.d.ts.map +1 -0
  488. package/lib/typescript/src/util/result_util.d.ts +3 -0
  489. package/lib/typescript/src/util/result_util.d.ts.map +1 -0
  490. package/lib/typescript/src/util/screenless_result_util.d.ts +3 -0
  491. package/lib/typescript/src/util/screenless_result_util.d.ts.map +1 -0
  492. package/package.json +164 -0
  493. package/react-native-tpay.podspec +42 -0
  494. package/src/assets/tpay_logo.png +0 -0
  495. package/src/assets/tpay_logo@2x.png +0 -0
  496. package/src/assets/tpay_logo@3x.png +0 -0
  497. package/src/component/tpay_button.tsx +44 -0
  498. package/src/index.tsx +267 -0
  499. package/src/model/language/language.ts +4 -0
  500. package/src/model/language/languages.ts +21 -0
  501. package/src/model/language/localized_string.ts +14 -0
  502. package/src/model/merchant/apple_pay_configuration.ts +17 -0
  503. package/src/model/merchant/certificate_configuration.ts +15 -0
  504. package/src/model/merchant/google_pay_configuration.ts +13 -0
  505. package/src/model/merchant/merchant.ts +36 -0
  506. package/src/model/merchant/merchant_authorization.ts +16 -0
  507. package/src/model/merchant/merchant_details.ts +25 -0
  508. package/src/model/merchant/tpay_environment.ts +4 -0
  509. package/src/model/merchant/wallet_configuration.ts +22 -0
  510. package/src/model/payer/address.ts +27 -0
  511. package/src/model/payer/payer.ts +29 -0
  512. package/src/model/payer/payer_context.ts +22 -0
  513. package/src/model/payment_channel/payment_channel.ts +38 -0
  514. package/src/model/payment_channel/payment_constraint.ts +41 -0
  515. package/src/model/payment_channel/payment_group.ts +25 -0
  516. package/src/model/payment_method/automatic_payment_methods.ts +22 -0
  517. package/src/model/payment_method/blik_alias.ts +19 -0
  518. package/src/model/payment_method/credit_card_brand.ts +8 -0
  519. package/src/model/payment_method/digital_wallet.ts +7 -0
  520. package/src/model/payment_method/installment_payment.ts +6 -0
  521. package/src/model/payment_method/payment_method.ts +8 -0
  522. package/src/model/payment_method/payment_methods.ts +27 -0
  523. package/src/model/payment_method/tokenized_card.ts +21 -0
  524. package/src/model/result/google_pay_configure_result.ts +25 -0
  525. package/src/model/result/google_pay_open_result.ts +58 -0
  526. package/src/model/result/payment_channels_result.ts +36 -0
  527. package/src/model/result/result.ts +84 -0
  528. package/src/model/result/screenless_result.ts +138 -0
  529. package/src/model/screenless/ambiguous_alias.ts +19 -0
  530. package/src/model/screenless/ambiguous_blik_payment.ts +26 -0
  531. package/src/model/screenless/apple_pay_payment.ts +24 -0
  532. package/src/model/screenless/blik_payment.ts +32 -0
  533. package/src/model/screenless/callbacks.ts +22 -0
  534. package/src/model/screenless/credit_card.ts +30 -0
  535. package/src/model/screenless/credit_card_config.ts +18 -0
  536. package/src/model/screenless/credit_card_payment.ts +32 -0
  537. package/src/model/screenless/expiration_date.ts +16 -0
  538. package/src/model/screenless/frequency.ts +10 -0
  539. package/src/model/screenless/google_pay_environment.ts +7 -0
  540. package/src/model/screenless/google_pay_payment.ts +24 -0
  541. package/src/model/screenless/google_pay_utils_configuration.ts +33 -0
  542. package/src/model/screenless/notifications.ts +16 -0
  543. package/src/model/screenless/payment_details.ts +29 -0
  544. package/src/model/screenless/raty_pekao_payment.ts +24 -0
  545. package/src/model/screenless/recursive.ts +21 -0
  546. package/src/model/screenless/redirects.ts +16 -0
  547. package/src/model/screenless/screenless_payment.ts +27 -0
  548. package/src/model/screenless/transfer_payment.ts +24 -0
  549. package/src/model/tokenization/tokenization.ts +18 -0
  550. package/src/model/tpay_configuration.ts +32 -0
  551. package/src/model/transaction/single_transaction.ts +26 -0
  552. package/src/model/transaction/token_payment.ts +30 -0
  553. package/src/model/transaction/transaction.ts +25 -0
  554. package/src/util/google_pay_configuration_util.ts +25 -0
  555. package/src/util/google_pay_open_util.ts +31 -0
  556. package/src/util/payment_channels_util.ts +22 -0
  557. package/src/util/result_util.ts +44 -0
  558. package/src/util/screenless_result_util.ts +50 -0
@@ -0,0 +1,20 @@
1
+ import { ScreenlessPayment } from './screenless_payment';
2
+
3
+ /**
4
+ * Class responsible for storing BLIK payment information
5
+ */
6
+ export class BlikPayment extends ScreenlessPayment {
7
+ /**
8
+ * You have to provide either code or alias.
9
+ * If you provide both, module will try to register the alias.
10
+ *
11
+ * @param code - 6-digit code
12
+ * @param alias - BLIK alias to register/pay with
13
+ */
14
+ constructor(code, alias, paymentDetails, payer, callbacks) {
15
+ super(paymentDetails, payer, callbacks);
16
+ this.code = code;
17
+ this.alias = alias;
18
+ }
19
+ }
20
+ //# sourceMappingURL=blik_payment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ScreenlessPayment","BlikPayment","constructor","code","alias","paymentDetails","payer","callbacks"],"sourceRoot":"../../../../src","sources":["model/screenless/blik_payment.ts"],"mappings":"AAIA,SAASA,iBAAiB,QAAQ,sBAAsB;;AAExD;AACA;AACA;AACA,OAAO,MAAMC,WAAW,SAASD,iBAAiB,CAAC;EAIjD;AACF;AACA;AACA;AACA;AACA;AACA;EACEE,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"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Class storing the information about callbacks
3
+ */
4
+ export class Callbacks {
5
+ /**
6
+ * @param redirects - where should user be redirected after payment
7
+ * @param notifications - where should payment notifications be sent
8
+ */
9
+ constructor(redirects, notifications) {
10
+ this.redirects = redirects;
11
+ this.notifications = notifications;
12
+ }
13
+ }
14
+ //# sourceMappingURL=callbacks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Callbacks","constructor","redirects","notifications"],"sourceRoot":"../../../../src","sources":["model/screenless/callbacks.ts"],"mappings":"AAGA;AACA;AACA;AACA,OAAO,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"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Class responsible for storing information about a credit card
3
+ */
4
+ export class CreditCard {
5
+ /**
6
+ * @param cardNumber - credit card number
7
+ * @param expiryDate - credit card expiration date
8
+ * @param cvv - cvv code
9
+ * @param config - other credit card information
10
+ */
11
+ constructor(cardNumber, expiryDate, cvv, config) {
12
+ this.cardNumber = cardNumber;
13
+ this.expiryDate = expiryDate;
14
+ this.cvv = cvv;
15
+ this.config = config;
16
+ }
17
+ }
18
+ //# sourceMappingURL=credit_card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["CreditCard","constructor","cardNumber","expiryDate","cvv","config"],"sourceRoot":"../../../../src","sources":["model/screenless/credit_card.ts"],"mappings":"AAGA;AACA;AACA;AACA,OAAO,MAAMA,UAAU,CAAC;EAMtB;AACF;AACA;AACA;AACA;AACA;EACEC,WAAWA,CACTC,UAAkB,EAClBC,UAA0B,EAC1BC,GAAW,EACXC,MAAwB,EACxB;IACA,IAAI,CAACH,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACC,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACC,GAAG,GAAGA,GAAG;IACd,IAAI,CAACC,MAAM,GAAGA,MAAM;EACtB;AACF"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Class responsible for storing payment related information about credit card
3
+ */
4
+ export class CreditCardConfig {
5
+ /**
6
+ * @param shouldSave - whether credit card should be tokenized after payment
7
+ * @param domain - domain of your store
8
+ */
9
+ constructor(shouldSave, domain, rocText) {
10
+ this.shouldSave = shouldSave;
11
+ this.domain = domain;
12
+ this.rocText = rocText;
13
+ }
14
+ }
15
+ //# sourceMappingURL=credit_card_config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["CreditCardConfig","constructor","shouldSave","domain","rocText"],"sourceRoot":"../../../../src","sources":["model/screenless/credit_card_config.ts"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,MAAMA,gBAAgB,CAAC;EAK5B;AACF;AACA;AACA;EACEC,WAAWA,CAACC,UAAmB,EAAEC,MAAc,EAAEC,OAAsB,EAAE;IACvE,IAAI,CAACF,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACC,MAAM,GAAGA,MAAM;IACpB,IAAI,CAACC,OAAO,GAAGA,OAAO;EACxB;AACF"}
@@ -0,0 +1,20 @@
1
+ import { ScreenlessPayment } from "./screenless_payment";
2
+
3
+ /**
4
+ * Class responsible for storing information about credit card payment
5
+ */
6
+ export class CreditCardPayment extends ScreenlessPayment {
7
+ /**
8
+ * You have to provide either creditCard or creditCardToken.
9
+ * If you provide both, creditCardToken will be used.
10
+ *
11
+ * @param creditCard - information about credit card
12
+ * @param creditCardToken - token of tokenized card (for returning customers)
13
+ */
14
+ constructor(creditCard, creditCardToken, paymentDetails, payer, callbacks) {
15
+ super(paymentDetails, payer, callbacks);
16
+ this.creditCard = creditCard;
17
+ this.creditCardToken = creditCardToken;
18
+ }
19
+ }
20
+ //# sourceMappingURL=credit_card_payment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ScreenlessPayment","CreditCardPayment","constructor","creditCard","creditCardToken","paymentDetails","payer","callbacks"],"sourceRoot":"../../../../src","sources":["model/screenless/credit_card_payment.ts"],"mappings":"AAIA,SAASA,iBAAiB,QAAQ,sBAAsB;;AAExD;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,SAASD,iBAAiB,CAAC;EAIvD;AACF;AACA;AACA;AACA;AACA;AACA;EACEE,WAAWA,CACTC,UAA6B,EAC7BC,eAA8B,EAC9BC,cAA8B,EAC9BC,KAAY,EACZC,SAA2B,EAC3B;IACA,KAAK,CAACF,cAAc,EAAEC,KAAK,EAAEC,SAAS,CAAC;IACvC,IAAI,CAACJ,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACC,eAAe,GAAGA,eAAe;EACxC;AACF"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Class responsible for storing information about expiration date
3
+ */
4
+ export class ExpirationDate {
5
+ /**
6
+ * @param month - 2-digit month, for example '02'
7
+ * @param year - 2-digit year, for example '24'
8
+ */
9
+ constructor(month, year) {
10
+ this.month = month;
11
+ this.year = year;
12
+ }
13
+ }
14
+ //# sourceMappingURL=expiration_date.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ExpirationDate","constructor","month","year"],"sourceRoot":"../../../../src","sources":["model/screenless/expiration_date.ts"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,MAAMA,cAAc,CAAC;EAI1B;AACF;AACA;AACA;EACEC,WAAWA,CAACC,KAAa,EAAEC,IAAY,EAAE;IACvC,IAAI,CAACD,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,IAAI,GAAGA,IAAI;EAClB;AACF"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Enum describing the frequency options
3
+ */
4
+ export let Frequency = /*#__PURE__*/function (Frequency) {
5
+ Frequency["daily"] = "daily";
6
+ Frequency["weekly"] = "weekly";
7
+ Frequency["monthly"] = "monthly";
8
+ Frequency["quarterly"] = "quarterly";
9
+ Frequency["yearly"] = "yearly";
10
+ return Frequency;
11
+ }({});
12
+ //# sourceMappingURL=frequency.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Frequency"],"sourceRoot":"../../../../src","sources":["model/screenless/frequency.ts"],"mappings":"AAAA;AACA;AACA;AACA,WAAYA,SAAS,0BAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAAA,OAATA,SAAS;AAAA"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Enum describing Google Pay environment options
3
+ */
4
+ export let GooglePayEnvironment = /*#__PURE__*/function (GooglePayEnvironment) {
5
+ GooglePayEnvironment["production"] = "production";
6
+ GooglePayEnvironment["test"] = "test";
7
+ return GooglePayEnvironment;
8
+ }({});
9
+ //# sourceMappingURL=google_pay_environment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GooglePayEnvironment"],"sourceRoot":"../../../../src","sources":["model/screenless/google_pay_environment.ts"],"mappings":"AAAA;AACA;AACA;AACA,WAAYA,oBAAoB,0BAApBA,oBAAoB;EAApBA,oBAAoB;EAApBA,oBAAoB;EAAA,OAApBA,oBAAoB;AAAA"}
@@ -0,0 +1,15 @@
1
+ import { ScreenlessPayment } from "./screenless_payment";
2
+
3
+ /**
4
+ * Class responsible for storing information about Google Pay payment
5
+ */
6
+ export class GooglePayPayment extends ScreenlessPayment {
7
+ /**
8
+ * @param token - token received from Google Pay
9
+ */
10
+ constructor(token, paymentDetails, payer, callbacks) {
11
+ super(paymentDetails, payer, callbacks);
12
+ this.token = token;
13
+ }
14
+ }
15
+ //# sourceMappingURL=google_pay_payment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ScreenlessPayment","GooglePayPayment","constructor","token","paymentDetails","payer","callbacks"],"sourceRoot":"../../../../src","sources":["model/screenless/google_pay_payment.ts"],"mappings":"AAGA,SAASA,iBAAiB,QAAQ,sBAAsB;;AAExD;AACA;AACA;AACA,OAAO,MAAMC,gBAAgB,SAASD,iBAAiB,CAAC;EAGtD;AACF;AACA;EACEE,WAAWA,CACTC,KAAa,EACbC,cAA8B,EAC9BC,KAAY,EACZC,SAA2B,EAC3B;IACA,KAAK,CAACF,cAAc,EAAEC,KAAK,EAAEC,SAAS,CAAC;IACvC,IAAI,CAACH,KAAK,GAAGA,KAAK;EACpB;AACF"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Class responsible for storing information about Google Pay utils configuration
3
+ */
4
+ export class GooglePayUtilsConfiguration {
5
+ /**
6
+ * @param price - price that will be displayed in Google Pay
7
+ * @param merchantName - store name displayed in Google Pay
8
+ * @param merchantId - your merchantId in Tpay system
9
+ * @param environment - Google Pay environment
10
+ * @param customRequestCode - alternative request code that will be used to manage Google Pay data
11
+ */
12
+ constructor(price, merchantName, merchantId, environment, customRequestCode) {
13
+ this.price = price;
14
+ this.merchantName = merchantName;
15
+ this.merchantId = merchantId;
16
+ this.environment = environment;
17
+ this.customRequestCode = customRequestCode;
18
+ }
19
+ }
20
+ //# sourceMappingURL=google_pay_utils_configuration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GooglePayUtilsConfiguration","constructor","price","merchantName","merchantId","environment","customRequestCode"],"sourceRoot":"../../../../src","sources":["model/screenless/google_pay_utils_configuration.ts"],"mappings":"AAEA;AACA;AACA;AACA,OAAO,MAAMA,2BAA2B,CAAC;EAOvC;AACF;AACA;AACA;AACA;AACA;AACA;EACEC,WAAWA,CACTC,KAAa,EACbC,YAAoB,EACpBC,UAAkB,EAClBC,WAAiC,EACjCC,iBAAgC,EAChC;IACA,IAAI,CAACJ,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,YAAY,GAAGA,YAAY;IAChC,IAAI,CAACC,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACC,WAAW,GAAGA,WAAW;IAC9B,IAAI,CAACC,iBAAiB,GAAGA,iBAAiB;EAC5C;AACF"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Class responsible for storing information about notifications
3
+ */
4
+ export class Notifications {
5
+ /**
6
+ * @param url - notification url, payment notifications will be sent there
7
+ * @param email - notification email, payment notifications will be sent there
8
+ */
9
+ constructor(url, email) {
10
+ this.url = url;
11
+ this.email = email;
12
+ }
13
+ }
14
+ //# sourceMappingURL=notifications.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Notifications","constructor","url","email"],"sourceRoot":"../../../../src","sources":["model/screenless/notifications.ts"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,MAAMA,aAAa,CAAC;EAIzB;AACF;AACA;AACA;EACEC,WAAWA,CAACC,GAAW,EAAEC,KAAa,EAAE;IACtC,IAAI,CAACD,GAAG,GAAGA,GAAG;IACd,IAAI,CAACC,KAAK,GAAGA,KAAK;EACpB;AACF"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Class responsible for storing information about payment details
3
+ */
4
+ export class PaymentDetails {
5
+ /**
6
+ * @param amount - amount of money payer has to pay
7
+ * @param description - description of payment shown to payer
8
+ * @param hiddenDescription - description visible to store
9
+ * @param language - language of the transaction
10
+ */
11
+ constructor(amount, description, hiddenDescription, language) {
12
+ this.amount = amount;
13
+ this.description = description;
14
+ this.hiddenDescription = hiddenDescription;
15
+ this.language = language;
16
+ }
17
+ }
18
+ //# sourceMappingURL=payment_details.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["PaymentDetails","constructor","amount","description","hiddenDescription","language"],"sourceRoot":"../../../../src","sources":["model/screenless/payment_details.ts"],"mappings":"AAEA;AACA;AACA;AACA,OAAO,MAAMA,cAAc,CAAC;EAM1B;AACF;AACA;AACA;AACA;AACA;EACEC,WAAWA,CACTC,MAAc,EACdC,WAAmB,EACnBC,iBAAgC,EAChCC,QAAyB,EACzB;IACA,IAAI,CAACH,MAAM,GAAGA,MAAM;IACpB,IAAI,CAACC,WAAW,GAAGA,WAAW;IAC9B,IAAI,CAACC,iBAAiB,GAAGA,iBAAiB;IAC1C,IAAI,CAACC,QAAQ,GAAGA,QAAQ;EAC1B;AACF"}
@@ -0,0 +1,15 @@
1
+ import { ScreenlessPayment } from "./screenless_payment";
2
+
3
+ /**
4
+ * Class responsible for storing information about Raty Pekao payment
5
+ */
6
+ export class RatyPekaoPayment extends ScreenlessPayment {
7
+ /**
8
+ * @param channelId - id of Raty Pekao payment channel
9
+ */
10
+ constructor(channelId, paymentDetails, payer, callbacks) {
11
+ super(paymentDetails, payer, callbacks);
12
+ this.channelId = channelId;
13
+ }
14
+ }
15
+ //# sourceMappingURL=raty_pekao_payment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ScreenlessPayment","RatyPekaoPayment","constructor","channelId","paymentDetails","payer","callbacks"],"sourceRoot":"../../../../src","sources":["model/screenless/raty_pekao_payment.ts"],"mappings":"AAGA,SAASA,iBAAiB,QAAQ,sBAAsB;;AAExD;AACA;AACA;AACA,OAAO,MAAMC,gBAAgB,SAASD,iBAAiB,CAAC;EAGtD;AACF;AACA;EACEE,WAAWA,CACTC,SAAiB,EACjBC,cAA8B,EAC9BC,KAAY,EACZC,SAA2B,EAC3B;IACA,KAAK,CAACF,cAAc,EAAEC,KAAK,EAAEC,SAAS,CAAC;IACvC,IAAI,CAACH,SAAS,GAAGA,SAAS;EAC5B;AACF"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Class responsible for storing information about recurring payments
3
+ */
4
+ export class Recursive {
5
+ /**
6
+ * @param frequency - how often payment should be repeated
7
+ * @param quantity - how many times payment should be repeated. If null, quantity = infinity
8
+ * @param endDate - date in yyyy-MM-dd format
9
+ */
10
+ constructor(frequency, quantity, endDate) {
11
+ this.frequency = frequency;
12
+ this.quantity = quantity;
13
+ this.endDate = endDate;
14
+ }
15
+ }
16
+ //# sourceMappingURL=recursive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Recursive","constructor","frequency","quantity","endDate"],"sourceRoot":"../../../../src","sources":["model/screenless/recursive.ts"],"mappings":"AAEA;AACA;AACA;AACA,OAAO,MAAMA,SAAS,CAAC;EAKrB;AACF;AACA;AACA;AACA;EACEC,WAAWA,CAACC,SAAoB,EAAEC,QAAuB,EAAEC,OAAe,EAAE;IAC1E,IAAI,CAACF,SAAS,GAAGA,SAAS;IAC1B,IAAI,CAACC,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACC,OAAO,GAAGA,OAAO;EACxB;AACF"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Class responsible for storing information about redirect urls
3
+ */
4
+ export class Redirects {
5
+ /**
6
+ * @param successUrl - payer will be redirected to this url after successful payment
7
+ * @param errorUrl - payer will be redirected to this url after unsuccessful payment
8
+ */
9
+ constructor(successUrl, errorUrl) {
10
+ this.successUrl = successUrl;
11
+ this.errorUrl = errorUrl;
12
+ }
13
+ }
14
+ //# sourceMappingURL=redirects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Redirects","constructor","successUrl","errorUrl"],"sourceRoot":"../../../../src","sources":["model/screenless/redirects.ts"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,MAAMA,SAAS,CAAC;EAIrB;AACF;AACA;AACA;EACEC,WAAWA,CAACC,UAAkB,EAAEC,QAAgB,EAAE;IAChD,IAAI,CAACD,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACC,QAAQ,GAAGA,QAAQ;EAC1B;AACF"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Class responsible for storing information about screenless payment details
3
+ */
4
+ export class ScreenlessPayment {
5
+ /**
6
+ * @param paymentDetails - information about price and description
7
+ * @param payer - information about payer
8
+ * @param callbacks - redirects and notification information
9
+ */
10
+ constructor(paymentDetails, payer, callbacks) {
11
+ this.paymentDetails = paymentDetails;
12
+ this.payer = payer;
13
+ this.callbacks = callbacks;
14
+ }
15
+ }
16
+ //# sourceMappingURL=screenless_payment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ScreenlessPayment","constructor","paymentDetails","payer","callbacks"],"sourceRoot":"../../../../src","sources":["model/screenless/screenless_payment.ts"],"mappings":"AAIA;AACA;AACA;AACA,OAAO,MAAMA,iBAAiB,CAAC;EAK7B;AACF;AACA;AACA;AACA;EACEC,WAAWA,CACTC,cAA8B,EAC9BC,KAAY,EACZC,SAA2B,EAC3B;IACA,IAAI,CAACF,cAAc,GAAGA,cAAc;IACpC,IAAI,CAACC,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,SAAS,GAAGA,SAAS;EAC5B;AACF"}
@@ -0,0 +1,15 @@
1
+ import { ScreenlessPayment } from "./screenless_payment";
2
+
3
+ /**
4
+ * Class responsible for storing information about transfer payment
5
+ */
6
+ export class TransferPayment extends ScreenlessPayment {
7
+ /**
8
+ * @param channelId - channel id of a bank in Tpay system
9
+ */
10
+ constructor(channelId, paymentDetails, payer, callbacks) {
11
+ super(paymentDetails, payer, callbacks);
12
+ this.channelId = channelId;
13
+ }
14
+ }
15
+ //# sourceMappingURL=transfer_payment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ScreenlessPayment","TransferPayment","constructor","channelId","paymentDetails","payer","callbacks"],"sourceRoot":"../../../../src","sources":["model/screenless/transfer_payment.ts"],"mappings":"AAGA,SAASA,iBAAiB,QAAQ,sBAAsB;;AAExD;AACA;AACA;AACA,OAAO,MAAMC,eAAe,SAASD,iBAAiB,CAAC;EAGrD;AACF;AACA;EACEE,WAAWA,CACTC,SAAiB,EACjBC,cAA8B,EAC9BC,KAAY,EACZC,SAA2B,EAC3B;IACA,KAAK,CAACF,cAAc,EAAEC,KAAK,EAAEC,SAAS,CAAC;IACvC,IAAI,CAACH,SAAS,GAAGA,SAAS;EAC5B;AACF"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Class responsible for storing information needed to start UI tokenization.
3
+ */
4
+ export class Tokenization {
5
+ /**
6
+ * @param payer - information about payer
7
+ * @param notificationUrl - url for tokenization notifications
8
+ */
9
+ constructor(payer, notificationUrl) {
10
+ this.payer = payer;
11
+ this.notificationUrl = notificationUrl;
12
+ }
13
+ }
14
+ //# sourceMappingURL=tokenization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Tokenization","constructor","payer","notificationUrl"],"sourceRoot":"../../../../src","sources":["model/tokenization/tokenization.ts"],"mappings":"AAEA;AACA;AACA;AACA,OAAO,MAAMA,YAAY,CAAC;EAIxB;AACF;AACA;AACA;EACEC,WAAWA,CAACC,KAAY,EAAEC,eAAuB,EAAE;IACjD,IAAI,CAACD,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,eAAe,GAAGA,eAAe;EACxC;AACF"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Class responsible for storing information about Tpay configuration
3
+ */
4
+ export class TpayConfiguration {
5
+ /**
6
+ * @param merchant - configuration information about merchant
7
+ * @param merchantDetails - information about merchant in different languages
8
+ * @param languages - languages that user will be able to use in Tpay UI module
9
+ * @param paymentMethods - payment methods that user will be able to use in Tpay UI module
10
+ */
11
+ constructor(merchant, merchantDetails, languages, paymentMethods) {
12
+ this.merchant = merchant;
13
+ this.merchantDetails = merchantDetails;
14
+ this.languages = languages;
15
+ this.paymentMethods = paymentMethods;
16
+ }
17
+ }
18
+ //# sourceMappingURL=tpay_configuration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["TpayConfiguration","constructor","merchant","merchantDetails","languages","paymentMethods"],"sourceRoot":"../../../src","sources":["model/tpay_configuration.ts"],"mappings":"AAKA;AACA;AACA;AACA,OAAO,MAAMA,iBAAiB,CAAC;EAM7B;AACF;AACA;AACA;AACA;AACA;EACEC,WAAWA,CACTC,QAAkB,EAClBC,eAAgC,EAChCC,SAAoB,EACpBC,cAA8B,EAC9B;IACA,IAAI,CAACH,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACC,eAAe,GAAGA,eAAe;IACtC,IAAI,CAACC,SAAS,GAAGA,SAAS;IAC1B,IAAI,CAACC,cAAc,GAAGA,cAAc;EACtC;AACF"}
@@ -0,0 +1,18 @@
1
+ import { Transaction } from "./transaction";
2
+
3
+ /**
4
+ * Class responsible for storing information about standard Tpay UI module payment
5
+ */
6
+ export class SingleTransaction extends Transaction {
7
+ /**
8
+ * @param payerContext - information about payer and automatic payment methods
9
+ * @param amount - amount of money payer has to pay
10
+ * @param description - description of payment shown to payer
11
+ * @param notifications - payment notification url and email
12
+ */
13
+ constructor(payerContext, amount, description, notifications) {
14
+ super(amount, description, notifications);
15
+ this.payerContext = payerContext;
16
+ }
17
+ }
18
+ //# sourceMappingURL=single_transaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Transaction","SingleTransaction","constructor","payerContext","amount","description","notifications"],"sourceRoot":"../../../../src","sources":["model/transaction/single_transaction.ts"],"mappings":"AAEA,SAASA,WAAW,QAAQ,eAAe;;AAE3C;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,SAASD,WAAW,CAAC;EAGjD;AACF;AACA;AACA;AACA;AACA;EACEE,WAAWA,CACTC,YAA0B,EAC1BC,MAAc,EACdC,WAAmB,EACnBC,aAAmC,EACnC;IACA,KAAK,CAACF,MAAM,EAAEC,WAAW,EAAEC,aAAa,CAAC;IACzC,IAAI,CAACH,YAAY,GAAGA,YAAY;EAClC;AACF"}
@@ -0,0 +1,20 @@
1
+ import { Transaction } from "./transaction";
2
+
3
+ /**
4
+ * Class responsible for storing information about credit card token payment with Tpay UI module.
5
+ */
6
+ export class TokenPayment extends Transaction {
7
+ /**
8
+ * @param cardToken - token of tokenized card
9
+ * @param payer - payer information
10
+ * @param amount - amount of money payer has to pay
11
+ * @param description - description of payment shown to payer
12
+ * @param notifications - payment notification url and email
13
+ */
14
+ constructor(cardToken, payer, amount, description, notifications) {
15
+ super(amount, description, notifications);
16
+ this.cardToken = cardToken;
17
+ this.payer = payer;
18
+ }
19
+ }
20
+ //# sourceMappingURL=token_payment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Transaction","TokenPayment","constructor","cardToken","payer","amount","description","notifications"],"sourceRoot":"../../../../src","sources":["model/transaction/token_payment.ts"],"mappings":"AAEA,SAASA,WAAW,QAAQ,eAAe;;AAE3C;AACA;AACA;AACA,OAAO,MAAMC,YAAY,SAASD,WAAW,CAAC;EAI5C;AACF;AACA;AACA;AACA;AACA;AACA;EACEE,WAAWA,CACTC,SAAiB,EACjBC,KAAY,EACZC,MAAc,EACdC,WAAmB,EACnBC,aAAmC,EACnC;IACA,KAAK,CAACF,MAAM,EAAEC,WAAW,EAAEC,aAAa,CAAC;IACzC,IAAI,CAACJ,SAAS,GAAGA,SAAS;IAC1B,IAAI,CAACC,KAAK,GAAGA,KAAK;EACpB;AACF"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Class responsible for storing information about UI module transaction
3
+ */
4
+ export class Transaction {
5
+ /**
6
+ * @param amount - amount of money payer has to pay
7
+ * @param description - description of payment shown to payer
8
+ * @param notifications - payment notification url and email
9
+ */
10
+ constructor(amount, description, notifications) {
11
+ this.amount = amount;
12
+ this.description = description;
13
+ this.notifications = notifications;
14
+ }
15
+ }
16
+ //# sourceMappingURL=transaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Transaction","constructor","amount","description","notifications"],"sourceRoot":"../../../../src","sources":["model/transaction/transaction.ts"],"mappings":"AAEA;AACA;AACA;AACA,OAAO,MAAMA,WAAW,CAAC;EAKvB;AACF;AACA;AACA;AACA;EACEC,WAAWA,CACTC,MAAc,EACdC,WAAmB,EACnBC,aAAmC,EACnC;IACA,IAAI,CAACF,MAAM,GAAGA,MAAM;IACpB,IAAI,CAACC,WAAW,GAAGA,WAAW;IAC9B,IAAI,CAACC,aAAa,GAAGA,aAAa;EACpC;AACF"}
@@ -0,0 +1,16 @@
1
+ import { GooglePayConfigureError, GooglePayConfigureSuccess } from '../model/result/google_pay_configure_result';
2
+ const success = 'success';
3
+ const error = 'error';
4
+ const unknownGooglePayConfigurationResult = 'Unknown Google Pay configuration result';
5
+ export function mapGooglePayConfigurationResult(json) {
6
+ const object = JSON.parse(json);
7
+ switch (object.type) {
8
+ case success:
9
+ return new GooglePayConfigureSuccess();
10
+ case error:
11
+ return new GooglePayConfigureError(object.message);
12
+ default:
13
+ throw Error(unknownGooglePayConfigurationResult);
14
+ }
15
+ }
16
+ //# sourceMappingURL=google_pay_configuration_util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GooglePayConfigureError","GooglePayConfigureSuccess","success","error","unknownGooglePayConfigurationResult","mapGooglePayConfigurationResult","json","object","JSON","parse","type","message","Error"],"sourceRoot":"../../../src","sources":["util/google_pay_configuration_util.ts"],"mappings":"AAAA,SACEA,uBAAuB,EAEvBC,yBAAyB,QACpB,6CAA6C;AAEpD,MAAMC,OAAO,GAAG,SAAS;AACzB,MAAMC,KAAK,GAAG,OAAO;AACrB,MAAMC,mCAAmC,GACvC,yCAAyC;AAE3C,OAAO,SAASC,+BAA+BA,CAC7CC,IAAY,EACc;EAC1B,MAAMC,MAAM,GAAGC,IAAI,CAACC,KAAK,CAACH,IAAI,CAAC;EAE/B,QAAQC,MAAM,CAACG,IAAI;IACjB,KAAKR,OAAO;MACV,OAAO,IAAID,yBAAyB,CAAC,CAAC;IACxC,KAAKE,KAAK;MACR,OAAO,IAAIH,uBAAuB,CAACO,MAAM,CAACI,OAAO,CAAC;IACpD;MACE,MAAMC,KAAK,CAACR,mCAAmC,CAAC;EACpD;AACF"}
@@ -0,0 +1,18 @@
1
+ import { GooglePayOpenCancelled, GooglePayOpenNotConfigured, GooglePayOpenSuccess, GooglePayOpenUnknownError } from '../model/result/google_pay_open_result';
2
+ const success = 'success';
3
+ const cancelled = 'cancelled';
4
+ const unknownError = 'unknownError';
5
+ export function mapGooglePayOpenResult(json) {
6
+ const object = JSON.parse(json);
7
+ switch (object.type) {
8
+ case success:
9
+ return new GooglePayOpenSuccess(object.token, object.description, object.cardNetwork, object.cardTail);
10
+ case cancelled:
11
+ return new GooglePayOpenCancelled();
12
+ case unknownError:
13
+ return new GooglePayOpenUnknownError();
14
+ default:
15
+ return new GooglePayOpenNotConfigured();
16
+ }
17
+ }
18
+ //# sourceMappingURL=google_pay_open_util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GooglePayOpenCancelled","GooglePayOpenNotConfigured","GooglePayOpenSuccess","GooglePayOpenUnknownError","success","cancelled","unknownError","mapGooglePayOpenResult","json","object","JSON","parse","type","token","description","cardNetwork","cardTail"],"sourceRoot":"../../../src","sources":["util/google_pay_open_util.ts"],"mappings":"AAAA,SACEA,sBAAsB,EACtBC,0BAA0B,EAE1BC,oBAAoB,EACpBC,yBAAyB,QACpB,wCAAwC;AAE/C,MAAMC,OAAO,GAAG,SAAS;AACzB,MAAMC,SAAS,GAAG,WAAW;AAC7B,MAAMC,YAAY,GAAG,cAAc;AAEnC,OAAO,SAASC,sBAAsBA,CAACC,IAAY,EAAuB;EACxE,MAAMC,MAAM,GAAGC,IAAI,CAACC,KAAK,CAACH,IAAI,CAAC;EAE/B,QAAQC,MAAM,CAACG,IAAI;IACjB,KAAKR,OAAO;MACV,OAAO,IAAIF,oBAAoB,CAC7BO,MAAM,CAACI,KAAK,EACZJ,MAAM,CAACK,WAAW,EAClBL,MAAM,CAACM,WAAW,EAClBN,MAAM,CAACO,QACT,CAAC;IACH,KAAKX,SAAS;MACZ,OAAO,IAAIL,sBAAsB,CAAC,CAAC;IACrC,KAAKM,YAAY;MACf,OAAO,IAAIH,yBAAyB,CAAC,CAAC;IACxC;MACE,OAAO,IAAIF,0BAA0B,CAAC,CAAC;EAC3C;AACF"}
@@ -0,0 +1,16 @@
1
+ import { PaymentChannelsError, PaymentChannelsSuccess } from '../model/result/payment_channels_result';
2
+ const success = 'success';
3
+ const error = 'error';
4
+ const unknownType = 'Unknown result type';
5
+ export function mapPaymentChannelsResult(json) {
6
+ const object = JSON.parse(json);
7
+ switch (object.type) {
8
+ case success:
9
+ return new PaymentChannelsSuccess(object.channels);
10
+ case error:
11
+ return new PaymentChannelsError(object.message);
12
+ default:
13
+ throw Error(unknownType);
14
+ }
15
+ }
16
+ //# sourceMappingURL=payment_channels_util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["PaymentChannelsError","PaymentChannelsSuccess","success","error","unknownType","mapPaymentChannelsResult","json","object","JSON","parse","type","channels","message","Error"],"sourceRoot":"../../../src","sources":["util/payment_channels_util.ts"],"mappings":"AAAA,SACEA,oBAAoB,EAEpBC,sBAAsB,QACjB,yCAAyC;AAEhD,MAAMC,OAAO,GAAG,SAAS;AACzB,MAAMC,KAAK,GAAG,OAAO;AACrB,MAAMC,WAAW,GAAG,qBAAqB;AAEzC,OAAO,SAASC,wBAAwBA,CAACC,IAAY,EAAyB;EAC5E,MAAMC,MAAM,GAAGC,IAAI,CAACC,KAAK,CAACH,IAAI,CAAC;EAE/B,QAAQC,MAAM,CAACG,IAAI;IACjB,KAAKR,OAAO;MACV,OAAO,IAAID,sBAAsB,CAACM,MAAM,CAACI,QAAQ,CAAC;IACpD,KAAKR,KAAK;MACR,OAAO,IAAIH,oBAAoB,CAACO,MAAM,CAACK,OAAO,CAAC;IACjD;MACE,MAAMC,KAAK,CAACT,WAAW,CAAC;EAC5B;AACF"}
@@ -0,0 +1,41 @@
1
+ import { MethodCallError } from '../model/result/result';
2
+ import { PaymentCompleted } from '../model/result/result';
3
+ import { ConfigurationSuccess } from '../model/result/result';
4
+ import { PaymentCancelled } from '../model/result/result';
5
+ import { ValidationError } from '../model/result/result';
6
+ import { TokenizationCompleted } from '../model/result/result';
7
+ import { TokenizationFailure } from '../model/result/result';
8
+ import { ModuleClosed } from '../model/result/result';
9
+ const configurationSuccess = 'configurationSuccess';
10
+ const validationError = 'validationError';
11
+ const paymentCompleted = 'paymentCompleted';
12
+ const paymentCancelled = 'paymentCancelled';
13
+ const tokenizationCompleted = 'tokenizationCompleted';
14
+ const tokenizationFailure = 'tokenizationFailure';
15
+ const methodCallError = 'methodCallError';
16
+ const moduleClosed = 'moduleClosed';
17
+ const unknownResult = 'Unknown result type';
18
+ export function mapResult(json) {
19
+ const object = JSON.parse(json);
20
+ switch (object.type) {
21
+ case configurationSuccess:
22
+ return new ConfigurationSuccess();
23
+ case validationError:
24
+ return new ValidationError(object.value);
25
+ case paymentCompleted:
26
+ return new PaymentCompleted(object.value);
27
+ case paymentCancelled:
28
+ return new PaymentCancelled(object.value);
29
+ case tokenizationCompleted:
30
+ return new TokenizationCompleted();
31
+ case tokenizationFailure:
32
+ return new TokenizationFailure();
33
+ case methodCallError:
34
+ return new MethodCallError(object.value);
35
+ case moduleClosed:
36
+ return new ModuleClosed();
37
+ default:
38
+ throw Error(unknownResult);
39
+ }
40
+ }
41
+ //# sourceMappingURL=result_util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["MethodCallError","PaymentCompleted","ConfigurationSuccess","PaymentCancelled","ValidationError","TokenizationCompleted","TokenizationFailure","ModuleClosed","configurationSuccess","validationError","paymentCompleted","paymentCancelled","tokenizationCompleted","tokenizationFailure","methodCallError","moduleClosed","unknownResult","mapResult","json","object","JSON","parse","type","value","Error"],"sourceRoot":"../../../src","sources":["util/result_util.ts"],"mappings":"AAAA,SAASA,eAAe,QAAQ,wBAAwB;AACxD,SAASC,gBAAgB,QAAQ,wBAAwB;AACzD,SAASC,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,gBAAgB,QAAQ,wBAAwB;AACzD,SAASC,eAAe,QAAQ,wBAAwB;AACxD,SAASC,qBAAqB,QAAQ,wBAAwB;AAC9D,SAASC,mBAAmB,QAAQ,wBAAwB;AAC5D,SAASC,YAAY,QAAQ,wBAAwB;AAGrD,MAAMC,oBAAoB,GAAG,sBAAsB;AACnD,MAAMC,eAAe,GAAG,iBAAiB;AACzC,MAAMC,gBAAgB,GAAG,kBAAkB;AAC3C,MAAMC,gBAAgB,GAAG,kBAAkB;AAC3C,MAAMC,qBAAqB,GAAG,uBAAuB;AACrD,MAAMC,mBAAmB,GAAG,qBAAqB;AACjD,MAAMC,eAAe,GAAG,iBAAiB;AACzC,MAAMC,YAAY,GAAG,cAAc;AACnC,MAAMC,aAAa,GAAG,qBAAqB;AAE3C,OAAO,SAASC,SAASA,CAACC,IAAY,EAAU;EAC9C,MAAMC,MAAM,GAAGC,IAAI,CAACC,KAAK,CAACH,IAAI,CAAC;EAE/B,QAAQC,MAAM,CAACG,IAAI;IACjB,KAAKd,oBAAoB;MACvB,OAAO,IAAIN,oBAAoB,CAAC,CAAC;IACnC,KAAKO,eAAe;MAClB,OAAO,IAAIL,eAAe,CAACe,MAAM,CAACI,KAAK,CAAC;IAC1C,KAAKb,gBAAgB;MACnB,OAAO,IAAIT,gBAAgB,CAACkB,MAAM,CAACI,KAAK,CAAC;IAC3C,KAAKZ,gBAAgB;MACnB,OAAO,IAAIR,gBAAgB,CAACgB,MAAM,CAACI,KAAK,CAAC;IAC3C,KAAKX,qBAAqB;MACxB,OAAO,IAAIP,qBAAqB,CAAC,CAAC;IACpC,KAAKQ,mBAAmB;MACtB,OAAO,IAAIP,mBAAmB,CAAC,CAAC;IAClC,KAAKQ,eAAe;MAClB,OAAO,IAAId,eAAe,CAACmB,MAAM,CAACI,KAAK,CAAC;IAC1C,KAAKR,YAAY;MACf,OAAO,IAAIR,YAAY,CAAC,CAAC;IAC3B;MACE,MAAMiB,KAAK,CAACR,aAAa,CAAC;EAC9B;AACF"}
@@ -0,0 +1,32 @@
1
+ import { ScreenlessBlikAmbiguousAlias, ScreenlessConfiguredPaymentFailed, ScreenlessMethodCallError, ScreenlessPaid, ScreenlessPaymentCreated, ScreenlessPaymentError, ScreenlessValidationError } from '../model/result/screenless_result';
2
+ const paid = 'paid';
3
+ const configuredPaymentFailed = 'configuredPaymentFailed';
4
+ const ambiguousAlias = 'ambiguousAlias';
5
+ const error = 'error';
6
+ const paymentCreated = 'paymentCreated';
7
+ const validationError = 'validationError';
8
+ const methodCallError = 'methodCallError';
9
+ const unknownScreenlessResult = 'Unknown screenless result type';
10
+ export function mapScreenlessResult(json) {
11
+ const object = JSON.parse(json);
12
+ switch (object.type) {
13
+ case paid:
14
+ return new ScreenlessPaid(object.transactionId);
15
+ case configuredPaymentFailed:
16
+ return new ScreenlessConfiguredPaymentFailed(object.transactionId, object.message);
17
+ case paymentCreated:
18
+ return new ScreenlessPaymentCreated(object.transactionId, object.paymentUrl);
19
+ case ambiguousAlias:
20
+ const aliases = object.aliases;
21
+ return new ScreenlessBlikAmbiguousAlias(object.transactionId, aliases);
22
+ case methodCallError:
23
+ return new ScreenlessMethodCallError(object.message);
24
+ case error:
25
+ return new ScreenlessPaymentError(object.message);
26
+ case validationError:
27
+ return new ScreenlessValidationError(object.message);
28
+ default:
29
+ throw Error(unknownScreenlessResult);
30
+ }
31
+ }
32
+ //# sourceMappingURL=screenless_result_util.js.map