@justifi/webcomponents 5.7.6 → 6.0.0-rc.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 (717) hide show
  1. package/dist/cjs/{Api-p2pK86Zd.js → Api-CPuq_15r.js} +1 -1
  2. package/dist/cjs/{ComponentError-C4MdBBMe.js → ComponentError-D4OLnOkg.js} +10 -0
  3. package/dist/cjs/{Refund-h6MCxFEE.js → Refund-CqWNG8sx.js} +245 -1
  4. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -1
  5. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +8 -9
  6. package/dist/cjs/bank-account-form.cjs.entry.js +63 -0
  7. package/dist/cjs/{business.service-OxMVnZMF.js → business.service-C3BdUPlm.js} +3 -5
  8. package/dist/cjs/card-form.cjs.entry.js +71 -0
  9. package/dist/cjs/{check-pkg-version-Co_IKlwj.js → check-pkg-version-D_lazhBQ.js} +4 -6
  10. package/dist/cjs/{checkout.service-GgFXq7Ux.js → checkout.service-B0ZmvWwI.js} +3 -5
  11. package/dist/cjs/checkout.store-CV_fuGQw.js +39 -0
  12. package/dist/cjs/checkouts-list-core.cjs.entry.js +6 -7
  13. package/dist/cjs/{checkouts-table-DJoMGwVG.js → checkouts-table-UN5gPpQ_.js} +1 -1
  14. package/dist/cjs/{custom-popper.cjs.entry.js → custom-popper_2.cjs.entry.js} +22 -2
  15. package/dist/cjs/dinero-BwNN_k7x.js +1657 -0
  16. package/dist/cjs/{dispute.service-XdB1KbMS.js → dispute.service-DsPEAcDn.js} +3 -5
  17. package/dist/cjs/form-alert_5.cjs.entry.js +4 -4
  18. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  19. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  20. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  21. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +2 -2
  22. package/dist/cjs/form-control-monetary.cjs.entry.js +4 -3
  23. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +3 -3
  24. package/dist/cjs/form-control-number.cjs.entry.js +2 -2
  25. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  26. package/dist/cjs/{form-control-select_3.cjs.entry.js → form-control-select_2.cjs.entry.js} +4 -23
  27. package/dist/cjs/{get-business-BJrtsomz.js → get-business-o5jPq_ME.js} +2 -2
  28. package/dist/cjs/{get-payment-details-Ccd7IWqM.js → get-payment-details-DtCXaIMx.js} +5 -7
  29. package/dist/cjs/{get-payout-csv-CXEQkjDm.js → get-payout-csv-DE_D9y08.js} +2 -2
  30. package/dist/cjs/{get-subaccounts-C4HDfc3o.js → get-subaccounts-CwCH5rC8.js} +5 -7
  31. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -2
  32. package/dist/cjs/{iframe-input_4.cjs.entry.js → hidden-input_2.cjs.entry.js} +111 -153
  33. package/dist/cjs/{insurance-state-qT_hkvZV.js → insurance-state-Cyva9u6S.js} +18 -0
  34. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +4 -5
  35. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +17 -18
  36. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
  37. package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +372 -0
  38. package/dist/cjs/justifi-business-details.cjs.entry.js +11 -12
  39. package/dist/cjs/justifi-business-form.cjs.entry.js +10 -11
  40. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  41. package/dist/cjs/justifi-checkout-summary_6.cjs.entry.js +698 -0
  42. package/dist/cjs/justifi-checkout.cjs.entry.js +88 -96
  43. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +11 -12
  44. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +13 -14
  45. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  46. package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -11
  47. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +13 -14
  48. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -9
  49. package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -13
  50. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +12 -13
  51. package/dist/cjs/justifi-payment-details.cjs.entry.js +11 -12
  52. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +2 -2
  53. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +11 -12
  54. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -11
  55. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -3
  56. package/dist/cjs/justifi-payments-list.cjs.entry.js +12 -13
  57. package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -11
  58. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -11
  59. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -3
  60. package/dist/cjs/justifi-payouts-list.cjs.entry.js +13 -14
  61. package/dist/cjs/justifi-refund-payment.cjs.entry.js +10 -11
  62. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +31 -0
  63. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +115 -18
  64. package/dist/cjs/justifi-skeleton.cjs.entry.js +17 -0
  65. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +6 -7
  66. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +10 -11
  67. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +5 -6
  68. package/dist/cjs/justifi-terminals-list.cjs.entry.js +12 -13
  69. package/dist/cjs/loader.cjs.js +1 -1
  70. package/dist/cjs/{package-B7_ed3oS.js → package-Cp_7Ls2E.js} +1 -1
  71. package/dist/cjs/payment-details-core.cjs.entry.js +10 -9
  72. package/dist/cjs/payment-method-option-utils-WYHIHy-l.js +15 -0
  73. package/dist/cjs/payment-method-option.cjs.entry.js +17 -0
  74. package/dist/cjs/{payment-provisioning-actions-BkWSDJQQ.js → payment-provisioning-actions-CZVlnRA0.js} +2 -2
  75. package/dist/cjs/{payment.service-BU1Mwwnv.js → payment.service-1H0VC3LV.js} +3 -5
  76. package/dist/cjs/payments-list-core.cjs.entry.js +6 -7
  77. package/dist/cjs/{payments-table-uouQ4x2Y.js → payments-table-quF0NnsS.js} +1 -1
  78. package/dist/cjs/payout-details-core.cjs.entry.js +5 -4
  79. package/dist/cjs/{payout.service-BjB-B6CX.js → payout.service-CIZFU-hV.js} +3 -5
  80. package/dist/cjs/payouts-list-core.cjs.entry.js +6 -7
  81. package/dist/cjs/{payouts-table-Bo61u5ZZ.js → payouts-table-D_CCTR_k.js} +1 -1
  82. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  83. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +6 -7
  84. package/dist/cjs/{terminal-orders-table-FtFQqd0s.js → terminal-orders-table-0O5jtzYj.js} +3 -5
  85. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  86. package/dist/cjs/{terminal.service-De-0eGdM.js → terminal.service-DUlyMTrX.js} +3 -5
  87. package/dist/cjs/terminals-list-core.cjs.entry.js +6 -7
  88. package/dist/cjs/{terminals-table-CGG9EhiI.js → terminals-table-C2BNRUS5.js} +1 -1
  89. package/dist/cjs/{utils-Dka3MplB.js → utils-BaGF9XIe.js} +3 -1661
  90. package/dist/cjs/{utils-l0veqT9y.js → utils-DvUQQLmR.js} +1 -1
  91. package/dist/cjs/webcomponents.cjs.js +1 -1
  92. package/dist/collection/actions/checkout/checkout-actions.js +2 -1
  93. package/dist/collection/api/BillingInformation.js +1 -0
  94. package/dist/collection/api/Checkout.js +1 -3
  95. package/dist/collection/api/ComponentError.js +10 -0
  96. package/dist/collection/api/PaymentMethod.js +1 -0
  97. package/dist/collection/collection-manifest.json +15 -9
  98. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
  99. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
  100. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -1
  101. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
  102. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  103. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
  104. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +1 -1
  105. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
  106. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  107. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
  108. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
  109. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
  110. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  111. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
  112. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
  113. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  114. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
  115. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  116. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
  117. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  118. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
  119. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
  120. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  121. package/dist/collection/components/checkout/billing-form/billing-form-schema.js +3 -3
  122. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  123. package/dist/collection/components/checkout/checkout.js +156 -51
  124. package/dist/collection/components/checkout/payment-method-option-utils.js +0 -1
  125. package/dist/collection/components/checkout/save-new-payment-method.js +9 -5
  126. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  127. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  128. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  129. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  130. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  131. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  132. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  133. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  134. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  135. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  136. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  137. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  138. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  139. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  140. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  141. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  142. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  143. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  144. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  145. package/dist/collection/components/insurance/insurance-state.js +18 -1
  146. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +114 -12
  147. package/dist/collection/components/modular-checkout/modular-checkout.js +422 -0
  148. package/dist/collection/components/{checkout/billing-form → modular-checkout/sub-components}/bank-account-billing-form-simple.js +7 -5
  149. package/dist/collection/components/modular-checkout/sub-components/bank-account-skeleton.js +10 -0
  150. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +98 -0
  151. package/dist/collection/components/{checkout/billing-form → modular-checkout/sub-components}/billing-form-full.js +12 -8
  152. package/dist/collection/components/{checkout/billing-form → modular-checkout/sub-components}/card-billing-form-simple.js +7 -5
  153. package/dist/collection/components/modular-checkout/sub-components/card-form-skeleton.js +10 -0
  154. package/dist/collection/components/modular-checkout/sub-components/card-form.js +102 -0
  155. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +113 -0
  156. package/dist/collection/components/modular-checkout/sub-components/saved-payment-methods.js +40 -0
  157. package/dist/collection/components/modular-checkout/sub-components/sezzle-payment-method.js +127 -0
  158. package/dist/collection/components/modular-checkout/sub-components/summary.js +12 -0
  159. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  160. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  161. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  162. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  163. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  164. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  165. package/dist/collection/components/payments-list/payments-list.js +1 -1
  166. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  167. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  168. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  169. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  170. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  171. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  172. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  173. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  174. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  175. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  176. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  177. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +293 -83
  178. package/dist/collection/store/checkout.store.js +34 -0
  179. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  180. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  181. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  182. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  183. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  184. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  185. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  186. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  187. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  188. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  189. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  190. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  191. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  192. package/dist/collection/ui-components/form/iframe-input.js +10 -5
  193. package/dist/collection/ui-components/index.js +1 -0
  194. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +176 -0
  195. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +83 -0
  196. package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +155 -0
  197. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +108 -0
  198. package/dist/docs.json +2690 -3204
  199. package/dist/esm/{Api-Bes3KkG6.js → Api-N_veT2p6.js} +1 -1
  200. package/dist/esm/{ComponentError-SdntD1xf.js → ComponentError-Cjcsf8ku.js} +11 -1
  201. package/dist/esm/{Dispute-7MWRbTXI.js → Dispute-BH0Xfn-F.js} +1 -1
  202. package/dist/esm/{Refund-CISeDJoW.js → Refund-Di6J0oN2.js} +244 -2
  203. package/dist/esm/additional-questions-details_5.entry.js +4 -3
  204. package/dist/esm/{badge-BRPxcFAe.js → badge-D_mzXSCQ.js} +1 -1
  205. package/dist/esm/bank-account-document-form-inputs_4.entry.js +12 -13
  206. package/dist/{module/bank-account-form2.js → esm/bank-account-form.entry.js} +10 -34
  207. package/dist/esm/business-details-core.entry.js +3 -3
  208. package/dist/esm/{business.service-Cx6MiBgY.js → business.service-Bdvhdc_d.js} +4 -6
  209. package/dist/esm/{button-B_viNpoz.js → button-CeR8qVS3.js} +1 -1
  210. package/dist/esm/card-form.entry.js +69 -0
  211. package/dist/esm/{check-pkg-version-DvajBJj9.js → check-pkg-version-Bb69ihTN.js} +5 -7
  212. package/dist/esm/{checkout.service-BQ2Z7hHe.js → checkout.service-XgGFa7H8.js} +4 -6
  213. package/dist/esm/checkout.store-B60siz2l.js +36 -0
  214. package/dist/esm/checkouts-list-core.entry.js +11 -12
  215. package/dist/esm/{checkouts-table-YyKWgXbv.js → checkouts-table-CFZYoYjn.js} +3 -3
  216. package/dist/esm/{custom-popper.entry.js → custom-popper_2.entry.js} +22 -3
  217. package/dist/esm/dinero-HXpYMWUU.js +1655 -0
  218. package/dist/esm/{dispute.service-Bmw6fgc6.js → dispute.service-CKPcmwhH.js} +4 -6
  219. package/dist/esm/form-alert_5.entry.js +5 -5
  220. package/dist/esm/form-control-checkbox.entry.js +5 -5
  221. package/dist/esm/form-control-date.entry.js +4 -4
  222. package/dist/esm/{form-control-error-text-BvjVjw2l.js → form-control-error-text-D3ZwkOv-.js} +1 -1
  223. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  224. package/dist/esm/{form-control-help-text-Dggj4lH9.js → form-control-help-text-C39ZW65w.js} +1 -1
  225. package/dist/esm/form-control-monetary-provisioning.entry.js +5 -5
  226. package/dist/esm/form-control-monetary.entry.js +7 -6
  227. package/dist/esm/form-control-number-masked_2.entry.js +5 -5
  228. package/dist/esm/form-control-number.entry.js +5 -5
  229. package/dist/esm/form-control-radio.entry.js +3 -3
  230. package/dist/esm/{form-control-select_3.entry.js → form-control-select_2.entry.js} +7 -25
  231. package/dist/esm/{get-business-GEPTefIj.js → get-business-Crb6P-iI.js} +2 -2
  232. package/dist/esm/{get-payment-details-Rww84hl5.js → get-payment-details-Dt-dr16k.js} +5 -7
  233. package/dist/esm/{get-payout-csv-D7IYYqVL.js → get-payout-csv-D-Lnooki.js} +2 -2
  234. package/dist/esm/{get-subaccounts-0PmjUDEa.js → get-subaccounts-BsoVLANw.js} +6 -8
  235. package/dist/esm/gross-payment-chart-core.entry.js +6 -5
  236. package/dist/esm/{header-1-UMqoryJI.js → header-1-E-hEi3wF.js} +1 -1
  237. package/dist/esm/{header-3-DfV3YFNS.js → header-3-Dm7M85kz.js} +1 -1
  238. package/dist/esm/{iframe-input_4.entry.js → hidden-input_2.entry.js} +106 -146
  239. package/dist/esm/insurance-state-CB4l8sOv.js +45 -0
  240. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +8 -9
  241. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +20 -21
  242. package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
  243. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +362 -0
  244. package/dist/esm/justifi-business-details.entry.js +13 -14
  245. package/dist/esm/justifi-business-form.entry.js +15 -16
  246. package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
  247. package/dist/esm/justifi-checkout-summary_6.entry.js +691 -0
  248. package/dist/esm/justifi-checkout.entry.js +88 -96
  249. package/dist/esm/justifi-checkouts-list-filters.entry.js +7 -8
  250. package/dist/esm/justifi-checkouts-list.entry.js +15 -16
  251. package/dist/esm/justifi-details.entry.js +2 -2
  252. package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
  253. package/dist/esm/justifi-dispute-management.entry.js +11 -12
  254. package/dist/esm/justifi-dispute-notification_3.entry.js +16 -17
  255. package/dist/esm/justifi-gross-payment-chart.entry.js +11 -12
  256. package/dist/esm/justifi-order-terminals.entry.js +15 -16
  257. package/dist/esm/justifi-owner-form_3.entry.js +14 -15
  258. package/dist/esm/justifi-payment-details.entry.js +13 -14
  259. package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
  260. package/dist/esm/justifi-payment-provisioning.entry.js +12 -13
  261. package/dist/esm/justifi-payment-transactions-list.entry.js +14 -15
  262. package/dist/esm/justifi-payments-list-filters.entry.js +5 -4
  263. package/dist/esm/justifi-payments-list.entry.js +15 -16
  264. package/dist/esm/justifi-payout-details.entry.js +13 -14
  265. package/dist/esm/justifi-payout-transactions-list.entry.js +14 -15
  266. package/dist/esm/justifi-payouts-list-filters.entry.js +5 -4
  267. package/dist/esm/justifi-payouts-list.entry.js +17 -18
  268. package/dist/esm/justifi-refund-payment.entry.js +14 -15
  269. package/dist/esm/justifi-saved-payment-method.entry.js +29 -0
  270. package/dist/esm/justifi-season-interruption-insurance.entry.js +117 -20
  271. package/dist/esm/justifi-skeleton.entry.js +15 -0
  272. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +8 -9
  273. package/dist/esm/justifi-terminal-orders-list.entry.js +13 -14
  274. package/dist/esm/justifi-terminals-list-filters.entry.js +7 -8
  275. package/dist/esm/justifi-terminals-list.entry.js +15 -16
  276. package/dist/esm/loader.js +1 -1
  277. package/dist/esm/{package-DwtqmD1M.js → package-O3LY2Da6.js} +1 -1
  278. package/dist/esm/pagination-menu.entry.js +1 -1
  279. package/dist/esm/{parts-CVGBVdVC.js → parts-CfF8KKwx.js} +1 -1
  280. package/dist/esm/payment-details-core.entry.js +15 -14
  281. package/dist/esm/payment-method-option-utils-lUHAQVFl.js +15 -0
  282. package/dist/esm/payment-method-option.entry.js +15 -0
  283. package/dist/esm/{payment-provisioning-actions-BIfyW239.js → payment-provisioning-actions-ONP8lDnV.js} +2 -2
  284. package/dist/esm/{payment.service-Ck1kdYXH.js → payment.service-BWO84KlP.js} +4 -6
  285. package/dist/esm/payments-list-core.entry.js +12 -13
  286. package/dist/esm/{payments-status-gL2bjUp9.js → payments-status-XoZrlbiZ.js} +1 -1
  287. package/dist/esm/{payments-table-DrnN-flR.js → payments-table-Dh4P9mTb.js} +3 -3
  288. package/dist/esm/payout-details-core.entry.js +11 -10
  289. package/dist/esm/{payout.service-YOny8vA1.js → payout.service-Cld6TS5W.js} +4 -6
  290. package/dist/esm/payouts-list-core.entry.js +12 -13
  291. package/dist/esm/{payouts-status-BpBVp8j1.js → payouts-status-Qm2jZG1-.js} +1 -1
  292. package/dist/esm/{payouts-table-Bt0Dhq3E.js → payouts-table-DMVAZp-r.js} +3 -3
  293. package/dist/esm/{skeleton-MHyzfkPM.js → skeleton-DrHwsgs_.js} +1 -1
  294. package/dist/esm/{spinner-CaGDuAi8.js → spinner-XBq6mVJW.js} +1 -1
  295. package/dist/esm/table-filters-menu.entry.js +3 -3
  296. package/dist/esm/{table-B-m83mFl.js → table-qqt2Ew5y.js} +2 -2
  297. package/dist/esm/terminal-orders-list-core.entry.js +11 -12
  298. package/dist/esm/{terminal-orders-table-shGx8Lcn.js → terminal-orders-table-BN4Co4T8.js} +6 -8
  299. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  300. package/dist/esm/{terminal.service-CJbnbE1S.js → terminal.service-DmYCUQcA.js} +4 -6
  301. package/dist/esm/terminals-list-core.entry.js +11 -12
  302. package/dist/esm/{terminals-table-DskXRPbS.js → terminals-table-C8LczeG_.js} +3 -3
  303. package/dist/esm/{utils-Dccsn9BY.js → utils-BeQLScSm.js} +1 -1
  304. package/dist/esm/{utils-DOW3rBEH.js → utils-kWaZhFAd.js} +1 -1
  305. package/dist/esm/{utils-DIxPWgIk.js → utils-lb8p1Exq.js} +3 -1660
  306. package/dist/esm/webcomponents.js +1 -1
  307. package/dist/module/{check-pkg-version.js → Analytics.js} +22 -24
  308. package/dist/module/Refund.js +328 -1
  309. package/dist/module/additional-questions.js +1 -1
  310. package/dist/module/additional-statement.js +2 -2
  311. package/dist/module/badge.js +1 -1
  312. package/dist/module/bank-account-billing-form-simple.js +9 -4
  313. package/dist/module/bank-account-document-inputs.js +3 -5
  314. package/dist/module/bank-account-form-inputs2.js +1 -1
  315. package/dist/module/bank-account-form.js +83 -1
  316. package/dist/module/bank-account.js +103 -0
  317. package/dist/module/billing-form-full.js +14 -11
  318. package/dist/module/billing-form-schema.js +3 -3
  319. package/dist/module/business-additional-questions-form-step.js +2 -2
  320. package/dist/module/business-bank-account-form-step-core.js +2 -4
  321. package/dist/module/business-bank-account-form-step.js +3 -5
  322. package/dist/module/business-core-info-form-step.js +2 -2
  323. package/dist/module/business-core-info.js +1 -1
  324. package/dist/module/business-details-core2.js +1 -0
  325. package/dist/module/business-documents-on-file2.js +2 -1
  326. package/dist/module/business-owners-form-step-core.js +1 -0
  327. package/dist/module/business-owners-form-step.js +2 -2
  328. package/dist/module/business-representative-form-inputs.js +1 -1
  329. package/dist/module/business-representative-form-step.js +2 -2
  330. package/dist/module/business-representative.js +1 -1
  331. package/dist/module/business-terms-conditions-form-step.js +2 -4
  332. package/dist/module/business.service.js +1 -3
  333. package/dist/module/button.js +1 -1
  334. package/dist/module/cancellation-policy.js +2 -2
  335. package/dist/module/card-billing-form-simple.js +9 -4
  336. package/dist/module/card-form.js +91 -1
  337. package/dist/module/card-form2.js +28 -10
  338. package/dist/module/checkout.service.js +1 -3
  339. package/dist/module/checkout.store.js +36 -0
  340. package/dist/module/checkouts-list-core2.js +6 -6
  341. package/dist/module/custom-popper2.js +2 -2
  342. package/dist/module/customer-details.js +2 -2
  343. package/dist/module/dinero.js +1655 -0
  344. package/dist/module/dispute-management-core.js +2 -2
  345. package/dist/module/dispute-notification.js +3 -2
  346. package/dist/module/dispute-response-actions.js +1 -3
  347. package/dist/module/dispute-response-core.js +2 -2
  348. package/dist/module/dispute-response.js +4 -3
  349. package/dist/module/duplicate-charge.js +2 -2
  350. package/dist/module/electronic-evidence.js +2 -2
  351. package/dist/module/form-alert2.js +1 -1
  352. package/dist/module/form-control-checkbox2.js +4 -3
  353. package/dist/module/form-control-date2.js +3 -2
  354. package/dist/module/form-control-file-v22.js +1 -1
  355. package/dist/module/form-control-file2.js +3 -2
  356. package/dist/module/form-control-monetary-provisioning2.js +4 -3
  357. package/dist/module/form-control-monetary2.js +4 -3
  358. package/dist/module/form-control-number-masked2.js +3 -2
  359. package/dist/module/form-control-number.js +4 -3
  360. package/dist/module/form-control-radio2.js +3 -3
  361. package/dist/module/form-control-select2.js +3 -2
  362. package/dist/module/form-control-text2.js +3 -2
  363. package/dist/module/form-control-textarea2.js +3 -3
  364. package/dist/module/get-business.js +1 -1
  365. package/dist/module/get-payment-details.js +2 -4
  366. package/dist/module/get-payout-csv.js +1 -1
  367. package/dist/module/get-subaccounts.js +2 -4
  368. package/dist/module/gross-payment-chart-core2.js +2 -2
  369. package/dist/module/header-2.js +8 -0
  370. package/dist/module/header-3.js +8 -0
  371. package/dist/module/hidden-input2.js +2 -2
  372. package/dist/module/identity-address-form.js +1 -1
  373. package/dist/module/iframe-input2.js +6 -6
  374. package/dist/module/insurance-state.js +18 -7
  375. package/dist/module/justifi-bank-account-form.d.ts +11 -0
  376. package/dist/module/justifi-bank-account-form.js +6 -0
  377. package/dist/module/justifi-business-details.js +2 -2
  378. package/dist/module/justifi-business-form.js +4 -5
  379. package/dist/module/{justifi-checkout-core.d.ts → justifi-button.d.ts} +4 -4
  380. package/dist/module/justifi-button.js +6 -0
  381. package/dist/module/justifi-button2.js +41 -0
  382. package/dist/module/justifi-card-form.d.ts +11 -0
  383. package/dist/module/justifi-card-form.js +6 -0
  384. package/dist/module/justifi-checkout-summary.d.ts +11 -0
  385. package/dist/module/justifi-checkout-summary.js +6 -0
  386. package/dist/module/justifi-checkout.js +157 -137
  387. package/dist/module/justifi-checkouts-list-filters.js +4 -5
  388. package/dist/module/justifi-checkouts-list.js +5 -6
  389. package/dist/module/justifi-dispute-management.js +3 -4
  390. package/dist/module/justifi-gross-payment-chart.js +2 -4
  391. package/dist/module/justifi-header.d.ts +11 -0
  392. package/dist/module/justifi-header.js +6 -0
  393. package/dist/module/justifi-header2.js +43 -0
  394. package/dist/module/justifi-modular-checkout.d.ts +11 -0
  395. package/dist/module/justifi-modular-checkout.js +6 -0
  396. package/dist/module/justifi-order-terminals.js +7 -7
  397. package/dist/module/justifi-payment-details.js +2 -2
  398. package/dist/module/justifi-payment-provisioning.js +3 -5
  399. package/dist/module/justifi-payment-transactions-list.js +7 -7
  400. package/dist/module/justifi-payments-list-filters.js +4 -3
  401. package/dist/module/justifi-payments-list.js +5 -6
  402. package/dist/module/justifi-payout-details.js +3 -5
  403. package/dist/module/justifi-payout-transactions-list.js +7 -7
  404. package/dist/module/justifi-payouts-list-filters.js +4 -3
  405. package/dist/module/justifi-payouts-list.js +5 -6
  406. package/dist/module/justifi-radio-list-item.d.ts +11 -0
  407. package/dist/module/justifi-radio-list-item.js +6 -0
  408. package/dist/module/justifi-radio-list-item2.js +55 -0
  409. package/dist/module/justifi-refund-payment.js +3 -4
  410. package/dist/module/justifi-saved-payment-method.js +57 -1
  411. package/dist/module/justifi-saved-payment-methods.d.ts +11 -0
  412. package/dist/module/justifi-saved-payment-methods.js +6 -0
  413. package/dist/module/justifi-season-interruption-insurance.js +120 -24
  414. package/dist/module/justifi-skeleton.d.ts +11 -0
  415. package/dist/module/justifi-skeleton.js +39 -0
  416. package/dist/module/justifi-terminal-orders-list-filters.js +5 -6
  417. package/dist/module/justifi-terminal-orders-list.js +5 -6
  418. package/dist/module/justifi-terminals-list-filters.js +4 -5
  419. package/dist/module/justifi-terminals-list.js +5 -6
  420. package/dist/module/justifi-tokenize-payment-method.js +1 -219
  421. package/dist/module/legal-address-form-step.js +2 -2
  422. package/dist/module/legal-address-form.js +1 -1
  423. package/dist/module/modular-checkout.js +328 -0
  424. package/dist/module/owner-form-core2.js +3 -2
  425. package/dist/module/owner-form-inputs2.js +1 -1
  426. package/dist/module/owner-form.js +1 -1
  427. package/dist/module/package.js +3 -3
  428. package/dist/module/pagination-menu2.js +1 -1
  429. package/dist/module/parts.js +1 -1
  430. package/dist/module/payment-details-core2.js +10 -9
  431. package/dist/module/payment-method-option-utils.js +15 -0
  432. package/dist/module/payment-method-option.d.ts +11 -0
  433. package/dist/module/payment-method-option.js +54 -0
  434. package/dist/module/payment-provisioning-actions.js +1 -1
  435. package/dist/module/payment-provisioning-core.js +3 -2
  436. package/dist/module/payment-provisioning-form-buttons.js +2 -1
  437. package/dist/module/payment-provisioning-form-steps.js +1 -1
  438. package/dist/module/payment-provisioning-loading.js +1 -0
  439. package/dist/module/payment.service.js +1 -3
  440. package/dist/module/payments-list-core2.js +6 -6
  441. package/dist/module/payout-details-core2.js +5 -4
  442. package/dist/module/payout.service.js +1 -3
  443. package/dist/module/payouts-list-core2.js +6 -6
  444. package/dist/module/product-or-service.js +2 -2
  445. package/dist/module/refund-policy.js +2 -2
  446. package/dist/module/save-new-payment-method.js +13 -6
  447. package/dist/module/saved-payment-methods.js +73 -0
  448. package/dist/module/sezzle-payment-method.js +25 -18
  449. package/dist/module/shipping-details.js +2 -2
  450. package/dist/module/spinner.js +1 -1
  451. package/dist/module/summary.js +35 -0
  452. package/dist/module/table-filters-menu2.js +1 -1
  453. package/dist/module/table.js +1 -1
  454. package/dist/module/terminal-orders-list-core2.js +6 -6
  455. package/dist/module/terminal-quantity-selector2.js +2 -2
  456. package/dist/module/terminal.service.js +1 -3
  457. package/dist/module/terminals-list-core2.js +6 -6
  458. package/dist/module/tokenize-payment-method.js +400 -0
  459. package/dist/module/utils2.js +3 -1660
  460. package/dist/module/utils4.js +1 -1
  461. package/dist/types/api/BillingInformation.d.ts +13 -0
  462. package/dist/types/api/Checkout.d.ts +15 -13
  463. package/dist/types/api/ComponentError.d.ts +10 -1
  464. package/dist/types/api/PaymentMethod.d.ts +21 -0
  465. package/dist/types/components/checkout/billing-form/billing-form-schema.d.ts +4 -4
  466. package/dist/types/components/checkout/checkout.d.ts +27 -11
  467. package/dist/types/components/checkout/save-new-payment-method.d.ts +1 -1
  468. package/dist/types/components/insurance/insurance-state.d.ts +2 -1
  469. package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +9 -3
  470. package/dist/types/components/modular-checkout/modular-checkout.d.ts +34 -0
  471. package/dist/types/components/{checkout/billing-form → modular-checkout/sub-components}/bank-account-billing-form-simple.d.ts +1 -1
  472. package/dist/types/components/modular-checkout/sub-components/bank-account-skeleton.d.ts +6 -0
  473. package/dist/types/components/modular-checkout/sub-components/bank-account.d.ts +18 -0
  474. package/dist/types/components/{checkout/billing-form → modular-checkout/sub-components}/billing-form-full.d.ts +1 -2
  475. package/dist/types/components/{checkout/billing-form → modular-checkout/sub-components}/card-billing-form-simple.d.ts +1 -1
  476. package/dist/types/components/modular-checkout/sub-components/card-form-skeleton.d.ts +6 -0
  477. package/dist/types/components/modular-checkout/sub-components/card-form.d.ts +20 -0
  478. package/dist/types/components/modular-checkout/sub-components/payment-method-option.d.ts +8 -0
  479. package/dist/types/components/modular-checkout/sub-components/saved-payment-methods.d.ts +7 -0
  480. package/dist/types/components/{checkout → modular-checkout/sub-components}/sezzle-payment-method.d.ts +3 -9
  481. package/dist/types/components/modular-checkout/sub-components/summary.d.ts +3 -0
  482. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +42 -15
  483. package/dist/types/components.d.ts +303 -219
  484. package/dist/types/store/checkout.store.d.ts +27 -0
  485. package/dist/types/ui-components/form/iframe-input.d.ts +2 -1
  486. package/dist/types/ui-components/index.d.ts +1 -0
  487. package/dist/types/ui-components/shadow-dom-components/justifi-button.d.ts +13 -0
  488. package/dist/types/ui-components/shadow-dom-components/justifi-radio-list-item.d.ts +12 -0
  489. package/dist/types/ui-components/shadow-dom-components/justifi-skeleton.d.ts +10 -0
  490. package/dist/webcomponents/p-08ea8974.entry.js +1 -0
  491. package/dist/webcomponents/p-0932f6a9.entry.js +1 -0
  492. package/dist/webcomponents/p-09e768fe.entry.js +1 -0
  493. package/dist/webcomponents/p-0dcc83ac.entry.js +1 -0
  494. package/dist/webcomponents/p-131d799c.entry.js +1 -0
  495. package/dist/webcomponents/p-15777cfe.entry.js +1 -0
  496. package/dist/webcomponents/p-1bdce018.entry.js +1 -0
  497. package/dist/webcomponents/p-1d53f0b8.entry.js +1 -0
  498. package/dist/webcomponents/p-1f8cd44e.entry.js +1 -0
  499. package/dist/webcomponents/p-22be0859.entry.js +1 -0
  500. package/dist/webcomponents/p-283cd78b.entry.js +1 -0
  501. package/dist/webcomponents/{p-db9f3fcd.entry.js → p-28c7bef7.entry.js} +3 -3
  502. package/dist/webcomponents/p-2f31a4e5.entry.js +1 -0
  503. package/dist/webcomponents/p-36d72e2d.entry.js +1 -0
  504. package/dist/webcomponents/p-3a4ca4df.entry.js +1 -0
  505. package/dist/webcomponents/p-3d85d046.entry.js +1 -0
  506. package/dist/webcomponents/p-40ba49e4.entry.js +1 -0
  507. package/dist/webcomponents/p-424f491c.entry.js +1 -0
  508. package/dist/webcomponents/p-466f33d7.entry.js +1 -0
  509. package/dist/webcomponents/{p-2e734e97.entry.js → p-48bccf3b.entry.js} +1 -1
  510. package/dist/webcomponents/{p-254724c4.entry.js → p-4ba144ac.entry.js} +1 -1
  511. package/dist/webcomponents/{p-437aaa5e.entry.js → p-57143978.entry.js} +1 -1
  512. package/dist/webcomponents/p-57802e57.entry.js +1 -0
  513. package/dist/webcomponents/{p-BTS3E50C.js → p-5aA7gjr5.js} +1 -1
  514. package/dist/webcomponents/p-5rVtZ2GJ.js +1 -0
  515. package/dist/webcomponents/p-6849bf8e.entry.js +1 -0
  516. package/dist/webcomponents/p-6e18d13f.entry.js +1 -0
  517. package/dist/webcomponents/p-7322c86e.entry.js +1 -0
  518. package/dist/webcomponents/p-77515be6.entry.js +1 -0
  519. package/dist/webcomponents/p-79055216.entry.js +1 -0
  520. package/dist/webcomponents/p-7c51805a.entry.js +1 -0
  521. package/dist/webcomponents/p-818f51fd.entry.js +1 -0
  522. package/dist/webcomponents/p-828a61b9.entry.js +1 -0
  523. package/dist/webcomponents/p-89e27079.entry.js +1 -0
  524. package/dist/webcomponents/p-8f0339de.entry.js +1 -0
  525. package/dist/webcomponents/p-904a95e5.entry.js +1 -0
  526. package/dist/webcomponents/p-9106fd74.entry.js +1 -0
  527. package/dist/webcomponents/p-9b75aced.entry.js +1 -0
  528. package/dist/webcomponents/p-BC8YDY7M.js +1 -0
  529. package/dist/webcomponents/{p-7MWRbTXI.js → p-BH0Xfn-F.js} +1 -1
  530. package/dist/webcomponents/p-BNz6wy4f.js +1 -0
  531. package/dist/webcomponents/p-BTkXk7ol.js +1 -0
  532. package/dist/webcomponents/p-Bb6FBEPP.js +1 -0
  533. package/dist/webcomponents/{p-CSNli0tl.js → p-BbYVgLcf.js} +1 -1
  534. package/dist/webcomponents/{p-CvXbmLtl.js → p-BeszVz87.js} +1 -1
  535. package/dist/webcomponents/p-BisQ61nK.js +1 -0
  536. package/dist/webcomponents/p-Bpcb3SsP.js +1 -0
  537. package/dist/webcomponents/p-BySyDTv5.js +1 -0
  538. package/dist/webcomponents/{p-CA1oADw4.js → p-Bz164TKZ.js} +1 -1
  539. package/dist/webcomponents/p-C1fMfnu0.js +1 -0
  540. package/dist/webcomponents/p-CCME-fyU.js +1 -0
  541. package/dist/webcomponents/p-CLwzqWk2.js +1 -0
  542. package/dist/webcomponents/p-C_CXv7AN.js +1 -0
  543. package/dist/webcomponents/{p-CVGBVdVC.js → p-CfF8KKwx.js} +1 -1
  544. package/dist/webcomponents/p-Cjcsf8ku.js +1 -0
  545. package/dist/webcomponents/{p-QxJlhLWM.js → p-CsNubTqD.js} +1 -1
  546. package/dist/webcomponents/p-CwZKT93w.js +1 -0
  547. package/dist/webcomponents/{p-C5RuuShs.js → p-D2muobcE.js} +1 -1
  548. package/dist/webcomponents/p-D599ZMGU.js +1 -0
  549. package/dist/webcomponents/p-DD74a16D.js +1 -0
  550. package/dist/webcomponents/p-DH8F0bsw.js +1 -0
  551. package/dist/webcomponents/{p-DkaX7Taq.js → p-DO3INvI2.js} +1 -1
  552. package/dist/webcomponents/p-DWUnL_zj.js +1 -0
  553. package/dist/webcomponents/p-DYGIC0QH.js +1 -0
  554. package/dist/webcomponents/{p-PmGAGJ5K.js → p-Dvxpy_P1.js} +1 -1
  555. package/dist/webcomponents/p-HXpYMWUU.js +1 -0
  556. package/dist/webcomponents/{p-CZ8q2CPi.js → p-I8XpD1TX.js} +1 -1
  557. package/dist/webcomponents/{p-BvLgDun_.js → p-JgbsbAhz.js} +1 -1
  558. package/dist/webcomponents/p-O3LY2Da6.js +1 -0
  559. package/dist/webcomponents/p-UD2JhYS2.js +1 -0
  560. package/dist/webcomponents/p-WEguiGt1.js +1 -0
  561. package/dist/webcomponents/{p-DBhBVIU-.js → p-YND5pTuF.js} +1 -1
  562. package/dist/webcomponents/p-ZpPDShvP.js +1 -0
  563. package/dist/webcomponents/p-a4172773.entry.js +1 -0
  564. package/dist/webcomponents/p-a7d5e434.entry.js +1 -0
  565. package/dist/webcomponents/p-a8205044.entry.js +1 -0
  566. package/dist/webcomponents/p-ae4297dd.entry.js +1 -0
  567. package/dist/webcomponents/p-ae5a3c2a.entry.js +1 -0
  568. package/dist/webcomponents/{p-831337bc.entry.js → p-b0bfa20f.entry.js} +1 -1
  569. package/dist/webcomponents/p-ba8ae31f.entry.js +1 -0
  570. package/dist/webcomponents/p-be06d86a.entry.js +1 -0
  571. package/dist/webcomponents/p-bea4309d.entry.js +1 -0
  572. package/dist/webcomponents/p-c3a2c619.entry.js +1 -0
  573. package/dist/webcomponents/{p-c711551a.entry.js → p-c5b48e8d.entry.js} +1 -1
  574. package/dist/webcomponents/p-cebe360b.entry.js +1 -0
  575. package/dist/webcomponents/p-d0e24727.entry.js +1 -0
  576. package/dist/webcomponents/p-d77908ca.entry.js +1 -0
  577. package/dist/webcomponents/p-dd257e60.entry.js +1 -0
  578. package/dist/webcomponents/p-dd689b5e.entry.js +1 -0
  579. package/dist/webcomponents/p-dd6d6ddb.entry.js +1 -0
  580. package/dist/webcomponents/{p-e7b60660.entry.js → p-ded22005.entry.js} +1 -1
  581. package/dist/webcomponents/p-df199396.entry.js +1 -0
  582. package/dist/webcomponents/p-dfd7c212.entry.js +1 -0
  583. package/dist/webcomponents/p-e830a580.entry.js +1 -0
  584. package/dist/webcomponents/p-e859ece8.entry.js +1 -0
  585. package/dist/webcomponents/p-eaea7cc1.entry.js +1 -0
  586. package/dist/webcomponents/p-f01953ea.entry.js +1 -0
  587. package/dist/webcomponents/p-f3a757b2.entry.js +1 -0
  588. package/dist/webcomponents/p-f47095cd.entry.js +1 -0
  589. package/dist/webcomponents/p-fa33df9f.entry.js +1 -0
  590. package/dist/webcomponents/p-ff3377e7.entry.js +1 -0
  591. package/dist/webcomponents/p-ff869ded.entry.js +1 -0
  592. package/dist/webcomponents/p-qMrd7_Gp.js +1 -0
  593. package/dist/webcomponents/{p-BRBt7Vt-.js → p-vRhNRfmB.js} +1 -1
  594. package/dist/webcomponents/p-zdIeCUeh.js +1 -0
  595. package/dist/webcomponents/p-zrUQD0Wr.js +1 -0
  596. package/dist/webcomponents/webcomponents.esm.js +1 -1
  597. package/package.json +1 -1
  598. package/dist/cjs/Checkout-nsVtlYWD.js +0 -103
  599. package/dist/cjs/Payment-2Zmn-l6G.js +0 -151
  600. package/dist/cjs/bank-account-form_9.cjs.entry.js +0 -542
  601. package/dist/cjs/iframe-input-styles-state-CGWgxf_0.js +0 -26
  602. package/dist/cjs/justifi-checkout-core.cjs.entry.js +0 -141
  603. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +0 -124
  604. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +0 -80
  605. package/dist/collection/components/checkout/checkout-core.js +0 -454
  606. package/dist/collection/components/checkout/new-payment-method.js +0 -378
  607. package/dist/collection/components/checkout/payment-method-options.js +0 -440
  608. package/dist/collection/components/checkout/sezzle-payment-method.js +0 -240
  609. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +0 -447
  610. package/dist/esm/Checkout-DfRTGCdt.js +0 -101
  611. package/dist/esm/Payment-93PpwzdC.js +0 -149
  612. package/dist/esm/bank-account-form_9.entry.js +0 -532
  613. package/dist/esm/iframe-input-styles-state-2KXH-_4X.js +0 -23
  614. package/dist/esm/insurance-state-yzV5mr5o.js +0 -28
  615. package/dist/esm/justifi-checkout-core.entry.js +0 -139
  616. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +0 -122
  617. package/dist/esm/justifi-tokenize-payment-method.entry.js +0 -78
  618. package/dist/module/Checkout.js +0 -121
  619. package/dist/module/Payment.js +0 -204
  620. package/dist/module/checkout-core.js +0 -292
  621. package/dist/module/justifi-checkout-core.js +0 -6
  622. package/dist/module/justifi-new-payment-method.d.ts +0 -11
  623. package/dist/module/justifi-new-payment-method.js +0 -6
  624. package/dist/module/justifi-payment-method-options.d.ts +0 -11
  625. package/dist/module/justifi-payment-method-options.js +0 -6
  626. package/dist/module/justifi-season-interruption-insurance-core.d.ts +0 -11
  627. package/dist/module/justifi-season-interruption-insurance-core.js +0 -6
  628. package/dist/module/new-payment-method.js +0 -222
  629. package/dist/module/payment-method-options.js +0 -237
  630. package/dist/module/saved-payment-method.js +0 -79
  631. package/dist/module/season-interruption-insurance-core.js +0 -168
  632. package/dist/types/components/checkout/checkout-core.d.ts +0 -49
  633. package/dist/types/components/checkout/new-payment-method.d.ts +0 -31
  634. package/dist/types/components/checkout/payment-method-options.d.ts +0 -32
  635. package/dist/types/components/insurance/season-interruption/season-interruption-insurance-core.d.ts +0 -32
  636. package/dist/webcomponents/p-08ae973e.entry.js +0 -1
  637. package/dist/webcomponents/p-0ac1bb26.entry.js +0 -1
  638. package/dist/webcomponents/p-0ced05b3.entry.js +0 -1
  639. package/dist/webcomponents/p-144f15c1.entry.js +0 -1
  640. package/dist/webcomponents/p-20a75acd.entry.js +0 -1
  641. package/dist/webcomponents/p-2634a1ee.entry.js +0 -1
  642. package/dist/webcomponents/p-28133336.entry.js +0 -1
  643. package/dist/webcomponents/p-29f81159.entry.js +0 -1
  644. package/dist/webcomponents/p-2b1090d0.entry.js +0 -1
  645. package/dist/webcomponents/p-3aafab63.entry.js +0 -1
  646. package/dist/webcomponents/p-3b98d8ca.entry.js +0 -1
  647. package/dist/webcomponents/p-3f771784.entry.js +0 -1
  648. package/dist/webcomponents/p-4114a328.entry.js +0 -1
  649. package/dist/webcomponents/p-41ab2378.entry.js +0 -1
  650. package/dist/webcomponents/p-423ad3eb.entry.js +0 -1
  651. package/dist/webcomponents/p-43752d57.entry.js +0 -1
  652. package/dist/webcomponents/p-44FkPJq7.js +0 -1
  653. package/dist/webcomponents/p-50f8e87e.entry.js +0 -1
  654. package/dist/webcomponents/p-52092407.entry.js +0 -1
  655. package/dist/webcomponents/p-52ede69d.entry.js +0 -1
  656. package/dist/webcomponents/p-540c31f2.entry.js +0 -1
  657. package/dist/webcomponents/p-5B_nojEF.js +0 -1
  658. package/dist/webcomponents/p-5dbd1b93.entry.js +0 -1
  659. package/dist/webcomponents/p-6158cf60.entry.js +0 -1
  660. package/dist/webcomponents/p-652cc155.entry.js +0 -1
  661. package/dist/webcomponents/p-66a77e7d.entry.js +0 -1
  662. package/dist/webcomponents/p-6816c021.entry.js +0 -1
  663. package/dist/webcomponents/p-69800e4a.entry.js +0 -1
  664. package/dist/webcomponents/p-6dd98d75.entry.js +0 -1
  665. package/dist/webcomponents/p-7528f993.entry.js +0 -1
  666. package/dist/webcomponents/p-7bc9d8f4.entry.js +0 -1
  667. package/dist/webcomponents/p-7be2ef8d.entry.js +0 -1
  668. package/dist/webcomponents/p-7d3a563f.entry.js +0 -1
  669. package/dist/webcomponents/p-8dfc21d5.entry.js +0 -1
  670. package/dist/webcomponents/p-96b75110.entry.js +0 -1
  671. package/dist/webcomponents/p-BEXEpjn_.js +0 -1
  672. package/dist/webcomponents/p-BGUDiFCH.js +0 -1
  673. package/dist/webcomponents/p-BZ70sqbi.js +0 -1
  674. package/dist/webcomponents/p-BiWuElbM.js +0 -1
  675. package/dist/webcomponents/p-BwRi5Eou.js +0 -1
  676. package/dist/webcomponents/p-CHB0cPw7.js +0 -1
  677. package/dist/webcomponents/p-Cs0cIpIm.js +0 -1
  678. package/dist/webcomponents/p-Cuxr_9xa.js +0 -1
  679. package/dist/webcomponents/p-D-vUkGsU.js +0 -1
  680. package/dist/webcomponents/p-D6ssxpjT.js +0 -1
  681. package/dist/webcomponents/p-DAasymX_.js +0 -1
  682. package/dist/webcomponents/p-DIxPWgIk.js +0 -1
  683. package/dist/webcomponents/p-DT-cTREr.js +0 -1
  684. package/dist/webcomponents/p-DZgAEPoo.js +0 -1
  685. package/dist/webcomponents/p-DZw7v4st.js +0 -1
  686. package/dist/webcomponents/p-Dgo6D5G7.js +0 -1
  687. package/dist/webcomponents/p-DniQ6yo6.js +0 -1
  688. package/dist/webcomponents/p-DwtqmD1M.js +0 -1
  689. package/dist/webcomponents/p-G_As8rAe.js +0 -1
  690. package/dist/webcomponents/p-SdntD1xf.js +0 -1
  691. package/dist/webcomponents/p-Y-KcAUY_.js +0 -1
  692. package/dist/webcomponents/p-a1ce996c.entry.js +0 -1
  693. package/dist/webcomponents/p-a3c5ac1c.entry.js +0 -1
  694. package/dist/webcomponents/p-af3ef542.entry.js +0 -1
  695. package/dist/webcomponents/p-b3e8e00f.entry.js +0 -1
  696. package/dist/webcomponents/p-b46bf62f.entry.js +0 -1
  697. package/dist/webcomponents/p-b8b7603c.entry.js +0 -1
  698. package/dist/webcomponents/p-be165165.entry.js +0 -1
  699. package/dist/webcomponents/p-c8ae1620.entry.js +0 -1
  700. package/dist/webcomponents/p-d47a05ba.entry.js +0 -1
  701. package/dist/webcomponents/p-d54963ce.entry.js +0 -1
  702. package/dist/webcomponents/p-d5505b45.entry.js +0 -1
  703. package/dist/webcomponents/p-d6f02807.entry.js +0 -1
  704. package/dist/webcomponents/p-d711f296.entry.js +0 -1
  705. package/dist/webcomponents/p-d9704f8c.entry.js +0 -1
  706. package/dist/webcomponents/p-da6790bb.entry.js +0 -1
  707. package/dist/webcomponents/p-da731140.entry.js +0 -1
  708. package/dist/webcomponents/p-e3197269.entry.js +0 -1
  709. package/dist/webcomponents/p-e4dbec27.entry.js +0 -1
  710. package/dist/webcomponents/p-f057b215.entry.js +0 -1
  711. package/dist/webcomponents/p-f9a18fcb.entry.js +0 -1
  712. package/dist/webcomponents/p-fa30d8bd.entry.js +0 -1
  713. package/dist/webcomponents/p-fc1e3832.entry.js +0 -1
  714. package/dist/webcomponents/p-lZ9GOnvt.js +0 -1
  715. package/dist/webcomponents/p-qnx9PpK1.js +0 -1
  716. package/dist/webcomponents/p-vi4XpHew.js +0 -1
  717. package/dist/webcomponents/p-zRPvfo_G.js +0 -1
@@ -1,447 +0,0 @@
1
- import { h } from "@stencil/core";
2
- import { addAttribute, formatCurrency, processHTML, removeAttribute } from "../../../utils/utils";
3
- import { insuranceValues, insuranceErrors, validateInsuranceValues } from "../insurance-state";
4
- import { StyledHost, Header2 } from "../../../ui-components";
5
- import { text, textDanger } from "../../../styles/parts";
6
- import SeasonInterruptionInsuranceLoading from "./season-interruption-insurance-loading";
7
- export class SeasonInterruptionInsuranceCore {
8
- constructor() {
9
- this.isLoading = true;
10
- }
11
- async validate() {
12
- return validateInsuranceValues();
13
- }
14
- processHTMLContent(html) {
15
- return processHTML(html, [
16
- (html) => removeAttribute(html, 'style'),
17
- (html) => addAttribute(html, 'a', 'part', text),
18
- (html) => addAttribute(html, 'p', 'part', text),
19
- ]);
20
- }
21
- componentWillLoad() {
22
- if (this.getQuote) {
23
- this.fetchData();
24
- }
25
- }
26
- ;
27
- fetchData() {
28
- this.isLoading = true;
29
- this.getQuote({
30
- payload: {
31
- checkout_id: this.checkoutId,
32
- policy_type: "season_interruption",
33
- primary_identity: {
34
- state: this.primaryIdentityState,
35
- email: this.primaryIdentityEmailAddress,
36
- first_name: this.primaryIdentityFirstName,
37
- last_name: this.primaryIdentityLastName,
38
- postal_code: this.primaryIdentityPostalCode,
39
- country: this.primaryIdentityCountry
40
- },
41
- policy_attributes: {
42
- insurable_amount: this.policyAttributesInsurableAmount,
43
- start_date: this.policyAttributesStartDate,
44
- end_date: this.policyAttributesEndDate,
45
- covered_identity: {
46
- first_name: this.coveredIdentityFirstName,
47
- last_name: this.coveredIdentityLastName
48
- }
49
- }
50
- },
51
- onSuccess: ({ quote }) => {
52
- this.quote = quote;
53
- this.quote.product.description = this.processHTMLContent(this.quote.product.description);
54
- this.quote.product.legal_disclaimer = this.processHTMLContent(this.quote.product.legal_disclaimer);
55
- insuranceValues[quote.policy_type] = quote.accepted;
56
- this.isLoading = false;
57
- },
58
- onError: ({ error, code, severity }) => {
59
- this.isLoading = false;
60
- this.errorEvent.emit({
61
- errorCode: code,
62
- message: error,
63
- severity,
64
- });
65
- }
66
- });
67
- }
68
- ;
69
- onChangeHandler(_name, value) {
70
- this.accepted = value;
71
- insuranceErrors[this.quote.policy_type] = false;
72
- this.toggleCoverage({
73
- quoteId: this.quote.id,
74
- payload: { accepted: this.accepted },
75
- onSuccess: () => {
76
- this.insuranceUpdated.emit();
77
- insuranceValues[this.quote.policy_type] = this.accepted;
78
- },
79
- onError: ({ error, code, severity }) => {
80
- this.errorEvent.emit({
81
- errorCode: code,
82
- message: error,
83
- severity,
84
- });
85
- }
86
- });
87
- }
88
- get error() {
89
- var _a;
90
- return insuranceErrors[(_a = this.quote) === null || _a === void 0 ? void 0 : _a.policy_type];
91
- }
92
- render() {
93
- var _a, _b, _c, _d;
94
- if (this.isLoading)
95
- return (h(StyledHost, null, h(SeasonInterruptionInsuranceLoading, null)));
96
- return (h(StyledHost, null, h("div", null, h(Header2, { text: (_a = this.quote) === null || _a === void 0 ? void 0 : _a.product.title, class: "fs-5 fw-bold pb-3" }), h("small", { part: text, innerHTML: (_b = this.quote) === null || _b === void 0 ? void 0 : _b.product.description }), h("form-control-radio", { label: `Accept coverage for ${formatCurrency((_c = this.quote) === null || _c === void 0 ? void 0 : _c.total_cents)}`, name: "opt-in", value: 'true', checked: this.accepted === 'true', inputHandler: this.onChangeHandler.bind(this),
97
- // don't wanna show error message, but need to show the red border
98
- errorText: this.error ? ' ' : undefined }), h("form-control-radio", { label: "Decline coverage", name: "opt-in", value: 'false', checked: this.accepted === 'false', inputHandler: this.onChangeHandler.bind(this), errorText: this.error ? ' ' : undefined }), h("div", { class: "invalid-feedback", style: { display: this.error ? 'block' : 'none' }, part: textDanger }, "Please select an option"), h("small", { part: text, innerHTML: (_d = this.quote) === null || _d === void 0 ? void 0 : _d.product.legal_disclaimer }))));
99
- }
100
- static get is() { return "justifi-season-interruption-insurance-core"; }
101
- static get properties() {
102
- return {
103
- "checkoutId": {
104
- "type": "string",
105
- "attribute": "checkout-id",
106
- "mutable": false,
107
- "complexType": {
108
- "original": "string",
109
- "resolved": "string",
110
- "references": {}
111
- },
112
- "required": false,
113
- "optional": false,
114
- "docs": {
115
- "tags": [],
116
- "text": ""
117
- },
118
- "getter": false,
119
- "setter": false,
120
- "reflect": false
121
- },
122
- "getQuote": {
123
- "type": "unknown",
124
- "attribute": "get-quote",
125
- "mutable": false,
126
- "complexType": {
127
- "original": "Function",
128
- "resolved": "Function",
129
- "references": {
130
- "Function": {
131
- "location": "global",
132
- "id": "global::Function"
133
- }
134
- }
135
- },
136
- "required": false,
137
- "optional": false,
138
- "docs": {
139
- "tags": [],
140
- "text": ""
141
- },
142
- "getter": false,
143
- "setter": false
144
- },
145
- "toggleCoverage": {
146
- "type": "unknown",
147
- "attribute": "toggle-coverage",
148
- "mutable": false,
149
- "complexType": {
150
- "original": "Function",
151
- "resolved": "Function",
152
- "references": {
153
- "Function": {
154
- "location": "global",
155
- "id": "global::Function"
156
- }
157
- }
158
- },
159
- "required": false,
160
- "optional": false,
161
- "docs": {
162
- "tags": [],
163
- "text": ""
164
- },
165
- "getter": false,
166
- "setter": false
167
- },
168
- "primaryIdentityFirstName": {
169
- "type": "string",
170
- "attribute": "primary-identity-first-name",
171
- "mutable": false,
172
- "complexType": {
173
- "original": "string",
174
- "resolved": "string",
175
- "references": {}
176
- },
177
- "required": false,
178
- "optional": false,
179
- "docs": {
180
- "tags": [],
181
- "text": ""
182
- },
183
- "getter": false,
184
- "setter": false,
185
- "reflect": false
186
- },
187
- "primaryIdentityLastName": {
188
- "type": "string",
189
- "attribute": "primary-identity-last-name",
190
- "mutable": false,
191
- "complexType": {
192
- "original": "string",
193
- "resolved": "string",
194
- "references": {}
195
- },
196
- "required": false,
197
- "optional": false,
198
- "docs": {
199
- "tags": [],
200
- "text": ""
201
- },
202
- "getter": false,
203
- "setter": false,
204
- "reflect": false
205
- },
206
- "primaryIdentityState": {
207
- "type": "string",
208
- "attribute": "primary-identity-state",
209
- "mutable": false,
210
- "complexType": {
211
- "original": "string",
212
- "resolved": "string",
213
- "references": {}
214
- },
215
- "required": false,
216
- "optional": false,
217
- "docs": {
218
- "tags": [],
219
- "text": ""
220
- },
221
- "getter": false,
222
- "setter": false,
223
- "reflect": false
224
- },
225
- "primaryIdentityPostalCode": {
226
- "type": "string",
227
- "attribute": "primary-identity-postal-code",
228
- "mutable": false,
229
- "complexType": {
230
- "original": "string",
231
- "resolved": "string",
232
- "references": {}
233
- },
234
- "required": false,
235
- "optional": false,
236
- "docs": {
237
- "tags": [],
238
- "text": ""
239
- },
240
- "getter": false,
241
- "setter": false,
242
- "reflect": false
243
- },
244
- "primaryIdentityCountry": {
245
- "type": "string",
246
- "attribute": "primary-identity-country",
247
- "mutable": false,
248
- "complexType": {
249
- "original": "string",
250
- "resolved": "string",
251
- "references": {}
252
- },
253
- "required": false,
254
- "optional": false,
255
- "docs": {
256
- "tags": [],
257
- "text": ""
258
- },
259
- "getter": false,
260
- "setter": false,
261
- "reflect": false
262
- },
263
- "primaryIdentityEmailAddress": {
264
- "type": "string",
265
- "attribute": "primary-identity-email-address",
266
- "mutable": false,
267
- "complexType": {
268
- "original": "string",
269
- "resolved": "string",
270
- "references": {}
271
- },
272
- "required": false,
273
- "optional": false,
274
- "docs": {
275
- "tags": [],
276
- "text": ""
277
- },
278
- "getter": false,
279
- "setter": false,
280
- "reflect": false
281
- },
282
- "policyAttributesInsurableAmount": {
283
- "type": "number",
284
- "attribute": "policy-attributes-insurable-amount",
285
- "mutable": false,
286
- "complexType": {
287
- "original": "number",
288
- "resolved": "number",
289
- "references": {}
290
- },
291
- "required": false,
292
- "optional": false,
293
- "docs": {
294
- "tags": [],
295
- "text": ""
296
- },
297
- "getter": false,
298
- "setter": false,
299
- "reflect": false
300
- },
301
- "policyAttributesStartDate": {
302
- "type": "string",
303
- "attribute": "policy-attributes-start-date",
304
- "mutable": false,
305
- "complexType": {
306
- "original": "string",
307
- "resolved": "string",
308
- "references": {}
309
- },
310
- "required": false,
311
- "optional": true,
312
- "docs": {
313
- "tags": [],
314
- "text": ""
315
- },
316
- "getter": false,
317
- "setter": false,
318
- "reflect": false
319
- },
320
- "policyAttributesEndDate": {
321
- "type": "string",
322
- "attribute": "policy-attributes-end-date",
323
- "mutable": false,
324
- "complexType": {
325
- "original": "string",
326
- "resolved": "string",
327
- "references": {}
328
- },
329
- "required": false,
330
- "optional": true,
331
- "docs": {
332
- "tags": [],
333
- "text": ""
334
- },
335
- "getter": false,
336
- "setter": false,
337
- "reflect": false
338
- },
339
- "coveredIdentityFirstName": {
340
- "type": "string",
341
- "attribute": "covered-identity-first-name",
342
- "mutable": false,
343
- "complexType": {
344
- "original": "string",
345
- "resolved": "string",
346
- "references": {}
347
- },
348
- "required": false,
349
- "optional": true,
350
- "docs": {
351
- "tags": [],
352
- "text": ""
353
- },
354
- "getter": false,
355
- "setter": false,
356
- "reflect": false
357
- },
358
- "coveredIdentityLastName": {
359
- "type": "string",
360
- "attribute": "covered-identity-last-name",
361
- "mutable": false,
362
- "complexType": {
363
- "original": "string",
364
- "resolved": "string",
365
- "references": {}
366
- },
367
- "required": false,
368
- "optional": true,
369
- "docs": {
370
- "tags": [],
371
- "text": ""
372
- },
373
- "getter": false,
374
- "setter": false,
375
- "reflect": false
376
- }
377
- };
378
- }
379
- static get states() {
380
- return {
381
- "quote": {},
382
- "isLoading": {},
383
- "accepted": {}
384
- };
385
- }
386
- static get events() {
387
- return [{
388
- "method": "insuranceUpdated",
389
- "name": "insurance-updated",
390
- "bubbles": true,
391
- "cancelable": true,
392
- "composed": true,
393
- "docs": {
394
- "tags": [],
395
- "text": ""
396
- },
397
- "complexType": {
398
- "original": "any",
399
- "resolved": "any",
400
- "references": {}
401
- }
402
- }, {
403
- "method": "errorEvent",
404
- "name": "error-event",
405
- "bubbles": true,
406
- "cancelable": true,
407
- "composed": true,
408
- "docs": {
409
- "tags": [],
410
- "text": ""
411
- },
412
- "complexType": {
413
- "original": "ComponentErrorEvent",
414
- "resolved": "ComponentErrorEvent",
415
- "references": {
416
- "ComponentErrorEvent": {
417
- "location": "import",
418
- "path": "../../../api/ComponentEvents",
419
- "id": "src/api/ComponentEvents.ts::ComponentErrorEvent"
420
- }
421
- }
422
- }
423
- }];
424
- }
425
- static get methods() {
426
- return {
427
- "validate": {
428
- "complexType": {
429
- "signature": "() => Promise<{ isValid: boolean; }>",
430
- "parameters": [],
431
- "references": {
432
- "Promise": {
433
- "location": "global",
434
- "id": "global::Promise"
435
- }
436
- },
437
- "return": "Promise<{ isValid: boolean; }>"
438
- },
439
- "docs": {
440
- "text": "",
441
- "tags": []
442
- }
443
- }
444
- };
445
- }
446
- }
447
- ;
@@ -1,101 +0,0 @@
1
- import { f as formatCurrency } from './utils-DIxPWgIk.js';
2
-
3
- class Completion {
4
- constructor(data) {
5
- this.payment_mode = ICheckoutPaymentMode[data.payment_mode];
6
- this.payment_token = data.payment_token;
7
- this.payment_status = data.payment_status;
8
- this.payment_response = data.payment_response;
9
- this.payment_error_code = data.payment_error_code;
10
- this.payment_error_description = data.payment_error_description;
11
- this.checkout_id = data.checkout_id;
12
- this.additional_transactions = data.additional_transactions;
13
- this.payment_id = data.payment_id;
14
- this.payment_method_id = data.payment_method_id;
15
- this.status = data.status;
16
- this.created_at = data.created_at;
17
- this.updated_at = data.updated_at;
18
- }
19
- }
20
- class Checkout {
21
- constructor(data) {
22
- var _a;
23
- this.id = data.id;
24
- this.description = data.description;
25
- this.payment_intent_id = data.payment_intent_id;
26
- this.account_id = data.account_id;
27
- this.platform_account_id = data.platform_account_id;
28
- this.payment_amount = data.payment_amount;
29
- this.payment_client_id = data.payment_client_id;
30
- this.payment_description = data.payment_description;
31
- this.payment_methods = data.payment_methods;
32
- this.payment_method_group_id = data.payment_method_group_id;
33
- this.payment_settings = data.payment_settings;
34
- this.bnpl = data.bnpl;
35
- this.total_amount = data.total_amount;
36
- this.insurance_amount = data.insurance_amount;
37
- this.status = ICheckoutStatus[data.status];
38
- this.payment_currency = data.payment_currency;
39
- this.mode = data.mode;
40
- this.statement_descriptor = data.statement_descriptor;
41
- this.application_fees = data.application_fees;
42
- this.successful_payment_id = data.successful_payment_id;
43
- this.created_at = data.created_at;
44
- this.updated_at = data.updated_at;
45
- this.completions = (_a = data.completions) === null || _a === void 0 ? void 0 : _a.map((completion) => new Completion(completion));
46
- }
47
- get payment_mode() {
48
- var _a, _b, _c, _d, _e, _f;
49
- let paymentMode;
50
- if (!this.completions || this.completions.length === 0) {
51
- return ICheckoutPaymentMode.unknown;
52
- }
53
- const sortedCompletions = this.completions.sort((a, b) => {
54
- return new Date(b.updated_at).getTime() - new Date(a.updated_at).getTime();
55
- });
56
- const lastCompletion = sortedCompletions[0];
57
- if (lastCompletion.payment_mode) {
58
- paymentMode = lastCompletion.payment_mode;
59
- }
60
- else if ((_c = (_b = (_a = lastCompletion.payment_response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.payment_method) === null || _c === void 0 ? void 0 : _c.card) {
61
- paymentMode = ICheckoutPaymentMode.card;
62
- }
63
- else if ((_f = (_e = (_d = lastCompletion.payment_response) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.payment_method) === null || _f === void 0 ? void 0 : _f.bank_account) {
64
- paymentMode = ICheckoutPaymentMode.bank_account;
65
- }
66
- return paymentMode;
67
- }
68
- ;
69
- formattedPaymentAmount(amount) {
70
- return formatCurrency(amount, this.payment_currency);
71
- }
72
- ;
73
- }
74
- var ICheckoutPaymentMode;
75
- (function (ICheckoutPaymentMode) {
76
- ICheckoutPaymentMode["bnpl"] = "Buy Now Pay Later";
77
- ICheckoutPaymentMode["ecom"] = "E-commerce";
78
- ICheckoutPaymentMode["card"] = "Card";
79
- ICheckoutPaymentMode["bank_account"] = "Bank Account";
80
- ICheckoutPaymentMode["card_present"] = "Card Present";
81
- ICheckoutPaymentMode["unknown"] = "";
82
- })(ICheckoutPaymentMode || (ICheckoutPaymentMode = {}));
83
- var ICheckoutPaymentModeParam;
84
- (function (ICheckoutPaymentModeParam) {
85
- ICheckoutPaymentModeParam["bnpl"] = "bnpl";
86
- ICheckoutPaymentModeParam["ecom"] = "ecom";
87
- })(ICheckoutPaymentModeParam || (ICheckoutPaymentModeParam = {}));
88
- var ICheckoutStatus;
89
- (function (ICheckoutStatus) {
90
- ICheckoutStatus["created"] = "created";
91
- ICheckoutStatus["completed"] = "completed";
92
- ICheckoutStatus["attempted"] = "attempted";
93
- ICheckoutStatus["expired"] = "expired";
94
- })(ICheckoutStatus || (ICheckoutStatus = {}));
95
- var CompletionStatuses;
96
- (function (CompletionStatuses) {
97
- CompletionStatuses["failed"] = "failed";
98
- CompletionStatuses["succeeded"] = "succeeded";
99
- })(CompletionStatuses || (CompletionStatuses = {}));
100
-
101
- export { Checkout as C, ICheckoutStatus as I, ICheckoutPaymentModeParam as a };