@paydock/client-sdk 1.104.3-beta → 1.105.1

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 (490) hide show
  1. package/.nvmrc +1 -0
  2. package/README.md +572 -290
  3. package/api.d.ts +1 -0
  4. package/api.js +1 -0
  5. package/bundles/widget.umd.js +9130 -8655
  6. package/bundles/widget.umd.min.js +1 -2
  7. package/canvas3ds.d.ts +1 -0
  8. package/canvas3ds.js +1 -0
  9. package/checkout-button.d.ts +1 -0
  10. package/checkout-button.js +1 -0
  11. package/inicialization-guide.md +7 -0
  12. package/{bundles/types → lib}/api/api-base.d.ts +1 -2
  13. package/lib/api/api-base.js +101 -0
  14. package/lib/api/api-base.js.map +1 -0
  15. package/{bundles/types → lib}/api/api-charge-internal.d.ts +0 -1
  16. package/lib/api/api-charge-internal.js +30 -0
  17. package/lib/api/api-charge-internal.js.map +1 -0
  18. package/{bundles/types → lib}/api/api-charge.d.ts +0 -1
  19. package/lib/api/api-charge.js +49 -0
  20. package/lib/api/api-charge.js.map +1 -0
  21. package/{bundles/types → lib}/api/api-internal.d.ts +0 -1
  22. package/lib/api/api-internal.js +13 -0
  23. package/lib/api/api-internal.js.map +1 -0
  24. package/{bundles/types → lib}/api/api-service-internal.d.ts +0 -1
  25. package/lib/api/api-service-internal.js +18 -0
  26. package/lib/api/api-service-internal.js.map +1 -0
  27. package/{bundles/types → lib}/api/api.d.ts +1 -2
  28. package/lib/api/api.js +62 -0
  29. package/lib/api/api.js.map +1 -0
  30. package/lib/api/index.d.ts +1 -0
  31. package/lib/api/index.js +2 -0
  32. package/lib/api/index.js.map +1 -0
  33. package/{bundles/types → lib}/canvas-3ds/canvas-3ds.d.ts +1 -2
  34. package/lib/canvas-3ds/canvas-3ds.js +157 -0
  35. package/lib/canvas-3ds/canvas-3ds.js.map +1 -0
  36. package/{bundles/types → lib}/canvas-3ds/index.d.ts +0 -1
  37. package/lib/canvas-3ds/index.js +2 -0
  38. package/lib/canvas-3ds/index.js.map +1 -0
  39. package/{bundles/types → lib}/canvas-3ds/services/gpayments-service.d.ts +0 -1
  40. package/lib/canvas-3ds/services/gpayments-service.js +181 -0
  41. package/lib/canvas-3ds/services/gpayments-service.js.map +1 -0
  42. package/{bundles/types → lib}/canvas-3ds/services/index.d.ts +0 -1
  43. package/lib/canvas-3ds/services/index.js +2 -0
  44. package/lib/canvas-3ds/services/index.js.map +1 -0
  45. package/{bundles/types → lib}/canvas-3ds/services/standalone3ds-service.d.ts +0 -1
  46. package/lib/canvas-3ds/services/standalone3ds-service.js +32 -0
  47. package/lib/canvas-3ds/services/standalone3ds-service.js.map +1 -0
  48. package/{bundles/types → lib}/checkout-button/afterpay/afterpay-checkout-button.d.ts +1 -2
  49. package/lib/checkout-button/afterpay/afterpay-checkout-button.js +50 -0
  50. package/lib/checkout-button/afterpay/afterpay-checkout-button.js.map +1 -0
  51. package/{bundles/types → lib}/checkout-button/afterpay/afterpay.runner.d.ts +0 -1
  52. package/lib/checkout-button/afterpay/afterpay.runner.js +41 -0
  53. package/lib/checkout-button/afterpay/afterpay.runner.js.map +1 -0
  54. package/{bundles/types → lib}/checkout-button/checkout-button.d.ts +1 -2
  55. package/{bundles/types → lib}/checkout-button/checkout-button.interface.d.ts +0 -1
  56. package/lib/checkout-button/checkout-button.interface.js +45 -0
  57. package/lib/checkout-button/checkout-button.interface.js.map +1 -0
  58. package/lib/checkout-button/checkout-button.js +266 -0
  59. package/lib/checkout-button/checkout-button.js.map +1 -0
  60. package/{bundles/types → lib}/checkout-button/checkout-contextual-handler.d.ts +0 -1
  61. package/lib/checkout-button/checkout-contextual-handler.js +75 -0
  62. package/lib/checkout-button/checkout-contextual-handler.js.map +1 -0
  63. package/{bundles/types → lib}/checkout-button/index.d.ts +1 -2
  64. package/lib/checkout-button/index.js +85 -0
  65. package/lib/checkout-button/index.js.map +1 -0
  66. package/{bundles/types → lib}/checkout-button/paypal/paypal-checkout-button.d.ts +1 -2
  67. package/lib/checkout-button/paypal/paypal-checkout-button.js +25 -0
  68. package/lib/checkout-button/paypal/paypal-checkout-button.js.map +1 -0
  69. package/{bundles/types → lib}/checkout-button/paypal/paypal.runner.d.ts +0 -1
  70. package/lib/checkout-button/paypal/paypal.runner.js +14 -0
  71. package/lib/checkout-button/paypal/paypal.runner.js.map +1 -0
  72. package/{bundles/types → lib}/checkout-button/runner/base.runner.d.ts +3 -4
  73. package/lib/checkout-button/runner/base.runner.js +13 -0
  74. package/lib/checkout-button/runner/base.runner.js.map +1 -0
  75. package/{bundles/types → lib}/checkout-button/runner/contextual.runner.d.ts +1 -2
  76. package/lib/checkout-button/runner/contextual.runner.js +40 -0
  77. package/lib/checkout-button/runner/contextual.runner.js.map +1 -0
  78. package/{bundles/types → lib}/checkout-button/runner/index.d.ts +0 -1
  79. package/lib/checkout-button/runner/index.js +11 -0
  80. package/lib/checkout-button/runner/index.js.map +1 -0
  81. package/{bundles/types → lib}/checkout-button/runner/popup.runner.d.ts +1 -2
  82. package/lib/checkout-button/runner/popup.runner.js +68 -0
  83. package/lib/checkout-button/runner/popup.runner.js.map +1 -0
  84. package/{bundles/types → lib}/checkout-button/runner/redirect.runner.d.ts +1 -2
  85. package/lib/checkout-button/runner/redirect.runner.js +15 -0
  86. package/lib/checkout-button/runner/redirect.runner.js.map +1 -0
  87. package/{bundles/types → lib}/checkout-button/zipmoney/zipmoney-checkout-button.d.ts +1 -2
  88. package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js +64 -0
  89. package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js.map +1 -0
  90. package/{bundles/types → lib}/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts +1 -2
  91. package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js +78 -0
  92. package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js.map +1 -0
  93. package/{bundles/types → lib}/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts +1 -2
  94. package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js +49 -0
  95. package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js.map +1 -0
  96. package/{bundles/types → lib}/checkout-button/zipmoney/zipmoney.config.d.ts +0 -1
  97. package/lib/checkout-button/zipmoney/zipmoney.config.js +4 -0
  98. package/lib/checkout-button/zipmoney/zipmoney.config.js.map +1 -0
  99. package/{bundles/types → lib}/checkout-button/zipmoney/zipmoney.runner.d.ts +1 -2
  100. package/lib/checkout-button/zipmoney/zipmoney.runner.js +23 -0
  101. package/lib/checkout-button/zipmoney/zipmoney.runner.js.map +1 -0
  102. package/{bundles/types → lib}/checkout-button/zipmoney/zipmoney.types.d.ts +0 -1
  103. package/lib/checkout-button/zipmoney/zipmoney.types.js +1 -0
  104. package/lib/checkout-button/zipmoney/zipmoney.types.js.map +1 -0
  105. package/{bundles/types → lib}/components/ability-guard.d.ts +0 -1
  106. package/lib/components/ability-guard.js +44 -0
  107. package/lib/components/ability-guard.js.map +1 -0
  108. package/{bundles/types → lib}/components/background.d.ts +0 -1
  109. package/lib/components/background.js +193 -0
  110. package/lib/components/background.js.map +1 -0
  111. package/{bundles/types → lib}/components/container.d.ts +1 -1
  112. package/lib/components/container.js +63 -0
  113. package/lib/components/container.js.map +1 -0
  114. package/{bundles/types → lib}/components/dispatcher.d.ts +1 -2
  115. package/lib/components/dispatcher.js +39 -0
  116. package/lib/components/dispatcher.js.map +1 -0
  117. package/{bundles/types → lib}/components/element-style.d.ts +1 -2
  118. package/lib/components/element-style.js +52 -0
  119. package/lib/components/element-style.js.map +1 -0
  120. package/{bundles/types → lib}/components/flypay-iframe-event.d.ts +0 -1
  121. package/lib/components/flypay-iframe-event.js +28 -0
  122. package/lib/components/flypay-iframe-event.js.map +1 -0
  123. package/{bundles/types/components/form-interceptor.d.ts → lib/components/form-Interceptor.d.ts} +0 -1
  124. package/lib/components/form-Interceptor.js +38 -0
  125. package/lib/components/form-Interceptor.js.map +1 -0
  126. package/{bundles/types → lib}/components/http-core.d.ts +0 -1
  127. package/lib/components/http-core.js +57 -0
  128. package/lib/components/http-core.js.map +1 -0
  129. package/{bundles/types → lib}/components/iframe-event.d.ts +15 -13
  130. package/lib/components/iframe-event.js +75 -0
  131. package/lib/components/iframe-event.js.map +1 -0
  132. package/{bundles/types → lib}/components/iframe.d.ts +0 -1
  133. package/lib/components/iframe.js +62 -0
  134. package/lib/components/iframe.js.map +1 -0
  135. package/{bundles/types → lib}/components/link.d.ts +1 -2
  136. package/lib/components/link.js +59 -0
  137. package/lib/components/link.js.map +1 -0
  138. package/{bundles/types → lib}/components/loader.d.ts +0 -1
  139. package/lib/components/loader.js +234 -0
  140. package/lib/components/loader.js.map +1 -0
  141. package/{bundles/types → lib}/components/param.d.ts +9 -12
  142. package/lib/components/param.js +147 -0
  143. package/lib/components/param.js.map +1 -0
  144. package/{bundles/types → lib}/components/popup.d.ts +0 -1
  145. package/lib/components/popup.js +104 -0
  146. package/lib/components/popup.js.map +1 -0
  147. package/{bundles/types → lib}/components/storage-dispatcher.d.ts +0 -1
  148. package/lib/components/storage-dispatcher.js +75 -0
  149. package/lib/components/storage-dispatcher.js.map +1 -0
  150. package/{bundles/types → lib}/components/trigger.d.ts +0 -1
  151. package/lib/components/trigger.js +49 -0
  152. package/lib/components/trigger.js.map +1 -0
  153. package/{bundles/types → lib}/components/vault-display-iframe-event.d.ts +0 -1
  154. package/lib/components/vault-display-iframe-event.js +27 -0
  155. package/lib/components/vault-display-iframe-event.js.map +1 -0
  156. package/{bundles/types → lib}/components/wallet-background.d.ts +2 -2
  157. package/lib/components/wallet-background.js +63 -0
  158. package/lib/components/wallet-background.js.map +1 -0
  159. package/{bundles/types → lib}/components/wallet-trigger.d.ts +0 -1
  160. package/lib/components/wallet-trigger.js +27 -0
  161. package/lib/components/wallet-trigger.js.map +1 -0
  162. package/{bundles/types/configs/env/environment.paydock.d.ts → lib/configs/env/env.d.ts} +8 -5
  163. package/lib/configs/env/env.js +117 -0
  164. package/lib/configs/env/env.js.map +1 -0
  165. package/{bundles/types → lib}/configs/sdk.d.ts +2 -3
  166. package/lib/configs/sdk.js +16 -0
  167. package/lib/configs/sdk.js.map +1 -0
  168. package/lib/constants/validators.d.ts +44 -0
  169. package/lib/constants/validators.js +42 -0
  170. package/lib/constants/validators.js.map +1 -0
  171. package/{bundles/types → lib}/external-checkout/builder.d.ts +0 -1
  172. package/lib/external-checkout/builder.js +45 -0
  173. package/lib/external-checkout/builder.js.map +1 -0
  174. package/{bundles/types → lib}/external-checkout/checker.d.ts +0 -1
  175. package/lib/external-checkout/checker.js +22 -0
  176. package/lib/external-checkout/checker.js.map +1 -0
  177. package/lib/external-checkout/index.d.ts +2 -0
  178. package/lib/external-checkout/index.js +3 -0
  179. package/lib/external-checkout/index.js.map +1 -0
  180. package/{bundles/types → lib}/helper/access-token.d.ts +0 -1
  181. package/lib/helper/access-token.js +44 -0
  182. package/lib/helper/access-token.js.map +1 -0
  183. package/{bundles/types → lib}/helper/browser.d.ts +0 -1
  184. package/lib/helper/browser.js +79 -0
  185. package/lib/helper/browser.js.map +1 -0
  186. package/{bundles/types → lib}/helper/event-emitter.d.ts +0 -1
  187. package/lib/helper/event-emitter.js +23 -0
  188. package/lib/helper/event-emitter.js.map +1 -0
  189. package/{bundles/types → lib}/helper/event.d.ts +0 -1
  190. package/lib/helper/event.js +23 -0
  191. package/lib/helper/event.js.map +1 -0
  192. package/{bundles/types → lib}/helper/ms.d.ts +0 -1
  193. package/lib/helper/ms.js +32 -0
  194. package/lib/helper/ms.js.map +1 -0
  195. package/{bundles/types → lib}/helper/object.d.ts +0 -1
  196. package/lib/helper/object.js +6 -0
  197. package/lib/helper/object.js.map +1 -0
  198. package/{bundles/types → lib}/helper/url.d.ts +0 -1
  199. package/lib/helper/url.js +11 -0
  200. package/lib/helper/url.js.map +1 -0
  201. package/{bundles/types → lib}/helper/uuid.d.ts +0 -1
  202. package/lib/helper/uuid.js +26 -0
  203. package/lib/helper/uuid.js.map +1 -0
  204. package/lib/index.d.ts +15 -0
  205. package/lib/index.js +15 -0
  206. package/lib/index.js.map +1 -0
  207. package/{bundles/types → lib}/payment-source/builder.d.ts +0 -1
  208. package/lib/payment-source/builder.js +49 -0
  209. package/lib/payment-source/builder.js.map +1 -0
  210. package/{bundles/types → lib}/payment-source/index.d.ts +0 -1
  211. package/lib/payment-source/index.js +2 -0
  212. package/lib/payment-source/index.js.map +1 -0
  213. package/{bundles/types → lib}/payment-source-widget/html-payment-source-widget.d.ts +17 -14
  214. package/lib/payment-source-widget/html-payment-source-widget.js +172 -0
  215. package/lib/payment-source-widget/html-payment-source-widget.js.map +1 -0
  216. package/{bundles/types → lib}/payment-source-widget/index.d.ts +0 -1
  217. package/lib/payment-source-widget/index.js +35 -0
  218. package/lib/payment-source-widget/index.js.map +1 -0
  219. package/{bundles/types → lib}/payment-source-widget/interfaces.d.ts +0 -1
  220. package/lib/payment-source-widget/interfaces.js +2 -0
  221. package/lib/payment-source-widget/interfaces.js.map +1 -0
  222. package/{bundles/types → lib}/payment-source-widget/payment-source-widget.d.ts +1 -2
  223. package/lib/payment-source-widget/payment-source-widget.js +142 -0
  224. package/lib/payment-source-widget/payment-source-widget.js.map +1 -0
  225. package/{bundles/types → lib}/secure-remote-commerce/index.d.ts +0 -1
  226. package/lib/secure-remote-commerce/index.js +2 -0
  227. package/lib/secure-remote-commerce/index.js.map +1 -0
  228. package/{bundles/types → lib}/secure-remote-commerce/interfaces.d.ts +5 -6
  229. package/lib/secure-remote-commerce/interfaces.js +28 -0
  230. package/lib/secure-remote-commerce/interfaces.js.map +1 -0
  231. package/{bundles/types → lib}/secure-remote-commerce/providers/src-provider.d.ts +0 -1
  232. package/lib/secure-remote-commerce/providers/src-provider.js +1 -0
  233. package/lib/secure-remote-commerce/providers/src-provider.js.map +1 -0
  234. package/{bundles/types → lib}/secure-remote-commerce/providers/visa-src/helper.d.ts +0 -1
  235. package/lib/secure-remote-commerce/providers/visa-src/helper.js +36 -0
  236. package/lib/secure-remote-commerce/providers/visa-src/helper.js.map +1 -0
  237. package/{bundles/types → lib}/secure-remote-commerce/providers/visa-src/index.d.ts +0 -1
  238. package/lib/secure-remote-commerce/providers/visa-src/index.js +2 -0
  239. package/lib/secure-remote-commerce/providers/visa-src/index.js.map +1 -0
  240. package/{bundles/types → lib}/secure-remote-commerce/providers/visa-src/visa-src.d.ts +0 -1
  241. package/lib/secure-remote-commerce/providers/visa-src/visa-src.js +113 -0
  242. package/lib/secure-remote-commerce/providers/visa-src/visa-src.js.map +1 -0
  243. package/{bundles/types → lib}/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts +0 -1
  244. package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js +10 -0
  245. package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js.map +1 -0
  246. package/{bundles/types → lib}/secure-remote-commerce/secure-remote-commerce.d.ts +1 -2
  247. package/lib/secure-remote-commerce/secure-remote-commerce.js +239 -0
  248. package/lib/secure-remote-commerce/secure-remote-commerce.js.map +1 -0
  249. package/{bundles/types → lib}/vault-display-widget/index.d.ts +0 -1
  250. package/lib/vault-display-widget/index.js +14 -0
  251. package/lib/vault-display-widget/index.js.map +1 -0
  252. package/{bundles/types → lib}/vault-display-widget/vault-display-widget.d.ts +1 -2
  253. package/lib/vault-display-widget/vault-display-widget.js +99 -0
  254. package/lib/vault-display-widget/vault-display-widget.js.map +1 -0
  255. package/{bundles/types → lib}/wallet-buttons/afterpay.wallet-service.d.ts +0 -1
  256. package/lib/wallet-buttons/afterpay.wallet-service.js +152 -0
  257. package/lib/wallet-buttons/afterpay.wallet-service.js.map +1 -0
  258. package/{bundles/types → lib}/wallet-buttons/apple.wallet-service.d.ts +2 -1
  259. package/lib/wallet-buttons/apple.wallet-service.js +324 -0
  260. package/lib/wallet-buttons/apple.wallet-service.js.map +1 -0
  261. package/{bundles/types → lib}/wallet-buttons/flypay-v2.wallet-service.d.ts +9 -2
  262. package/lib/wallet-buttons/flypay-v2.wallet-service.js +165 -0
  263. package/lib/wallet-buttons/flypay-v2.wallet-service.js.map +1 -0
  264. package/{bundles/types → lib}/wallet-buttons/flypay.wallet-service.d.ts +0 -1
  265. package/lib/wallet-buttons/flypay.wallet-service.js +117 -0
  266. package/lib/wallet-buttons/flypay.wallet-service.js.map +1 -0
  267. package/{bundles/types → lib}/wallet-buttons/google.wallet-service.d.ts +3 -1
  268. package/lib/wallet-buttons/google.wallet-service.js +301 -0
  269. package/lib/wallet-buttons/google.wallet-service.js.map +1 -0
  270. package/lib/wallet-buttons/helpers/flypay-v2.helper.d.ts +3 -0
  271. package/lib/wallet-buttons/helpers/flypay-v2.helper.js +151 -0
  272. package/lib/wallet-buttons/helpers/flypay-v2.helper.js.map +1 -0
  273. package/lib/wallet-buttons/index.d.ts +127 -0
  274. package/lib/wallet-buttons/index.js +128 -0
  275. package/lib/wallet-buttons/index.js.map +1 -0
  276. package/{bundles/types → lib}/wallet-buttons/interfaces.d.ts +3 -1
  277. package/lib/wallet-buttons/interfaces.js +1 -0
  278. package/lib/wallet-buttons/interfaces.js.map +1 -0
  279. package/{bundles/types → lib}/wallet-buttons/mastercard.wallet-service.d.ts +0 -1
  280. package/lib/wallet-buttons/mastercard.wallet-service.js +27 -0
  281. package/lib/wallet-buttons/mastercard.wallet-service.js.map +1 -0
  282. package/{bundles/types → lib}/wallet-buttons/paypal.wallet-service.d.ts +0 -1
  283. package/lib/wallet-buttons/paypal.wallet-service.js +144 -0
  284. package/lib/wallet-buttons/paypal.wallet-service.js.map +1 -0
  285. package/{bundles/types → lib}/wallet-buttons/stripe.wallet-service.d.ts +0 -1
  286. package/lib/wallet-buttons/stripe.wallet-service.js +100 -0
  287. package/lib/wallet-buttons/stripe.wallet-service.js.map +1 -0
  288. package/{bundles/types/wallet-buttons/wallet-cba-buttons.d.ts → lib/wallet-buttons/wallet-buttons.d.ts} +92 -115
  289. package/lib/wallet-buttons/wallet-buttons.js +479 -0
  290. package/lib/wallet-buttons/wallet-buttons.js.map +1 -0
  291. package/{bundles/types → lib}/wallet-buttons/wallet-service.d.ts +7 -1
  292. package/lib/wallet-buttons/wallet-service.js +60 -0
  293. package/lib/wallet-buttons/wallet-service.js.map +1 -0
  294. package/{bundles/types → lib}/widget/configuration.d.ts +2 -3
  295. package/lib/widget/configuration.js +260 -0
  296. package/lib/widget/configuration.js.map +1 -0
  297. package/lib/widget/html-multi-widget.d.ts +336 -0
  298. package/lib/widget/html-multi-widget.js +422 -0
  299. package/lib/widget/html-multi-widget.js.map +1 -0
  300. package/{bundles/types → lib}/widget/html-widget.d.ts +1 -2
  301. package/lib/widget/html-widget.js +127 -0
  302. package/lib/widget/html-widget.js.map +1 -0
  303. package/{bundles/types → lib}/widget/index.d.ts +1 -2
  304. package/lib/widget/index.js +132 -0
  305. package/lib/widget/index.js.map +1 -0
  306. package/{bundles/types → lib}/widget/meta.d.ts +0 -1
  307. package/lib/widget/meta.js +8 -0
  308. package/lib/widget/meta.js.map +1 -0
  309. package/{bundles/types → lib}/widget/multi-widget.d.ts +1 -2
  310. package/lib/widget/multi-widget.js +437 -0
  311. package/lib/widget/multi-widget.js.map +1 -0
  312. package/{bundles/types → lib}/widget/style.d.ts +0 -1
  313. package/lib/widget/style.js +204 -0
  314. package/lib/widget/style.js.map +1 -0
  315. package/package.json +42 -164
  316. package/payment-source-widget.d.ts +1 -0
  317. package/payment-source-widget.js +1 -0
  318. package/slate.md +136 -107
  319. package/tslint.json +129 -0
  320. package/typings/globals/@auspayplus/open-payments-checkout/index.d.ts +43 -0
  321. package/typings/globals/jasmine/index.d.ts +576 -0
  322. package/typings/globals/jasmine-ajax/index.d.ts +83 -0
  323. package/typings/globals/jquery/index.d.ts +3759 -0
  324. package/typings/index.d.ts +4 -0
  325. package/vault-display-widget.d.ts +1 -0
  326. package/vault-display-widget.js +1 -0
  327. package/vendors/zipmoney.d.ts +18 -0
  328. package/vendors/zipmoney.js +2 -0
  329. package/widget.d.ts +1 -0
  330. package/widget.js +1 -0
  331. package/bundles/index.cjs +0 -10674
  332. package/bundles/index.cjs.d.ts +0 -3163
  333. package/bundles/index.cjs.map +0 -1
  334. package/bundles/index.mjs +0 -10642
  335. package/bundles/index.mjs.d.ts +0 -3163
  336. package/bundles/index.mjs.map +0 -1
  337. package/bundles/types/api/api-base.d.ts.map +0 -1
  338. package/bundles/types/api/api-charge-internal.d.ts.map +0 -1
  339. package/bundles/types/api/api-charge.d.ts.map +0 -1
  340. package/bundles/types/api/api-internal.d.ts.map +0 -1
  341. package/bundles/types/api/api-service-internal.d.ts.map +0 -1
  342. package/bundles/types/api/api.d.ts.map +0 -1
  343. package/bundles/types/api/index.d.ts +0 -2
  344. package/bundles/types/api/index.d.ts.map +0 -1
  345. package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +0 -1
  346. package/bundles/types/canvas-3ds/index.d.ts.map +0 -1
  347. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +0 -1
  348. package/bundles/types/canvas-3ds/services/index.d.ts.map +0 -1
  349. package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +0 -1
  350. package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts.map +0 -1
  351. package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +0 -1
  352. package/bundles/types/checkout-button/checkout-button.d.ts.map +0 -1
  353. package/bundles/types/checkout-button/checkout-button.interface.d.ts.map +0 -1
  354. package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +0 -1
  355. package/bundles/types/checkout-button/index.d.ts.map +0 -1
  356. package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts.map +0 -1
  357. package/bundles/types/checkout-button/paypal/paypal.runner.d.ts.map +0 -1
  358. package/bundles/types/checkout-button/runner/base.runner.d.ts.map +0 -1
  359. package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +0 -1
  360. package/bundles/types/checkout-button/runner/index.d.ts.map +0 -1
  361. package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +0 -1
  362. package/bundles/types/checkout-button/runner/redirect.runner.d.ts.map +0 -1
  363. package/bundles/types/checkout-button/zipmoney/index.d.ts +0 -4
  364. package/bundles/types/checkout-button/zipmoney/index.d.ts.map +0 -1
  365. package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts.map +0 -1
  366. package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts.map +0 -1
  367. package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts.map +0 -1
  368. package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts.map +0 -1
  369. package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts.map +0 -1
  370. package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts.map +0 -1
  371. package/bundles/types/components/ability-guard.d.ts.map +0 -1
  372. package/bundles/types/components/background.d.ts.map +0 -1
  373. package/bundles/types/components/container.d.ts.map +0 -1
  374. package/bundles/types/components/dispatcher.d.ts.map +0 -1
  375. package/bundles/types/components/element-style.d.ts.map +0 -1
  376. package/bundles/types/components/flypay-iframe-event.d.ts.map +0 -1
  377. package/bundles/types/components/form-interceptor.d.ts.map +0 -1
  378. package/bundles/types/components/http-core.d.ts.map +0 -1
  379. package/bundles/types/components/iframe-event.d.ts.map +0 -1
  380. package/bundles/types/components/iframe.d.ts.map +0 -1
  381. package/bundles/types/components/link.d.ts.map +0 -1
  382. package/bundles/types/components/loader.d.ts.map +0 -1
  383. package/bundles/types/components/param.d.ts.map +0 -1
  384. package/bundles/types/components/popup.d.ts.map +0 -1
  385. package/bundles/types/components/storage-dispatcher.d.ts.map +0 -1
  386. package/bundles/types/components/trigger.d.ts.map +0 -1
  387. package/bundles/types/components/vault-display-iframe-event.d.ts.map +0 -1
  388. package/bundles/types/components/wallet-background.d.ts.map +0 -1
  389. package/bundles/types/components/wallet-trigger.d.ts.map +0 -1
  390. package/bundles/types/configs/env/environment.cba.d.ts +0 -29
  391. package/bundles/types/configs/env/environment.cba.d.ts.map +0 -1
  392. package/bundles/types/configs/env/environment.interface.d.ts +0 -12
  393. package/bundles/types/configs/env/environment.interface.d.ts.map +0 -1
  394. package/bundles/types/configs/env/environment.paydock.d.ts.map +0 -1
  395. package/bundles/types/configs/env/index.d.ts +0 -3
  396. package/bundles/types/configs/env/index.d.ts.map +0 -1
  397. package/bundles/types/configs/sdk.d.ts.map +0 -1
  398. package/bundles/types/external-checkout/builder.d.ts.map +0 -1
  399. package/bundles/types/external-checkout/checker.d.ts.map +0 -1
  400. package/bundles/types/external-checkout/index.d.ts +0 -3
  401. package/bundles/types/external-checkout/index.d.ts.map +0 -1
  402. package/bundles/types/helper/access-token.d.ts.map +0 -1
  403. package/bundles/types/helper/browser.d.ts.map +0 -1
  404. package/bundles/types/helper/event-emitter.d.ts.map +0 -1
  405. package/bundles/types/helper/event.d.ts.map +0 -1
  406. package/bundles/types/helper/ms.d.ts.map +0 -1
  407. package/bundles/types/helper/object.d.ts.map +0 -1
  408. package/bundles/types/helper/url.d.ts.map +0 -1
  409. package/bundles/types/helper/uuid.d.ts.map +0 -1
  410. package/bundles/types/index-cba.d.ts +0 -13
  411. package/bundles/types/index-cba.d.ts.map +0 -1
  412. package/bundles/types/index.d.ts +0 -14
  413. package/bundles/types/index.d.ts.map +0 -1
  414. package/bundles/types/payment-source/builder.d.ts.map +0 -1
  415. package/bundles/types/payment-source/index.d.ts.map +0 -1
  416. package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts.map +0 -1
  417. package/bundles/types/payment-source-widget/index.d.ts.map +0 -1
  418. package/bundles/types/payment-source-widget/interfaces.d.ts.map +0 -1
  419. package/bundles/types/payment-source-widget/payment-source-widget.d.ts.map +0 -1
  420. package/bundles/types/secure-remote-commerce/index.d.ts.map +0 -1
  421. package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +0 -1
  422. package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts.map +0 -1
  423. package/bundles/types/secure-remote-commerce/providers/visa-src/helper.d.ts.map +0 -1
  424. package/bundles/types/secure-remote-commerce/providers/visa-src/index.d.ts.map +0 -1
  425. package/bundles/types/secure-remote-commerce/providers/visa-src/visa-src.d.ts.map +0 -1
  426. package/bundles/types/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts.map +0 -1
  427. package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts.map +0 -1
  428. package/bundles/types/vault-display-widget/index.d.ts.map +0 -1
  429. package/bundles/types/vault-display-widget/vault-display-widget.d.ts.map +0 -1
  430. package/bundles/types/wallet-buttons/afterpay.wallet-service.d.ts.map +0 -1
  431. package/bundles/types/wallet-buttons/apple.wallet-service.d.ts.map +0 -1
  432. package/bundles/types/wallet-buttons/flypay-v2.wallet-service.d.ts.map +0 -1
  433. package/bundles/types/wallet-buttons/flypay.wallet-service.d.ts.map +0 -1
  434. package/bundles/types/wallet-buttons/google.wallet-service.d.ts.map +0 -1
  435. package/bundles/types/wallet-buttons/index-cba.d.ts +0 -2
  436. package/bundles/types/wallet-buttons/index-cba.d.ts.map +0 -1
  437. package/bundles/types/wallet-buttons/index.d.ts +0 -2
  438. package/bundles/types/wallet-buttons/index.d.ts.map +0 -1
  439. package/bundles/types/wallet-buttons/interfaces.d.ts.map +0 -1
  440. package/bundles/types/wallet-buttons/mastercard.wallet-service.d.ts.map +0 -1
  441. package/bundles/types/wallet-buttons/paypal.wallet-service.d.ts.map +0 -1
  442. package/bundles/types/wallet-buttons/stripe.wallet-service.d.ts.map +0 -1
  443. package/bundles/types/wallet-buttons/wallet-buttons.d.ts +0 -366
  444. package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +0 -1
  445. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +0 -1
  446. package/bundles/types/wallet-buttons/wallet-service.d.ts.map +0 -1
  447. package/bundles/types/widget/configuration.d.ts.map +0 -1
  448. package/bundles/types/widget/html-multi-widget.d.ts +0 -266
  449. package/bundles/types/widget/html-multi-widget.d.ts.map +0 -1
  450. package/bundles/types/widget/html-widget.d.ts.map +0 -1
  451. package/bundles/types/widget/index.d.ts.map +0 -1
  452. package/bundles/types/widget/meta.d.ts.map +0 -1
  453. package/bundles/types/widget/multi-widget.d.ts.map +0 -1
  454. package/bundles/types/widget/style.d.ts.map +0 -1
  455. package/bundles/widget.umd.js.d.ts +0 -3163
  456. package/bundles/widget.umd.js.map +0 -1
  457. package/bundles/widget.umd.js.min.d.ts +0 -3163
  458. package/bundles/widget.umd.min.js.map +0 -1
  459. package/docs/api-canvas3ds.md +0 -158
  460. package/docs/api-checkout-button.md +0 -912
  461. package/docs/api-examples.md +0 -65
  462. package/docs/api-ps-widget.md +0 -585
  463. package/docs/api-vault-display.md +0 -94
  464. package/docs/api-widget.md +0 -2444
  465. package/docs/api-wrapper.md +0 -78
  466. package/docs/canvas3ds-examples.md +0 -242
  467. package/docs/cba-header.md +0 -13
  468. package/docs/cba-license.md +0 -2
  469. package/docs/checkout-examples.md +0 -248
  470. package/docs/header.md +0 -15
  471. package/docs/html/layout.html +0 -78
  472. package/docs/html/marked.js +0 -23
  473. package/docs/html/style.css +0 -365
  474. package/docs/install/npm.content.md +0 -16
  475. package/docs/install/npm.example.md +0 -24
  476. package/docs/install/umd.content.md +0 -20
  477. package/docs/install/umd.example.md +0 -6
  478. package/docs/install.md +0 -43
  479. package/docs/install.readme.t.md +0 -17
  480. package/docs/install.slate.t.md +0 -17
  481. package/docs/license.md +0 -2
  482. package/docs/partials/header.hbs +0 -3
  483. package/docs/ps-examples.md +0 -129
  484. package/docs/secure-remote-commerce-examples.md +0 -258
  485. package/docs/secure-remote-commerce.md +0 -265
  486. package/docs/vault-display-example.md +0 -132
  487. package/docs/wallet-buttons-examples.md +0 -580
  488. package/docs/wallet-buttons.md +0 -424
  489. package/docs/wallet-cba-buttons-examples.md +0 -388
  490. package/docs/widget-examples.md +0 -134
@@ -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, 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=../../src/lib/widget/index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../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,EAAsB,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAIvF;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;;;;;;;;;;;;GAYG;AAGH;;;;;;;;;;;;;;;KAeK;AAGL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA6BK;AAIL;;;;;;;;;;;;;GAaG;AAGH;;;;;;;GAOG;AAGH;;;;;;;GAOG;AAGH;;;;;;;;;;;;;;GAcG"}
@@ -5,4 +5,3 @@
5
5
  * @param {string} [customer_storage_number] Customer storage number
6
6
  * @param {number} [tokenise_algorithm] Tokenise algorithm
7
7
  */
8
- //# sourceMappingURL=meta.d.ts.map
@@ -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=../../src/lib/widget/meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../widget/meta.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -154,7 +154,7 @@ declare class MultiWidget {
154
154
  /**
155
155
  * The method to change the widget icons
156
156
  *
157
- * @deprecated
157
+ * @TODO DEPRECATED
158
158
  */
159
159
  setIcons(icons: IIcons): void;
160
160
  setIcon(key: string, value: string): void;
@@ -226,4 +226,3 @@ declare class MultiWidget {
226
226
  setLanguage(code: any): void;
227
227
  }
228
228
  export { MultiWidget };
229
- //# sourceMappingURL=multi-widget.d.ts.map
@@ -0,0 +1,437 @@
1
+ import { AccessToken } from './../helper/access-token';
2
+ import { SDK } from '../configs/sdk';
3
+ import { Link, WIDGET_LINK } from '../components/link';
4
+ import { Configuration } from './configuration';
5
+ import { STYLE, TEXT, ELEMENT, SUPPORTED_CARD_TYPES, FORM_FIELD, } from '../components/param';
6
+ import { ObjectHelper } from '../helper/object';
7
+ import { stylableElements, } from "./style";
8
+ import { ElementStyle } from "../components/element-style";
9
+ /**
10
+ *
11
+ * Class MultiWidget include method for for creating iframe url
12
+ * @constructor
13
+ *
14
+ * @param {string} accessToken - PayDock users access token or public key
15
+ * @param {(Configuration | string | Configuration[] | string[])} conf - exemplar[s] Configuration class OR configuration token
16
+ *
17
+ * @example
18
+ * var widget = new MultiWidget('accessToken','configurationToken'); // With a pre-created configuration token
19
+ *
20
+ * var widget = new MultiWidget('accessToken',['configurationToken', 'configurationToken2']); // With pre-created configuration tokens
21
+ *
22
+ * var widget = new MultiWidget('accessToken', new Configuration('gatewayId')); With Configuration
23
+ *
24
+ * var widget = new MultiWidget('accessToken',[ With Configurations
25
+ * Configuration('gatewayId'),
26
+ * Configuration('gatewayId', 'bank_account')
27
+ * ]);
28
+ */
29
+ class MultiWidget {
30
+ /** @constructs */ // constructs added for correct parse classes jsdoc2md
31
+ constructor(accessToken, conf) {
32
+ this.configs = [];
33
+ this.configTokens = [];
34
+ this.link = new Link(WIDGET_LINK);
35
+ if (SDK.version) {
36
+ this.link.setParams({
37
+ sdk_version: SDK.version,
38
+ sdk_type: SDK.type,
39
+ });
40
+ }
41
+ if (!!AccessToken.validateJWT(accessToken)) {
42
+ this.link.setParams({ token: accessToken });
43
+ }
44
+ else {
45
+ this.link.setParams({ public_key: accessToken });
46
+ }
47
+ this.accessToken = accessToken;
48
+ if (!conf || (Array.isArray(conf) && !conf.length))
49
+ throw Error('configuration token is required');
50
+ if (typeof conf === 'string')
51
+ this.configTokens.push(conf);
52
+ else if (conf instanceof Configuration)
53
+ this.configs.push(conf);
54
+ else if (Array.isArray(conf) && typeof conf[0] === 'string')
55
+ this.configTokens = conf;
56
+ else if (Array.isArray(conf) && conf[0] instanceof Configuration)
57
+ this.configs = conf;
58
+ else
59
+ throw Error('Unsupported type of configuration token');
60
+ }
61
+ /**
62
+ * Object contain styles for widget
63
+ *
64
+ * @example
65
+ * widget.setStyles({
66
+ * background_color: 'rgb(0, 0, 0)',
67
+ * border_color: 'yellow',
68
+ * text_color: '#FFFFAA',
69
+ * button_color: 'rgba(255, 255, 255, 0.9)',
70
+ * font_size: '20px'
71
+ * fort_family: 'fantasy'
72
+ * });
73
+ * @param {IStyles} fields - name of styles which can be shown in widget [STYLE]{@link STYLE}
74
+ */
75
+ setStyles(styles) {
76
+ for (let index in styles) {
77
+ if (styles.hasOwnProperty(index))
78
+ this.setStyle(index, styles[index]);
79
+ }
80
+ }
81
+ /**
82
+ * Method to set a country code mask for the phone input.
83
+ *
84
+ * @example
85
+ * widget.usePhoneCountryMask();
86
+ *
87
+ * @example
88
+ * widget.usePhoneCountryMask({
89
+ * default_country: 'au',
90
+ * preferred_countries: ['au', 'gb'],
91
+ * only_countries: ['au', 'gb', 'us', 'ua']
92
+ * });
93
+ *
94
+ * @param {object} [options] - Options for configure the phone mask.
95
+ * @param {string} [options.default_country] - Set a default country for the mask.
96
+ * @param {Array.<string>} [options.preferred_countries] - Set list of preferred countries for the top of the select box .
97
+ * @param {Array.<string>} [options.only_countries] - Set list of countries to show in the select box.
98
+ */
99
+ usePhoneCountryMask(options) {
100
+ if (!options)
101
+ return this.link.setParams({ use_country_phone_mask: true });
102
+ if (options.only_countries && (!/^[a-z]+$/.test(options.only_countries.join('')) || options.only_countries.length * 2 !== options.only_countries.join('').length))
103
+ return console.warn(`Widget::usePhoneCountryMask[s: only_countries - unsupported symbols or incorrect length of value`);
104
+ if (options.preferred_countries && (!/^[a-z]+$/.test(options.preferred_countries.join('')) || options.preferred_countries.length * 2 !== options.preferred_countries.join('').length))
105
+ return console.warn(`Widget::usePhoneCountryMask[s: preferred_countries - unsupported symbols or incorrect length of value`);
106
+ if (options.default_country && options.default_country.length !== 2)
107
+ return console.warn(`Widget::usePhoneCountryMask[s: default_country - incorrect value length`);
108
+ this.link.setParams({ use_country_phone_mask: true });
109
+ if (options.only_countries)
110
+ this.link.setParams({ phone_mask_only_countries: options.only_countries.join(',') });
111
+ if (options.preferred_countries)
112
+ this.link.setParams({ phone_mask_preferred_countries: options.preferred_countries.join(',') });
113
+ if (options.default_country)
114
+ this.link.setParams({ phone_mask_default_country: options.default_country });
115
+ }
116
+ setStyle(param, value) {
117
+ if (ObjectHelper.values(STYLE).indexOf(param) !== -1)
118
+ this.link.setParams({ [param]: value });
119
+ else
120
+ console.warn(`Widget::setStyle[s: unsupported style param ${param}`);
121
+ }
122
+ /**
123
+ * Method for set different texts inside the widget
124
+ *
125
+ * @example
126
+ * widget.setTexts({
127
+ * title: 'Your card',
128
+ * finish_text: 'Payment resource was successfully accepted',
129
+ * title_description: '* indicates required field',
130
+ * submit_button: 'Save',
131
+ * submit_button_processing: 'Load...',
132
+ * });
133
+ *
134
+ * @param {ITexts} fields - name of text items which can be shown in widget [TEXT]{@link TEXT}
135
+ */
136
+ setTexts(texts) {
137
+ for (let index in texts) {
138
+ if (texts.hasOwnProperty(index))
139
+ this.setText(index, texts[index]);
140
+ }
141
+ }
142
+ setText(param, value) {
143
+ if (ObjectHelper.values(TEXT).indexOf(param) !== -1)
144
+ this.link.setParams({ [param]: value });
145
+ else
146
+ console.warn(`Widget::setText[s: unsupported text param ${param}`);
147
+ }
148
+ /**
149
+ * Method for set styles for different elements and states
150
+ *
151
+ * @example
152
+ * widget.setElementStyle('input', {
153
+ * border: 'green solid 1px'
154
+ * });
155
+ *
156
+ * widget.setElementStyle('input', 'focus', {
157
+ * border: 'blue solid 1px'
158
+ * });
159
+ *
160
+ * widget.setElementStyle('input', 'error', {
161
+ * border: 'red solid 1px'
162
+ * });
163
+ *
164
+ * @param {string} element - type of element for styling. These elements are available [STYLABLE_ELEMENT]{@link STYLABLE_ELEMENT}
165
+ * @param {string} [state] - state of element for styling. These states are available [STYLABLE_ELEMENT_STATE]{@link STYLABLE_ELEMENT_STATE}
166
+ * @param {IElementStyleInput | IElementStyleSubmitButton | IElementStyleLabel | IElementStyleTitle | IElementStyleTitleDescription} styles - styles list
167
+ */
168
+ setElementStyle(element, a2, a3) {
169
+ let state = (arguments.length === 3)
170
+ ? a2
171
+ : null;
172
+ let styles = (arguments.length === 3)
173
+ ? a3
174
+ : a2;
175
+ if (!ElementStyle.check(stylableElements, element, state, styles))
176
+ return console.warn(`Styles for "${element}" element with "${state || 'default'}" state was ignored because some of the arguments are unacceptable`);
177
+ this.link.concatParams({ element_styles: ElementStyle.encode(element, state, styles) });
178
+ }
179
+ /**
180
+ * The method to set the predefined values for the form fields inside the widget
181
+ *
182
+ * @example
183
+ * widget.setFormValues({
184
+ * email: 'predefined@email.com',
185
+ * card_name: 'Houston'
186
+ * });
187
+ *
188
+ * @param { Object } fieldValues - Key of object is one of [FORM_FIELD]{@link FORM_FIELD}, The object value is what we are expecting
189
+ */
190
+ setFormValues(fieldValues) {
191
+ for (let key in fieldValues) {
192
+ if (fieldValues.hasOwnProperty(key))
193
+ this.setFormValue(key, fieldValues[key]);
194
+ }
195
+ }
196
+ setFormValue(key, value) {
197
+ if (ObjectHelper.values(FORM_FIELD).indexOf(key) === -1)
198
+ return console.warn(`Widget::setFormValues[s: unsupported field ${key}`);
199
+ if (/\,/.test(value) || /\:/.test(value))
200
+ return console.warn(`Widget::setFormValues[s: ${key} - unsupported symbols (: or ,) in value`);
201
+ if (typeof this.link.getParams().form_values === 'string' && this.link.getParams().form_values.length)
202
+ this.link.setParams({ form_values: `${this.link.getParams().form_values},${key}:${value}` });
203
+ else
204
+ this.link.setParams({ form_values: `${key}:${value}` });
205
+ }
206
+ /**
207
+ * The method to set custom form field labels
208
+ *
209
+ * @example
210
+ * widget.setFormPlaceholders({
211
+ * card_name: 'Card Holder Name',
212
+ * email: 'Email For Receipt'
213
+ * })
214
+ *
215
+ * @param { Object } fieldLabels - Key of object is one of [FORM_FIELD]{@link FORM_FIELD}, The object value is what we are expecting
216
+ */
217
+ setFormLabels(fieldLabels) {
218
+ for (let key in fieldLabels) {
219
+ if (fieldLabels.hasOwnProperty(key))
220
+ this.setFormLabel(key, fieldLabels[key]);
221
+ }
222
+ }
223
+ setFormLabel(key, label) {
224
+ if (ObjectHelper.values(FORM_FIELD).indexOf(key) === -1)
225
+ return console.warn(`Widget::setFormLabel[s: unsupported field ${key}`);
226
+ const modifiedLabel = (label === null || label === '')
227
+ ? ' '
228
+ : label;
229
+ if (/\,/.test(modifiedLabel) || /\:/.test(modifiedLabel))
230
+ return console.warn(`Widget::setFormLabel[s: ${key} - unsupported symbols (: or ,) in value`);
231
+ this.link.concatParams({ form_labels: `${key}:${modifiedLabel}` });
232
+ }
233
+ /**
234
+ * The method to set custom form fields placeholders
235
+ *
236
+ * @example
237
+ * widget.setFormPlaceholders({
238
+ * card_name: 'Input your card holder name...',
239
+ * email: 'Input your email, like test@example.com'
240
+ * })
241
+ *
242
+ * @param { Object } fieldPlaceholders - Key of object is one of [FORM_FIELD]{@link FORM_FIELD}, Value of object is expected placeholder
243
+ */
244
+ setFormPlaceholders(fieldPlaceholders) {
245
+ for (let key in fieldPlaceholders) {
246
+ if (fieldPlaceholders.hasOwnProperty(key))
247
+ this.setFormPlaceholder(key, fieldPlaceholders[key]);
248
+ }
249
+ }
250
+ setFormPlaceholder(key, placeholder) {
251
+ if (ObjectHelper.values(FORM_FIELD).indexOf(key) === -1)
252
+ return console.warn(`Widget::setFormPlaceholder[s: unsupported field ${key}`);
253
+ const modifiedPlaceholder = (placeholder === null || placeholder === '')
254
+ ? ' '
255
+ : placeholder;
256
+ if (/\,/.test(modifiedPlaceholder) || /\:/.test(modifiedPlaceholder))
257
+ return console.warn(`Widget::setFormPlaceholder[s: ${key} - unsupported symbols (: or ,) in value`);
258
+ this.link.concatParams({ form_placeholders: `${key}:${modifiedPlaceholder}` });
259
+ }
260
+ /**
261
+ * The method to set the full configuration for the all specific form elements (label, placeholder, value)
262
+ * You can also use the other method for the partial configuration like: setFormValues, setFormPlaceholder, setFormLabel
263
+ *
264
+ * @example
265
+ * widget.setFormElements([
266
+ * {
267
+ * field: 'card_name',
268
+ * placeholder: 'Input your card holder name...',
269
+ * label: 'Card Holder Name',
270
+ * value: 'Houston',
271
+ * },
272
+ * {
273
+ * field: 'email',
274
+ * placeholder: 'Input your email, like test@example.com',
275
+ * label: 'Email For Receipt',
276
+ * value: 'predefined@email.com',
277
+ * },
278
+ * ])
279
+ *
280
+ * @param { string } elements - The list of elements
281
+ * @param { string } elements[].field - Field name of the element [FORM_FIELD]{@link FORM_FIELD}
282
+ * @param { string } elements[].placeholder - Set custom form field placeholder
283
+ * @param { string } elements[].label - Set custom labels near form field
284
+ * @param { string } elements[].value - Set predefined values for the form field
285
+ */
286
+ setFormElements(elements) {
287
+ elements.forEach((element) => this.setFormElement(element));
288
+ }
289
+ setFormElement(element) {
290
+ if (element.value)
291
+ this.setFormValue(element.field, element.value);
292
+ if (element.label)
293
+ this.setFormLabel(element.field, element.label);
294
+ if (element.placeholder)
295
+ this.setFormPlaceholder(element.field, element.placeholder);
296
+ }
297
+ /**
298
+ * The method to change the widget icons
299
+ *
300
+ * @TODO DEPRECATED
301
+ */
302
+ setIcons(icons) {
303
+ for (let key in icons) {
304
+ if (icons.hasOwnProperty(key))
305
+ this.setIcon(key, icons[key]);
306
+ }
307
+ }
308
+ setIcon(key, value) {
309
+ if (/\,/.test(value) || /\:/.test(value))
310
+ return console.warn(`Widget::setIcon[s: ${key} - unsupported symbols (: or ,) in value`);
311
+ if (typeof this.link.getParams().icons === 'string' && this.link.getParams().icons.length)
312
+ this.link.setParams({ icons: `${this.link.getParams().icons},${key}:${value}` });
313
+ else
314
+ this.link.setParams({ icons: `${key}:${value}` });
315
+ }
316
+ /**
317
+ * Using this method you can set hidden elements inside widget
318
+ *
319
+ * @example
320
+ * widget.setHiddenElements(['submit_button', 'email']);
321
+ *
322
+ * @param {string[]} elements - list of element which can be hidden [ELEMENT]{@link ELEMENT} || [FORM_FIELD]{@link FORM_FIELD}
323
+ */
324
+ setHiddenElements(elements) {
325
+ let filteredElements = [];
326
+ let supportedElements = ObjectHelper.values(ELEMENT).concat(ObjectHelper.values(FORM_FIELD));
327
+ for (let index in elements) {
328
+ if (!elements.hasOwnProperty(index))
329
+ continue;
330
+ if (supportedElements.indexOf(elements[index]) !== -1)
331
+ filteredElements.push(elements[index]);
332
+ else
333
+ console.warn(`Widget::setHiddenElements: unsupported element ${elements[index]}`);
334
+ }
335
+ if (filteredElements.length)
336
+ this.link.concatParams({ hidden_elements: filteredElements.join(',') });
337
+ }
338
+ /**
339
+ * Current method can set custom ID to identify the data in the future
340
+ *
341
+ * @example
342
+ * widget.setRefId('id');
343
+ *
344
+ * @param {string} refId - custom id
345
+ */
346
+ setRefId(refId) {
347
+ this.link.setParams({ ref_id: refId });
348
+ }
349
+ /**
350
+ * Current method can add visual validation from gateway to widget's form fields
351
+ *
352
+ * @example
353
+ * widget.useGatewayFieldValidation();
354
+ */
355
+ useGatewayFieldValidation() {
356
+ this.link.setParams({ fields_validation: true });
357
+ }
358
+ /**
359
+ * Current method can set icons of supported card types
360
+ *
361
+ * @example
362
+ *
363
+ * widget.setSupportedCardIcons(['mastercard', 'visa'], validateCardNumberInput);
364
+ *
365
+ * @param {string[]} elements - [SUPPORTED_CARD_TYPES]{@link SUPPORTED_CARD_TYPES}
366
+ * @param {boolean} validateCardNumberInput - [validateCardNumberInput=false] - using this param you allow validation for card number input on supported card types
367
+ */
368
+ setSupportedCardIcons(elements, validateCardNumberInput) {
369
+ let supportedCards = [];
370
+ for (let index in elements) {
371
+ if (!elements.hasOwnProperty(index))
372
+ continue;
373
+ if (ObjectHelper.values(SUPPORTED_CARD_TYPES).indexOf(elements[index]) !== -1)
374
+ supportedCards.push(elements[index]);
375
+ else
376
+ console.warn(`Widget::cardTypes: unsupported type of cards ${elements[index]}`);
377
+ }
378
+ if (supportedCards.length)
379
+ this.link.concatParams({ supported_card_types: supportedCards.join(',') });
380
+ if (validateCardNumberInput)
381
+ this.link.setParams({ validate_card_types: validateCardNumberInput });
382
+ }
383
+ /**
384
+ * Current method can change environment. By default environment = sandbox.
385
+ * Also we can change domain alias for this environment. By default domain_alias = paydock.com
386
+ *
387
+ * @example
388
+ * widget.setEnv('production', 'paydock.com');
389
+ * @param {string} env - sandbox, production
390
+ * @param {string} [alias] - Own domain alias
391
+ */
392
+ setEnv(env, alias) {
393
+ this.link.setEnv(env, alias);
394
+ for (let index in this.configs) {
395
+ if (this.configs.hasOwnProperty(index))
396
+ this.configs[index].setEnv(env, alias);
397
+ }
398
+ }
399
+ getEnv() {
400
+ this.link.getEnv();
401
+ }
402
+ /**
403
+ * Method for creating iframe url
404
+ *
405
+ * @example
406
+ * widget.loadIFrameUrl(function (url) {
407
+ * console.log(url);
408
+ * }, function (errors) {
409
+ * console.log(errors);
410
+ * });
411
+ */
412
+ loadIFrameUrl(cb, errorCb = (errors) => { }) {
413
+ this.link.setParams({ configuration_tokens: '' });
414
+ if (this.configTokens.length) {
415
+ this.link.setParams({ configuration_tokens: this.configTokens.join(',') });
416
+ return cb(this.link.getUrl());
417
+ }
418
+ Configuration.createEachToken(this.accessToken, this.configs, (tokens) => {
419
+ this.link.concatParams({ configuration_tokens: tokens.join(',') });
420
+ return cb(this.link.getUrl());
421
+ }, (errors) => {
422
+ errorCb(errors);
423
+ });
424
+ }
425
+ /**
426
+ * Method for setting a custom language code
427
+ *
428
+ * @example
429
+ * config.setLanguage('en');
430
+ * @param {string} code - ISO 639-1
431
+ */
432
+ setLanguage(code) {
433
+ this.link.setParams({ language: code });
434
+ }
435
+ }
436
+ export { MultiWidget };
437
+ //# sourceMappingURL=../../src/lib/widget/multi-widget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multi-widget.js","sourceRoot":"","sources":["../../widget/multi-widget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAIL,KAAK,EACL,IAAI,EACJ,OAAO,EACP,oBAAoB,EAEpB,UAAU,GAGX,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAMH,gBAAgB,GACnB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AAGzD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW;IAWb,kBAAkB,CAAC,sDAAsD;IACzE,YAAY,WAAmB,EAAE,IAAS;QAThC,YAAO,GAAoB,EAAE,CAAC;QAC9B,iBAAY,GAAa,EAAE,CAAC;QASlC,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,CAAC,WAAW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I,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,EAAC,CAAC,CAAC;YACzE,OAAO,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;SACjC;QAED,aAAa,CAAC,eAAe,CACzB,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,OAAO,EACZ,CAAC,MAAgB,EAAE,EAAE;YACjB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,EAAC,oBAAoB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAC,CAAC,CAAC;YACjE,OAAO,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QAClC,CAAC,EACD,CAAC,MAAgB,EAAE,EAAE;YACjB,OAAO,CAAC,MAAM,CAAC,CAAC;QACpB,CAAC,CAAC,CAAC;IACX,CAAC;IAED;;;;;;OAMG;IACI,WAAW,CAAC,IAAI;QACnB,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAA;IACzC,CAAC;CACJ;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -174,4 +174,3 @@ export declare const stylableElements: StylableElements;
174
174
  * @param {string} [margin] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/margin}
175
175
  * @param {string} ['text-align',] Look more [mozilla.org/color]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/text-align}
176
176
  */
177
- //# sourceMappingURL=style.d.ts.map