@paydock/client-sdk 1.104.9-beta → 1.105.56-beta

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 (253) hide show
  1. package/README.md +1984 -396
  2. package/bundles/index.cjs +33513 -8908
  3. package/bundles/index.cjs.d.ts +867 -52
  4. package/bundles/index.mjs +33507 -8908
  5. package/bundles/index.mjs.d.ts +867 -52
  6. package/bundles/types/api/api-base.d.ts +19 -6
  7. package/bundles/types/api/api-base.d.ts.map +1 -1
  8. package/bundles/types/api/api-charge-internal.d.ts +1 -0
  9. package/bundles/types/api/api-charge-internal.d.ts.map +1 -1
  10. package/bundles/types/api/api-checkout-internal.d.ts +57 -0
  11. package/bundles/types/api/api-checkout-internal.d.ts.map +1 -0
  12. package/bundles/types/api/api-gateway-internal.d.ts +12 -0
  13. package/bundles/types/api/api-gateway-internal.d.ts.map +1 -0
  14. package/bundles/types/api/api-internal.d.ts +4 -0
  15. package/bundles/types/api/api-internal.d.ts.map +1 -1
  16. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts +3 -3
  17. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -1
  18. package/bundles/types/checkout/checkout.d.ts +86 -0
  19. package/bundles/types/checkout/checkout.d.ts.map +1 -0
  20. package/bundles/types/checkout/helpers/instruction-handler.d.ts +23 -0
  21. package/bundles/types/checkout/helpers/instruction-handler.d.ts.map +1 -0
  22. package/bundles/types/checkout/helpers/instruction-module.d.ts +6 -0
  23. package/bundles/types/checkout/helpers/instruction-module.d.ts.map +1 -0
  24. package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts +6 -0
  25. package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts.map +1 -0
  26. package/bundles/types/checkout/helpers/instruction.decorator.d.ts +5 -0
  27. package/bundles/types/checkout/helpers/instruction.decorator.d.ts.map +1 -0
  28. package/bundles/types/checkout/helpers/resource-helper.d.ts +5 -0
  29. package/bundles/types/checkout/helpers/resource-helper.d.ts.map +1 -0
  30. package/bundles/types/checkout/helpers/session-helper.d.ts +5 -0
  31. package/bundles/types/checkout/helpers/session-helper.d.ts.map +1 -0
  32. package/bundles/types/checkout/index.d.ts +2 -0
  33. package/bundles/types/checkout/index.d.ts.map +1 -0
  34. package/bundles/types/checkout/instructions/index.d.ts +3 -0
  35. package/bundles/types/checkout/instructions/index.d.ts.map +1 -0
  36. package/bundles/types/checkout/instructions/v1/index.d.ts +4 -0
  37. package/bundles/types/checkout/instructions/v1/index.d.ts.map +1 -0
  38. package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts +20 -0
  39. package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts.map +1 -0
  40. package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts +14 -0
  41. package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts.map +1 -0
  42. package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts +18 -0
  43. package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts.map +1 -0
  44. package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts +15 -0
  45. package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts.map +1 -0
  46. package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts +11 -0
  47. package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts.map +1 -0
  48. package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts +19 -0
  49. package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts.map +1 -0
  50. package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts +19 -0
  51. package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts.map +1 -0
  52. package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts +26 -0
  53. package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts.map +1 -0
  54. package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts +18 -0
  55. package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts.map +1 -0
  56. package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts +18 -0
  57. package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts.map +1 -0
  58. package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts +18 -0
  59. package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts.map +1 -0
  60. package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts +21 -0
  61. package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts.map +1 -0
  62. package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts +19 -0
  63. package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts.map +1 -0
  64. package/bundles/types/checkout/layout-widgets/additionals.d.ts +3 -0
  65. package/bundles/types/checkout/layout-widgets/additionals.d.ts.map +1 -0
  66. package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts +9 -0
  67. package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts.map +1 -0
  68. package/bundles/types/checkout/layout-widgets/message.d.ts +34 -0
  69. package/bundles/types/checkout/layout-widgets/message.d.ts.map +1 -0
  70. package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts +13 -0
  71. package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts.map +1 -0
  72. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts +52 -0
  73. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts.map +1 -0
  74. package/bundles/types/checkout/layout-widgets/payment-template.d.ts +3 -0
  75. package/bundles/types/checkout/layout-widgets/payment-template.d.ts.map +1 -0
  76. package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts +2 -0
  77. package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -1
  78. package/bundles/types/checkout-button/checkout-contextual-handler.d.ts +4 -0
  79. package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -1
  80. package/bundles/types/checkout-button/runner/contextual.runner.d.ts +2 -1
  81. package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -1
  82. package/bundles/types/checkout-button/runner/popup.runner.d.ts +3 -3
  83. package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -1
  84. package/bundles/types/components/http-core.d.ts.map +1 -1
  85. package/bundles/types/components/iframe-event.d.ts +2 -0
  86. package/bundles/types/components/iframe-event.d.ts.map +1 -1
  87. package/bundles/types/components/iframe.d.ts +2 -0
  88. package/bundles/types/components/iframe.d.ts.map +1 -1
  89. package/bundles/types/components/link.d.ts +1 -0
  90. package/bundles/types/components/link.d.ts.map +1 -1
  91. package/bundles/types/components/param.d.ts +6 -0
  92. package/bundles/types/components/param.d.ts.map +1 -1
  93. package/bundles/types/configs/env/environment.cba.d.ts +1 -1
  94. package/bundles/types/configs/env/environment.cba.d.ts.map +1 -1
  95. package/bundles/types/configs/env/environment.paydock.d.ts +1 -1
  96. package/bundles/types/configs/env/environment.paydock.d.ts.map +1 -1
  97. package/bundles/types/helper/access-token.d.ts +1 -0
  98. package/bundles/types/helper/access-token.d.ts.map +1 -1
  99. package/bundles/types/helper/event-emitter.d.ts +1 -0
  100. package/bundles/types/helper/event-emitter.d.ts.map +1 -1
  101. package/bundles/types/helper/spiner.util.d.ts +6 -0
  102. package/bundles/types/helper/spiner.util.d.ts.map +1 -0
  103. package/bundles/types/helper/widget-logger.d.ts +9 -0
  104. package/bundles/types/helper/widget-logger.d.ts.map +1 -0
  105. package/bundles/types/index-cba.d.ts +4 -0
  106. package/bundles/types/index-cba.d.ts.map +1 -1
  107. package/bundles/types/index.d.ts +4 -0
  108. package/bundles/types/index.d.ts.map +1 -1
  109. package/bundles/types/paypal-data-collector/index.d.ts +23 -0
  110. package/bundles/types/paypal-data-collector/index.d.ts.map +1 -0
  111. package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts +59 -0
  112. package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts.map +1 -0
  113. package/bundles/types/paypal-data-collector/paypal-data-collector.interfaces.d.ts +21 -0
  114. package/bundles/types/paypal-data-collector/paypal-data-collector.interfaces.d.ts.map +1 -0
  115. package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts +18 -0
  116. package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts.map +1 -0
  117. package/bundles/types/paypal-save-payment-source/index.d.ts +61 -0
  118. package/bundles/types/paypal-save-payment-source/index.d.ts.map +1 -0
  119. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts +86 -0
  120. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts.map +1 -0
  121. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts +84 -0
  122. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts.map +1 -0
  123. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts +37 -0
  124. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts.map +1 -0
  125. package/bundles/types/secure-remote-commerce/index.d.ts +2 -1
  126. package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -1
  127. package/bundles/types/secure-remote-commerce/interfaces.d.ts +12 -2
  128. package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +1 -1
  129. package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map +1 -1
  130. package/bundles/types/shared/http/http-request.d.ts +14 -0
  131. package/bundles/types/shared/http/http-request.d.ts.map +1 -0
  132. package/bundles/types/shared/http/index.d.ts +2 -0
  133. package/bundles/types/shared/http/index.d.ts.map +1 -0
  134. package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts +15 -0
  135. package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts.map +1 -0
  136. package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts +66 -0
  137. package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts.map +1 -0
  138. package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts +14 -0
  139. package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts.map +1 -0
  140. package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts +15 -0
  141. package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts.map +1 -0
  142. package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts +23 -0
  143. package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts.map +1 -0
  144. package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts +15 -0
  145. package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts.map +1 -0
  146. package/bundles/types/shared/services/instrumentation/repositories/index.d.ts +4 -0
  147. package/bundles/types/shared/services/instrumentation/repositories/index.d.ts.map +1 -0
  148. package/bundles/types/wallet-buttons/index.d.ts +4 -0
  149. package/bundles/types/wallet-buttons/index.d.ts.map +1 -1
  150. package/bundles/types/wallet-buttons/wallet-buttons.d.ts +4 -4
  151. package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +1 -1
  152. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts +4 -4
  153. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +1 -1
  154. package/bundles/types/wallet-buttons/{afterpay.wallet-service.d.ts → wallet-services/afterpay.wallet-service.d.ts} +1 -1
  155. package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts.map +1 -0
  156. package/bundles/types/wallet-buttons/{apple.wallet-service.d.ts → wallet-services/apple.wallet-service.d.ts} +3 -3
  157. package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -0
  158. package/bundles/types/wallet-buttons/{flypay-v2.wallet-service.d.ts → wallet-services/flypay-v2.wallet-service.d.ts} +3 -3
  159. package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts.map +1 -0
  160. package/bundles/types/wallet-buttons/{flypay.wallet-service.d.ts → wallet-services/flypay.wallet-service.d.ts} +6 -6
  161. package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts.map +1 -0
  162. package/bundles/types/wallet-buttons/{google.wallet-service.d.ts → wallet-services/google.wallet-service.d.ts} +4 -4
  163. package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts.map +1 -0
  164. package/bundles/types/wallet-buttons/wallet-services/mastercard.wallet-service.d.ts.map +1 -0
  165. package/bundles/types/wallet-buttons/{paypal.wallet-service.d.ts → wallet-services/paypal.wallet-service.d.ts} +1 -1
  166. package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts.map +1 -0
  167. package/bundles/types/wallet-buttons/{stripe.wallet-service.d.ts → wallet-services/stripe.wallet-service.d.ts} +1 -1
  168. package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts.map +1 -0
  169. package/bundles/types/wallet-buttons/{wallet-service.d.ts → wallet-services/wallet-service.d.ts} +4 -4
  170. package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts.map +1 -0
  171. package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts +195 -0
  172. package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts.map +1 -0
  173. package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts +10 -0
  174. package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts.map +1 -0
  175. package/bundles/types/wallet-buttons-express/index.d.ts +131 -0
  176. package/bundles/types/wallet-buttons-express/index.d.ts.map +1 -0
  177. package/bundles/types/wallet-buttons-express/interfaces/base-event-data.interface.d.ts +6 -0
  178. package/bundles/types/wallet-buttons-express/interfaces/base-event-data.interface.d.ts.map +1 -0
  179. package/bundles/types/wallet-buttons-express/interfaces/base-gateway-config.interface.d.ts +6 -0
  180. package/bundles/types/wallet-buttons-express/interfaces/base-gateway-config.interface.d.ts.map +1 -0
  181. package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts +5 -0
  182. package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts.map +1 -0
  183. package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts +14 -0
  184. package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts.map +1 -0
  185. package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts +6 -0
  186. package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts.map +1 -0
  187. package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts +6 -0
  188. package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts.map +1 -0
  189. package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts +6 -0
  190. package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts.map +1 -0
  191. package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts +9 -0
  192. package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts.map +1 -0
  193. package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts +6 -0
  194. package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts.map +1 -0
  195. package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts +11 -0
  196. package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts.map +1 -0
  197. package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts +6 -0
  198. package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts.map +1 -0
  199. package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts +22 -0
  200. package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts.map +1 -0
  201. package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts +50 -0
  202. package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts.map +1 -0
  203. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts +3 -0
  204. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts.map +1 -0
  205. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.d.ts +6 -0
  206. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.d.ts.map +1 -0
  207. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts +17 -0
  208. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts.map +1 -0
  209. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.d.ts +2 -0
  210. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.d.ts.map +1 -0
  211. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.d.ts +2 -0
  212. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.d.ts.map +1 -0
  213. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.d.ts +4 -0
  214. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.d.ts.map +1 -0
  215. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts +31 -0
  216. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts.map +1 -0
  217. package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts +47 -0
  218. package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts.map +1 -0
  219. package/bundles/types/widget/configuration.d.ts.map +1 -1
  220. package/bundles/types/widget/html-multi-widget.d.ts +4 -3
  221. package/bundles/types/widget/html-multi-widget.d.ts.map +1 -1
  222. package/bundles/widget.umd.js +33513 -8908
  223. package/bundles/widget.umd.js.d.ts +867 -52
  224. package/bundles/widget.umd.js.min.d.ts +867 -52
  225. package/bundles/widget.umd.min.js +61 -2
  226. package/docs/click-to-pay-examples.md +36 -0
  227. package/docs/click-to-pay.md +4 -1
  228. package/docs/html/layout.html +1 -0
  229. package/docs/paypal-data-collector-examples.md +58 -0
  230. package/docs/paypal-data-collector.md +149 -0
  231. package/docs/paypal-save-payment-source-examples.md +63 -0
  232. package/docs/paypal-save-payment-source.md +256 -0
  233. package/docs/wallet-buttons-examples.md +29 -2
  234. package/docs/wallet-buttons-express-examples.md +201 -0
  235. package/docs/wallet-buttons-express.md +786 -0
  236. package/docs/wallet-buttons.md +3 -0
  237. package/examples/multi-html-widget/simple.html +2 -1
  238. package/package.json +98 -92
  239. package/slate.md +65 -2
  240. package/bundles/index.cjs.map +0 -1
  241. package/bundles/index.mjs.map +0 -1
  242. package/bundles/types/wallet-buttons/afterpay.wallet-service.d.ts.map +0 -1
  243. package/bundles/types/wallet-buttons/apple.wallet-service.d.ts.map +0 -1
  244. package/bundles/types/wallet-buttons/flypay-v2.wallet-service.d.ts.map +0 -1
  245. package/bundles/types/wallet-buttons/flypay.wallet-service.d.ts.map +0 -1
  246. package/bundles/types/wallet-buttons/google.wallet-service.d.ts.map +0 -1
  247. package/bundles/types/wallet-buttons/mastercard.wallet-service.d.ts.map +0 -1
  248. package/bundles/types/wallet-buttons/paypal.wallet-service.d.ts.map +0 -1
  249. package/bundles/types/wallet-buttons/stripe.wallet-service.d.ts.map +0 -1
  250. package/bundles/types/wallet-buttons/wallet-service.d.ts.map +0 -1
  251. package/bundles/widget.umd.js.map +0 -1
  252. package/bundles/widget.umd.min.js.map +0 -1
  253. /package/bundles/types/wallet-buttons/{mastercard.wallet-service.d.ts → wallet-services/mastercard.wallet-service.d.ts} +0 -0
@@ -0,0 +1,66 @@
1
+ export declare function getConfig(): {
2
+ available: boolean;
3
+ options: {
4
+ readonly info: {
5
+ readonly applicationID: string;
6
+ readonly licenseKey: string;
7
+ readonly beacon: "bam.nr-data.net";
8
+ readonly errorBeacon: "bam.nr-data.net";
9
+ readonly sa: 1;
10
+ };
11
+ readonly init: {
12
+ readonly distributed_tracing: {
13
+ autoStart: boolean;
14
+ enabled: boolean;
15
+ };
16
+ readonly jserrors: {
17
+ autoStart: boolean;
18
+ enabled: boolean;
19
+ };
20
+ readonly metrics: {
21
+ autoStart: boolean;
22
+ enabled: boolean;
23
+ };
24
+ readonly page_action: {
25
+ autoStart: boolean;
26
+ enabled: boolean;
27
+ };
28
+ readonly page_view_event: {
29
+ autoStart: boolean;
30
+ enabled: boolean;
31
+ };
32
+ readonly page_view_timing: {
33
+ autoStart: boolean;
34
+ enabled: boolean;
35
+ };
36
+ readonly session_replay: {
37
+ autoStart: boolean;
38
+ enabled: boolean;
39
+ };
40
+ readonly session_trace: {
41
+ autoStart: boolean;
42
+ enabled: boolean;
43
+ };
44
+ readonly spa: {
45
+ autoStart: boolean;
46
+ enabled: boolean;
47
+ };
48
+ readonly ajax: {
49
+ readonly deny_list: string[];
50
+ readonly autoStart: boolean;
51
+ readonly enabled: boolean;
52
+ };
53
+ readonly privacy: {
54
+ readonly cookies_enabled: false;
55
+ };
56
+ };
57
+ readonly loaderConfig: {
58
+ readonly accountID: string;
59
+ readonly agentID: string;
60
+ readonly applicationID: string;
61
+ readonly licenseKey: string;
62
+ readonly trustKey: string;
63
+ };
64
+ };
65
+ };
66
+ //# sourceMappingURL=instrumentation.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instrumentation.config.d.ts","sourceRoot":"","sources":["../../../../src/shared/services/instrumentation/instrumentation.config.ts"],"names":[],"mappings":"AAuEA,wBAAgB,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOxB"}
@@ -0,0 +1,14 @@
1
+ export interface CustomEventDTO {
2
+ environment: string;
3
+ appId?: never;
4
+ timestamp?: never;
5
+ [x: string]: unknown;
6
+ }
7
+ export interface ReportBaseContext {
8
+ environment: string;
9
+ sdkVersion: string | null;
10
+ description?: string;
11
+ [x: string]: SerializableValue | undefined;
12
+ }
13
+ export type SerializableValue = string | number | symbol | object | null;
14
+ //# sourceMappingURL=instrumentation.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instrumentation.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/services/instrumentation/instrumentation.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,CAAC,CAAC,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAAC;CAC9C;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { InstrumentationAgent } from '../instrumentation.agent';
2
+ import type { ReportBaseContext } from '../instrumentation.types';
3
+ type ReportActionFn = (repository: ActionRepository, actionName: string, ctx: ReportBaseContext) => void;
4
+ interface IReportAction {
5
+ reportAction: ReportActionFn;
6
+ }
7
+ declare class ActionRepository {
8
+ private readonly agent;
9
+ constructor();
10
+ createAction(...args: Parameters<InstrumentationAgent['addPageAction']>): Promise<void>;
11
+ }
12
+ declare const actionRepository: ActionRepository;
13
+ export { actionRepository };
14
+ export type { IReportAction, ReportActionFn };
15
+ //# sourceMappingURL=action.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.repository.d.ts","sourceRoot":"","sources":["../../../../../src/shared/services/instrumentation/repositories/action.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE,KAAK,cAAc,GAAG,CAClB,UAAU,EAAE,gBAAgB,EAC5B,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,iBAAiB,KACrB,IAAI,CAAC;AAEV,UAAU,aAAa;IACnB,YAAY,EAAE,cAAc,CAAC;CAChC;AAED,cAAM,gBAAgB;IAClB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAuB;;IAMvC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,oBAAoB,CAAC,eAAe,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAGhG;AAED,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { InstrumentationAgent } from '../instrumentation.agent';
2
+ import type { ReportBaseContext } from '../instrumentation.types';
3
+ type ReportErrorFn = (repository: ErrorRepository, error: string | Error, ctx: ReportBaseContext & ({
4
+ className: string;
5
+ classMethod: string;
6
+ functionName?: never;
7
+ } | {
8
+ className?: never;
9
+ classMethod?: never;
10
+ functionName: string;
11
+ })) => void;
12
+ interface IReportError {
13
+ reportError: ReportErrorFn;
14
+ }
15
+ declare class ErrorRepository {
16
+ private readonly agent;
17
+ constructor();
18
+ createError(...args: Parameters<InstrumentationAgent['noticeError']>): Promise<void>;
19
+ }
20
+ declare const errorRepository: ErrorRepository;
21
+ export { errorRepository };
22
+ export type { IReportError, ReportErrorFn };
23
+ //# sourceMappingURL=error.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.repository.d.ts","sourceRoot":"","sources":["../../../../../src/shared/services/instrumentation/repositories/error.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE,KAAK,aAAa,GAAG,CACjB,UAAU,EAAE,eAAe,EAC3B,KAAK,EAAE,MAAM,GAAG,KAAK,EACrB,GAAG,EAAE,iBAAiB,GAClB,CACM;IACI,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,KAAK,CAAC;CACxB,GACD;IACI,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACxB,CACN,KACJ,IAAI,CAAC;AAEV,UAAU,YAAY;IAClB,WAAW,EAAE,aAAa,CAAC;CAC9B;AAED,cAAM,eAAe;IACjB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAuB;;IAMvC,WAAW,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,oBAAoB,CAAC,aAAa,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAG7F;AAED,QAAA,MAAM,eAAe,iBAAwB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { InstrumentationAgent } from '../instrumentation.agent';
2
+ import type { CustomEventDTO, ReportBaseContext } from '../instrumentation.types';
3
+ type ReportEventFn = (repository: EventRepository, actionName: string, ctx: ReportBaseContext & CustomEventDTO) => void;
4
+ interface IReportEvent {
5
+ reportEvent: ReportEventFn;
6
+ }
7
+ declare class EventRepository {
8
+ private readonly agent;
9
+ constructor();
10
+ createEvent(...args: Parameters<InstrumentationAgent['addPageAction']>): Promise<void>;
11
+ }
12
+ declare const eventRepository: EventRepository;
13
+ export { eventRepository };
14
+ export type { IReportEvent, ReportEventFn };
15
+ //# sourceMappingURL=event.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.repository.d.ts","sourceRoot":"","sources":["../../../../../src/shared/services/instrumentation/repositories/event.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElF,KAAK,aAAa,GAAG,CAAC,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,GAAG,cAAc,KAAK,IAAI,CAAC;AAExH,UAAU,YAAY;IAClB,WAAW,EAAE,aAAa,CAAC;CAC9B;AAED,cAAM,eAAe;IACjB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAuB;;IAMvC,WAAW,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,oBAAoB,CAAC,eAAe,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAG/F;AAED,QAAA,MAAM,eAAe,iBAAwB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './action.repository';
2
+ export * from './error.repository';
3
+ export * from './event.repository';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/services/instrumentation/repositories/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
@@ -58,6 +58,9 @@ export { WalletButtons } from "./wallet-buttons";
58
58
  * @interface IWalletUnavailable
59
59
  *
60
60
  * @param {string} [wallet] For gateways with more than one wallet button available (e.g: MPGS with ApplePay and GooglePay). Possible values for wallet are 'apple' or 'google'.
61
+ * @param {string} [type] Event Code. Value can be 'create_order_id_error' on FlypayV2 order creation failure. Optional for [Flypay V2]. N/A for other wallets.
62
+ * @param {string} [error_code] Event Error Code. Value can be any error code return from Paydock's API. Optional for [Flypay V2]. N/A for other wallets.
63
+ +
61
64
  **/
62
65
  /**
63
66
  * Interface of data for wallet button `update` call.
@@ -92,6 +95,7 @@ export { WalletButtons } from "./wallet-buttons";
92
95
  * Also select button type for GooglePay (check GooglePayStyles) and Afterpay (check AfterpayStyles). Optional for [ApplePay, GooglePay, Afterpay]. N/A for other wallets.
93
96
  * @param {object} [style.height] Used to select Afterpay button height. Optional for [Afterpay]. N/A for other wallets.
94
97
  * @param {array} [wallets] By default if this is not sent or empty, we will try to show either Apple Pay or Google Pay buttons. This can be limited sending the following array in this field: ['apple','google]. Optional for [Stripe, ApplePay, GooglePay]. N/A for other wallets.
98
+ * @param {string} [client_id] Client ID to be used in the provider system. Required for [Flypay V2]. N/A for [FlyPay, GooglePay, ApplePay, PayPal, Afterpay].
95
99
  **/
96
100
  /**
97
101
  * Interface of Shipping Options for ApplePay
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;;;;IAMI;AAEJ;;;;;;;;;;;IAWI;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;IA0BI;AAEJ;;;;;;;IAOI;AAEJ;;;;;IAKI;AAEJ;;;;;IAKI;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;;IA2BI;AAEJ;;;;;;;;;;IAUI;AAEJ;;;;;;;;;IASI;AAEJ;;;;;;;;;;IAUI"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;;;;IAMI;AAEJ;;;;;;;;;;;IAWI;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;IA0BI;AAEJ;;;;;;;IAOI;AAEJ;;;;;;;;IAQI;AAEJ;;;;;IAKI;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4BI;AAEJ;;;;;;;;;;IAUI;AAEJ;;;;;;;;;IASI;AAEJ;;;;;;;;;;IAUI"}
@@ -1,9 +1,9 @@
1
+ import { ApiInternal } from "../api/api-internal";
1
2
  import { Container } from "../components/container";
2
- import { IWalletMeta } from "../components/param";
3
3
  import { EventEmitter } from "../helper/event-emitter";
4
- import { IWalletOnClick, IWalletPaymentSuccessful, IWalletUnavailable, IWalletUpdate } from "./interfaces";
5
- import { ApiInternal } from "../api/api-internal";
6
- import { IWalletService } from "./wallet-service";
4
+ import { type IWalletService } from "./wallet-services/wallet-service";
5
+ import { type IWalletMeta } from "../components/param";
6
+ import type { IWalletOnClick, IWalletPaymentSuccessful, IWalletUnavailable, IWalletUpdate } from "./interfaces";
7
7
  /**
8
8
  * List of available event's name in the wallet button lifecycle
9
9
  * @const EVENT
@@ -1 +1 @@
1
- {"version":3,"file":"wallet-buttons.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons/wallet-buttons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAoF,MAAM,qBAAqB,CAAC;AAKpI,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC3G,OAAO,EAAE,WAAW,EAAiB,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAmE,cAAc,EAAgB,MAAM,kBAAkB,CAAC;AAIjI;;;;;;;;;;GAUG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;CAUjB,CAAC;AAEF,MAAM,WAAW,UAAU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AC,oBAAoB;IAoC5B,OAAO,CAAC,2BAA2B;IAOnC,OAAO,CAAC,4BAA4B;IAOpC,OAAO,CAAC,yBAAyB;IAOjC,OAAO,CAAC,8BAA8B;CAMzC;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -1,9 +1,9 @@
1
+ import { ApiInternal } from "../api/api-internal";
1
2
  import { Container } from "../components/container";
2
- import { IWalletMeta } from "../components/param";
3
3
  import { EventEmitter } from "../helper/event-emitter";
4
- import { IWalletPaymentSuccessful, IWalletUnavailable, IWalletUpdate } from "./interfaces";
5
- import { ApiInternal } from "../api/api-internal";
6
- import { IWalletService } from "./wallet-service";
4
+ import { type IWalletService } from "./wallet-services/wallet-service";
5
+ import { type IWalletMeta } from "../components/param";
6
+ import type { IWalletPaymentSuccessful, IWalletUnavailable, IWalletUpdate } from "./interfaces";
7
7
  /**
8
8
  * List of available event's name in the wallet button lifecycle
9
9
  * @const EVENT
@@ -1 +1 @@
1
- {"version":3,"file":"wallet-cba-buttons.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons/wallet-cba-buttons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAoF,MAAM,qBAAqB,CAAC;AAGpI,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC3F,OAAO,EAAE,WAAW,EAAiB,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAmE,cAAc,EAAgB,MAAM,kBAAkB,CAAC;AAEjI;;;;;;;;;GASG;AACH,eAAO,MAAM,KAAK;;;;;;CAMjB,CAAC;AAEF;;;;;;KAMK;AACL,MAAM,WAAW,UAAU;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,GAAG,wBAAwB,GAAG,aAAa,GAAG,kBAAkB,GAA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B,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI;IAQxC;;;;;;;;;;;;;OAaG;IACI,iBAAiB,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,IAAI;IAO5D;;;;;;;;;;;;;OAaG;IACI,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,IAAI;IAOzD,OAAO,CAAC,qBAAqB;IAU7B,OAAO,CAAC,wBAAwB;IAOhC,OAAO,CAAC,mBAAmB;IAU3B,OAAO,CAAC,mBAAmB;IAiB3B,OAAO,CAAC,oBAAoB;IAoC5B,OAAO,CAAC,2BAA2B;IAOnC,OAAO,CAAC,4BAA4B;IAOpC,OAAO,CAAC,yBAAyB;CAMpC;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Container } from '../components/container';
1
+ import { Container } from '../../components/container';
2
2
  import { IWalletService, IWalletServiceMeta, WalletService } from './wallet-service';
3
3
  declare global {
4
4
  interface Window {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"afterpay.wallet-service.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons/wallet-services/afterpay.wallet-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,aAAa,EAAgB,MAAM,kBAAkB,CAAC;AAKnG,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,QAAQ,EAAE,GAAG,CAAC;KACjB;CACJ;AAED,qBAAa,qBAAsB,SAAQ,aAAc,YAAW,cAAc;IAC9E,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,iBAAiB,CAAoB;gBAEjC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB;IAO5C,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,GAAG;IAI/B,MAAM,CAAC,GAAG,EAAE,MAAM;IAMzB,OAAO,CAAC,KAAK;IAcb,OAAO,CAAC,uBAAuB;IAyC/B,OAAO,CAAC,kBAAkB;IAiB1B,OAAO,CAAC,SAAS;IA4BjB,OAAO,CAAC,cAAc;IA+BtB,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,SAAS;CAOpB"}
@@ -1,7 +1,7 @@
1
1
  /// <reference types="applepayjs" />
2
- import { Container } from "../components/container";
3
- import { ApplePayRawDataInitialization, ApplePayStyles, IApplePayShippingOption } from "../components/param";
4
- import { EventEmitter } from './../helper/event-emitter';
2
+ import { Container } from "../../components/container";
3
+ import { ApplePayRawDataInitialization, ApplePayStyles, IApplePayShippingOption } from "../../components/param";
4
+ import { EventEmitter } from '../../helper/event-emitter';
5
5
  import { IWalletService, IWalletServiceMeta, IWalletServiceUpdate, WalletService } from "./wallet-service";
6
6
  declare global {
7
7
  interface Window {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apple.wallet-service.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons/wallet-services/apple.wallet-service.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,6BAA6B,EAAE,cAAc,EAAE,uBAAuB,EAA0D,MAAM,wBAAwB,CAAC;AACxK,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAEH,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EAEhB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,eAAe,EAAE,GAAG,CAAC;KACxB;CACJ;AAED,UAAU,kBAAkB;IACxB,eAAe,CAAC,EAAE,UAAU,CAAC,sBAAsB,CAAC;IACpD,cAAc,CAAC,EAAE,UAAU,CAAC,sBAAsB,CAAC;CACtD;AAED,qBAAa,kBAAmB,SAAQ,aAAc,YAAW,cAAc;IAOlB,SAAS,CA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ments-checkout';
2
- import { Container } from '../components/container';
2
+ import { Container } from '../../components/container';
3
3
  import { IWalletService, IWalletServiceMeta, WalletService } from './wallet-service';
4
- import { Link } from '../components/link';
5
- import { WalletBackground } from '../components/wallet-background';
4
+ import { Link } from '../../components/link';
5
+ import { WalletBackground } from '../../components/wallet-background';
6
6
  export declare class FlypayV2WalletService extends WalletService implements IWalletService {
7
7
  protected background: WalletBackground;
8
8
  protected checkout: Checkout;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flypay-v2.wallet-service.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons/wallet-services/flypay-v2.wallet-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAgB,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACnG,OAAO,EAAoB,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAUtE,qBAAa,qBAAsB,SAAQ,aAAc,YAAW,cAAc;IAC9E,SAAS,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACvC,SAAS,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC7B,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC;IACrB,SAAS,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC/B,SAAS,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,cAAc,EAAE,iBAAiB,CAAC;IAG5C,OAAO,CAAC,QAAQ,CAAiB;gBAErB,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB;IAWhD,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,GAAG;IAc/B,MAAM,CAAC,GAAG,EAAE,MAAM;IAKlB,MAAM;IAQN,OAAO;IAQd,OAAO,CAAC,KAAK;IAOb,OAAO,CAAC,SAAS;IAgBjB,OAAO,CAAC,qBAAqB,CAoB3B;IAEF,OAAO,CAAC,gCAAgC;IAqBxC,OAAO,CAAC,UAAU;IAYlB,OAAO,CAAC,gBAAgB;IAiCxB,OAAO,CAAC,cAAc;CAgBzB"}
@@ -1,9 +1,9 @@
1
- import { IFrame } from "../components/iframe";
2
- import { Container } from "../components/container";
3
- import { Link } from "../components/link";
4
- import { FlypayIframeEvent } from "../components/flypay-iframe-event";
5
- import { WalletTrigger } from "../components/wallet-trigger";
6
- import { WalletBackground } from "../components/wallet-background";
1
+ import { IFrame } from "../../components/iframe";
2
+ import { Container } from "../../components/container";
3
+ import { Link } from "../../components/link";
4
+ import { FlypayIframeEvent } from "../../components/flypay-iframe-event";
5
+ import { WalletTrigger } from "../../components/wallet-trigger";
6
+ import { WalletBackground } from "../../components/wallet-background";
7
7
  import { IWalletService, IWalletServiceMeta, IWalletServiceUpdate, WalletService } from "./wallet-service";
8
8
  export declare class FlypayWalletService extends WalletService implements IWalletService {
9
9
  protected link: Link;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flypay.wallet-service.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons/wallet-services/flypay.wallet-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAiC,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EACH,iBAAiB,EAEpB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAW,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAEtE,OAAO,EACH,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EAEhB,MAAM,kBAAkB,CAAC;AAI1B,qBAAa,mBAAoB,SAAQ,aAAc,YAAW,cAAc;IAC5E,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC;IACrB,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAC/B,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,KAAK,EAAE,iBAAiB,CAAC;IACnC,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACvC,SAAS,CAAC,cAAc,EAAE,aAAa,CAAC;gBAE5B,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB;IAyB5C,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAczC,KAAK,IAAI,IAAI;IAKb,MAAM,CAAC,IAAI,EAAE,oBAAoB;IAIjC,MAAM,CAAC,GAAG,EAAE,MAAM;IAKzB,OAAO,CAAC,cAAc;IAYtB,OAAO,CAAC,iBAAiB;IA8BzB,OAAO,CAAC,0BAA0B;IASlC,OAAO,CAAC,eAAe;CAmC1B"}
@@ -1,7 +1,7 @@
1
- import { Container } from "../components/container";
2
- import { IWalletService, IWalletServiceMeta, IWalletServiceUpdate, WalletService } from "./wallet-service";
3
- import { GooglePayRawDataInitialization, GooglePayStyles, IGooglePayShippingOption } from "../components/param";
4
- import { EventEmitter } from './../helper/event-emitter';
1
+ import type { Container } from '../../components/container';
2
+ import { type GooglePayRawDataInitialization, type GooglePayStyles, type IGooglePayShippingOption } from '../../components/param';
3
+ import type { EventEmitter } from '../../helper/event-emitter';
4
+ import { type IWalletService, type IWalletServiceMeta, type IWalletServiceUpdate, WalletService } from './wallet-service';
5
5
  export declare class GoogleWalletService extends WalletService implements IWalletService {
6
6
  protected gatewayName: string;
7
7
  protected eventEmitter: EventEmitter;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google.wallet-service.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons/wallet-services/google.w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O,CAAC,gCAAgC;YAqB1B,eAAe;IAS7B,OAAO,CAAC,mBAAmB;IA8D3B,OAAO,CAAC,oBAAoB;IAgB5B,OAAO,CAAC,aAAa;IAWrB,OAAO,CAAC,wBAAwB;IAqDhC,OAAO,CAAC,cAAc;IAsBtB,OAAO,CAAC,eAAe,CAmBrB;IAEF,OAAO,CAAC,qBAAqB,CAK1B;CACN"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mastercard.wallet-service.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons/wallet-services/mastercard.wallet-service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEvF,qBAAa,uBAAwB,SAAQ,aAAc,YAAW,cAAc;IAChF,SAAS,CAAC,sBAAsB;IAchC,SAAS,CAAC,cAAc,IAAI,MAAM;IAI3B,MAAM,CAAC,GAAG,EAAE,MAAM;IAKlB,MAAM,CAAC,IAAI,EAAE,oBAAoB;CAG3C"}
@@ -1,5 +1,5 @@
1
1
  import { IWalletService, IWalletServiceUpdate, WalletService } from "./wallet-service";
2
- import { Container } from "../components/container";
2
+ import { Container } from "../../components/container";
3
3
  declare global {
4
4
  interface Window {
5
5
  paypal: any;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypal.wallet-service.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons/wallet-services/paypal.wallet-service.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,cAAc,EACd,oBAAoB,EACpB,aAAa,EAEhB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAGvD,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,MAAM,EAAE,GAAG,CAAC;KACf;CACJ;AAED,qBAAa,mBAAoB,SAAQ,aAAc,YAAW,cAAc;IAC5E,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC;IACtB,SAAS,CAAC,kCAAkC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACvE,SAAS,CAAC,iCAAiC,EAAE,MAAM,IAAI,CAAC;IACxD,SAAS,CAAC,kBAAkB,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,CAAC;QAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAAC,eAAe,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtI,SAAS,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IAEzC,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAezC,MAAM,CAAC,IAAI,EAAE,oBAAoB;IAcxC,OAAO,CAAC,2BAA2B;IAkBnC,OAAO,CAAC,+BAA+B;IAqCvC,OAAO,CAAC,iBAAiB;IA6DzB,OAAO,CAAC,eAAe;CA0B1B"}
@@ -1,6 +1,6 @@
1
1
  import { Stripe, PaymentRequest, StripePaymentRequestButtonElement, PaymentRequestCompleteStatus } from "@stripe/stripe-js";
2
2
  import { IWalletService, WalletService } from "./wallet-service";
3
- import { Container } from "../components/container";
3
+ import { Container } from "../../components/container";
4
4
  export declare const UI_COMPLETION_STATE: {
5
5
  SUCCESS: PaymentRequestCompleteStatus;
6
6
  FAIL: PaymentRequestCompleteStatus;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripe.wallet-service.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons/wallet-services/stripe.wallet-service.ts"],"names":[],"mappings":"AACA,OAAO,EACH,MAAM,EACN,cAAc,EAEd,iCAAiC,EACjC,4BAA4B,EAC/B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAGH,cAAc,EACd,aAAa,EAEhB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD,eAAO,MAAM,mBAAmB;;;CAG/B,CAAC;AAEF,qBAAa,mBAAoB,SAAQ,aAAc,YAAW,cAAc;IAC5E,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC;IAEzC,SAAS,CAAC,kBAAkB,IAAI,cAAc;IAc9C,SAAS,CAAC,kBAAkB,IAAI,iCAAiC;IAM1D,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAWhD,OAAO,CAAC,iBAAiB;IAqBzB,OAAO,CAAC,KAAK;IAOb,OAAO,CAAC,0BAA0B;IA0ClC,OAAO,CAAC,aAAa;CAMxB"}
@@ -1,6 +1,6 @@
1
- import { Container } from "../components/container";
2
- import { IWalletMeta, IShippingOption, WALLET_TYPE } from "../components/param";
3
- import { EventEmitter } from "../helper/event-emitter";
1
+ import { Container } from "../../components/container";
2
+ import { IWalletMeta, IShippingOption, WALLET_TYPE } from "../../components/param";
3
+ import { EventEmitter } from "../../helper/event-emitter";
4
4
  export interface IWalletButtonsAvailability {
5
5
  apple_pay: boolean;
6
6
  google_pay: boolean;
@@ -99,7 +99,7 @@ export interface ICallbackSuccessData {
99
99
  export interface IWalletCallbackEventBody {
100
100
  data: ICallbackData;
101
101
  onSuccess: (data?: ICallbackSuccessData) => void;
102
- onError: (message?: string) => void;
102
+ onError: (message?: string, code?: string) => void;
103
103
  }
104
104
  export interface IWalletService {
105
105
  load(container: Container): Promise<void>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wallet-service.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons/wallet-services/wallet-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG1D,MAAM,WAAW,0BAA0B;IACvC,SAAS,EAAE,O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,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACtD;AAED,MAAM,WAAW,cAAc;IAC3B,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C,KAAK,CAAC,IAAI,IAAI,CAAC;IACf,MAAM,CAAC,IAAI,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACzC,MAAM,IAAI,IAAI,CAAC;IACf,OAAO,IAAI,IAAI,CAAC;IAChB,MAAM,CAAC,GAAG,EAAE,MAAM,OAAE;IACpB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,2BAA2B,GAAG,qCAAqC,GAAG,GAAG,KAAK,IAAI,OAAE;CACzH;AAED,8BAAsB,aAAa;IAKnB,SAAS,CAAC,SAAS,EAAE,MAAM;IAAE,SAAS,CAAC,IAAI,EAAE,kBAAkB;IAJ3E,SAAS,CAAC,GAAG,SAAe;IAC5B,SAAS,CAAC,YAAY,EAAE,cAAc,EAAE,CAAC;IACzC,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;gBAEf,SAAS,EAAE,MAAM,EAAY,IAAI,EAAE,kBAAkB;IAK3E,SAAS,CAAC,sBAAsB;IAIhC,SAAS,CAAC,cAAc,IAAI,MAAM;IAK3B,MAAM,CAAC,GAAG,EAAE,MAAM;IAKlB,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAKzC,MAAM,CAAC,IAAI,EAAE,oBAAoB;IAKjC,MAAM;IAKN,OAAO;IAKP,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,2BAA2B,GAAG,qCAAqC,KAAK,IAAI;CASxH"}
@@ -0,0 +1,195 @@
1
+ import { ApiInternal } from '../api/api-internal';
2
+ import { Container } from '../components/container';
3
+ import { OnClickEventData } from './interfaces/on-click-event-data.interface';
4
+ import { OnPaymentSuccessfulEventData } from './interfaces/on-payment-successful-event-data.interface';
5
+ import { OnCloseEventData } from './interfaces/on-close-event-data.interface';
6
+ import { OnPaymentInReviewEventData } from './interfaces/on-payment-in-review-event-data.interface';
7
+ import { OnPaymentErrorEventData } from './interfaces/on-payment-error-event-data.interface';
8
+ import { WalletCaptureRequest } from './interfaces/wallet-capture-request.interface';
9
+ import { OnUnavailableEventData } from './interfaces/on-unavailable-event-data.interface';
10
+ import { BaseGatewayConfig } from './interfaces/base-gateway-config.interface';
11
+ import { BaseWalletMeta } from './interfaces/base-wallet-meta.interface';
12
+ import { OnErrorEventData } from './interfaces/on-error-event-data.interface';
13
+ declare abstract class BaseWalletButton<T extends BaseWalletMeta> {
14
+ protected container: Container;
15
+ protected api: ApiInternal;
16
+ protected env: string;
17
+ protected gatewayId: string;
18
+ protected meta: T;
19
+ private eventEmitter;
20
+ private chargeWalletTokenMeta?;
21
+ constructor(selector: string, publicKeyOrAccessToken: string, gatewayId: string, meta: T, requiredMetaFields: string[]);
22
+ private getApiAuthType;
23
+ /**
24
+ * Current method can change environment. By default environment = sandbox.
25
+ * Also we can change domain alias for this environment. By default domain_alias = paydock.com
26
+ * Bear in mind that you must set an environment before calling `button.load()`.
27
+ *
28
+ * @example
29
+ * button.setEnv('production', 'paydock.com');
30
+ * @param {string} env - sandbox, production
31
+ * @param {string} [alias] - Own domain alias
32
+ */
33
+ setEnv(env: string, alias?: string): void;
34
+ /**
35
+ * Callback for onClick method.
36
+ *
37
+ * @callback OnClickCallback
38
+ * @param {OnClickEventData} data
39
+ * @return {Promise<string>} walletToken string result
40
+ */
41
+ /**
42
+ * Registers a callback function to be invoked when the wallet button gets clicked.
43
+ * **Note:** is mandatory to handle this event to perform the wallet initialization (and optionally any validation logic).
44
+ * The event handler needs to return the wallet token string in order for the Wallet charge processing to proceed, or throw an error in case of failure or validation errors.
45
+ * **Note:** this callback may be called multiple times as the customer closes the payment checkout and re-clicks the button.
46
+ * It's the merchant's responsibility to handle this situation and evaluate in each case if generating a new WalletCharge Token is required or the previous one can be used in each case, depending on order data and updates.
47
+ * In case a new one needs to be generated, remember it will need to be preceded by a `setMeta` call.
48
+ *
49
+ * @example
50
+ * button.onClick(async (data) => {
51
+ * const responseData = await fetch('https://your-server.com/init-wallet-charge');
52
+ * return responseData.walletToken;
53
+ * });
54
+ *
55
+ * @param {OnClickCallback} handler - Function to be called when the wallet button is clicked.
56
+ */
57
+ onClick(handler: (data: OnClickEventData) => Promise<string>): () => void;
58
+ /**
59
+ * Callback for onPaymentSuccessful method.
60
+ *
61
+ * @callback OnPaymentSuccessfulCallback
62
+ * @param {OnPaymentSuccessfulEventData} data
63
+ */
64
+ /**
65
+ * If the payment was successful, the function passed as parameter will be called.
66
+ * Important: Do not perform thread blocking operations in callback such as window.alert() calls.
67
+ *
68
+ * @example
69
+ * button.onPaymentSuccessful((data) => {
70
+ * console.log('Payment successful!');
71
+ * });
72
+ *
73
+ * @example
74
+ * button.onPaymentSuccessful().then((data) => console.log('Payment successful!'));
75
+ *
76
+ * @param {OnPaymentSuccessfulCallback} [handler] - Function to be called when the payment was successful.
77
+ */
78
+ onPaymentSuccessful(handler?: (data: OnPaymentSuccessfulEventData) => void): Promise<unknown> | (() => void);
79
+ /**
80
+ * Callback for onPaymentInReview method.
81
+ *
82
+ * @callback OnPaymentInReviewCallback
83
+ * @param {OnPaymentInReviewEventData} data
84
+ */
85
+ /**
86
+ * If the payment was left in fraud review, the function passed as parameter will be called.
87
+ * Important: Do not perform thread blocking operations in callback such as window.alert() calls.
88
+ *
89
+ * @example
90
+ * button.onPaymentInReview((data) => {
91
+ * console.log('Payment in fraud review');
92
+ * });
93
+ *
94
+ * @example
95
+ * button.onPaymentInReview().then((data) => console.log('Payment in fraud review'));
96
+ *
97
+ * @param {OnPaymentInReviewCallback} [handler] - Function to be called when the payment was left in fraud review status.
98
+ */
99
+ onPaymentInReview(handler?: (err: OnPaymentInReviewEventData) => void): Promise<unknown> | (() => void);
100
+ /**
101
+ * Callback for onPaymentError method.
102
+ *
103
+ * @callback OnPaymentErrorCallback
104
+ * @param {OnPaymentErrorEventData} data
105
+ */
106
+ /**
107
+ * If the payment was not successful, the function passed as parameter will be called.
108
+ * Important: Do not perform thread blocking operations in callback such as window.alert() calls.
109
+ *
110
+ * @example
111
+ * button.onPaymentError((err) => {
112
+ * console.log('Payment not successful');
113
+ * });
114
+ *
115
+ * @example
116
+ * button.onPaymentError().then((err) => console.log('Payment not successful'));
117
+ *
118
+ * @param {OnPaymentErrorCallback} [handler] - Function to be called when the payment was not successful.
119
+ */
120
+ onPaymentError(handler?: (err: OnPaymentErrorEventData) => void): Promise<unknown> | (() => void);
121
+ /**
122
+ * Callback for onCheckoutClose method.
123
+ *
124
+ * @callback OnCheckoutCloseCallback
125
+ * @param {OnCloseEventData} data
126
+ */
127
+ /**
128
+ * Registers a callback function to be invoked when the wallet checkout closes.
129
+ *
130
+ * @example
131
+ * button.onCheckoutClose(() => {
132
+ * console.log('Wallet checkout closes');
133
+ * });
134
+ *
135
+ * @param {OnCheckoutCloseCallback} handler - Function to be called when the wallet checkout closes.
136
+ */
137
+ onCheckoutClose(handler?: (err: OnCloseEventData) => void): Promise<unknown> | (() => void);
138
+ /**
139
+ * Callback for onUnavailable method.
140
+ *
141
+ * @callback OnUnavailableCallback
142
+ * @param {OnUnavailableEventData} data
143
+ */
144
+ /**
145
+ * Registers a callback function to be invoked when the wallet is not available in the current context.
146
+ *
147
+ * @example
148
+ * button.onUnavailable(() => {
149
+ * console.log('Wallet not available');
150
+ * });
151
+ *
152
+ * @param {OnUnavailableCallback} handler - Function to be called when the wallet is not available in the current context.
153
+ */
154
+ onUnavailable(handler?: (err: OnUnavailableEventData) => void): Promise<unknown> | (() => void);
155
+ /**
156
+ * Callback for onError method.
157
+ *
158
+ * @callback OnErrorCallback
159
+ * @param {OnErrorEventData} data
160
+ */
161
+ /**
162
+ * Registers a callback function to be invoked when an error that is not related to payment execution occurs.
163
+ * For example, if the amount of the wallet token injected via the `onClick` event handler does not match the amount provided via the initial `meta` or `setMeta` method.
164
+ *
165
+ * @example
166
+ * button.onError((error) => {
167
+ * console.log('WalletButtonExpress error', error);
168
+ * });
169
+ *
170
+ * @param {OnErrorCallback} handler - Function to be called when the WalletButton has an error.
171
+ */
172
+ onError(handler?: (err: OnErrorEventData) => void): Promise<unknown> | (() => void);
173
+ /**
174
+ * Add docs on each child class
175
+ */
176
+ abstract load(): void;
177
+ /**
178
+ * Add docs on each child class
179
+ */
180
+ abstract setMeta(meta: object): void;
181
+ protected getGatewayWalletConfig<T>(): Promise<BaseGatewayConfig<T>>;
182
+ protected executeWalletCallback<T, U extends {
183
+ request_type: string;
184
+ }>(data: U): Promise<T>;
185
+ protected executeWalletCapture<T>(data: WalletCaptureRequest): Promise<T>;
186
+ protected handleMerchantOnExpressButtonClickEvent(): Promise<void>;
187
+ private setWalletToken;
188
+ protected handleCheckoutClose(): void;
189
+ protected handleOnUnavailable(): void;
190
+ protected handleOnError(error?: Error): void;
191
+ protected eventDataFromApiError(err: any): OnPaymentErrorEventData['data'];
192
+ protected validateRequiredMetaFields(requiredMetaFields: string[]): void;
193
+ }
194
+ export { BaseWalletButton };
195
+ //# sourceMappingURL=base.wallet-button-express.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.wallet-button-express.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons-express/base.wallet-button-express.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAKpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAAE,4BAA4B,EAAE,MAAM,yDAAyD,CAAC;AACvG,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAAE,0BAA0B,EAAE,MAAM,wDAAwD,CAAC;AACp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