@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,337 @@
1
+ import { Container } from "../components/container";
2
+ import { IFrame } from "../components/iframe";
3
+ import { type IEventData } from "../components/iframe-event";
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
+ export interface IEventMetaData extends IEventData {
8
+ configuration_token: string;
9
+ type: string;
10
+ account_name?: string;
11
+ account_number?: string;
12
+ card_number_last4?: string;
13
+ card_number_length?: number;
14
+ card_scheme?: string;
15
+ gateway_type?: string;
16
+ }
17
+ export interface IEventAfterLoadData extends IEventData {
18
+ }
19
+ export interface IEventFinishData extends IEventData {
20
+ payment_source: string;
21
+ payment_source_token?: string;
22
+ }
23
+ /**
24
+ * Interface of data from validation event.
25
+ *
26
+ * @interface IFormValidation
27
+ *
28
+ * @param {string} event The name of the event.
29
+ * @param {string} message_source A system variable that identifies the event source.
30
+ * @param {string} purpose A system variable that states the purpose of the event.
31
+ * @param {string} [ref_id] Custom unique value that identifies result of processed operation.
32
+ * @param {boolean} [form_valid] Indicates wether or not the form is valid.
33
+ * @param {Array<string>} [invalid_fields] Names of form fields with invalid data.
34
+ * @param {Array<string>} [invalid_showed_fields] Names of invalid form fields which are already displaying the error.
35
+ * @param {Partial<Record<CardValidatorValue | GenericValidatorValue, Array<string>>>} [validators] Object containing validator identifiers as keys and the fields subject to that validator as an array of form field names.
36
+ * See list of available [Generic Vallidators]{@link GENERIC_VALIDATORS} and [Card Validators]{@link CARD_VALIDATORS},
37
+ */
38
+ /**
39
+ * Contains basic information associated with the event and additional meta data
40
+ * specific to the event. E.g., card info, gateway info, etc.
41
+ *
42
+ * @interface IEventMetaData
43
+ *
44
+ * @param {string} event The name of the event.
45
+ * @param {string} purpose A system variable that states the purpose of the event.
46
+ * @param {string} message_source A system variable that identifies the event source.
47
+ * @param {string} [ref_id] Custom unique value that identifies result of processed operation.
48
+ * @param {string} configuration_token Token received from our API with widget data
49
+ * @param {string} type Payment type 'card', 'bank_account'
50
+ * @param {string} gateway_type Gateway type
51
+ * @param {string} [card_number_last4] Last 4 digit of your card
52
+ * @param {string} [card_scheme] Card scheme, e.g., (Visa, Mastercard and American Express (AmEx))
53
+ * @param {number} [card_number_length] Card number length
54
+ * @param {string} [account_name] Bank account account name
55
+ * @param {string} [account_number] Bank account account number
56
+ * */
57
+ /**
58
+ * Interface of data from event.
59
+ * @interface IEventAfterLoadData
60
+ *
61
+ * @param {string} event The name of the event.
62
+ * @param {string} purpose A system variable that states the purpose of the event.
63
+ * @param {string} message_source A system variable that identifies the event source.
64
+ * @param {string} [ref_id] Custom unique value that identifies result of processed operation.
65
+ * */
66
+ /**
67
+ * Interface of data from event.
68
+ * @interface IEventFinishData
69
+ *
70
+ * @param {string} event The name of the event.
71
+ * @param {string} purpose A system variable that states the purpose of the event.
72
+ * @param {string} message_source A system variable that identifies the event source.
73
+ * @param {string} [ref_id] Custom unique value that identifies result of processed operation.
74
+ * @param {string} payment_source One time token. Result from this endpoint [API docs](https://docs.paydock.com/#tokens)
75
+ * */
76
+ /**
77
+ * List of available event's name
78
+ * @const EVENT
79
+ *
80
+ * @type {object}
81
+ * @param {string} AFTER_LOAD=afterLoad
82
+ * @param {string} SUBMIT=submit
83
+ * @param {string} FINISH=finish
84
+ * @param {string} VALIDATION=validation
85
+ * @param {string} VALIDATION_ERROR=validationError
86
+ * @param {string} SYSTEM_ERROR=systemError
87
+ * @param {string} META_CHANGE=metaChange
88
+ * @param {string} RESIZE=resize
89
+ */
90
+ /**
91
+ * List of available event's name
92
+ * @const VAULT_DISPLAY_EVENT
93
+ *
94
+ * @type {object}
95
+ * @param {string} AFTER_LOAD=afterLoad
96
+ * @param {string} SYSTEM_ERROR=system_error
97
+ * @param {string} CVV_SECURE_CODE_REQUESTED=cvv_secure_code_requested
98
+ * @param {string} CARD_NUMBER_SECURE_CODE_REQUESTED=card_number_secure_code_requested
99
+ * @param {string} ACCESS_FORBIDDEN=access_forbidden
100
+ * @param {string} SESSION_EXPIRED=systemError
101
+ * @param {string} SYSTEM_ERROR=session_expired
102
+ * @param {string} OPERATION_FORBIDDEN=operation_forbidden
103
+ */
104
+ /**
105
+ * Class HtmlMultiWidget include method for working with html
106
+ * @constructor
107
+ * @extends MultiWidget
108
+ *
109
+ * @param {string} selector - Selector of html element. Container for widget
110
+ * @param {string} publicKey - PayDock users public key
111
+ * @param {(Configuration | string | Configuration[] | string[])} conf - exemplar[s] Configuration class OR configuration token
112
+ * @example
113
+ * var widget = new MultiWidget('#widget', 'publicKey','configurationToken'); // With a pre-created configuration token
114
+ *
115
+ * var widget = new MultiWidget('#widget', 'publicKey',['configurationToken', 'configurationToken2']); // With pre-created configuration tokens
116
+ *
117
+ * var widget = new MultiWidget('#widget', 'publicKey', new Configuration('gatewayId')); With Configuration
118
+ *
119
+ * var widget = new MultiWidget('#widget', 'publicKey',[ With Configurations
120
+ * Configuration(), // default gateway_id,
121
+ * Configuration('not_configured'), // without gateway,
122
+ * Configuration('gatewayId'),
123
+ * Configuration('gatewayId', 'bank_account')
124
+ * ]);
125
+ */
126
+ declare class HtmlMultiWidget extends MultiWidget {
127
+ protected container: Container;
128
+ protected iFrame: IFrame;
129
+ protected triggerElement: Trigger;
130
+ protected validationData: IFormValidation;
131
+ /** @constructs */ constructor(selector: string, publicKey: string, conf: any);
132
+ /**
133
+ * Loads the widget.
134
+ *
135
+ * Calling this method results in an iframe element being inserted and rendered in the DOM.
136
+ */
137
+ load(): void;
138
+ /**
139
+ * Registers a form validation callback for validation events.
140
+ */
141
+ protected afterLoad(): void;
142
+ /**
143
+ * Listen to events of widget
144
+ *
145
+ * @example
146
+ *
147
+ * ```javascript
148
+ * widget.on('form_submit', function (data) {
149
+ * console.log(data);
150
+ * });
151
+ * ```
152
+ *
153
+ * @example
154
+ *
155
+ * ```javascript
156
+ * widget.on('form_submit').then(function (data) {
157
+ * console.log(data);
158
+ * });
159
+ * ```
160
+ *
161
+ * @typedef {(data: IEventData | IEventMetaData | IEventFinishData | IFormValidation) => void} EventListenerCallback
162
+ *
163
+ * @param {string} eventName - The name of the event that should be listened. Available event names [EVENT]{@link EVENT}.
164
+ * @param {EventListenerCallback} [cb] - A function to be invoked whenever the event occurs.
165
+ *
166
+ * @return {Promise<IEventData | IEventMetaData | IEventFinishData | IFormValidation> | void}
167
+ */
168
+ on(eventName: string): Promise<IEventData | IEventMetaData | IEventFinishData | IFormValidation>;
169
+ on(eventName: string, cb: (data: IEventData | IEventMetaData | IEventFinishData | IFormValidation) => void): any;
170
+ /**
171
+ * Registers callback that will be invoked for every trigger.
172
+ *
173
+ * @param {'submit_form' | 'tab'} triggers - The Widget element identifier that caused the trigger.
174
+ * @param {ITriggerData} data - Data that will be sent to the widget when the trigger occurs.
175
+ */
176
+ trigger(triggerName: string, data?: ITriggerData): void;
177
+ /**
178
+ * Gets a reference to the form current validation state.
179
+ *
180
+ * !Warning: do not directly modify the values of the returned object.
181
+ *
182
+ * @return {IFormValidation} Form validation object
183
+ */
184
+ getValidationState(): IFormValidation;
185
+ /**
186
+ * Checks if a given form is valid.
187
+ *
188
+ * A form is valid if all form fields are valid.
189
+ *
190
+ * @return {boolean} Indicates wether or not form is valid.
191
+ */
192
+ isValidForm(): boolean;
193
+ /**
194
+ * Using this method you can check if a specific form field is invalid
195
+ *
196
+ * @param {string} field - Field name
197
+ * @return {boolean} Field is invalid
198
+ */
199
+ isInvalidField(field?: string): boolean;
200
+ /**
201
+ * Checks if a given form field is displaying an error.
202
+ *
203
+ * @param {string} field - The form field name
204
+ *
205
+ * @return {boolean} Indicates wether or not the Error message is being displayed on the associated field.
206
+ */
207
+ isFieldErrorShowed(field?: string): boolean;
208
+ /**
209
+ * Checks if a given form field is valid or invalid by name.
210
+ *
211
+ * @param {string} field - The form field name
212
+ * @param validator - The name of the validator.
213
+ *
214
+ * @return {boolean} Indicates wether or not the field is invalid based on validator intepretation.
215
+ */
216
+ isInvalidFieldByValidator(field: string, validator: ValidatorFieldsMapKey): boolean;
217
+ /**
218
+ * Hides the widget.
219
+ *
220
+ * E.g., use this method to hide the widget after it loads.
221
+ *
222
+ * @param {boolean} [saveSize=false] Wether the original iframe element size should be saved before being hidden.
223
+ */
224
+ hide(saveSize: boolean): void;
225
+ /**
226
+ * Shows the widget.
227
+ *
228
+ * E.g., use this method to show the widget after it was explicitly hidden.
229
+ */
230
+ show(): void;
231
+ /**
232
+ * Reloads the widget.
233
+ */
234
+ reload(): void;
235
+ /**
236
+ * Hides the specified Widget elements by their identifier.
237
+ *
238
+ * @example
239
+ *
240
+ * ```javascript
241
+ * widget.hideElements(['submit_button', 'email']);
242
+ * ```
243
+ *
244
+ * @param {string[]} elements - List of element which can be hidden [ELEMENT]{@link ELEMENT} || [FORM_FIELD]{@link FORM_FIELD}
245
+ */
246
+ hideElements(elements: string[]): void;
247
+ /**
248
+ * Shows the specified Widget elements by their identifier.
249
+ *
250
+ * @example
251
+ *
252
+ * ```javascript
253
+ * widget.showElements(['submit_button', 'email']);
254
+ * ```
255
+ *
256
+ * @param {string[]} elements - List of elements which can be showed [ELEMENT]{@link ELEMENT} || [FORM_FIELD]{@link FORM_FIELD}
257
+ */
258
+ showElements(elements: string[]): void;
259
+ /**
260
+ * Updates the form field values inside the widget.
261
+ *
262
+ * @example
263
+ *
264
+ * ```javascript
265
+ * widget.updateFormValues({
266
+ * email: 'predefined@email.com',
267
+ * card_name: 'Houston'
268
+ * });
269
+ *```
270
+ *
271
+ * @param {IFormValues} fieldValues - Fields with values
272
+ */
273
+ updateFormValues(fieldValues: IFormValues): void;
274
+ /**
275
+ * Updates a single form field values inside the widget by the form field name.
276
+ *
277
+ * @example
278
+ *
279
+ * ```javascript
280
+ * widget.updateFormValue("card_name", "John Doe");
281
+ *```
282
+ *
283
+ * @param {string} key - The form field name
284
+ * @param {string} value - The form field value
285
+ */
286
+ updateFormValue(key: string, value: string): void;
287
+ /**
288
+ * Inserts the event data (after finish event) onto the input field associated with the provided CSS selector.
289
+ *
290
+ * @param {string} selector - A CSS selector. E.g., ".my-class", "#my-id", or others
291
+ * @param {string} dataType - The data type of IEventData object.
292
+ */
293
+ onFinishInsert(selector: string, dataType: string): void;
294
+ /**
295
+ * Intercepts a form submission and delegates processing to the widget.
296
+ *
297
+ * An simplified example of the process:
298
+ * - User clicks submit button in your form
299
+ * - This implicitly triggers a submission to the widget
300
+ * - The widget submits your form
301
+ *
302
+ * @note The widget's submit button will be hidden.
303
+ *
304
+ * @param {string} selector - css selector of your form
305
+ *
306
+ * @example
307
+ *
308
+ * ```html
309
+ * <body>
310
+ * <form id="myForm">
311
+ * <input name="amount">
312
+ * <button type="submit">Submit</button>
313
+ * </form>
314
+ * <script>
315
+ * widget.interceptSubmitForm('#myForm');
316
+ * </script>
317
+ * </body>
318
+ * ```
319
+ */
320
+ interceptSubmitForm(selector: string): void;
321
+ /**
322
+ * This method hides a submit button and automatically execute form submit
323
+ */
324
+ useCheckoutAutoSubmit(): void;
325
+ /**
326
+ * Use this method for resize iFrame according content height
327
+ *
328
+ * @example
329
+ *
330
+ * ```javascript
331
+ * widget.useAutoResize();
332
+ *```
333
+ */
334
+ useAutoResize(): void;
335
+ }
336
+ export { HtmlMultiWidget };
337
+ //# sourceMappingURL=html-multi-widget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html-multi-widget.d.ts","sourceRoot":"","sources":["../../src/widget/html-multi-widget.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAsB,KAAK,eAAe,EAAE,KAAK,WAAW,EAA0C,KAAK,qBAAqB,EAAC,MAAM,qBAAqB,CAAC;AACpK,OAAO,EAAE,KAAK,YAAY,EAAW,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAI5E,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,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;IACvB,oBAAoB,CAAC,EAAE,MAAM,CAAA;CAChC;AAGD;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;;;;;;;;KAkBK;AAGL;;;;;;;;KAQK;AAGL;;;;;;;;;KASK;AAGL;;;;;;;;;;;;;GAaG;AAGH;;;;;;;;;;;;;GAaG;AAGH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,cAAM,eAAgB,SAAQ,WAAW;IAErC,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAC/B,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC;IAClC,SAAS,CAAC,cAAc,EAAE,eAAe,CAAM;IAE/C,kBAAkB,aACN,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG;IAO1D;;;;OAIG;IACI,IAAI;IAkBX;;OAEG;IACH,SAAS,CAAC,SAAS;IAMnB;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACI,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,cAAc,GAAG,gBAAgB,GAAG,eAAe,CAAC;IAChG,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,UAAU,GAAG,cAAc,GAAG,gBAAgB,GAAG,eAAe,KAAK,IAAI;IAQjH;;;;;OAKG;IACI,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,GAAE,YAAiB;IAI3D;;;;;;OAMG;IACI,kBAAkB,IAAI,eAAe;IAI5C;;;;;;OAMG;IACI,WAAW,IAAI,OAAO;IAI7B;;;;;OAKG;IACI,cAAc,CAAC,KAAK,SAAK,GAAG,OAAO;IAO1C;;;;;;OAMG;IACI,kBAAkB,CAAC,KAAK,SAAK,GAAG,OAAO;IAO9C;;;;;;;OAOG;IACI,yBAAyB,CAAC,KAAK,QAAK,EAAE,SAAS,EAAE,qBAAqB,GAAG,OAAO;IAgBvF;;;;;;OAMG;IACI,IAAI,CAAC,QAAQ,EAAE,OAAO;IAI7B;;;;OAIG;IACI,IAAI;IAIX;;OAEG;IACI,MAAM;IAKb;;;;;;;;;;OAUG;IACI,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE;IAkBtC;;;;;;;;;;OAUG;IACI,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE;IAmBtC;;;;;;;;;;;;;OAaG;IACI,gBAAgB,CAAC,WAAW,EAAE,WAAW;IAOhD;;;;;;;;;;;OAWG;IACI,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAWjD;;;;;OAKG;IACI,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAOxD;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACI,mBAAmB,CAAC,QAAQ,EAAE,MAAM;IAY3C;;OAEG;IACI,qBAAqB;IAa5B;;;;;;;;OAQG;IACI,aAAa;CAUvB;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1,107 @@
1
+ import type { IBamboraMeta, IFormElement, IPayPalMeta } from '../components/param';
2
+ import { type PURPOSE } from './configuration';
3
+ import { HtmlMultiWidget } from './html-multi-widget';
4
+ /**
5
+ * Class Widget include method for working on html and include extended by HtmlMultiWidget methods
6
+ * @constructor
7
+ * @extends HtmlMultiWidget
8
+ * @extends MultiWidget
9
+ *
10
+ * @example
11
+ * var widget = new HtmlWidget('#widget', 'publicKey', 'gatewayID'); // short
12
+ *
13
+ * var widget = new HtmlWidget('#widget', 'publicKey', 'gatewayID', 'bank_account', 'payment_source'); // extend
14
+ *
15
+ * var widget = new HtmlWidget('#widget', 'publicKey', 'not_configured'); // without gateway
16
+ *
17
+ * @param {string} selector - Selector of html element. Container for widget
18
+ * @param {string} publicKey - PayDock users public key
19
+ * @param {string} [gatewayID=default] - ID of a gateway connected to PayDock. By default or if put 'default', it will use the selected default gateway. If put 'not_configured', it won’t use gateway to create downstream token.
20
+ * @param {string} [paymentType=card] - Type of payment source which shows in widget form. Available parameters : “card”, “bank_account”.
21
+ * @param {string} [purpose=payment_source] - Purpose of widget form. Available parameters: ‘payment_source’, ‘card_payment_source_with_cvv’, ‘card_payment_source_without_cvv’
22
+ */
23
+ declare class HtmlWidget extends HtmlMultiWidget {
24
+ /** @constructs */ constructor(selector: string, publicKey: string, gatewayID?: string, paymentType?: string, purpose?: PURPOSE);
25
+ /**
26
+ * Destination, where customer will receive all successful responses.
27
+ * Response will contain “data” object with “payment_source” or other parameters, in depending on 'purpose'
28
+ *
29
+ * @example
30
+ * widget.setWebHookDestination('http://google.com');
31
+ *
32
+ * @param {string} url - Your endpoint for post request.
33
+ */
34
+ setWebHookDestination(url: string): void;
35
+ /**
36
+ * URL to which the Customer will be redirected to after the success finish
37
+ *
38
+ * @example
39
+ * widget.setSuccessRedirectUrl('google.com/search?q=success');
40
+ *
41
+ * @param {string} url
42
+ */
43
+ setSuccessRedirectUrl(url: string): void;
44
+ /**
45
+ * URL to which the Customer will be redirected to if an error is triggered in the process of operation
46
+ *
47
+ * @example
48
+ * widget.setErrorRedirectUrl('google.com/search?q=error');
49
+ *
50
+ * @param {string} url
51
+ */
52
+ setErrorRedirectUrl(url: string): void;
53
+ /**
54
+ * Set list with widget form field, which will be shown in form. Also you can set the required validation for these fields
55
+ *
56
+ * @example
57
+ * widget.setFormFields(['phone', 'email', 'first_name*']);
58
+ *
59
+ * @param {string[]} fields - name of fields which can be shown in a widget.
60
+ * If after a name of a field, you put “*”, this field will be required on client-side. (For validation, you can specify any fields, even those that are shown by default: card_number, expiration, etc... ) [FORM_FIELD]{@link FORM_FIELD}
61
+ */
62
+ setFormFields(fields: string[]): void;
63
+ /**
64
+ * The method to set the full configuration for the all specific form elements (visibility, required, label, placeholder, value)
65
+ * You can also use the other method for the partial configuration like: setFormFields, setFormValues, setFormPlaceholder, setFormLabel
66
+ *
67
+ * @example
68
+ * widget.setFormElements([
69
+ * {
70
+ * field: 'card_name*',
71
+ * placeholder: 'Input your card holder name...',
72
+ * label: 'Card Holder Name',
73
+ * value: 'Houston',
74
+ * },
75
+ * {
76
+ * field: 'email',
77
+ * placeholder: 'Input your email, like test@example.com',
78
+ * label: 'Email for the receipt',
79
+ * value: 'predefined@email.com',
80
+ * },
81
+ * ])
82
+ *
83
+ * @param { Object[] } elements - List of elements
84
+ * @param { string } elements[].field - Field name of element. If after a name of a field, you put “*”, this field will be required on client-side. (For validation, you can specify any fields, even those that are shown by default: card_number, expiration, etc... ) [FORM_FIELD]{@link FORM_FIELD}
85
+ * @param { string } elements[].placeholder - Set custom placeholders in form fields
86
+ * @param { string } elements[].label - Set a custom labels near the form field
87
+ * @param { string } elements[].value - Set predefined values for the form field
88
+ */
89
+ setFormElements(elements: IFormElement[]): void;
90
+ setFormElement(element: IFormElement): void;
91
+ /**
92
+ * The method to set meta information for the checkout page
93
+ *
94
+ * @example
95
+ * config.setMeta({
96
+ brand_name: 'paydock',
97
+ reference: '15',
98
+ email: 'wault@paydock.com'
99
+ });
100
+ *
101
+ * @param {IPayPalMeta | IBamboraMeta} object - data which can be shown on checkout page [IPayPalMeta]{@link IPayPalMeta} [IBamboraMeta]{@link IBamboraMeta}
102
+ */
103
+ setMeta(meta: IPayPalMeta | IBamboraMeta): void;
104
+ setGiftCardScheme(giftCardScheme: any, processingNetwork: any): void;
105
+ }
106
+ export { HtmlWidget };
107
+ //# sourceMappingURL=html-widget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html-widget.d.ts","sourceRoot":"","sources":["../../src/widget/html-widget.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACnF,OAAO,EAAiB,KAAK,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD;;;;;;;;;;;;;;;;;;GAkBG;AACH,cAAM,UAAW,SAAQ,eAAe;IACtC,kBAAkB,aAEhB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,SAAS,SAAY,EACrB,WAAW,CAAC,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,OAAO;IAOnB;;;;;;;;OAQG;IACI,qBAAqB,CAAC,GAAG,EAAE,MAAM;IAIxC;;;;;;;OAOG;IACI,qBAAqB,CAAC,GAAG,EAAE,MAAM;IAIxC;;;;;;;OAOG;IACI,mBAAmB,CAAC,GAAG,EAAE,MAAM;IAItC;;;;;;;;OAQG;IACI,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE;IAIrC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACI,eAAe,CAAC,QAAQ,EAAE,YAAY,EAAE;IAMxC,cAAc,CAAC,OAAO,EAAE,YAAY;IAK3C;;;;;;;;;;;SAWK;IACE,OAAO,CAAC,IAAI,EAAE,WAAW,GAAG,YAAY;IAIxC,iBAAiB,CAAC,cAAc,KAAA,EAAE,iBAAiB,KAAA;CAG3D;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1,132 @@
1
+ export { MultiWidget } from './multi-widget';
2
+ export { HtmlMultiWidget } from './html-multi-widget';
3
+ export { HtmlWidget } from './html-widget';
4
+ export { Configuration, PAYMENT_TYPE, PURPOSE } from './configuration';
5
+ export { STYLABLE_ELEMENT, type IElementStyleInput, STYLABLE_ELEMENT_STATE } from './style';
6
+ /**
7
+ * Interface for PayPal checkout meta information
8
+ * @interface IPayPalMeta
9
+ *
10
+ * @param {string} [brand_name] A label that overrides the business name in the PayPal account on the PayPal hosted checkout pages
11
+ * @param {string} [cart_border_color] The HTML hex code for your principal identifying color
12
+ * @param {string} [reference] Merchant Customer Service number displayed on the PayPal pages
13
+ * @param {string} [email] The consumer’s email
14
+ * @param {string} [hdr_img] URL for the image you want to appear at the top left of the payment page
15
+ * @param {string} [logo_img] A URL to your logo image
16
+ * @param {string} [pay_flow_color] Sets the background color for the payment page. By default, the color is white.
17
+ * @param {string} [first_name] The consumer’s given names
18
+ * @param {string} [last_name] The consumer’s surname
19
+ * @param {string} [address_line] Street address
20
+ * @param {string} [address_line2] Second line of the address
21
+ * @param {string} [address_city] City
22
+ * @param {string} [address_state] State
23
+ * @param {string} [address_postcode] Postcode
24
+ * @param {string} [address_country] Country
25
+ * @param {string} [phone] The consumer’s phone number in E.164 international notation (Example: +12345678901)
26
+ * @param {boolean} [hide_shipping_address] Determines whether PayPal displays shipping address fields on the PayPal pages
27
+ */
28
+ /**
29
+ * Interface for classes that represent widget's styles.
30
+ * @interface IStyles
31
+ *
32
+ * @param {string} [background_color]
33
+ * @param {string} [text_color]
34
+ * @param {string} [border_color]
35
+ * @param {string} [button_color]
36
+ * @param {string} [error_color]
37
+ * @param {string} [success_color]
38
+ * @param {string} [font_size]
39
+ * @param {string} [font_family]
40
+ */
41
+ /**
42
+ * Interface for classes that represent widget's text.
43
+ * @interface ITexts
44
+ *
45
+ * @param {string} [title]
46
+ * @param {string} [title_h1]
47
+ * @param {string} [title_h2]
48
+ * @param {string} [title_h3]
49
+ * @param {string} [title_h4]
50
+ * @param {string} [title_h5]
51
+ * @param {string} [title_h6]
52
+ * @param {string} [finish_text]
53
+ * @param {string} [title_description]
54
+ * @param {string} [submit_button]
55
+ * @param {string} [submit_button_processing]
56
+ * */
57
+ /**
58
+ * Current constant include available type of fields which can be included to widget
59
+ * @const FORM_FIELD
60
+ * @type {object}
61
+ * @param {string} CARD_NAME=card_name
62
+ * @param {string} CARD_NUMBER=card_number
63
+ * @param {string} EXPIRE_MONTH=expire_month
64
+ * @param {string} EXPIRE_YEAR=expire_year
65
+ * @param {string} CARD_CCV=card_ccv
66
+ * @param {string} CARD_PIN=card_pin
67
+ * @param {string} ACCOUNT_NAME=account_name
68
+ * @param {string} ACCOUNT_BSB=account_bsb
69
+ * @param {string} ACCOUNT_NUMBER=account_number
70
+ * @param {string} ACCOUNT_ROUTING=account_routing
71
+ * @param {string} ACCOUNT_HOLDER_TYPE=account_holder_type
72
+ * @param {string} ACCOUNT_BANK_NAME=account_bank_name
73
+ * @param {string} ACCOUNT_TYPE=account_type
74
+ * @param {string} FIRST_NAME=first_name
75
+ * @param {string} LAST_NAME=last_name
76
+ * @param {string} EMAIL=email
77
+ * @param {string} PHONE=phone
78
+ * @param {string} PHONE2=phone2
79
+ * @param {string} ADDRESS_LINE1=address_line1
80
+ * @param {string} ADDRESS_LINE2=address_line2
81
+ * @param {string} ADDRESS_STATE=address_state
82
+ * @param {string} ADDRESS_COUNTRY=address_country
83
+ * @param {string} ADDRESS_CITY=address_city
84
+ * @param {string} ADDRESS_POSTCODE=address_postcode
85
+ * @param {string} ADDRESS_COMPANY=address_company
86
+ * */
87
+ /**
88
+ * List of available style params for widget
89
+ *
90
+ * @const STYLE
91
+ * @type {object}
92
+ * @param {string} BACKGROUND_COLOR=background_color
93
+ * @param {string} TEXT_COLOR=text_color
94
+ * @param {string} BORDER_COLOR=border_color
95
+ * @param {string} BUTTON_COLOR=button_color
96
+ * @param {string} ERROR_COLOR=error_color
97
+ * @param {string} SUCCESS_COLOR=success_color
98
+ * @param {string} FONT_SIZE=font_size
99
+ * @param {string} FONT_FAMILY=font_family
100
+ */
101
+ /**
102
+ * List of available text item params for widget
103
+ *
104
+ * @const TEXT
105
+ * @type {object}
106
+ * @param {string} TITLE=title
107
+ * @param {string} FINISH=finish_text
108
+ */
109
+ /**
110
+ * List of available params for hide elements
111
+ *
112
+ * @const ELEMENT
113
+ * @type {object}
114
+ * @param {string} SUBMIT_BUTTON=submit_button
115
+ * @param {string} TABS=tabs
116
+ */
117
+ /**
118
+ * The list of available parameters for showing card icons
119
+ * @const SUPPORTED_CARD_TYPES
120
+ * @type {object}
121
+ * @param {string} AMEX=amex
122
+ * @param {string} AUSBC=ausbc
123
+ * @param {string} DINERS=diners
124
+ * @param {string} DISCOVER=discover
125
+ * @param {string} JAPCB=japcb
126
+ * @param {string} LASER=laser
127
+ * @param {string} MASTERCARD=mastercard
128
+ * @param {string} SOLO=solo
129
+ * @param {string} VISA=visa
130
+ * @param {string} VISA_WHITE=visa_white
131
+ */
132
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/widget/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,KAAK,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAI5F;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;;;;;;;;;;;;GAYG;AAGH;;;;;;;;;;;;;;;KAeK;AAGL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA6BK;AAIL;;;;;;;;;;;;;GAaG;AAGH;;;;;;;GAOG;AAGH;;;;;;;GAOG;AAGH;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Interface for Bamboora meta information
3
+ * @interface IBamboraMeta
4
+ *
5
+ * @param {string} [customer_storage_number] Customer storage number
6
+ * @param {number} [tokenise_algorithm] Tokenise algorithm
7
+ */
8
+ //# sourceMappingURL=meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../src/widget/meta.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}