@paydock/client-sdk 0.0.3 → 0.1.2-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 (531) hide show
  1. package/README.md +9050 -52
  2. package/bundles/index.cjs +38558 -0
  3. package/bundles/index.cjs.d.ts +4777 -0
  4. package/bundles/index.mjs +38519 -0
  5. package/bundles/index.mjs.d.ts +4777 -0
  6. package/bundles/types/api/api-base.d.ts +54 -0
  7. package/bundles/types/api/api-base.d.ts.map +1 -0
  8. package/bundles/types/api/api-charge-internal.d.ts +99 -0
  9. package/bundles/types/api/api-charge-internal.d.ts.map +1 -0
  10. package/bundles/types/api/api-charge.d.ts +36 -0
  11. package/bundles/types/api/api-charge.d.ts.map +1 -0
  12. package/bundles/types/api/api-checkout-internal.d.ts +58 -0
  13. package/bundles/types/api/api-checkout-internal.d.ts.map +1 -0
  14. package/bundles/types/api/api-gateway-internal.d.ts +12 -0
  15. package/bundles/types/api/api-gateway-internal.d.ts.map +1 -0
  16. package/bundles/types/api/api-internal.d.ts +13 -0
  17. package/bundles/types/api/api-internal.d.ts.map +1 -0
  18. package/bundles/types/api/api-service-internal.d.ts +19 -0
  19. package/bundles/types/api/api-service-internal.d.ts.map +1 -0
  20. package/bundles/types/api/api.d.ts +55 -0
  21. package/bundles/types/api/api.d.ts.map +1 -0
  22. package/bundles/types/api/index.d.ts +2 -0
  23. package/bundles/types/api/index.d.ts.map +1 -0
  24. package/bundles/types/canvas-3ds/canvas-3ds.d.ts +109 -0
  25. package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +1 -0
  26. package/bundles/types/canvas-3ds/index.d.ts +2 -0
  27. package/bundles/types/canvas-3ds/index.d.ts.map +1 -0
  28. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts +43 -0
  29. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -0
  30. package/bundles/types/canvas-3ds/services/index.d.ts +2 -0
  31. package/bundles/types/canvas-3ds/services/index.d.ts.map +1 -0
  32. package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts +22 -0
  33. package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +1 -0
  34. package/bundles/types/checkout/checkout.d.ts +107 -0
  35. package/bundles/types/checkout/checkout.d.ts.map +1 -0
  36. package/bundles/types/checkout/helpers/instruction-handler.d.ts +25 -0
  37. package/bundles/types/checkout/helpers/instruction-handler.d.ts.map +1 -0
  38. package/bundles/types/checkout/helpers/instruction-module.d.ts +6 -0
  39. package/bundles/types/checkout/helpers/instruction-module.d.ts.map +1 -0
  40. package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts +6 -0
  41. package/bundles/types/checkout/helpers/instruction-module.decorator.d.ts.map +1 -0
  42. package/bundles/types/checkout/helpers/instruction.decorator.d.ts +5 -0
  43. package/bundles/types/checkout/helpers/instruction.decorator.d.ts.map +1 -0
  44. package/bundles/types/checkout/helpers/resource-helper.d.ts +6 -0
  45. package/bundles/types/checkout/helpers/resource-helper.d.ts.map +1 -0
  46. package/bundles/types/checkout/helpers/session-helper.d.ts +8 -0
  47. package/bundles/types/checkout/helpers/session-helper.d.ts.map +1 -0
  48. package/bundles/types/checkout/index.d.ts +2 -0
  49. package/bundles/types/checkout/index.d.ts.map +1 -0
  50. package/bundles/types/checkout/instructions/index.d.ts +3 -0
  51. package/bundles/types/checkout/instructions/index.d.ts.map +1 -0
  52. package/bundles/types/checkout/instructions/v1/index.d.ts +4 -0
  53. package/bundles/types/checkout/instructions/v1/index.d.ts.map +1 -0
  54. package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts +20 -0
  55. package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts.map +1 -0
  56. package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts +14 -0
  57. package/bundles/types/checkout/instructions/v1/instruction.afterpay_wallet_form.show.d.ts.map +1 -0
  58. package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts +18 -0
  59. package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts.map +1 -0
  60. package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts +15 -0
  61. package/bundles/types/checkout/instructions/v1/instruction.bank_account_form.show.d.ts.map +1 -0
  62. package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts +11 -0
  63. package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts.map +1 -0
  64. package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts +19 -0
  65. package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts.map +1 -0
  66. package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts +20 -0
  67. package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts.map +1 -0
  68. package/bundles/types/checkout/instructions/v1/instruction.fraud_service.show.d.ts +21 -0
  69. package/bundles/types/checkout/instructions/v1/instruction.fraud_service.show.d.ts.map +1 -0
  70. package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts +26 -0
  71. package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts.map +1 -0
  72. package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts +18 -0
  73. package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts.map +1 -0
  74. package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts +18 -0
  75. package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts.map +1 -0
  76. package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts +18 -0
  77. package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts.map +1 -0
  78. package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts +21 -0
  79. package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts.map +1 -0
  80. package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts +19 -0
  81. package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts.map +1 -0
  82. package/bundles/types/checkout/layout-widgets/additionals.d.ts +3 -0
  83. package/bundles/types/checkout/layout-widgets/additionals.d.ts.map +1 -0
  84. package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts +9 -0
  85. package/bundles/types/checkout/layout-widgets/default-variables.enum.d.ts.map +1 -0
  86. package/bundles/types/checkout/layout-widgets/message.d.ts +34 -0
  87. package/bundles/types/checkout/layout-widgets/message.d.ts.map +1 -0
  88. package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts +13 -0
  89. package/bundles/types/checkout/layout-widgets/payment-methods-template.d.ts.map +1 -0
  90. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts +55 -0
  91. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts.map +1 -0
  92. package/bundles/types/checkout/layout-widgets/payment-template.d.ts +3 -0
  93. package/bundles/types/checkout/layout-widgets/payment-template.d.ts.map +1 -0
  94. package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts +36 -0
  95. package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts.map +1 -0
  96. package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts +13 -0
  97. package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -0
  98. package/bundles/types/checkout-button/checkout-button.d.ts +139 -0
  99. package/bundles/types/checkout-button/checkout-button.d.ts.map +1 -0
  100. package/bundles/types/checkout-button/checkout-button.interface.d.ts +49 -0
  101. package/bundles/types/checkout-button/checkout-button.interface.d.ts.map +1 -0
  102. package/bundles/types/checkout-button/checkout-contextual-handler.d.ts +27 -0
  103. package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -0
  104. package/bundles/types/checkout-button/index.d.ts +85 -0
  105. package/bundles/types/checkout-button/index.d.ts.map +1 -0
  106. package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts +21 -0
  107. package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts.map +1 -0
  108. package/bundles/types/checkout-button/paypal/paypal.runner.d.ts +6 -0
  109. package/bundles/types/checkout-button/paypal/paypal.runner.d.ts.map +1 -0
  110. package/bundles/types/checkout-button/runner/base.runner.d.ts +18 -0
  111. package/bundles/types/checkout-button/runner/base.runner.d.ts.map +1 -0
  112. package/bundles/types/checkout-button/runner/contextual.runner.d.ts +39 -0
  113. package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -0
  114. package/bundles/types/checkout-button/runner/index.d.ts +9 -0
  115. package/bundles/types/checkout-button/runner/index.d.ts.map +1 -0
  116. package/bundles/types/checkout-button/runner/popup.runner.d.ts +35 -0
  117. package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -0
  118. package/bundles/types/checkout-button/runner/redirect.runner.d.ts +17 -0
  119. package/bundles/types/checkout-button/runner/redirect.runner.d.ts.map +1 -0
  120. package/bundles/types/checkout-button/zipmoney/index.d.ts +4 -0
  121. package/bundles/types/checkout-button/zipmoney/index.d.ts.map +1 -0
  122. package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts +49 -0
  123. package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts.map +1 -0
  124. package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts +39 -0
  125. package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts.map +1 -0
  126. package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts +26 -0
  127. package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts.map +1 -0
  128. package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts +4 -0
  129. package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts.map +1 -0
  130. package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts +10 -0
  131. package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts.map +1 -0
  132. package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts +12 -0
  133. package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts.map +1 -0
  134. package/bundles/types/components/ability-guard.d.ts +12 -0
  135. package/bundles/types/components/ability-guard.d.ts.map +1 -0
  136. package/bundles/types/components/background.d.ts +43 -0
  137. package/bundles/types/components/background.d.ts.map +1 -0
  138. package/bundles/types/components/container.d.ts +12 -0
  139. package/bundles/types/components/container.d.ts.map +1 -0
  140. package/bundles/types/components/dispatcher.d.ts +14 -0
  141. package/bundles/types/components/dispatcher.d.ts.map +1 -0
  142. package/bundles/types/components/element-style.d.ts +17 -0
  143. package/bundles/types/components/element-style.d.ts.map +1 -0
  144. package/bundles/types/components/flypay-iframe-event.d.ts +15 -0
  145. package/bundles/types/components/flypay-iframe-event.d.ts.map +1 -0
  146. package/{lib/widget/components/form-Interceptor.d.ts → bundles/types/components/form-interceptor.d.ts} +2 -1
  147. package/bundles/types/components/form-interceptor.d.ts.map +1 -0
  148. package/bundles/types/components/http-core.d.ts +14 -0
  149. package/bundles/types/components/http-core.d.ts.map +1 -0
  150. package/bundles/types/components/iframe-event.d.ts +72 -0
  151. package/bundles/types/components/iframe-event.d.ts.map +1 -0
  152. package/bundles/types/components/iframe.d.ts +20 -0
  153. package/bundles/types/components/iframe.d.ts.map +1 -0
  154. package/bundles/types/components/link.d.ts +27 -0
  155. package/bundles/types/components/link.d.ts.map +1 -0
  156. package/bundles/types/components/loader.d.ts +5 -0
  157. package/bundles/types/components/loader.d.ts.map +1 -0
  158. package/bundles/types/components/param.d.ts +430 -0
  159. package/bundles/types/components/param.d.ts.map +1 -0
  160. package/bundles/types/components/popup.d.ts +30 -0
  161. package/bundles/types/components/popup.d.ts.map +1 -0
  162. package/bundles/types/components/storage-dispatcher.d.ts +31 -0
  163. package/bundles/types/components/storage-dispatcher.d.ts.map +1 -0
  164. package/bundles/types/components/trigger.d.ts +48 -0
  165. package/bundles/types/components/trigger.d.ts.map +1 -0
  166. package/bundles/types/components/vault-display-iframe-event.d.ts +5 -0
  167. package/bundles/types/components/vault-display-iframe-event.d.ts.map +1 -0
  168. package/bundles/types/components/wallet-background.d.ts +13 -0
  169. package/bundles/types/components/wallet-background.d.ts.map +1 -0
  170. package/bundles/types/components/wallet-trigger.d.ts +19 -0
  171. package/bundles/types/components/wallet-trigger.d.ts.map +1 -0
  172. package/bundles/types/configs/env/environment.cba.d.ts +30 -0
  173. package/bundles/types/configs/env/environment.cba.d.ts.map +1 -0
  174. package/bundles/types/configs/env/environment.interface.d.ts +12 -0
  175. package/bundles/types/configs/env/environment.interface.d.ts.map +1 -0
  176. package/bundles/types/configs/env/environment.paydock.d.ts +49 -0
  177. package/bundles/types/configs/env/environment.paydock.d.ts.map +1 -0
  178. package/bundles/types/configs/env/index.d.ts +3 -0
  179. package/bundles/types/configs/env/index.d.ts.map +1 -0
  180. package/bundles/types/configs/sdk.d.ts +10 -0
  181. package/bundles/types/configs/sdk.d.ts.map +1 -0
  182. package/bundles/types/constants/validators.d.ts +45 -0
  183. package/bundles/types/constants/validators.d.ts.map +1 -0
  184. package/bundles/types/external-checkout/builder.d.ts +29 -0
  185. package/bundles/types/external-checkout/builder.d.ts.map +1 -0
  186. package/bundles/types/external-checkout/checker.d.ts +14 -0
  187. package/bundles/types/external-checkout/checker.d.ts.map +1 -0
  188. package/bundles/types/external-checkout/index.d.ts +3 -0
  189. package/bundles/types/external-checkout/index.d.ts.map +1 -0
  190. package/bundles/types/fraud-prevention/fraud-prevention.constants.d.ts +9 -0
  191. package/bundles/types/fraud-prevention/fraud-prevention.constants.d.ts.map +1 -0
  192. package/bundles/types/fraud-prevention/fraud-prevention.events.d.ts +42 -0
  193. package/bundles/types/fraud-prevention/fraud-prevention.events.d.ts.map +1 -0
  194. package/bundles/types/fraud-prevention/fraud-prevention.service.d.ts +163 -0
  195. package/bundles/types/fraud-prevention/fraud-prevention.service.d.ts.map +1 -0
  196. package/bundles/types/fraud-prevention/index.d.ts +3 -0
  197. package/bundles/types/fraud-prevention/index.d.ts.map +1 -0
  198. package/bundles/types/fraud-prevention/providers/forter/forter-device-agent.service.d.ts +79 -0
  199. package/bundles/types/fraud-prevention/providers/forter/forter-device-agent.service.d.ts.map +1 -0
  200. package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-2025-02-06t14:19:34z.template.d.ts +2 -0
  201. package/bundles/types/fraud-prevention/providers/forter/templates/forter-snippet-2025-02-06t14:19:34z.template.d.ts.map +1 -0
  202. package/bundles/types/fraud-prevention/resources/find-service-config.repository.d.ts +20 -0
  203. package/bundles/types/fraud-prevention/resources/find-service-config.repository.d.ts.map +1 -0
  204. package/bundles/types/helper/access-token.d.ts +26 -0
  205. package/bundles/types/helper/access-token.d.ts.map +1 -0
  206. package/bundles/types/helper/browser.d.ts +17 -0
  207. package/bundles/types/helper/browser.d.ts.map +1 -0
  208. package/bundles/types/helper/deep-clone.d.ts +13 -0
  209. package/bundles/types/helper/deep-clone.d.ts.map +1 -0
  210. package/bundles/types/helper/element-id.d.ts +5 -0
  211. package/bundles/types/helper/element-id.d.ts.map +1 -0
  212. package/bundles/types/helper/event-emitter.d.ts +7 -0
  213. package/bundles/types/helper/event-emitter.d.ts.map +1 -0
  214. package/bundles/types/helper/event-error.d.ts +55 -0
  215. package/bundles/types/helper/event-error.d.ts.map +1 -0
  216. package/bundles/types/helper/event.d.ts +10 -0
  217. package/bundles/types/helper/event.d.ts.map +1 -0
  218. package/bundles/types/helper/ms.d.ts +6 -0
  219. package/bundles/types/helper/ms.d.ts.map +1 -0
  220. package/{lib/widget → bundles/types}/helper/object.d.ts +1 -0
  221. package/bundles/types/helper/object.d.ts.map +1 -0
  222. package/bundles/types/helper/process-event-error.d.ts +9 -0
  223. package/bundles/types/helper/process-event-error.d.ts.map +1 -0
  224. package/bundles/types/helper/spiner.util.d.ts +6 -0
  225. package/bundles/types/helper/spiner.util.d.ts.map +1 -0
  226. package/bundles/types/helper/url.d.ts +5 -0
  227. package/bundles/types/helper/url.d.ts.map +1 -0
  228. package/bundles/types/helper/uuid.d.ts +6 -0
  229. package/bundles/types/helper/uuid.d.ts.map +1 -0
  230. package/bundles/types/index-cba.d.ts +52 -0
  231. package/bundles/types/index-cba.d.ts.map +1 -0
  232. package/bundles/types/index.d.ts +52 -0
  233. package/bundles/types/index.d.ts.map +1 -0
  234. package/bundles/types/payment-source/builder.d.ts +23 -0
  235. package/bundles/types/payment-source/builder.d.ts.map +1 -0
  236. package/bundles/types/payment-source/index.d.ts +2 -0
  237. package/bundles/types/payment-source/index.d.ts.map +1 -0
  238. package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts +181 -0
  239. package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts.map +1 -0
  240. package/bundles/types/payment-source-widget/index.d.ts +35 -0
  241. package/bundles/types/payment-source-widget/index.d.ts.map +1 -0
  242. package/bundles/types/payment-source-widget/interfaces.d.ts +12 -0
  243. package/bundles/types/payment-source-widget/interfaces.d.ts.map +1 -0
  244. package/bundles/types/payment-source-widget/payment-source-widget.d.ts +93 -0
  245. package/bundles/types/payment-source-widget/payment-source-widget.d.ts.map +1 -0
  246. package/bundles/types/paypal-data-collector/index.d.ts +23 -0
  247. package/bundles/types/paypal-data-collector/index.d.ts.map +1 -0
  248. package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts +58 -0
  249. package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts.map +1 -0
  250. package/bundles/types/paypal-data-collector/paypal-data-collector.interfaces.d.ts +21 -0
  251. package/bundles/types/paypal-data-collector/paypal-data-collector.interfaces.d.ts.map +1 -0
  252. package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts +17 -0
  253. package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts.map +1 -0
  254. package/bundles/types/paypal-save-payment-source/index.d.ts +61 -0
  255. package/bundles/types/paypal-save-payment-source/index.d.ts.map +1 -0
  256. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts +85 -0
  257. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts.map +1 -0
  258. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts +83 -0
  259. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.interfaces.d.ts.map +1 -0
  260. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts +35 -0
  261. package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts.map +1 -0
  262. package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts +31 -0
  263. package/bundles/types/secure-remote-commerce/click-to-pay-secure-remote-commerce.d.ts.map +1 -0
  264. package/bundles/types/secure-remote-commerce/index.d.ts +105 -0
  265. package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -0
  266. package/bundles/types/secure-remote-commerce/interfaces.d.ts +156 -0
  267. package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +1 -0
  268. package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts +2 -0
  269. package/bundles/types/secure-remote-commerce/providers/mastercard-src/index.d.ts.map +1 -0
  270. package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts +25 -0
  271. package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map +1 -0
  272. package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts +11 -0
  273. package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts.map +1 -0
  274. package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts +86 -0
  275. package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts.map +1 -0
  276. package/bundles/types/shared/device/device-info.service.d.ts +13 -0
  277. package/bundles/types/shared/device/device-info.service.d.ts.map +1 -0
  278. package/bundles/types/shared/http/authorization-strategy.d.ts +41 -0
  279. package/bundles/types/shared/http/authorization-strategy.d.ts.map +1 -0
  280. package/bundles/types/shared/http/http-fetcher.d.ts +29 -0
  281. package/bundles/types/shared/http/http-fetcher.d.ts.map +1 -0
  282. package/bundles/types/shared/http/http-fetcher.factory.d.ts +17 -0
  283. package/bundles/types/shared/http/http-fetcher.factory.d.ts.map +1 -0
  284. package/bundles/types/shared/http/http-request.d.ts +14 -0
  285. package/bundles/types/shared/http/http-request.d.ts.map +1 -0
  286. package/bundles/types/shared/http/http-response.dto.d.ts +19 -0
  287. package/bundles/types/shared/http/http-response.dto.d.ts.map +1 -0
  288. package/bundles/types/shared/services/configuration-validation/configuration-validation.d.ts +12 -0
  289. package/bundles/types/shared/services/configuration-validation/configuration-validation.d.ts.map +1 -0
  290. package/bundles/types/shared/services/configuration-validation/types.d.ts +73 -0
  291. package/bundles/types/shared/services/configuration-validation/types.d.ts.map +1 -0
  292. package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts +15 -0
  293. package/bundles/types/shared/services/instrumentation/instrumentation.agent.d.ts.map +1 -0
  294. package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts +66 -0
  295. package/bundles/types/shared/services/instrumentation/instrumentation.config.d.ts.map +1 -0
  296. package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts +14 -0
  297. package/bundles/types/shared/services/instrumentation/instrumentation.types.d.ts.map +1 -0
  298. package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts +15 -0
  299. package/bundles/types/shared/services/instrumentation/repositories/action.repository.d.ts.map +1 -0
  300. package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts +23 -0
  301. package/bundles/types/shared/services/instrumentation/repositories/error.repository.d.ts.map +1 -0
  302. package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts +15 -0
  303. package/bundles/types/shared/services/instrumentation/repositories/event.repository.d.ts.map +1 -0
  304. package/bundles/types/shared/services/instrumentation/repositories/index.d.ts +4 -0
  305. package/bundles/types/shared/services/instrumentation/repositories/index.d.ts.map +1 -0
  306. package/bundles/types/shared/shared.constants.d.ts +6 -0
  307. package/bundles/types/shared/shared.constants.d.ts.map +1 -0
  308. package/bundles/types/vault-display-widget/index.d.ts +14 -0
  309. package/bundles/types/vault-display-widget/index.d.ts.map +1 -0
  310. package/bundles/types/vault-display-widget/vault-display-widget.d.ts +69 -0
  311. package/bundles/types/vault-display-widget/vault-display-widget.d.ts.map +1 -0
  312. package/bundles/types/wallet-buttons/enums.d.ts +12 -0
  313. package/bundles/types/wallet-buttons/enums.d.ts.map +1 -0
  314. package/bundles/types/wallet-buttons/helpers/flypay-v2.helper.d.ts +6 -0
  315. package/bundles/types/wallet-buttons/helpers/flypay-v2.helper.d.ts.map +1 -0
  316. package/bundles/types/wallet-buttons/index-cba.d.ts +2 -0
  317. package/bundles/types/wallet-buttons/index-cba.d.ts.map +1 -0
  318. package/bundles/types/wallet-buttons/index.d.ts +138 -0
  319. package/bundles/types/wallet-buttons/index.d.ts.map +1 -0
  320. package/bundles/types/wallet-buttons/interfaces.d.ts +128 -0
  321. package/bundles/types/wallet-buttons/interfaces.d.ts.map +1 -0
  322. package/bundles/types/wallet-buttons/wallet-buttons.d.ts +321 -0
  323. package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +1 -0
  324. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts +330 -0
  325. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +1 -0
  326. package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts +24 -0
  327. package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts.map +1 -0
  328. package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts +49 -0
  329. package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -0
  330. package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts +28 -0
  331. package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts.map +1 -0
  332. package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts +26 -0
  333. package/bundles/types/wallet-buttons/wallet-services/flypay.wallet-service.d.ts.map +1 -0
  334. package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts +35 -0
  335. package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts.map +1 -0
  336. package/bundles/types/wallet-buttons/wallet-services/mastercard.wallet-service.d.ts +8 -0
  337. package/bundles/types/wallet-buttons/wallet-services/mastercard.wallet-service.d.ts.map +1 -0
  338. package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts +26 -0
  339. package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts.map +1 -0
  340. package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts +19 -0
  341. package/bundles/types/wallet-buttons/wallet-services/stripe.wallet-service.d.ts.map +1 -0
  342. package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts +131 -0
  343. package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts.map +1 -0
  344. package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts +252 -0
  345. package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts.map +1 -0
  346. package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts +12 -0
  347. package/bundles/types/wallet-buttons-express/enum/event.enum.d.ts.map +1 -0
  348. package/bundles/types/wallet-buttons-express/index.d.ts +245 -0
  349. package/bundles/types/wallet-buttons-express/index.d.ts.map +1 -0
  350. package/bundles/types/wallet-buttons-express/interfaces/base-event-data.interface.d.ts +6 -0
  351. package/bundles/types/wallet-buttons-express/interfaces/base-event-data.interface.d.ts.map +1 -0
  352. package/bundles/types/wallet-buttons-express/interfaces/base-gateway-config.interface.d.ts +6 -0
  353. package/bundles/types/wallet-buttons-express/interfaces/base-gateway-config.interface.d.ts.map +1 -0
  354. package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts +5 -0
  355. package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts.map +1 -0
  356. package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts +44 -0
  357. package/bundles/types/wallet-buttons-express/interfaces/charge-wallet-token-meta.interface.d.ts.map +1 -0
  358. package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts +6 -0
  359. package/bundles/types/wallet-buttons-express/interfaces/on-click-event-data.interface.d.ts.map +1 -0
  360. package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts +6 -0
  361. package/bundles/types/wallet-buttons-express/interfaces/on-close-event-data.interface.d.ts.map +1 -0
  362. package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts +6 -0
  363. package/bundles/types/wallet-buttons-express/interfaces/on-error-event-data.interface.d.ts.map +1 -0
  364. package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts +9 -0
  365. package/bundles/types/wallet-buttons-express/interfaces/on-payment-error-event-data.interface.d.ts.map +1 -0
  366. package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts +6 -0
  367. package/bundles/types/wallet-buttons-express/interfaces/on-payment-in-review-event-data.interface.d.ts.map +1 -0
  368. package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts +11 -0
  369. package/bundles/types/wallet-buttons-express/interfaces/on-payment-successful-event-data.interface.d.ts.map +1 -0
  370. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-data.interface.d.ts +21 -0
  371. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-data.interface.d.ts.map +1 -0
  372. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-response.interface.d.ts +9 -0
  373. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-address-change-event-response.interface.d.ts.map +1 -0
  374. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-data.interface.d.ts +13 -0
  375. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-data.interface.d.ts.map +1 -0
  376. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-response.interface.d.ts +9 -0
  377. package/bundles/types/wallet-buttons-express/interfaces/on-shipping-option-change-event-response.interface.d.ts.map +1 -0
  378. package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts +6 -0
  379. package/bundles/types/wallet-buttons-express/interfaces/on-unavailable-event-data.interface.d.ts.map +1 -0
  380. package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts +22 -0
  381. package/bundles/types/wallet-buttons-express/interfaces/wallet-capture-request.interface.d.ts.map +1 -0
  382. package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts +58 -0
  383. package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts.map +1 -0
  384. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts +2 -0
  385. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts.map +1 -0
  386. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-events.constant.d.ts +5 -0
  387. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-events.constant.d.ts.map +1 -0
  388. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.d.ts +6 -0
  389. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-gateway-config.interface.d.ts.map +1 -0
  390. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts +22 -0
  391. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts.map +1 -0
  392. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.d.ts +2 -0
  393. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-style.type.d.ts.map +1 -0
  394. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.d.ts +2 -0
  395. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-button-type.type.d.ts.map +1 -0
  396. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-contact-editing-mode.type.d.ts +5 -0
  397. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-contact-editing-mode.type.d.ts.map +1 -0
  398. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-data.d.ts +21 -0
  399. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-data.d.ts.map +1 -0
  400. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-method.type.d.ts +21 -0
  401. package/bundles/types/wallet-buttons-express/services/apple-pay/types/apple-pay-shipping-method.type.d.ts.map +1 -0
  402. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.d.ts +4 -0
  403. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-gateway-config.interface.d.ts.map +1 -0
  404. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-sdk.interface.d.ts +164 -0
  405. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-sdk.interface.d.ts.map +1 -0
  406. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts +32 -0
  407. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts.map +1 -0
  408. package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts +53 -0
  409. package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts.map +1 -0
  410. package/bundles/types/wallet-buttons-express/types/shipping-event-to-response.type.d.ts +6 -0
  411. package/bundles/types/wallet-buttons-express/types/shipping-event-to-response.type.d.ts.map +1 -0
  412. package/bundles/types/widget/configuration.d.ts +165 -0
  413. package/bundles/types/widget/configuration.d.ts.map +1 -0
  414. package/bundles/types/widget/html-multi-widget.d.ts +337 -0
  415. package/bundles/types/widget/html-multi-widget.d.ts.map +1 -0
  416. package/bundles/types/widget/html-widget.d.ts +107 -0
  417. package/bundles/types/widget/html-widget.d.ts.map +1 -0
  418. package/bundles/types/widget/index.d.ts +132 -0
  419. package/bundles/types/widget/index.d.ts.map +1 -0
  420. package/bundles/types/widget/meta.d.ts +8 -0
  421. package/bundles/types/widget/meta.d.ts.map +1 -0
  422. package/bundles/types/widget/multi-widget.d.ts +241 -0
  423. package/bundles/types/widget/multi-widget.d.ts.map +1 -0
  424. package/bundles/types/widget/style.d.ts +177 -0
  425. package/bundles/types/widget/style.d.ts.map +1 -0
  426. package/bundles/widget.umd.js +38429 -767
  427. package/bundles/widget.umd.js.d.ts +4777 -0
  428. package/bundles/widget.umd.js.min.d.ts +4777 -0
  429. package/bundles/widget.umd.min.js +1 -0
  430. package/docs/api-canvas3ds.md +158 -0
  431. package/docs/api-checkout-button.md +912 -0
  432. package/docs/api-examples.md +65 -0
  433. package/docs/api-ps-widget.md +585 -0
  434. package/docs/api-vault-display.md +94 -0
  435. package/docs/api-widget.md +2542 -0
  436. package/docs/api-wrapper.md +45 -0
  437. package/docs/canvas3ds-examples.md +242 -0
  438. package/docs/cba-header.md +13 -0
  439. package/docs/cba-license.md +2 -0
  440. package/docs/checkout-examples.md +248 -0
  441. package/docs/click-to-pay-examples.md +231 -0
  442. package/docs/click-to-pay.md +337 -0
  443. package/docs/fraud-prevention-examples.md +154 -0
  444. package/docs/fraud-prevention.md +0 -0
  445. package/docs/header.md +15 -0
  446. package/docs/html/layout.html +79 -0
  447. package/docs/html/marked.js +23 -0
  448. package/docs/html/style.css +365 -0
  449. package/docs/install/npm.content.md +16 -0
  450. package/docs/install/npm.example.md +24 -0
  451. package/docs/install/umd.content.md +20 -0
  452. package/docs/install/umd.example.md +6 -0
  453. package/docs/install.md +43 -0
  454. package/docs/install.readme.t.md +17 -0
  455. package/docs/install.slate.t.md +17 -0
  456. package/docs/license.md +2 -0
  457. package/docs/partials/header.hbs +3 -0
  458. package/docs/paypal-data-collector-examples.md +59 -0
  459. package/docs/paypal-data-collector.md +149 -0
  460. package/docs/paypal-save-payment-source-examples.md +63 -0
  461. package/docs/paypal-save-payment-source.md +256 -0
  462. package/docs/ps-examples.md +129 -0
  463. package/docs/vault-display-example.md +132 -0
  464. package/docs/wallet-buttons-examples.md +638 -0
  465. package/docs/wallet-buttons-express-examples.md +201 -0
  466. package/docs/wallet-buttons-express.md +1076 -0
  467. package/docs/wallet-buttons.md +625 -0
  468. package/docs/wallet-cba-buttons-examples.md +388 -0
  469. package/docs/widget-examples.md +271 -0
  470. package/examples/html-widget/actions.html +47 -0
  471. package/examples/html-widget/events.html +2 -2
  472. package/examples/html-widget/form.html +2 -3
  473. package/examples/html-widget/html-styles.html +29 -0
  474. package/examples/html-widget/insert-input.html +2 -2
  475. package/examples/html-widget/optional-settings.html +30 -0
  476. package/examples/html-widget/simple.html +3 -3
  477. package/examples/html-widget/styles.html +3 -3
  478. package/examples/multi-html-widget/extend.html +7 -2
  479. package/examples/multi-html-widget/simple.html +6 -8
  480. package/package.json +225 -55
  481. package/slate.md +2218 -0
  482. package/.npmignore +0 -15
  483. package/lib/index.d.ts +0 -2
  484. package/lib/index.js +0 -3
  485. package/lib/index.js.map +0 -1
  486. package/lib/widget/components/container.d.ts +0 -9
  487. package/lib/widget/components/container.js +0 -18
  488. package/lib/widget/components/container.js.map +0 -1
  489. package/lib/widget/components/env.d.ts +0 -19
  490. package/lib/widget/components/env.js +0 -33
  491. package/lib/widget/components/env.js.map +0 -1
  492. package/lib/widget/components/event.d.ts +0 -26
  493. package/lib/widget/components/event.js +0 -49
  494. package/lib/widget/components/event.js.map +0 -1
  495. package/lib/widget/components/form-Interceptor.js +0 -38
  496. package/lib/widget/components/form-Interceptor.js.map +0 -1
  497. package/lib/widget/components/iframe.d.ts +0 -11
  498. package/lib/widget/components/iframe.js +0 -31
  499. package/lib/widget/components/iframe.js.map +0 -1
  500. package/lib/widget/components/link.d.ts +0 -13
  501. package/lib/widget/components/link.js +0 -37
  502. package/lib/widget/components/link.js.map +0 -1
  503. package/lib/widget/components/param.d.ts +0 -39
  504. package/lib/widget/components/param.js +0 -21
  505. package/lib/widget/components/param.js.map +0 -1
  506. package/lib/widget/components/trigger.d.ts +0 -19
  507. package/lib/widget/components/trigger.js +0 -22
  508. package/lib/widget/components/trigger.js.map +0 -1
  509. package/lib/widget/configuration.d.ts +0 -59
  510. package/lib/widget/configuration.js +0 -134
  511. package/lib/widget/configuration.js.map +0 -1
  512. package/lib/widget/helper/event.d.ts +0 -8
  513. package/lib/widget/helper/event.js +0 -15
  514. package/lib/widget/helper/event.js.map +0 -1
  515. package/lib/widget/helper/object.js +0 -6
  516. package/lib/widget/helper/object.js.map +0 -1
  517. package/lib/widget/helper/url.d.ts +0 -3
  518. package/lib/widget/helper/url.js +0 -8
  519. package/lib/widget/helper/url.js.map +0 -1
  520. package/lib/widget/html-multi-widget.d.ts +0 -56
  521. package/lib/widget/html-multi-widget.js +0 -89
  522. package/lib/widget/html-multi-widget.js.map +0 -1
  523. package/lib/widget/html-widget.d.ts +0 -37
  524. package/lib/widget/html-widget.js +0 -50
  525. package/lib/widget/html-widget.js.map +0 -1
  526. package/lib/widget/index.d.ts +0 -5
  527. package/lib/widget/index.js +0 -6
  528. package/lib/widget/index.js.map +0 -1
  529. package/lib/widget/multi-widget.d.ts +0 -22
  530. package/lib/widget/multi-widget.js +0 -83
  531. package/lib/widget/multi-widget.js.map +0 -1
@@ -0,0 +1,34 @@
1
+ import { Container } from '../../components/container';
2
+ import { EventEmitter } from '../../helper/event-emitter';
3
+ import { ApiInternal } from "../../api/api-internal";
4
+ import { IFrame } from "../../components/iframe";
5
+ import { IEventData, IFrameEvent } from "../../components/iframe-event";
6
+ import { Link } from '../../components/link';
7
+ export interface IEventSizeData extends IEventData {
8
+ height: number;
9
+ }
10
+ export declare const MESSAGE_WIDGET_STYLE: {
11
+ TEXT_COLOR: string;
12
+ FONT_SIZE: string;
13
+ FONT_FAMILY: string;
14
+ };
15
+ export declare class Message {
16
+ protected title: string;
17
+ protected message: string;
18
+ protected type: 'success' | 'error' | 'in_review';
19
+ protected window: Window;
20
+ protected eventEmitter: EventEmitter;
21
+ protected container: Container;
22
+ protected env: string;
23
+ protected alias?: string;
24
+ protected api: ApiInternal;
25
+ protected iFrame: IFrame;
26
+ protected event: IFrameEvent;
27
+ protected link: Link;
28
+ constructor(selector: string, title: string, message: string, type: 'success' | 'error' | 'in_review');
29
+ setEnv(env: string): void;
30
+ setStyles(styles: any): void;
31
+ load(): void;
32
+ useAutoResize(): void;
33
+ }
34
+ //# sourceMappingURL=message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/checkout/layout-widgets/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAQ,UAAU,EAAE,WAAW,EAAC,MAAM,+BAA+B,CAAC;AAE7E,OAAO,EAAE,IAAI,EAAuB,MAAM,uBAAuB,CAAC;AAGlE,MAAM,WAAW,cAAe,SAAQ,UAAU;IAC9C,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,oBAAoB;;;;CAIhC,CAAC;AAEF,qBAAa,OAAO;IAcZ,SAAS,CAAC,KAAK,EAAE,MAAM;IACvB,SAAS,CAAC,OAAO,EAAE,MAAM;IACzB,SAAS,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,WAAW;IAdrD,SAAS,CAAC,MAAM,EAAE,MAAM,CAAU;IAClC,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IACrC,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAC/B,SAAS,CAAC,GAAG,EAAE,MAAM,CAAe;IACpC,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,GAAG,EAAE,WAAW,CAAC;IAC3B,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,KAAK,EAAE,WAAW,CAAC;IAC7B,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC;gBAGjB,QAAQ,EAAE,MAAM,EACN,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,WAAW;IAW9C,MAAM,CAAC,GAAG,EAAE,MAAM;IAIlB,SAAS,CAAC,MAAM,EAAE,GAAG;IAUrB,IAAI;IAIJ,aAAa;CAWvB"}
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ card: string;
3
+ bank_account: string;
4
+ paypal_wallet: string;
5
+ googlepay_wallet: string;
6
+ flypay: string;
7
+ zip_checkout: string;
8
+ applepay_wallet: string;
9
+ afterpay_wallet: string;
10
+ afterpay_checkout: string;
11
+ };
12
+ export default _default;
13
+ //# sourceMappingURL=payment-methods-template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment-methods-template.d.ts","sourceRoot":"","sources":["../../../src/checkout/layout-widgets/payment-methods-template.ts"],"names":[],"mappings":";;;;;;;;;;;AAEA,wBA+IE"}
@@ -0,0 +1,55 @@
1
+ /// <reference types="applepayjs" />
2
+ import type { ApiInternal } from '../../api/api-internal';
3
+ import { Container } from '../../components/container';
4
+ import { IFrame } from '../../components/iframe';
5
+ import type { IFrameEvent } from '../../components/iframe-event';
6
+ import type { EventEmitter } from '../../helper/event-emitter';
7
+ declare global {
8
+ interface Window {
9
+ ApplePaySession: ApplePaySession;
10
+ }
11
+ }
12
+ export declare const PAYMENTS_METHODS: {
13
+ APPLE_PAY: string;
14
+ GOOGLE_PAY: string;
15
+ };
16
+ export declare class PaymentMethods {
17
+ protected methods: string[];
18
+ protected styles: {
19
+ button_color?: string;
20
+ border_color?: string;
21
+ background_color?: string;
22
+ font_family?: string;
23
+ font_size?: string;
24
+ text_color?: string;
25
+ };
26
+ protected chosen: (type: string) => void;
27
+ protected window: Window;
28
+ protected eventEmitter: EventEmitter;
29
+ protected container: Container;
30
+ protected env: string;
31
+ protected alias?: string;
32
+ protected api: ApiInternal;
33
+ protected iFrame: IFrame;
34
+ protected event: IFrameEvent;
35
+ protected disablePaymentMethodOptions: boolean;
36
+ constructor(selector: string, methods: string[], styles: {
37
+ button_color?: string;
38
+ border_color?: string;
39
+ background_color?: string;
40
+ font_family?: string;
41
+ font_size?: string;
42
+ text_color?: string;
43
+ }, chosen: (type: string) => void, instruction_token: string, skip?: boolean);
44
+ private init;
45
+ private setListenerButtons;
46
+ setEnv(instruction_token: any): string;
47
+ private setStyles;
48
+ private isApplePaySupported;
49
+ private setStylesToStandaloneWidget;
50
+ private setPaymentMethodsOrder;
51
+ disablePaymentMethod(): void;
52
+ private queryAllPaymentSource;
53
+ private queryAllPaymentSourceRadioButtons;
54
+ }
55
+ //# sourceMappingURL=payment-methods.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment-methods.d.ts","sourceRoot":"","sources":["../../../src/checkout/layout-widgets/payment-methods.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAGjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAO/D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,eAAe,EAAE,eAAe,CAAC;KAClC;CACF;AAED,eAAO,MAAM,gBAAgB;;;CAG5B,CAAC;AASF,qBAAa,cAAc;IAavB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE;IAC3B,SAAS,CAAC,MAAM,EAAE;QAChB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IACD,SAAS,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI;IArB1C,SAAS,CAAC,MAAM,EAAE,MAAM,CAAU;IAClC,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IACrC,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAC/B,SAAS,CAAC,GAAG,EAAE,MAAM,CAAe;IACpC,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,GAAG,EAAE,WAAW,CAAC;IAC3B,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,KAAK,EAAE,WAAW,CAAC;IAC7B,SAAS,CAAC,2BAA2B,EAAE,OAAO,CAAC;gBAG7C,QAAQ,EAAE,MAAM,EACN,OAAO,EAAE,MAAM,EAAE,EACjB,MAAM,EAAE;QAChB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,EACS,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,EACxC,iBAAiB,EAAE,MAAM,EACzB,IAAI,UAAQ;IAYd,OAAO,CAAC,IAAI;IAuCZ,OAAO,CAAC,kBAAkB;IAuBnB,MAAM,CAAC,iBAAiB,KAAA;IAU/B,OAAO,CAAC,SAAS;IAoCjB,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,2BAA2B;IAOnC,OAAO,CAAC,sBAAsB;IAUvB,oBAAoB;IAqC3B,OAAO,CAAC,qBAAqB;IAM7B,OAAO,CAAC,iCAAiC;CAO1C"}
@@ -0,0 +1,3 @@
1
+ declare const _default: "\n<style>\n @import url('https://fonts.cdnfonts.com/css/segoe-ui-4');\n @import url('https://fonts.cdnfonts.com/css/droid-sans-2');\n @import url('https://fonts.cdnfonts.com/css/helvetica-neue-55');\n @import url('https://fonts.googleapis.com/css2?family=Cantarell&family=Fira+Sans&family=Oxygen&family=Roboto&family=Ubuntu&display=swap');\n \n /* RESET DEFAULT STYLES */\n *,\n *:before,\n *:after {\n box-sizing: border-box;\n }\n\n html,\n body,\n div,\n span,\n applet,\n object,\n iframe,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n blockquote,\n pre,\n a,\n abbr,\n acronym,\n address,\n big,\n cite,\n code,\n del,\n dfn,\n em,\n img,\n ins,\n kbd,\n q,\n s,\n samp,\n small,\n strike,\n strong,\n sub,\n sup,\n tt,\n var,\n b,\n u,\n i,\n center,\n dl,\n dt,\n dd,\n ol,\n ul,\n li,\n fieldset,\n form,\n label,\n legend,\n table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td,\n article,\n aside,\n canvas,\n details,\n embed,\n figure,\n figcaption,\n footer,\n header,\n hgroup,\n menu,\n nav,\n output,\n ruby,\n section,\n summary,\n time,\n mark,\n audio,\n video,\n input {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n }\n\n article,\n aside,\n details,\n figcaption,\n figure,\n footer,\n header,\n hgroup,\n menu,\n nav,\n section {\n display: block;\n }\n\n body {\n line-height: 1;\n }\n\n ol,\n ul {\n list-style: none;\n }\n\n ul {\n padding: 0;\n margin: 0;\n }\n\n /* MAIN STYLES */\n .wrap {\n padding: 10px;\n background-color: {{background_color}};\n }\n\n .widget-body {\n background-color: #fff;\n border: 1px solid {{border_color}};\n }\n\n .payment-source {\n cursor: pointer;\n padding: 1em 0.8em;\n display: flex;\n align-items: center;\n height: 70px;\n }\n\n .payment-source:not(:last-child) {\n border-bottom: 1px solid {{border_color}};\n }\n\n .payment-source__wrap {\n display: flex;\n align-items: center;\n font-family: {{font_family}};\n font-size: {{font_size}};\n color: {{text_color}}\n }\n\n .payment-source__radio {\n margin-right: 2em;\n width: 18px;\n min-width: 18px;\n height: 18px;\n border: 1px solid {{button_color}};\n border-radius: 50%;\n appearance: none;\n cursor: pointer;\n\n @media screen and (max-width: 380px) {\n margin-right: 1em;\n }\n }\n\n .payment-source__radio::before {\n content: \"\";\n display: block;\n width: 100%;\n height: 100%;\n background-color: #fff;\n border-radius: 50%;\n }\n\n .payment-source__radio:checked::before {\n border: 4px solid {{button_color}};\n outline: 1px solid {{button_color}};\n }\n\n .payment-source__title {\n margin-right: 2em;\n font-weight: 400;\n line-height: 1.2;\n\n @media screen and (max-width: 380px) {\n margin-right: 1em;\n font-size: 14px;\n }\n }\n\n .payment-source__icon {\n margin-right: 2em;\n max-height: 35px;\n\n @media screen and (max-width: 380px) {\n margin-right: 1em;\n }\n }\n\n .payment-source .card__scheme {\n margin-left: auto;\n display: flex;\n align-items: center;\n }\n\n .payment-source .card__scheme__item:not(:last-child) {\n margin-right: 10px;\n }\n\n .payment-source .card__scheme__img {\n max-width: 50px;\n\n @media screen and (max-width: 460px) {\n max-width: 40px;\n }\n\n @media screen and (max-width: 410px) {\n max-width: 30px;\n }\n }\n\n .payment-source__form {\n margin-top: 1em;\n margin-bottom: 1em;\n margin-left: calc(2em + 18px);\n\n @media screen and (max-width: 380px) {\n margin-left: calc(1em + 18px);\n }\n }\n\n .payment-source__form .form-group:not(:last-child) {\n margin-bottom: 1.5em;\n }\n\n .payment-source__form .form-control {\n padding: 10px 2px 10px 10px;\n height: 40px;\n background: #F9F9F9;\n border: 1px solid {{border_color}};\n }\n\n .payment-source__form .form-control:not(:last-child) {\n margin-right: 1.5em;\n }\n\n .payment-source__form .form-control.col-12 {\n width: calc(100% - 1.5em);\n }\n\n .payment-source__form .form-control.col-3 {\n width: calc(33.33% - 1.5em);\n }\n\n .footer__pay-btn {\n margin-left: auto;\n padding: 10px 2em;\n height: 50px;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #F6F0EB;\n font-size: 16px;\n background-color: {{button_color}};\n box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.10), 0 0 0 0.5px rgba(0, 0, 0, 0.10);\n border: none;\n border-radius: 6px;\n cursor: pointer;\n }\n\n .footer__pay-btn--paypal {\n padding: 5px 2em;\n background-color: #FFC43A;\n }\n\n .footer__pay-btn--gpay {\n font-size: 22px;\n }\n\n .footer__pay-btn--gpay img {\n margin-left: 5px;\n }\n\n .footer__pay-btn img {\n max-height: 100%;\n }\n</style>\n<main class=\"wrap\">\n <div class=\"widget-body\">\n <ul class=\"payment-sources__list\">\n {{paymentMethods}}\n </ul>\n </div>\n</main>\n</div>\n";
2
+ export default _default;
3
+ //# sourceMappingURL=payment-template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment-template.d.ts","sourceRoot":"","sources":["../../../src/checkout/layout-widgets/payment-template.ts"],"names":[],"mappings":";AAAA,wBAoTC"}
@@ -0,0 +1,36 @@
1
+ import { CheckoutButton } from '../checkout-button';
2
+ import { AdditionalParams } from '../runner';
3
+ /**
4
+ * Class AfterpayCheckoutButton is wrapper of CheckoutButton transform usual button into checkout
5
+ *
6
+ * @extends CheckoutButton
7
+ *
8
+ * @constructor
9
+ *
10
+ * @param {string} selector - Selector of html element.
11
+ * @param {string} accessToken - PayDock access-token or users public key
12
+ * @param {string} [gatewayId=default] - PayDock's gatewayId. By default or if put 'default', it will use the selected default gateway
13
+ * @example
14
+ * var widget = new AfterpayCheckoutButton('#button', 'access-token','gatewayId');
15
+ */
16
+ declare class AfterpayCheckoutButton extends CheckoutButton {
17
+ protected accessToken: string;
18
+ protected gatewayId: string;
19
+ protected showETP: boolean;
20
+ /** @constructs */ constructor(selector: string, accessToken: string, gatewayId?: string);
21
+ /**
22
+ * Method which toggles the "Enhanced Tracking Protection" warning popup to 'on' mode.
23
+ *
24
+ * This popup with a warning about "Enhanced Tracking Protection" limitations
25
+ * would be shown in the Mozilla Firefox browser version 100+
26
+ *
27
+ * By default, the popup would not be shown, until
28
+ * the flag would be set to `true`
29
+
30
+ * @param {doShow} boolean - flag which toggle the popup visibility
31
+ */
32
+ showEnhancedTrackingProtectionPopup(doShow: boolean): void;
33
+ protected buildAdditionalParams(): AdditionalParams;
34
+ }
35
+ export { AfterpayCheckoutButton };
36
+ //# sourceMappingURL=afterpay-checkout-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"afterpay-checkout-button.d.ts","sourceRoot":"","sources":["../../../src/checkout-button/afterpay/afterpay-checkout-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C;;;;;;;;;;;;GAYG;AACH,cAAM,sBAAuB,SAAQ,cAAc;IAIjB,SAAS,CAAC,WAAW,EAAE,MAAM;IAAE,SAAS,CAAC,SAAS,EAAE,MAAM;IAHxF,SAAS,CAAC,OAAO,UAAS;IAE1B,kBAAkB,aACN,QAAQ,EAAE,MAAM,EAAY,WAAW,EAAE,MAAM,EAAY,SAAS,GAAE,MAAkB;IAIpG;;;;;;;;;;OAUG;IACI,mCAAmC,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI;IAMjE,SAAS,CAAC,qBAAqB,IAAI,gBAAgB;CAOtD;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { AdditionalParams, IContextualRunner, PopupRunner } from '../runner';
2
+ import { ICheckout } from '../../external-checkout';
3
+ import { CheckoutContextualHandlerData } from '../checkout-contextual-handler';
4
+ export declare class AfterpayRunner extends PopupRunner implements IContextualRunner {
5
+ getSuccessRedirectUri(): string;
6
+ getErrorRedirectUri(): string;
7
+ next(checkoutData: ICheckout, params?: AdditionalParams): void;
8
+ onCheckout<T extends CheckoutContextualHandlerData>(event: string, cb: (checkout: ICheckout, data?: T) => void): void;
9
+ error(error: string, code: string, callback: any): any;
10
+ run(): void;
11
+ protected getRedirectUrl(checkout: ICheckout, params?: AdditionalParams): string;
12
+ }
13
+ //# sourceMappingURL=afterpay.runner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"afterpay.runner.d.ts","sourceRoot":"","sources":["../../../src/checkout-button/afterpay/afterpay.runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAc/E,qBAAa,cAAe,SAAQ,WAAY,YAAW,iBAAiB;IACjE,qBAAqB,IAAI,MAAM;IAO/B,mBAAmB,IAAI,MAAM;IAM7B,IAAI,CAAC,YAAY,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,gBAAgB;IAQvD,UAAU,CAAC,CAAC,SAAS,6BAA6B,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,KAAK,IAAI;IAc9G,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,KAAA;IAQ3C,GAAG,IAAI,IAAI;IAalB,SAAS,CAAC,cAAc,CAAC,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,gBAAgB,GAAG,MAAM;CASnF"}
@@ -0,0 +1,139 @@
1
+ import { Container } from '../components/container';
2
+ import { CHECKOUT_MODE, GATEWAY_TYPE } from './checkout-button.interface';
3
+ import { Background } from '../components/background';
4
+ import { EventEmitter } from '../helper/event-emitter';
5
+ import { IPayPalMeta, IAfterpayMeta, IZipmoneyMeta } from '../components/param';
6
+ import { AdditionalParams, IContextualRunner, IRedirectRunner } from './runner';
7
+ import { CheckoutContextualHandler } from './checkout-contextual-handler';
8
+ /**
9
+ * Class CheckoutButton transform usual button into checkout
10
+ *
11
+ * @constructor
12
+ *
13
+ * @param {string} selector - Selector of html element.
14
+ * @param {string} aceessToken - PayDock access token or users public key
15
+ * @param {string} [gatewayId=default] - PayDock's gatewayId. By default or if put 'default', it will use the selected default gateway
16
+ * @param {string} [type=PaypalClassic] - Type of gateway (PaypalClassic, Zipmoney)
17
+ * @example
18
+ * var widget = new CheckoutButton('#button', 'accessToken','gatewayId');
19
+ */
20
+ declare class CheckoutButton {
21
+ protected accessToken: string;
22
+ protected gatewayId: string;
23
+ protected gatewayType: GATEWAY_TYPE;
24
+ protected mode: CHECKOUT_MODE;
25
+ protected window: Window;
26
+ protected eventEmitter: EventEmitter;
27
+ protected container: Container;
28
+ protected meta: IPayPalMeta;
29
+ protected runner: IContextualRunner | IRedirectRunner;
30
+ protected background?: Background;
31
+ protected checkoutHandler?: CheckoutContextualHandler;
32
+ protected env: string;
33
+ protected alias?: string;
34
+ /** @constructs */ constructor(selector: string, accessToken: string, gatewayId?: string, gatewayType?: GATEWAY_TYPE, mode?: CHECKOUT_MODE);
35
+ protected chooseRunner(gatewayType: GATEWAY_TYPE, mode: CHECKOUT_MODE): void;
36
+ protected buildAdditionalParams(): AdditionalParams;
37
+ protected initCheckout(container: Container): void;
38
+ /**
39
+ * This callback will be called for each event in payment source widget
40
+ *
41
+ * @callback listener
42
+ */
43
+ /**
44
+ * Listen to events of widget
45
+ *
46
+ * @example
47
+ *
48
+ * widget.on('click', function () {
49
+ *
50
+ * });
51
+ * @param {string} eventName - Available event names [CHECKOUT_BUTTON_EVENT]{@link CHECKOUT_BUTTON_EVENT}
52
+ * @param {listener} cb
53
+ */
54
+ on<T = object>(name: string, handler: (data: T) => void): void;
55
+ /**
56
+ * Close popup window forcibly.
57
+ * Only for 'contextual' mode.
58
+ *
59
+ */
60
+ close(): void;
61
+ /**
62
+ * After finish event of checkout button, data (dataType) will be insert to input (selector)
63
+ *
64
+ * @param {string} selector - css selector . [] #
65
+ * @param {string} dataType - data type of IEventCheckoutFinishData [IEventCheckoutFinishData]{@link #IEventCheckoutFinishData}.
66
+ */
67
+ onFinishInsert(selector: string, dataType: string): void;
68
+ /**
69
+ * Method for setting meta information for checkout page
70
+ *
71
+ * @example
72
+ * button.setMeta({
73
+ brand_name: 'paydock',
74
+ reference: '15',
75
+ email: 'wault@paydock.com'
76
+ });
77
+ *
78
+ * @param {(IPayPalMeta|IAfterpayMeta|IZipmoneyMeta)} meta - Data which can be shown on checkout page [IPayPalMeta]{@link IPayPalMeta} [IZipmoneyMeta]{@link IZipmoneyMeta} [IAfterpayMeta]{@link IAfterpayMeta}
79
+ */
80
+ setMeta(meta: IPayPalMeta | IAfterpayMeta | IZipmoneyMeta): void;
81
+ /**
82
+ * Method for setting backdrop description.
83
+ * Only for 'contextual' mode.
84
+ *
85
+ * @example
86
+ * button.setBackdropDescription('Custom description');
87
+ *
88
+ * @param {string} text - description which can be shown in overlay of back side checkout page
89
+ */
90
+ setBackdropDescription(text: string): void;
91
+ /**
92
+ * Method for setting backdrop title.
93
+ * Only for 'contextual' mode.
94
+ *
95
+ * @example
96
+ * button.setBackdropTitle('Custom title');
97
+ *
98
+ * @param {text} string - title which can be shown in overlay of back side checkout page
99
+ */
100
+ setBackdropTitle(text: string): void;
101
+ /**
102
+ * Method for setting suspended redirect uri. Redirect after referred checkout.
103
+ * Only for 'contextual' mode.
104
+ *
105
+ * @param {uri} string - uri for redirect (by default)
106
+ */
107
+ setSuspendedRedirectUri(uri: string): void;
108
+ /**
109
+ * Method for setting the merchant redirect URL.
110
+ * Merchant's customers redirect after successfull checkout.
111
+ * Only for 'redirect' mode.
112
+ *
113
+ * @param {url} string - redirect url
114
+ */
115
+ setRedirectUrl(url: string): void;
116
+ getSuccessRedirectUri(): string;
117
+ /**
118
+ * Method for disable backdrop on the page.
119
+ * Only for 'contextual' mode.
120
+ *
121
+ * @example
122
+ * button.turnOffBackdrop();
123
+ *
124
+ */
125
+ turnOffBackdrop(): void;
126
+ protected turnOffControlBackdrop(): void;
127
+ protected turnOffLoaderBackdrop(): void;
128
+ setEnv(env: string, alias?: string): void;
129
+ getEnv(): string;
130
+ private getRunnerByMode;
131
+ private assertMethodSupport;
132
+ }
133
+ /**
134
+ * @interface IEventCheckoutFinishData
135
+ *
136
+ * @param {string} [payment_source_token]
137
+ */
138
+ export { CheckoutButton };
139
+ //# sourceMappingURL=checkout-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkout-button.d.ts","sourceRoot":"","sources":["../../src/checkout-button/checkout-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,EAAyB,aAAa,EAAE,YAAY,EAAqD,MAAM,6BAA6B,CAAC;AAEpJ,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEhF,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,eAAe,EAAwC,MAAM,UAAU,CAAC;AAKtH,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE1E;;;;;;;;;;;GAWG;AACH,cAAM,cAAc;IAgBZ,SAAS,CAAC,WAAW,EAAE,MAAM;IAC7B,SAAS,CAAC,SAAS,EAAE,MAAM;IAC3B,SAAS,CAAC,WAAW,EAAE,YAAY;IACnC,SAAS,CAAC,IAAI,EAAE,aAAa;IAlBjC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAU;IAClC,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IACrC,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAE/B,SAAS,CAAC,IAAI,EAAE,WAAW,CAAM;IACjC,SAAS,CAAC,MAAM,EAAE,iBAAiB,GAAG,eAAe,CAAC;IAEtD,SAAS,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC;IAClC,SAAS,CAAC,eAAe,CAAC,EAAE,yBAAyB,CAAC;IACtD,SAAS,CAAC,GAAG,EAAE,MAAM,CAAe;IACpC,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEzB,kBAAkB,aAEd,QAAQ,EAAE,MAAM,EACN,WAAW,EAAE,MAAM,EACnB,SAAS,GAAE,MAAkB,EAC7B,WAAW,GAAE,YAAkC,EAC/C,IAAI,GAAE,aAAwC;IAQ5D,SAAS,CAAC,YAAY,CAAC,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa;IAmBrE,SAAS,CAAC,qBAAqB,IAAI,gBAAgB;IAInD,SAAS,CAAC,YAAY,CAAC,SAAS,EAAE,SAAS;IAwC3C;;;;OAIG;IAEH;;;;;;;;;;OAUG;IACI,EAAE,CAAC,CAAC,GAAG,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI;IAI9D;;;;OAIG;IACI,KAAK;IAKZ;;;;;OAKG;IACI,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAMxD;;;;;;;;;;;OAWG;IACI,OAAO,CAAC,IAAI,EAAE,WAAW,GAAG,aAAa,GAAG,aAAa;IAIhE;;;;;;;;OAQG;IACI,sBAAsB,CAAC,IAAI,EAAE,MAAM;IAK1C;;;;;;;;OAQG;IACI,gBAAgB,CAAC,IAAI,EAAE,MAAM;IAKpC;;;;;OAKG;IACI,uBAAuB,CAAC,GAAG,EAAE,MAAM;IAK1C;;;;;;OAMG;IACI,cAAc,CAAC,GAAG,EAAE,MAAM;IAK1B,qBAAqB;IAI5B;;;;;;;OAOG;IACI,eAAe,IAAI,IAAI;IAK9B,SAAS,CAAC,sBAAsB;IAKhC,SAAS,CAAC,qBAAqB;IAIxB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;IAOlC,MAAM,IAAI,MAAM;IAIvB,OAAO,CAAC,eAAe;IAkBvB,OAAO,CAAC,mBAAmB;CA0B9B;AAED;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,49 @@
1
+ /**
2
+ * @type {object}
3
+ * @param {string} CLICK=click
4
+ * @param {string} POPUP_REDIRECT=popup_redirect
5
+ * @param {string} ERROR=error
6
+ * @param {string} ACCEPTED=accepted
7
+ * @param {string} FINISH=finish
8
+ * @param {string} CLOSE=close
9
+ */
10
+ export declare const CHECKOUT_BUTTON_EVENT: {
11
+ CLICK: string;
12
+ POPUP_REDIRECT: string;
13
+ REDIRECT: string;
14
+ ERROR: string;
15
+ REFERRED: string;
16
+ DECLINED: string;
17
+ CANCELLED: string;
18
+ ACCEPTED: string;
19
+ FINISH: string;
20
+ CLOSE: string;
21
+ };
22
+ /**
23
+ * @type {object}
24
+ * @param {string} CONTEXTUAL=contextual
25
+ * @param {string} REDIRECT=redirect
26
+ */
27
+ export declare enum CHECKOUT_MODE {
28
+ CONTEXTUAL = "contextual",
29
+ REDIRECT = "redirect"
30
+ }
31
+ /**
32
+ * @type {object}
33
+ * @param {string} ZIPMONEY=Zipmoney
34
+ * @param {string} PAYPAL=PaypalClassic
35
+ * @param {string} AFTERPAY=Afterpay
36
+ */
37
+ export declare enum GATEWAY_TYPE {
38
+ ZIPMONEY = "Zipmoney",
39
+ PAYPAL = "PaypalClassic",
40
+ AFTERPAY = "Afterpay"
41
+ }
42
+ export interface IEventCheckoutFinishData {
43
+ payment_source_token: string;
44
+ checkout_email: string;
45
+ checkout_holder: string;
46
+ gateway_type: string;
47
+ }
48
+ export declare const CHECKOUT_BTN_LOG_PREFIX = "[Paydock:CheckoutButton]";
49
+ //# sourceMappingURL=checkout-button.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkout-button.interface.d.ts","sourceRoot":"","sources":["../../src/checkout-button/checkout-button.interface.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;CAWjC,CAAC;AAEF;;;;GAIG;AACH,oBAAY,aAAa;IACrB,UAAU,eAAe;IACzB,QAAQ,aAAa;CACxB;AAED;;;;;GAKG;AACH,oBAAY,YAAY;IACpB,QAAQ,aAAa;IACrB,MAAM,kBAAkB;IACxB,QAAQ,aAAa;CACxB;AAED,MAAM,WAAW,wBAAwB;IACrC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,uBAAuB,6BAA6B,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { IDetails } from '../external-checkout/index';
2
+ import { Background } from '../components/background';
3
+ import { IContextualRunner } from './runner';
4
+ import { EventEmitter } from '../helper/event-emitter';
5
+ import { IDispatcherData } from '../components/dispatcher';
6
+ interface CheckoutContextualHandlerParams {
7
+ accessToken: string;
8
+ gatewayId: string;
9
+ }
10
+ export interface CheckoutContextualHandlerData extends IDispatcherData {
11
+ isCloseEvent?: boolean;
12
+ }
13
+ export declare class CheckoutContextualHandler {
14
+ protected background: Background;
15
+ protected runner: IContextualRunner;
16
+ protected eventEmitter: EventEmitter;
17
+ protected params: CheckoutContextualHandlerParams;
18
+ protected env: string;
19
+ protected details: IDetails;
20
+ constructor(background: Background, runner: IContextualRunner, eventEmitter: EventEmitter, params: CheckoutContextualHandlerParams);
21
+ init(env: string): void;
22
+ setEnv(env: string): void;
23
+ protected checkToken(token: string, cb: () => void): void;
24
+ protected createOneTimeToken(token: string): void;
25
+ }
26
+ export {};
27
+ //# sourceMappingURL=checkout-contextual-handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkout-contextual-handler.d.ts","sourceRoot":"","sources":["../../src/checkout-button/checkout-contextual-handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAsC,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAgB,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,UAAU,+BAA+B;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,6BAA8B,SAAQ,eAAe;IAClE,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,qBAAa,yBAAyB;IAK9B,SAAS,CAAC,UAAU,EAAE,UAAU;IAChC,SAAS,CAAC,MAAM,EAAE,iBAAiB;IACnC,SAAS,CAAC,YAAY,EAAE,YAAY;IACpC,SAAS,CAAC,MAAM,EAAE,+BAA+B;IAPrD,SAAS,CAAC,GAAG,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,OAAO,EAAE,QAAQ,CAAC;gBAGd,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,iBAAiB,EACzB,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,+BAA+B;IAO9C,IAAI,CAAC,GAAG,EAAE,MAAM;IAsChB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIhC,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,IAAI;IAgBlD,SAAS,CAAC,kBAAkB,CAAC,KAAK,EAAE,MAAM;CAmB7C"}
@@ -0,0 +1,85 @@
1
+ export { CHECKOUT_BUTTON_EVENT, type IEventCheckoutFinishData } from './checkout-button.interface';
2
+ export { ZipmoneyCheckoutButton } from './zipmoney/zipmoney-checkout-button';
3
+ export { AfterpayCheckoutButton } from './afterpay/afterpay-checkout-button';
4
+ export { PaypalCheckoutButton } from './paypal/paypal-checkout-button';
5
+ /**
6
+ * Interface for PayPal checkout meta information
7
+ * @interface IPayPalMeta
8
+ *
9
+ * @param {string} [brand_name] A label that overrides the business name in the PayPal account on the PayPal hosted checkout pages
10
+ * @param {string} [cart_border_color] The HTML hex code for your principal identifying color
11
+ * @param {string} [reference] Merchant Customer Service number displayed on the PayPal pages
12
+ * @param {string} [email] The consumer’s email
13
+ * @param {string} [hdr_img] URL for the image you want to appear at the top left of the payment page
14
+ * @param {string} [logo_img] A URL to your logo image
15
+ * @param {string} [pay_flow_color] Sets the background color for the payment page. By default, the color is white.
16
+ * @param {string} [first_name] The consumer’s given names
17
+ * @param {string} [last_name] The consumer’s surname
18
+ * @param {string} [address_line] Street address
19
+ * @param {string} [address_line2] Second line of the address
20
+ * @param {string} [address_city] City
21
+ * @param {string} [address_state] State
22
+ * @param {string} [address_postcode] Postcode
23
+ * @param {string} [address_country] Country
24
+ * @param {string} [phone] The consumer’s phone number in E.164 international notation (Example: +12345678901)
25
+ * @param {boolean} [hide_shipping_address] Determines whether PayPal displays shipping address fields on the PayPal pages
26
+ */
27
+ /**
28
+ * Interface for ZipMoney checkout meta information
29
+ * @interface IZipmoneyMeta
30
+
31
+ * @param {string} first_name First name for the customer
32
+ * @param {string} last_name Last name for the customer
33
+ * @param {string} [phone] The consumer’s phone number in E.164 international notation (Example: +12345678901)
34
+ * @param {boolean} [tokenize] Controls whether to tokenize the zip pay / zip money account, defaults to ‘false’
35
+ * @param {string} email The consumer’s email
36
+ * @param {string} [gender] Gender name for the customer
37
+ * @param {string} [date_of_birth] Date of birth name for the customer
38
+ * @param {number} charge.amount Amount to be paid
39
+ * @param {string} [charge.currency] Currency code
40
+ * @param {string} [charge.reference] Reference
41
+ * @param {array} charge.items Collections of orders
42
+ * @param {string} charge.items[].name Name of the item
43
+ * @param {number} charge.items[].amount Amount of the item
44
+ * @param {integer} charge.items[].quantity Quantity of the item
45
+ * @param {string} [charge.items[].type] type of the item, values can be: ‘sku’, ‘tax’, ‘shipping’, ‘discount’
46
+ * @param {string} [charge.items[].reference] reference of the item
47
+ * @param {string} [charge.items[].item_uri] url of the item in your store
48
+ * @param {string} [charge.items[].image_url] url of the image in your store
49
+ * @param {string} [charge.shipping_type] Shipping type, values can be: ‘pickup’, ‘delivery’, defaults to ‘delivery’
50
+ * @param {string} [charge.shipping_address] Object with shipping address details
51
+ * @param {string} [charge.shipping_address.first_name] Shipping first name
52
+ * @param {string} [charge.shipping_address.last_name] Shipping last name
53
+ * @param {string} charge.shipping_address.line1 Shipping address line 1
54
+ * @param {string} charge.shipping_address.line2 Shipping address line 2
55
+ * @param {string} charge.shipping_address.city Shipping city
56
+ * @param {string} charge.shipping_address.state Shipping state
57
+ * @param {string} charge.shipping_address.postcode Shipping postcode
58
+ * @param {string} charge.shipping_address.country Shipping country
59
+ * @param {string} charge.billing_address Object with billing address details
60
+ * @param {string} [charge.billing_address.first_name] Billing first name
61
+ * @param {string} [charge.billing_address.last_name] Billing last name
62
+ * @param {string} charge.billing_address.line1 Billing address line 1
63
+ * @param {string} [charge.billing_address.line2] Billing address line 1
64
+ * @param {string} charge.billing_address.city Billing city
65
+ * @param {string} charge.billing_address.state Billing state
66
+ * @param {string} charge.billing_address.postcode Billing postcode
67
+ * @param {string} charge.billing_address.country Billing country
68
+ */
69
+ /**
70
+ * Interface for Afterpay checkout meta information
71
+ * @interface IAfterpayMeta
72
+ * @param {number} [amount]
73
+ * @param {number} [currency]
74
+ * @param {string} [first_name]
75
+ * @param {string} [last_name]
76
+ * @param {string} [email]
77
+ * @param {string} [address_line]
78
+ * @param {string} [address_line2]
79
+ * @param {string} [address_city]
80
+ * @param {string} [address_state]
81
+ * @param {string} [address_postcode]
82
+ * @param {string} [address_country]
83
+ * @param {string} [phone]
84
+ */
85
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/checkout-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,KAAK,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACnG,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAA;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AAEtE;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH;;;;;;;;;;;;;;;GAeG"}
@@ -0,0 +1,21 @@
1
+ import { CheckoutButton } from '../checkout-button';
2
+ /**
3
+ * Class PaypalCheckoutButton is wrapper of CheckoutButton transform usual button into checkout
4
+ *
5
+ * @extends CheckoutButton
6
+ *
7
+ * @constructor
8
+ *
9
+ * @param {string} selector - Selector of html element.
10
+ * @param {string} publicKey - PayDock users public key
11
+ * @param {string} [gatewayId=default] - PayDock's gatewayId. By default or if put 'default', it will use the selected default gateway
12
+ * @example
13
+ * var widget = new PaypalCheckoutButton('#button', 'publicKey','gatewayId');
14
+ */
15
+ declare class PaypalCheckoutButton extends CheckoutButton {
16
+ protected publicKey: string;
17
+ protected gatewayId: string;
18
+ /** @constructs */ constructor(selector: string, publicKey: string, gatewayId?: string);
19
+ }
20
+ export { PaypalCheckoutButton };
21
+ //# sourceMappingURL=paypal-checkout-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypal-checkout-button.d.ts","sourceRoot":"","sources":["../../../src/checkout-button/paypal/paypal-checkout-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD;;;;;;;;;;;;GAYG;AACH,cAAM,oBAAqB,SAAQ,cAAc;IAEf,SAAS,CAAC,SAAS,EAAE,MAAM;IAAE,SAAS,CAAC,SAAS,EAAE,MAAM;IADtF,kBAAkB,aACN,QAAQ,EAAE,MAAM,EAAY,SAAS,EAAE,MAAM,EAAY,SAAS,GAAE,MAAkB;CAGrG;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { IContextualRunner, PopupRunner } from '../runner';
2
+ export declare class PaypalRunner extends PopupRunner implements IContextualRunner {
3
+ getSuccessRedirectUri(): string;
4
+ getErrorRedirectUri(): string;
5
+ }
6
+ //# sourceMappingURL=paypal.runner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypal.runner.d.ts","sourceRoot":"","sources":["../../../src/checkout-button/paypal/paypal.runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAM3D,qBAAa,YAAa,SAAQ,WAAY,YAAW,iBAAiB;IAC/D,qBAAqB,IAAI,MAAM;IAO/B,mBAAmB,IAAI,MAAM;CAKvC"}
@@ -0,0 +1,18 @@
1
+ import { ICheckout } from '../../external-checkout';
2
+ import { Env } from '../../configs/env';
3
+ export type AdditionalParams = Record<string, string | number | boolean>;
4
+ export type Constructable<T = BaseRunner> = new (...args: any[]) => T;
5
+ export interface IRunner {
6
+ next(checkoutData: ICheckout, params?: AdditionalParams): void;
7
+ error(error: string, code: string, cb: (close: boolean) => void): void;
8
+ getSuccessRedirectUri(): string;
9
+ getErrorRedirectUri(): string;
10
+ setEnv(env: string, alias?: string): void;
11
+ }
12
+ export declare abstract class BaseRunner implements Partial<IRunner> {
13
+ widgetEnv: Env;
14
+ constructor();
15
+ error(error: string, code: string, callback: any): void;
16
+ setEnv(env: string, alias?: string): void;
17
+ }
18
+ //# sourceMappingURL=base.runner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.runner.d.ts","sourceRoot":"","sources":["../../../src/checkout-button/runner/base.runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,GAAG,EAAc,MAAM,mBAAmB,CAAC;AAEpD,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAEzE,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,UAAU,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;AAEtE,MAAM,WAAW,OAAO;IACpB,IAAI,CAAC,YAAY,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAE/D,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI,CAAC;IAEvE,qBAAqB,IAAI,MAAM,CAAC;IAEhC,mBAAmB,IAAI,MAAM,CAAC;IAE9B,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7C;AAED,8BAAsB,UAAW,YAAW,OAAO,CAAC,OAAO,CAAC;IACxD,SAAS,EAAE,GAAG,CAAC;;IAMR,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,KAAA,GAAG,IAAI;IAIlD,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;CAGnD"}
@@ -0,0 +1,39 @@
1
+ import { Background } from '../../components/background';
2
+ import { IRunner, Constructable } from './base.runner';
3
+ import { ICheckout } from '../../external-checkout';
4
+ import { IDispatcherData } from '../../components/dispatcher';
5
+ export declare enum RUNNER_EVENT {
6
+ SUCCESS = "success",
7
+ DECLINED = "declined",
8
+ CLOSE = "close",
9
+ REFERRED = "referred",
10
+ ERROR = "error"
11
+ }
12
+ export interface IContextualRunner extends IRunner {
13
+ run(): void;
14
+ isRunning(): boolean;
15
+ continue(): void;
16
+ stop(): void;
17
+ onStop(cb: () => void): void;
18
+ onCheckout<T extends IDispatcherData>(event: string, cb: (checkout: ICheckout, data?: T) => void): void;
19
+ setBackgroundTitle(text: string): void;
20
+ setBackgroundDescription(text: string): void;
21
+ turnOffBackdrop(): void;
22
+ setSuspendedRedirectUri(uri: string): void;
23
+ }
24
+ export declare function ContextualRunner<BR extends Constructable>(Runner?: BR): {
25
+ new (...args: any[]): {
26
+ background: Background;
27
+ suspendedRedirectUri: string;
28
+ continue(): void;
29
+ stop(): void;
30
+ error(error: string, code: string, callback: any): void;
31
+ setSuspendedRedirectUri(uri: string): void;
32
+ setBackgroundTitle(text: string): void;
33
+ setBackgroundDescription(text: string): void;
34
+ turnOffBackdrop(): void;
35
+ widgetEnv: import("../../configs/env").Env;
36
+ setEnv(env: string, alias?: string): void;
37
+ };
38
+ } & BR;
39
+ //# sourceMappingURL=contextual.runner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contextual.runner.d.ts","sourceRoot":"","sources":["../../../src/checkout-button/runner/contextual.runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiC,MAAM,6BAA6B,CAAC;AACxF,OAAO,EAAc,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,oBAAY,YAAY;IACpB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,KAAK,UAAU;CAClB;AAED,MAAM,WAAW,iBAAkB,SAAQ,OAAO;IAC9C,GAAG,IAAI,IAAI,CAAC;IAEZ,SAAS,IAAI,OAAO,CAAC;IAErB,QAAQ,IAAI,IAAI,CAAC;IAEjB,IAAI,IAAI,IAAI,CAAC;IAEb,MAAM,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;IAE7B,UAAU,CAAC,CAAC,SAAS,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,KAAK,IAAI,GAAG,IAAI,CAAC;IAExG,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvC,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7C,eAAe,IAAI,IAAI,CAAC;IAExB,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9C;AAED,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,aAAa,EAAE,MAAM,GAAE,EAAqB;kBAKpD,GAAG,EAAE;oBAHrB,UAAU;8BACA,MAAM;oBAST,IAAI;gBAER,IAAI;qBAEC,MAAM,QAAQ,MAAM,kBAAa,IAAI;qCAIrB,MAAM;iCAIV,MAAM,GAAG,IAAI;uCAIP,MAAM,GAAG,IAAI;2BAIzB,IAAI;;;;OAKrC"}
@@ -0,0 +1,9 @@
1
+ import { IContextualRunner } from './contextual.runner';
2
+ import { IRedirectRunner } from './redirect.runner';
3
+ export * from './base.runner';
4
+ export * from './contextual.runner';
5
+ export * from './popup.runner';
6
+ export * from './redirect.runner';
7
+ export declare function isContextualRunner(runner: IContextualRunner | IRedirectRunner): runner is IContextualRunner;
8
+ export declare function isRedirectRunner(runner: IContextualRunner | IRedirectRunner): runner is IRedirectRunner;
9
+ //# sourceMappingURL=index.d.ts.map