@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,10 @@
1
+ export declare enum EVENT {
2
+ UNAVAILABLE = "unavailable",
3
+ ERROR = "error",
4
+ PAYMENT_SUCCESSFUL = "paymentSuccessful",
5
+ PAYMENT_ERROR = "paymentError",
6
+ PAYMENT_IN_REVIEW = "paymentInReview",
7
+ ON_CLICK = "onClick",
8
+ ON_CHECKOUT_CLOSE = "onCheckoutClose"
9
+ }
10
+ //# sourceMappingURL=event.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.enum.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/enum/event.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK;IACb,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,kBAAkB,sBAAsB;IACxC,aAAa,iBAAiB;IAC9B,iBAAiB,oBAAoB;IACrC,QAAQ,YAAY;IACpB,iBAAiB,oBAAoB;CACxC"}
@@ -0,0 +1,131 @@
1
+ export { ApplePayWalletButtonExpress } from "./services/apple-pay/apple-pay.wallet-button-express";
2
+ export { PaypalWalletButtonExpress } from "./services/paypal/paypal.wallet-button-express";
3
+ /**
4
+ * Interface for configuration metadata specific to ApplePay integration in the wallet checkout and payment process.
5
+ * @interface ApplePayWalletMeta
6
+ *
7
+ * @type {object}
8
+ * @param {string} amount_label - Label shown next to the total amount to be paid, used in ApplePay popups.
9
+ * @param {string} country - Country of the user in 2 letter ISO code format, required for ApplePay.
10
+ * @param {string} currency - Currency of the transaction. ISO 4217 currency code format.
11
+ * @param {number} amount - Total transaction amount number. **Note:** this amount will be presented in the payment sheet regardless of amount sent in the Wallet Initialization Backend to Backend call. Use `setMeta` method to keep it up to date.
12
+ * @param {Array<'supports3DS' | 'supportsEMV' | 'supportsCredit' | 'supportsDebit'>} [merchant_capabilities] - Array of capabilities that the merchant supports, influencing the transaction processing features available.
13
+ * @param {Array<'visa' | 'masterCard' | 'amex' | 'chinaUnionPay' | 'discover' | 'interac' | 'jcb' | 'privateLabel'>} [supported_networks] - List of payment networks supported by the merchant for ApplePay transactions.
14
+ * @param {Array<'email' | 'name' | 'phone' | 'postalAddress'>} [required_billing_contact_fields] - Contact fields required from the user for billing purposes, improving transaction verification and fraud prevention. Phone and email are currently not returned by Apple.
15
+ * @param {Array<'email' | 'phone'>} [required_shipping_contact_fields] - Shipping contact fields that are mandatory to complete the transaction. Use email and phone to collect from customer wallet in the abscense of billing one.
16
+ * @param {string[]} [supported_countries] - List of countries where ApplePay is supported by the merchant, restricting usage to specified regions.
17
+ * @param {object} [style] - Styling configuration for ApplePay buttons displayed during checkout.
18
+ * @param {ApplePayButtonType} [style.button_type] - Enum type to select the type of ApplePay button (e.g., 'buy', 'donate', etc.), providing user interface customization.
19
+ * @param {ApplePayButtonStyle} [style.button_style] - Style applied to the ApplePay button, which can include color and form factor adjustments according to the brand's visual guidelines.
20
+ **/
21
+ /**
22
+ * Interface for configuration metadata specific to PayPal integration in the wallet checkout and payment process.
23
+ * For in-depth information, please refer to the [Paypal documentation](https://developer.paypal.com/docs/multiparty/checkout/standard/customize/buttons-style-guide/).
24
+ * @interface PaypalWalletMeta
25
+ *
26
+ * @type {object}
27
+ * @param {number} amount - Total amount of the transaction. Represents the money to be charged.
28
+ * @param {string} currency - Currency of the transaction in ISO 4217 currency code format.
29
+ * @param {boolean} [pay_later] - Flag to enable Pay Later feature of PayPal, allowing Pay in 4. Default false.
30
+ * @param {boolean} [standalone] - Flag to specify if the PayPal standalone button should be used. Default false.
31
+ * @param {boolean} [capture] - Flag to specify if the transaction amount should be captured immediately or authorized for later capture. Default false.
32
+ * @param {object} [style] - Styling configurations for the PayPal widget.
33
+ * @param {('vertical' | 'horizontal')} [style.layout] - Layout orientation of the PayPal button.
34
+ * @param {('gold' | 'blue' | 'silver' | 'black' | 'white')} [style.color] - Color theme of the PayPal button.
35
+ * @param {('rect' | 'pill' | 'sharp')} [style.shape] - Shape of the PayPal button.
36
+ * @param {number} [style.borderRadius] - Border radius for the button, allowing customization of corner roundness.
37
+ * @param {number} [style.height] - Height of the PayPal button, allowing for size customization.
38
+ * @param {boolean} [style.disableMaxWidth] - Flag to disable the maximum width constraint of the button.
39
+ * @param {('paypal' | 'checkout' | 'buynow' | 'pay' | 'installment')} [style.label] - Label text displayed on the PayPal button.
40
+ * @param {boolean} [style.tagline] - Flag to include or exclude a tagline beneath the button text.
41
+ * @param {object} [style.messages] - Messaging options related to the PayPal button to enhance user interaction.
42
+ * @param {('text' | 'flex')} [style.messages.layout] - Layout type for the messages displayed near the PayPal button.
43
+ * @param {object} [style.messages.logo] - Configuration for the logo to be displayed with the PayPal button.
44
+ * @param {('primary' | 'alternative' | 'inline' | 'none')} [style.messages.logo.type] - Type of logo to display.
45
+ * @param {('left' | 'right' | 'top')} [style.messages.logo.position] - Position of the logo relative to the button or message.
46
+ * @param {object} [style.messages.text] - Text styling within the message component.
47
+ * @param {('black' | 'white' | 'monochrome' | 'grayscale')} [style.messages.text.color] - Color of the message text.
48
+ * @param {(10 | 11 | 12 | 13 | 14 | 15 | 16)} [style.messages.text.size] - Font size of the message text.
49
+ * @param {('left' | 'center' | 'right')} [style.messages.text.align] - Text alignment within the message area.
50
+ * @param {('blue' | 'black' | 'white' | 'white-no-border' | 'gray' | 'monochrome' | 'grayscale')} [style.messages.color] - Background color of the message area.
51
+ * @param {('1x1' | '1x4' | '8x1' | '20x1')} [style.messages.ratio] - Aspect ratio of the message area, affecting its layout and display.
52
+ **/
53
+ /**
54
+ * List of available event's name in the wallet button lifecycle
55
+ * @const EVENT
56
+ *
57
+ * @type {object}
58
+ * @param {string} UNAVAILABLE=unavailable
59
+ * @param {string} ERROR=error
60
+ * @param {string} PAYMENT_SUCCESSFUL=paymentSuccessful
61
+ * @param {string} PAYMENT_ERROR=paymentError
62
+ * @param {string} PAYMENT_IN_REVIEW=paymentInReview
63
+ * @param {string} ON_CLICK=onClick
64
+ * @param {string} ON_CHECKOUT_CLOSE=onCheckoutClose
65
+ */
66
+ /**
67
+ * Interface for OnClickEventData
68
+ * @interface OnClickEventData
69
+ *
70
+ * @type {object}
71
+ * @param {string} event - Event Name is 'onClick'
72
+ **/
73
+ /**
74
+ * Interface for OnCloseEventData
75
+ * @interface OnCloseEventData
76
+ *
77
+ * @type {object}
78
+ * @param {string} event - Event Name is 'onCheckoutClose'
79
+ * @param {string} [chargeId] - chargeId in case it's already set after onClick event
80
+ **/
81
+ /**
82
+ * Interface for OnPaymentSuccessfulEventData. For final secure results, fetch backend to backend data.
83
+ * @interface OnPaymentSuccessfulEventData
84
+ *
85
+ * @type {object}
86
+ * @param {string} event - Event Name is 'paymentSuccessful'
87
+ * @param {string} chargeId - chargeId set after onClick event
88
+ * @param {string} data.id - Charge ID returned by server
89
+ * @param {string} data.amount - Charge amount returned by server
90
+ * @param {string} data.currency - Charge currency returned by server
91
+ * @param {string} data.status - Charge status returned by server
92
+ **/
93
+ /**
94
+ * Interface for OnPaymentInReviewEventData. For final secure results, fetch backend to backend data.
95
+ * @interface OnPaymentInReviewEventData
96
+ *
97
+ * @type {object}
98
+ * @param {string} event - Event Name is 'paymentInReview'
99
+ * @param {string} chargeId - chargeId set after onClick event
100
+ * @param {string} data.id - Charge ID returned by server
101
+ * @param {string} data.amount - Charge amount returned by server
102
+ * @param {string} data.currency - Charge currency returned by server
103
+ * @param {string} data.status - Charge status returned by server
104
+ **/
105
+ /**
106
+ * Interface for OnPaymentErrorEventData. For final secure results, fetch backend to backend data.
107
+ * @interface OnPaymentErrorEventData
108
+ *
109
+ * @type {object}
110
+ * @param {string} event - Event Name is 'paymentError'
111
+ * @param {string} chargeId - chargeId set after onClick event
112
+ * @param {string} [data.message] - Error message
113
+ * @param {string} [data.code] - Error code
114
+ **/
115
+ /**
116
+ * Interface for OnUnavailableEventData
117
+ * @interface OnUnavailableEventData
118
+ *
119
+ * @type {object}
120
+ * @param {string} event - Event Name is 'unavailable'
121
+ **/
122
+ /**
123
+ * Interface for OnErrorEventData
124
+ * @interface OnErrorEventData
125
+ *
126
+ * @type {object}
127
+ * @param {string} event - Event Name is 'error'
128
+ * @param {string} [chargeId] - chargeId in case it's already set after onClick event
129
+ * @param {Error} [data] Error object if present
130
+ **/
131
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons-express/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AACnG,OAAO,EAAE,yBAAyB,EAAE,MAAM,gDAAgD,CAAC;AAE3F;;;;;;;;;;;;;;;;;IAiBI;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+BI;AAEJ;;;;;;;;;;;;GAYG;AAEH;;;;;;IAMI;AAEJ;;;;;;;IAOI;AAEJ;;;;;;;;;;;IAWI;AAEJ;;;;;;;;;;;IAWI;AAEJ;;;;;;;;;IASI;AAEJ;;;;;;IAMI;AAEJ;;;;;;;;IAQI"}
@@ -0,0 +1,6 @@
1
+ export interface BaseEventData<T> {
2
+ event: string;
3
+ chargeId?: string;
4
+ data?: T | undefined;
5
+ }
6
+ //# sourceMappingURL=base-event-data.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/base-event-data.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa,CAAC,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC;CACxB"}
@@ -0,0 +1,6 @@
1
+ export interface BaseGatewayConfig<T> {
2
+ type: string;
3
+ mode: string;
4
+ credentials?: T;
5
+ }
6
+ //# sourceMappingURL=base-gateway-config.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-gateway-config.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/base-gateway-config.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,CAAC,CAAC;CACjB"}
@@ -0,0 +1,5 @@
1
+ export interface BaseWalletMeta {
2
+ amount: number;
3
+ currency: string;
4
+ }
5
+ //# sourceMappingURL=base-wallet-meta.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-wallet-meta.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/base-wallet-meta.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,14 @@
1
+ export interface ChargeWalletTokenMeta {
2
+ charge: {
3
+ id: string;
4
+ amount: number;
5
+ currency: string;
6
+ capture?: boolean;
7
+ reference?: string;
8
+ };
9
+ gateway: {
10
+ mode: string;
11
+ type: string;
12
+ };
13
+ }
14
+ //# sourceMappingURL=charge-wallet-token-meta.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"charge-wallet-token-meta.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KACd,CAAA;CACF"}
@@ -0,0 +1,6 @@
1
+ import { EVENT } from "../enum/event.enum";
2
+ import { BaseEventData } from "./base-event-data.interface";
3
+ export interface OnClickEventData extends BaseEventData<undefined> {
4
+ event: EVENT.ON_CLICK;
5
+ }
6
+ //# sourceMappingURL=on-click-event-data.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"on-click-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-click-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,MAAM,WAAW,gBAAiB,SAAQ,aAAa,CAAC,SAAS,CAAC;IAC9D,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC;CACzB"}
@@ -0,0 +1,6 @@
1
+ import { EVENT } from "../enum/event.enum";
2
+ import { BaseEventData } from "./base-event-data.interface";
3
+ export interface OnCloseEventData extends BaseEventData<undefined> {
4
+ event: EVENT.ON_CHECKOUT_CLOSE;
5
+ }
6
+ //# sourceMappingURL=on-close-event-data.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"on-close-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-close-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,MAAM,WAAW,gBAAiB,SAAQ,aAAa,CAAC,SAAS,CAAC;IAC9D,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC;CAClC"}
@@ -0,0 +1,6 @@
1
+ import { EVENT } from "../enum/event.enum";
2
+ import { BaseEventData } from "./base-event-data.interface";
3
+ export interface OnErrorEventData extends BaseEventData<Error> {
4
+ event: EVENT.ERROR;
5
+ }
6
+ //# sourceMappingURL=on-error-event-data.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"on-error-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-error-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,MAAM,WAAW,gBAAiB,SAAQ,aAAa,CAAC,KAAK,CAAC;IAC1D,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;CACtB"}
@@ -0,0 +1,9 @@
1
+ import { EVENT } from "../enum/event.enum";
2
+ import { BaseEventData } from "./base-event-data.interface";
3
+ export interface OnPaymentErrorEventData extends BaseEventData<{
4
+ message?: string;
5
+ code?: string;
6
+ }> {
7
+ event: EVENT.PAYMENT_ERROR;
8
+ }
9
+ //# sourceMappingURL=on-payment-error-event-data.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"on-payment-error-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,MAAM,WAAW,uBAAwB,SAAQ,aAAa,CAAC;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;IACE,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC;CAC9B"}
@@ -0,0 +1,6 @@
1
+ import { EVENT } from "../enum/event.enum";
2
+ import { OnPaymentSuccessfulEventData } from "./on-payment-successful-event-data.interface";
3
+ export interface OnPaymentInReviewEventData extends Omit<OnPaymentSuccessfulEventData, 'event'> {
4
+ event: EVENT.PAYMENT_IN_REVIEW;
5
+ }
6
+ //# sourceMappingURL=on-payment-in-review-event-data.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"on-payment-in-review-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,4BAA4B,EAAE,MAAM,8CAA8C,CAAC;AAE5F,MAAM,WAAW,0BAA2B,SAAQ,IAAI,CAAC,4BAA4B,EAAE,OAAO,CAAC;IAC3F,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC;CAClC"}
@@ -0,0 +1,11 @@
1
+ import { EVENT } from "../enum/event.enum";
2
+ import { BaseEventData } from "./base-event-data.interface";
3
+ export interface OnPaymentSuccessfulEventData extends BaseEventData<{
4
+ id: string;
5
+ amount: number;
6
+ currency: string;
7
+ status: string;
8
+ }> {
9
+ event: EVENT.PAYMENT_SUCCESSFUL;
10
+ }
11
+ //# sourceMappingURL=on-payment-successful-event-data.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"on-payment-successful-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,MAAM,WAAW,4BAA6B,SAAQ,aAAa,CAAC;IAChE,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC;IACE,KAAK,EAAE,KAAK,CAAC,kBAAkB,CAAC;CACnC"}
@@ -0,0 +1,6 @@
1
+ import { EVENT } from "../enum/event.enum";
2
+ import { BaseEventData } from "./base-event-data.interface";
3
+ export interface OnUnavailableEventData extends BaseEventData<undefined> {
4
+ event: EVENT.UNAVAILABLE;
5
+ }
6
+ //# sourceMappingURL=on-unavailable-event-data.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"on-unavailable-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,MAAM,WAAW,sBAAuB,SAAQ,aAAa,CAAC,SAAS,CAAC;IACpE,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC;CAC5B"}
@@ -0,0 +1,22 @@
1
+ export interface WalletCaptureRequest {
2
+ payment_method_id?: string;
3
+ customer: {
4
+ email?: string;
5
+ phone?: string;
6
+ first_name?: string;
7
+ last_name?: string;
8
+ payment_source?: {
9
+ wallet_type?: string;
10
+ address_line1?: string;
11
+ address_line2?: string;
12
+ address_country?: string;
13
+ address_city?: string;
14
+ address_postcode?: string;
15
+ address_state?: string;
16
+ ref_token?: string;
17
+ external_payer_id?: string;
18
+ wallet_express?: boolean;
19
+ };
20
+ };
21
+ }
22
+ //# sourceMappingURL=wallet-capture-request.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wallet-capture-request.interface.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons-express/interfaces/wallet-capture-request.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACjC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE;QACN,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,cAAc,CAAC,EAAE;YACb,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,aAAa,CAAC,EAAE,MAAM,CAAC;YACvB,aAAa,CAAC,EAAE,MAAM,CAAC;YACvB,eAAe,CAAC,EAAE,MAAM,CAAC;YACzB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;YAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;YACvB,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;YAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;SAC5B,CAAC;KACL,CAAC;CACL"}
@@ -0,0 +1,50 @@
1
+ import { BaseWalletButton } from '../../base.wallet-button-express';
2
+ import { ApplePayWalletMeta } from './interfaces/apple-pay-wallet-meta.interface';
3
+ /**
4
+ * Class ApplePayWalletButtonExpress to work with Apple Pay Wallet.
5
+ *
6
+ * @extends BaseWalletButton
7
+ *
8
+ * @constructor
9
+ *
10
+ * @example
11
+ * var button = new ApplePayWalletButtonExpress('#wallet-buttons', 'publicKeyOrAccessToken', 'gatewayId', meta);
12
+ *
13
+ * @param {string} selector - Selector of html element. Container for the ApplePayWalletButtonExpress.
14
+ * @param {string} publicKeyOrAccessToken - Public key or Access token for the ApplePayWalletButtonExpress.
15
+ * @param {string} gatewayId - Gateway ID for the ApplePayWalletButtonExpress.
16
+ * @param {ApplePayWalletMeta} meta - data that configures the Apple Pay Wallet.
17
+ */
18
+ declare class ApplePayWalletButtonExpress extends BaseWalletButton<ApplePayWalletMeta> {
19
+ private paymentSession;
20
+ /** @constructs */ constructor(selector: string, publicKeyOrAccessToken: string, gatewayId: string, meta: ApplePayWalletMeta);
21
+ /**
22
+ * Initializes the availability checks and inserts the button if possible.
23
+ * Otherwise function onUnavailable(handler: VoidFunction) will be called.
24
+ * **Important**: Is required to invoke this method to render the wallet button.
25
+ *
26
+ * @example
27
+ * button.load();
28
+ */
29
+ load(): void;
30
+ /**
31
+ * Call this method if updating the originally-provided meta object after order information changed.
32
+ * For example, if the order amount has changed from the time where the button was originally rendered.
33
+ *
34
+ * @example
35
+ * button.setMeta(meta);
36
+ *
37
+ * @param {ApplePayWalletMeta} meta - // data that configures the Apple Pay Wallet.
38
+ */
39
+ setMeta(meta: ApplePayWalletMeta): void;
40
+ private checkAvailability;
41
+ private mount;
42
+ private onApplePayButtonClicked;
43
+ private createRequest;
44
+ private onValidateMerchant;
45
+ private getMerchantSession;
46
+ private onPaymentAuthorized;
47
+ private onCancelPayment;
48
+ }
49
+ export { ApplePayWalletButtonExpress };
50
+ //# sourceMappingURL=apple-pay.wallet-button-express.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apple-pay.wallet-button-express.d.ts","sourceRoot":"","sources":["../../../../src/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAGpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAElF;;;;;;;;;;;;;;GAcG;AACH,cAAM,2BAA4B,SAAQ,gBAAgB,CAAC,kBAAkB,CAAC;IAC1E,OAAO,CAAC,cAAc,CAAkB;IAExC,kBAAkB,aACN,QAAQ,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB;IAIzG;;;;;;;OAOG;IACI,IAAI;IAqBX;;;;;;;;OAQG;IACI,OAAO,CAAC,IAAI,EAAE,kBAAkB,GAAG,IAAI;IAI9C,OAAO,CAAC,iBAAiB;IAgBzB,OAAO,CAAC,KAAK;IAcb,OAAO,CAAC,uBAAuB;IAS/B,OAAO,CAAC,aAAa;IAmBrB,OAAO,CAAC,kBAAkB,CAczB;IAED,OAAO,CAAC,kBAAkB;IAQ1B,OAAO,CAAC,mBAAmB,CA0B1B;IAED,OAAO,CAAC,eAAe,CAEtB;CACJ;AAED,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ApplePayButtonType } from "../types/apple-pay-button-type.type";
2
+ export declare const generateApplePayButtonStyles: (buttonType?: ApplePayButtonType) => string;
3
+ //# sourceMappingURL=apple-pay-button-style.constant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apple-pay-button-style.constant.d.ts","sourceRoot":"","sources":["../../../../../src/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE,eAAO,MAAM,4BAA4B,gBAAgB,kBAAkB,KAAa,MAqDvF,CAAA"}
@@ -0,0 +1,6 @@
1
+ export interface ApplePayGatewayConfig {
2
+ apple?: {
3
+ merchant?: string;
4
+ };
5
+ }
6
+ //# sourceMappingURL=apple-pay-gateway-config.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apple-pay-gateway-config.interface.d.ts","sourceRoot":"","sources":["../../../../../src/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE;QACN,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;CACH"}
@@ -0,0 +1,17 @@
1
+ import { BaseWalletMeta } from "../../../interfaces/base-wallet-meta.interface";
2
+ import { ApplePayButtonStyle } from "../types/apple-pay-button-style.type";
3
+ import { ApplePayButtonType } from "../types/apple-pay-button-type.type";
4
+ export interface ApplePayWalletMeta extends BaseWalletMeta {
5
+ amount_label: string;
6
+ country: string;
7
+ merchant_capabilities?: Array<'supports3DS' | 'supportsEMV' | 'supportsCredit' | 'supportsDebit'>;
8
+ supported_networks?: Array<'visa' | 'masterCard' | 'amex' | 'chinaUnionPay' | 'discover' | 'interac' | 'jcb' | 'privateLabel'>;
9
+ required_billing_contact_fields?: Array<'email' | 'name' | 'phone' | 'postalAddress'>;
10
+ required_shipping_contact_fields?: Array<'email' | 'phone'>;
11
+ supported_countries?: string[];
12
+ style?: {
13
+ button_type?: ApplePayButtonType;
14
+ button_style?: ApplePayButtonStyle;
15
+ };
16
+ }
17
+ //# sourceMappingURL=apple-pay-wallet-meta.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apple-pay-wallet-meta.interface.d.ts","sourceRoot":"","sources":["../../../../../src/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACtD,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,qBAAqB,CAAC,EAAE,KAAK,CAAC,aAAa,GAAG,aAAa,GAAG,gBAAgB,GAAG,eAAe,CAAC,CAAC;IAClG,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,YAAY,GAAG,MAAM,GAAG,eAAe,GAAG,UAAU,GAAG,SAAS,GAAG,KAAK,GAAG,cAAc,CAAC,CAAC;IAC/H,+BAA+B,CAAC,EAAE,KAAK,CAAC,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,eAAe,CAAC,CAAC;IACtF,gCAAgC,CAAC,EAAE,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC,CAAC;IAC5D,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,KAAK,CAAC,EAAE;QACJ,WAAW,CAAC,EAAE,kBAAkB,CAAC;QACjC,YAAY,CAAC,EAAE,mBAAmB,CAAC;KACtC,CAAC;CACL"}
@@ -0,0 +1,2 @@
1
+ export type ApplePayButtonStyle = 'black' | 'white' | 'white-outline';
2
+ //# sourceMappingURL=apple-pay-button-style.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apple-pay-button-style.type.d.ts","sourceRoot":"","sources":["../../../../../src/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,OAAO,GAAG,eAAe,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type ApplePayButtonType = 'add-money' | 'book' | 'buy' | 'check-out' | 'continue' | 'contribute' | 'donate' | 'order' | 'pay' | 'plain' | 'reload' | 'rent' | 'set-up' | 'subscribe' | 'support' | 'tip' | 'top-up';
2
+ //# sourceMappingURL=apple-pay-button-type.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apple-pay-button-type.type.d.ts","sourceRoot":"","sources":["../../../../../src/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAC1B,WAAW,GACX,MAAM,GACN,KAAK,GACL,WAAW,GACX,UAAU,GACV,YAAY,GACZ,QAAQ,GACR,OAAO,GACP,KAAK,GACL,OAAO,GACP,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,WAAW,GACX,SAAS,GACT,KAAK,GACL,QAAQ,CAAC"}
@@ -0,0 +1,4 @@
1
+ export interface PaypalGatewayConfig {
2
+ client_auth?: string;
3
+ }
4
+ //# sourceMappingURL=paypal-gateway-config.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypal-gateway-config.interface.d.ts","sourceRoot":"","sources":["../../../../../src/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,31 @@
1
+ import { BaseWalletMeta } from "../../../interfaces/base-wallet-meta.interface";
2
+ export interface PaypalWalletMeta extends BaseWalletMeta {
3
+ pay_later?: boolean;
4
+ standalone?: boolean;
5
+ capture?: boolean;
6
+ style?: {
7
+ layout?: 'vertical' | 'horizontal';
8
+ color?: 'gold' | 'blue' | 'silver' | 'black' | 'white';
9
+ shape?: 'rect' | 'pill' | 'sharp';
10
+ borderRadius?: number;
11
+ height?: number;
12
+ disableMaxWidth?: boolean;
13
+ label?: 'paypal' | 'checkout' | 'buynow' | 'pay' | 'installment';
14
+ tagline?: boolean;
15
+ messages?: {
16
+ layout?: 'text' | 'flex';
17
+ logo?: {
18
+ type?: 'primary' | 'alternative' | 'inline' | 'none';
19
+ position?: 'left' | 'right' | 'top';
20
+ };
21
+ text?: {
22
+ color?: 'black' | 'white' | 'monochrome' | 'grayscale';
23
+ size?: 10 | 11 | 12 | 13 | 14 | 15 | 16;
24
+ align?: 'left' | 'center' | 'right';
25
+ };
26
+ color?: 'blue' | 'black' | 'white' | 'white-no-border' | 'gray' | 'monochrome' | 'grayscale';
27
+ ratio?: '1x1' | '1x4' | '8x1' | '20x1';
28
+ };
29
+ };
30
+ }
31
+ //# sourceMappingURL=paypal-wallet-meta.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypal-wallet-meta.interface.d.ts","sourceRoot":"","sources":["../../../../../src/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AAEhF,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACpD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE;QACJ,MAAM,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;QACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;QACvD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;QAClC,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,KAAK,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,KAAK,GAAG,aAAa,CAAC;QACjE,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,QAAQ,CAAC,EAAE;YACP,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;YACzB,IAAI,CAAC,EAAE;gBACH,IAAI,CAAC,EAAE,SAAS,GAAG,aAAa,GAAG,QAAQ,GAAG,MAAM,CAAC;gBACrD,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;aACvC,CAAC;YACF,IAAI,CAAC,EAAE;gBACH,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,YAAY,GAAG,WAAW,CAAC;gBACvD,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;gBACxC,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;aACvC,CAAC;YACF,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,iBAAiB,GAAG,MAAM,GAAG,YAAY,GAAG,WAAW,CAAC;YAC7F,KAAK,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;SAC1C,CAAC;KACL,CAAA;CACJ"}
@@ -0,0 +1,47 @@
1
+ import { BaseWalletButton } from '../../base.wallet-button-express';
2
+ import { PaypalWalletMeta } from './interfaces/paypal-wallet-meta.interface';
3
+ /**
4
+ * Class PaypalWalletButtonExpress to work with Paypal Wallet.
5
+ *
6
+ * @extends BaseWalletButton
7
+ *
8
+ * @constructor
9
+ *
10
+ * @example
11
+ * var button = new PaypalWalletButtonExpress('#wallet-buttons', 'publicKeyOrAccessToken', 'gatewayId', meta);
12
+ *
13
+ * @param {string} selector - Selector of html element. Container for the PaypalWalletButtonExpress.
14
+ * @param {string} publicKeyOrAccessToken - Public key or Access token for the PaypalWalletButtonExpress.
15
+ * @param {string} gatewayId - Gateway ID for the PaypalWalletButtonExpress.
16
+ * @param {PaypalWalletMeta} meta - data that configures the Paypal Wallet.
17
+ */
18
+ declare class PaypalWalletButtonExpress extends BaseWalletButton<PaypalWalletMeta> {
19
+ private config;
20
+ protected paypal: any;
21
+ protected pendingApprovalPromise?: Promise<any>;
22
+ /** @constructs */ constructor(selector: string, publicKeyOrAccessToken: string, gatewayId: string, meta: PaypalWalletMeta);
23
+ /**
24
+ * Initializes the availability checks and inserts the button if possible.
25
+ * Otherwise function onUnavailable(handler: VoidFunction) will be called.
26
+ * **Important**: Is required to invoke this method to render the wallet button.
27
+ *
28
+ * @example
29
+ * button.load();
30
+ */
31
+ load(): void;
32
+ /**
33
+ * Call this method if updating the originally-provided meta object after order information changed.
34
+ * For example, if the order amount has changed from the time where the button was originally rendered.
35
+ *
36
+ * @example
37
+ * button.setMeta(meta);
38
+ * @param {PaypalWalletMeta} meta - // data that configures the Paypal Wallet.
39
+ */
40
+ setMeta(meta: PaypalWalletMeta): void;
41
+ private renderPaypalButton;
42
+ private renderPaypalCommonComponent;
43
+ private renderPaypalStandaloneComponent;
44
+ private paypalSharedProps;
45
+ }
46
+ export { PaypalWalletButtonExpress };
47
+ //# sourceMappingURL=paypal.wallet-button-express.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypal.wallet-button-express.d.ts","sourceRoot":"","sources":["../../../../src/wallet-buttons-express/services/paypal/paypal.wallet-button-express.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAE7E;;;;;;;;;;;;;;GAcG;AACH,cAAM,yBAA0B,SAAQ,gBAAgB,CAAC,gBAAgB,CAAC;IACtE,OAAO,CAAC,MAAM,CAAyC;IACvD,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC;IACtB,SAAS,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IAEhD,kBAAkB,aACN,QAAQ,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,EAAE,SAAS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B;IAyBpH;;;;;;;;OAQG;IACI,qBAAqB,CAAC,GAAG,EAAE,MAAM;IAIxC;;;;;;;OAOG;IACI,qBAAqB,CAAC,GAAG,EAAE,MAAM;IAIxC;;;;;;;OAOG;IACI,mBAAmB,CAAC,GAAG,EAAE,MAAM;IAKtC;;;;;;;;;OASG;IACI,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE;IAerC;;;;;;;;;;;;OAYG;IACI,OAAO,CAAC,IAAI,EAAE,WAAW,GAAG,aAAa,GAAG,aAAa,GAAG,YAAY;IAc/E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;IAIzC;;;;;;;OAOG;IACI,QAAQ,CAAC,KAAK,EAAE,MAAM;IAKtB,MAAM,IAAI,MAAM;IAIvB;;;;;;;;;;;;;;OAcG;IACI,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EAAE,OAAO,GAAG,CAAC,KAAK,EAAE,GAAG,KAAK,IAA0B;IAazH,OAAO,CAAC,IAAI;IAqBL,UAAU,IAAI,QAAQ;IAK7B,OAAO,CAAC,MAAM;IAIP,qBAAqB,CAAC,cAAc,KAAA,EAAE,iBAAiB,KAAA;CAWjE;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -1,9 +1,9 @@
1
- import { MultiWidget } from "./multi-widget";
2
1
  import { Container } from "../components/container";
3
2
  import { IFrame } from "../components/iframe";
4
- import { IFrameEvent, type IEventData } from "../components/iframe-event";
5
- import { Trigger, type ITriggerData } from "../components/trigger";
3
+ import { type IEventData, IFrameEvent } from "../components/iframe-event";
6
4
  import { type IFormValidation, type IFormValues, type ValidatorFieldsMapKey } from '../components/param';
5
+ import { type ITriggerData, Trigger } from "../components/trigger";
6
+ import { MultiWidget } from "./multi-widget";
7
7
  export interface IEventMetaData extends IEventData {
8
8
  configuration_token: string;
9
9
  type: string;
@@ -18,6 +18,7 @@ export interface IEventAfterLoadData extends IEventData {
18
18
  }
19
19
  export interface IEventFinishData extends IEventData {
20
20
  payment_source: string;
21
+ payment_source_token?: string;
21
22
  }
22
23
  /**
23
24
  * Interface of data from validation event.
@@ -1 +1 @@
1
- {"version":3,"file":"html-multi-widget.d.ts","sourceRoot":"","sources":["../../src/widget/html-multi-widget.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,KAAK,UAAU,EAAQ,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAAE,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAG5E,OAAO,EAAsB,KAAK,eAAe,EAAE,KAAK,WAAW,EAA0C,KAAK,qBAAqB,EAAC,MAAM,qBAAqB,CAAC;AAIpK,MAAM,WAAW,cAAe,SAAQ,UAAU;IAC9C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAGD,MAAM,WAAW,mBAAqB,SAAQ,UAAU;CAAI;AAE5D,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IAChD,cAAc,EAAE,MAAM,CAAC;CAC1B;AAGD;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;;;;;;;;KAkBK;AAGL;;;;;;;;KAQK;AAGL;;;;;;;;;KASK;AAGL;;;;;;;;;;;;;GAaG;AAGH;;;;;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