@justifi/webcomponents 6.12.0 → 6.12.1-rc.2
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.
- package/dist/cjs/{Analytics-DZCXB2Za.js → Analytics-DN1vWC6J.js} +2 -3
- package/dist/cjs/{Plaid-DR9WDZ98.js → Plaid-6JK8xPnG.js} +47 -14
- package/dist/cjs/{additional-questions-form-step_9.cjs.entry.js → additional-questions-form-step_14.cjs.entry.js} +451 -58
- package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +2 -2
- package/dist/cjs/bank-account-form.cjs.entry.js +4 -4
- package/dist/cjs/bank-account-read-only-value.cjs.entry.js +15 -0
- package/dist/cjs/{business.service-mliLE8kX.js → business.service-XXjIL3rT.js} +1 -2
- package/dist/cjs/card-form.cjs.entry.js +4 -4
- package/dist/cjs/{check-pkg-version-CUhnNGii.js → check-pkg-version-DKEv2rPI.js} +1 -1
- package/dist/cjs/{checkout.service-Cok0vRot.js → checkout.service-BUpGS3Nm.js} +1 -2
- package/dist/cjs/checkouts-list-core.cjs.entry.js +2 -3
- package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
- package/dist/cjs/{dispute.service-DEH_I2G9.js → dispute.service-BC_bJL60.js} +1 -2
- package/dist/cjs/form-address-fields_3.cjs.entry.js +3 -3
- package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/form-control-date.cjs.entry.js +2 -2
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
- package/dist/cjs/form-control-file.cjs.entry.js +59 -0
- package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number_3.cjs.entry.js +2 -2
- package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
- package/dist/cjs/form-control-select_2.cjs.entry.js +4 -4
- package/dist/cjs/{get-business-DF-XBH8G.js → get-business-Dk1gjO4B.js} +4 -4
- package/dist/cjs/{get-payment-details-DNpOyUyR.js → get-payment-details-Cvi1hHGJ.js} +4 -5
- package/dist/cjs/{get-payout-csv-DE_D9y08.js → get-payout-csv-CFsWBUNg.js} +3 -3
- package/dist/cjs/{get-subaccounts-BQW_RPW5.js → get-subaccounts-BPJ2-LBo.js} +4 -5
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
- package/dist/cjs/internal-button.cjs.entry.js +1 -1
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
- package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +60 -59
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +5 -6
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -6
- package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
- package/dist/cjs/justifi-billing-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +10 -11
- package/dist/cjs/justifi-business-form.cjs.entry.js +9 -10
- package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +5 -6
- package/dist/cjs/justifi-checkout.cjs.entry.js +6 -7
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +3 -4
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +12 -13
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +13 -14
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +19 -20
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +9 -10
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +14 -15
- package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +134 -18
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +11 -12
- package/dist/cjs/justifi-payout-details.cjs.entry.js +11 -12
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +14 -15
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +13 -14
- package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +11 -12
- package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +4 -5
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +11 -12
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -3
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -14
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-CJg8qLYd.js → package-EwQYAMPH.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +9 -10
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/{payment-provisioning-actions-J6TGZZb9.js → payment-provisioning-actions-DscyasDY.js} +18 -18
- package/dist/cjs/payment-provisioning-form-buttons_2.cjs.entry.js +52 -0
- package/dist/cjs/{payment.service-Dl9UExDw.js → payment.service-DC2FVlv-.js} +1 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +2 -3
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/{payout.service-kaFewwx4.js → payout.service-Bjbt6USA.js} +1 -2
- package/dist/cjs/payouts-list-core.cjs.entry.js +4 -5
- package/dist/cjs/{plaid.service-CK1ouCBC.js → plaid.service-C0ZgOkwL.js} +1 -2
- package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
- package/dist/cjs/save-new-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +3 -4
- package/dist/cjs/{terminal-orders-table-07fV7wGh.js → terminal-orders-table-j_IoYD-2.js} +1 -2
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/{terminal.service-UUoIe0IR.js → terminal.service-YAuPfEGz.js} +1 -2
- package/dist/cjs/terminals-list-core.cjs.entry.js +2 -3
- package/dist/cjs/{utils-DvUQQLmR.js → utils-C4CgQd55.js} +4 -4
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/ApplePay.js +4 -0
- package/dist/collection/api/services/apple-pay.service.js +1 -0
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +181 -10
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/billing-form/bank-account-billing-form-simple.js +1 -1
- package/dist/collection/components/checkout/billing-form/card-billing-form-simple.js +1 -1
- package/dist/collection/components/checkout/billing-form/justifi-billing-form.js +1 -1
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/justifi-checkout.js +2 -2
- package/dist/collection/components/checkout/justifi-saved-payment-method.js +1 -1
- package/dist/collection/components/checkout/save-new-payment-method/justifi-save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/save-new-payment-method/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
- package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-shipping-details.js +1 -1
- package/dist/collection/components/dispute-management/justifi-dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/justifi-dispute-notification.js +2 -2
- package/dist/collection/components/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +1 -0
- package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/order-terminals/justifi-order-terminals.js +1 -1
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-transactions-list/justifi-payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/justifi-payments-list.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +3 -3
- package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/justifi-payouts-list.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
- package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/justifi-terminals-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +1 -1
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +3 -3
- package/dist/collection/ui-components/internal-button.js +1 -1
- package/dist/collection/ui-components/radio-list-item.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
- package/dist/docs.json +11 -320
- package/dist/esm/{Analytics-C2EVi4Am.js → Analytics-Ds-ogIwt.js} +3 -4
- package/dist/esm/{Api-DI0-itk3.js → Api-BrYhtpEh.js} +1 -1
- package/dist/esm/{Plaid-vwPGZ5y4.js → Plaid-D40pFwwP.js} +36 -3
- package/dist/esm/additional-questions-details_5.entry.js +1 -1
- package/dist/esm/{additional-questions-form-step_9.entry.js → additional-questions-form-step_14.entry.js} +423 -35
- package/dist/esm/bank-account-billing-form-simple_4.entry.js +2 -2
- package/dist/esm/bank-account-form.entry.js +5 -5
- package/dist/esm/bank-account-read-only-value.entry.js +13 -0
- package/dist/esm/{business.service-M3YvwC-d.js → business.service-Bt68Uk7V.js} +2 -3
- package/dist/esm/card-form.entry.js +5 -5
- package/dist/esm/{check-pkg-version-qIHmWcbI.js → check-pkg-version-Bd_MOwNP.js} +1 -1
- package/dist/esm/{checkout.service-DdIBmfsp.js → checkout.service-B7K5LRx2.js} +2 -3
- package/dist/esm/checkouts-list-core.entry.js +4 -5
- package/dist/esm/{checkouts-table-4iLy6mvH.js → checkouts-table-BXm9GGFI.js} +1 -1
- package/dist/esm/custom-popper_2.entry.js +2 -2
- package/dist/esm/{dispute.service-BzzA0DeT.js → dispute.service-BPA0V42p.js} +2 -3
- package/dist/esm/form-address-fields_3.entry.js +3 -3
- package/dist/esm/form-control-checkbox.entry.js +2 -2
- package/dist/esm/form-control-date.entry.js +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +3 -3
- package/dist/esm/form-control-file.entry.js +57 -0
- package/dist/esm/form-control-monetary.entry.js +3 -3
- package/dist/esm/form-control-number_3.entry.js +2 -2
- package/dist/esm/form-control-radio.entry.js +2 -2
- package/dist/esm/form-control-select_2.entry.js +4 -4
- package/dist/esm/{get-business-BtJWpVs_.js → get-business-CijoB3Df.js} +2 -2
- package/dist/esm/{get-payment-details-CN7gUjBc.js → get-payment-details-B9JipaKX.js} +2 -3
- package/dist/esm/{get-payout-csv-D-Lnooki.js → get-payout-csv-CzWaTjoV.js} +2 -2
- package/dist/esm/{get-subaccounts-Mwx-aVcG.js → get-subaccounts-Dfo7wGVE.js} +3 -4
- package/dist/esm/gross-payment-chart-core.entry.js +2 -2
- package/dist/esm/hidden-input_2.entry.js +5 -5
- package/dist/esm/internal-button.entry.js +1 -1
- package/dist/esm/justifi-additional-statement_8.entry.js +8 -8
- package/dist/esm/justifi-apple-pay_11.entry.js +16 -15
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +7 -8
- package/dist/esm/justifi-bank-account-form.entry.js +7 -8
- package/dist/esm/justifi-billing-form-full.entry.js +1 -1
- package/dist/esm/justifi-billing-form.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +10 -11
- package/dist/esm/justifi-business-form.entry.js +9 -10
- package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
- package/dist/esm/justifi-card-form.entry.js +7 -8
- package/dist/esm/justifi-checkout.entry.js +8 -9
- package/dist/esm/justifi-checkouts-list-filters.entry.js +4 -5
- package/dist/esm/justifi-checkouts-list.entry.js +11 -12
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +10 -11
- package/dist/esm/justifi-dispute-notification_3.entry.js +13 -14
- package/dist/esm/justifi-gross-payment-chart.entry.js +7 -8
- package/dist/esm/justifi-order-terminals.entry.js +11 -12
- package/dist/esm/justifi-payment-details.entry.js +10 -11
- package/dist/esm/justifi-payment-provisioning.entry.js +133 -17
- package/dist/esm/justifi-payment-transactions-list.entry.js +9 -10
- package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +10 -11
- package/dist/esm/justifi-payout-details.entry.js +9 -10
- package/dist/esm/justifi-payout-transactions-list.entry.js +9 -10
- package/dist/esm/justifi-payouts-list-filters.entry.js +4 -5
- package/dist/esm/justifi-payouts-list.entry.js +12 -13
- package/dist/esm/justifi-refund-payment.entry.js +9 -10
- package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
- package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +7 -8
- package/dist/esm/justifi-skeleton.entry.js +1 -1
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +5 -6
- package/dist/esm/justifi-terminal-orders-list.entry.js +9 -10
- package/dist/esm/justifi-terminals-list-filters.entry.js +3 -4
- package/dist/esm/justifi-terminals-list.entry.js +11 -12
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-CIYOQWsL.js → package-B5w1e9rb.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +10 -11
- package/dist/esm/payment-method-option.entry.js +1 -1
- package/dist/esm/{payment-provisioning-actions-CBvplwPf.js → payment-provisioning-actions-Bv2HP9Cx.js} +3 -3
- package/dist/esm/payment-provisioning-form-buttons_2.entry.js +49 -0
- package/dist/esm/{payment.service-0k8z2rOV.js → payment.service-J7iQtC5z.js} +2 -3
- package/dist/esm/payments-list-core.entry.js +4 -5
- package/dist/esm/{payments-table-Bz7LmU_J.js → payments-table-n1VrIKIR.js} +1 -1
- package/dist/esm/payout-details-core.entry.js +4 -4
- package/dist/esm/{payout.service-C14YvCWQ.js → payout.service-Dsz8f37z.js} +2 -3
- package/dist/esm/payouts-list-core.entry.js +4 -5
- package/dist/esm/{payouts-table-Bpt__avQ.js → payouts-table-CbzI90ci.js} +1 -1
- package/dist/esm/{plaid.service-Dtxfrsm8.js → plaid.service-D1nDrcPY.js} +2 -3
- package/dist/esm/radio-list-item.entry.js +1 -1
- package/dist/esm/save-new-payment-method.entry.js +1 -1
- package/dist/esm/table-filters-menu.entry.js +1 -1
- package/dist/esm/terminal-orders-list-core.entry.js +4 -5
- package/dist/esm/{terminal-orders-table-DRnRR4zn.js → terminal-orders-table-DlVbBgNh.js} +2 -3
- package/dist/esm/terminal-quantity-selector.entry.js +1 -1
- package/dist/esm/{terminal.service-rxvEhqqF.js → terminal.service-Sg45obrZ.js} +2 -3
- package/dist/esm/terminals-list-core.entry.js +4 -5
- package/dist/esm/{terminals-table-DSDZgJ77.js → terminals-table-Bja7MP5H.js} +1 -1
- package/dist/esm/{utils-C_8ZxLti.js → utils-De6tr4ug.js} +1 -1
- package/dist/esm/{utils-BeQLScSm.js → utils-jaFbbifV.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/ApplePay.js +4 -0
- package/dist/module/Business.js +1 -1
- package/dist/module/bank-account-billing-form-simple2.js +1 -1
- package/dist/module/bank-account-document-form-inputs2.js +1 -1
- package/dist/module/bank-account-form-inputs-canada2.js +1 -1
- package/dist/module/bank-account-form-inputs2.js +1 -1
- package/dist/module/bank-account-form2.js +2 -2
- package/dist/module/bank-account-read-only-value2.js +1 -1
- package/dist/module/business-representative-form-inputs2.js +2 -2
- package/dist/module/business-terms-conditions-form-step2.js +1 -1
- package/dist/module/card-billing-form-simple2.js +1 -1
- package/dist/module/card-form2.js +2 -2
- package/dist/module/checkouts-list-core2.js +1 -1
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/form-address-fields2.js +1 -1
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +2 -2
- package/dist/module/form-control-monetary2.js +2 -2
- package/dist/module/form-control-number-masked2.js +2 -2
- package/dist/module/form-control-number2.js +2 -2
- package/dist/module/form-control-radio2.js +2 -2
- package/dist/module/form-control-select2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/gross-payment-chart-core2.js +2 -2
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/internal-button2.js +1 -1
- package/dist/module/justifi-additional-statement2.js +1 -1
- package/dist/module/justifi-apple-pay2.js +2 -0
- package/dist/module/justifi-bank-account-billing-form-simple.js +1 -1
- package/dist/module/justifi-bank-account-form.js +1 -1
- package/dist/module/justifi-billing-form-full.js +1 -1
- package/dist/module/justifi-billing-form.js +1 -1
- package/dist/module/justifi-business-form.js +1 -1
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-cancellation-policy2.js +1 -1
- package/dist/module/justifi-card-billing-form-simple.js +1 -1
- package/dist/module/justifi-card-form.js +1 -1
- package/dist/module/justifi-checkout-summary2.js +1 -1
- package/dist/module/justifi-checkout.js +2 -2
- package/dist/module/justifi-checkouts-list-filters.js +2 -2
- package/dist/module/justifi-checkouts-list.js +1 -1
- package/dist/module/justifi-customer-details2.js +1 -1
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-dispute-notification2.js +2 -2
- package/dist/module/justifi-dispute-response2.js +1 -1
- package/dist/module/justifi-duplicate-charge2.js +1 -1
- package/dist/module/justifi-electronic-evidence2.js +1 -1
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-modular-checkout2.js +1 -1
- package/dist/module/justifi-order-terminals.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +182 -65
- package/dist/module/justifi-payment-transactions-list.js +1 -1
- package/dist/module/justifi-payments-list-filters.js +2 -2
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +1 -1
- package/dist/module/justifi-payouts-list-filters.js +2 -2
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-product-or-service2.js +1 -1
- package/dist/module/justifi-refund-policy2.js +1 -1
- package/dist/module/justifi-save-new-payment-method.js +1 -1
- package/dist/module/justifi-saved-payment-method.js +1 -1
- package/dist/module/justifi-shipping-details2.js +1 -1
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
- package/dist/module/justifi-terminal-orders-list.js +1 -1
- package/dist/module/justifi-terminals-list-filters.js +1 -1
- package/dist/module/justifi-terminals-list.js +1 -1
- package/dist/module/justifi-tokenize-payment-method2.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payment-provisioning-form-buttons2.js +1 -1
- package/dist/module/payment-provisioning-form-steps2.js +1 -1
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/radio-list-item2.js +1 -1
- package/dist/module/save-new-payment-method2.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +1 -1
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminals-list-core2.js +2 -2
- package/dist/module/utils2.js +1 -1
- package/dist/types/api/ApplePay.d.ts +3 -0
- package/dist/types/components/business-forms/payment-provisioning/justifi-payment-provisioning.d.ts +26 -4
- package/dist/types/components.d.ts +4 -51
- package/dist/webcomponents/p-0b95dd8f.entry.js +1 -0
- package/dist/webcomponents/p-0ee11ceb.entry.js +1 -0
- package/dist/webcomponents/p-15377f17.entry.js +1 -0
- package/dist/webcomponents/p-15dfb893.entry.js +1 -0
- package/dist/webcomponents/{p-6372a42a.entry.js → p-15f43759.entry.js} +1 -1
- package/dist/webcomponents/p-1628613b.entry.js +1 -0
- package/dist/webcomponents/p-17fb6153.entry.js +1 -0
- package/dist/webcomponents/p-18fc10ca.entry.js +1 -0
- package/dist/webcomponents/{p-90f2c769.entry.js → p-1b92fb9a.entry.js} +1 -1
- package/dist/webcomponents/p-1c54dc53.entry.js +1 -0
- package/dist/webcomponents/p-1f2129ec.entry.js +1 -0
- package/dist/webcomponents/p-1fe99fde.entry.js +1 -0
- package/dist/webcomponents/p-20b0f88b.entry.js +1 -0
- package/dist/webcomponents/p-257597f1.entry.js +1 -0
- package/dist/webcomponents/{p-b31c9979.entry.js → p-26c419f3.entry.js} +1 -1
- package/dist/webcomponents/p-2f71285a.entry.js +1 -0
- package/dist/webcomponents/p-30662daa.entry.js +1 -0
- package/dist/webcomponents/p-30f61950.entry.js +1 -0
- package/dist/webcomponents/{p-3d135aee.entry.js → p-39bb134c.entry.js} +1 -1
- package/dist/webcomponents/p-3O6JkTxx.js +1 -0
- package/dist/webcomponents/p-3c50f7aa.entry.js +1 -0
- package/dist/webcomponents/p-3c59fe06.entry.js +1 -0
- package/dist/webcomponents/p-3e74bd93.entry.js +1 -0
- package/dist/webcomponents/p-45212820.entry.js +1 -0
- package/dist/webcomponents/p-46d8145c.entry.js +1 -0
- package/dist/webcomponents/{p-9838b5a7.entry.js → p-4db2e291.entry.js} +1 -1
- package/dist/webcomponents/{p-c07069f1.entry.js → p-55e7e239.entry.js} +1 -1
- package/dist/webcomponents/p-58e811cc.entry.js +1 -0
- package/dist/webcomponents/{p-534881d8.entry.js → p-5d2bcf39.entry.js} +1 -1
- package/dist/webcomponents/p-6ae9b2c5.entry.js +1 -0
- package/dist/webcomponents/p-6ba76fc2.entry.js +1 -0
- package/dist/webcomponents/p-6e5ec134.entry.js +1 -0
- package/dist/webcomponents/p-707e1e27.entry.js +1 -0
- package/dist/webcomponents/p-70a7c529.entry.js +1 -0
- package/dist/webcomponents/p-71de86bf.entry.js +1 -0
- package/dist/webcomponents/p-799e1a2f.entry.js +1 -0
- package/dist/webcomponents/p-80a9216a.entry.js +1 -0
- package/dist/webcomponents/p-8d215ad8.entry.js +1 -0
- package/dist/webcomponents/p-8d5138d8.entry.js +1 -0
- package/dist/webcomponents/p-8d88556f.entry.js +1 -0
- package/dist/webcomponents/p-8dc0e73a.entry.js +1 -0
- package/dist/webcomponents/p-8e9407a1.entry.js +1 -0
- package/dist/webcomponents/p-90d106c7.entry.js +1 -0
- package/dist/webcomponents/{p-d667138d.entry.js → p-938e4dc8.entry.js} +1 -1
- package/dist/webcomponents/p-99f3e1e0.entry.js +1 -0
- package/dist/webcomponents/{p-534833ca.entry.js → p-9a00cde1.entry.js} +1 -1
- package/dist/webcomponents/{p-J7WCmj-J.js → p-B--wlcf0.js} +1 -1
- package/dist/webcomponents/p-B2OPgLr1.js +1 -0
- package/dist/webcomponents/p-B5w1e9rb.js +1 -0
- package/dist/webcomponents/p-BIiEPAAI.js +1 -0
- package/dist/webcomponents/p-BMdYr88u.js +1 -0
- package/dist/webcomponents/p-BisDKGW5.js +1 -0
- package/dist/webcomponents/p-BlW92We8.js +1 -0
- package/dist/webcomponents/{p-D2muobcE.js → p-C-Uj-u5r.js} +1 -1
- package/dist/webcomponents/{p-D2TJwp13.js → p-C6IaNDXe.js} +1 -1
- package/dist/webcomponents/{p-DL0R5vDy.js → p-C95_YBmG.js} +1 -1
- package/dist/webcomponents/p-CASlE7cE.js +1 -0
- package/dist/webcomponents/{p-CMB3sNMT.js → p-CEnTtUmd.js} +1 -1
- package/dist/webcomponents/{p-Bwzxu5wV.js → p-CSW_ZzE9.js} +1 -1
- package/dist/webcomponents/{p-MkDHT9M4.js → p-CTwm3w6I.js} +1 -1
- package/dist/webcomponents/p-ChUBhd2W.js +1 -0
- package/dist/webcomponents/p-CpPclqiT.js +1 -0
- package/dist/webcomponents/{p-D0BjjvYt.js → p-DKzki_Iz.js} +1 -1
- package/dist/webcomponents/p-DtDYtwHR.js +1 -0
- package/dist/webcomponents/p-ZiYybdMz.js +1 -0
- package/dist/webcomponents/p-a00ccf58.entry.js +1 -0
- package/dist/webcomponents/p-a511a246.entry.js +1 -0
- package/dist/webcomponents/p-a9edf63a.entry.js +1 -0
- package/dist/webcomponents/p-ad785edd.entry.js +1 -0
- package/dist/webcomponents/p-afe956d9.entry.js +1 -0
- package/dist/webcomponents/p-b822ab7e.entry.js +1 -0
- package/dist/webcomponents/{p-1c95ec74.entry.js → p-bbcaa5cc.entry.js} +2 -2
- package/dist/webcomponents/p-bd3f7117.entry.js +1 -0
- package/dist/webcomponents/{p-2bec5dca.entry.js → p-c499a613.entry.js} +1 -1
- package/dist/webcomponents/p-c4d50650.entry.js +1 -0
- package/dist/webcomponents/p-c7ecb7d3.entry.js +1 -0
- package/dist/webcomponents/p-ce8de71b.entry.js +1 -0
- package/dist/webcomponents/{p-252a4f75.entry.js → p-d072a65f.entry.js} +1 -1
- package/dist/webcomponents/{p-ea84c544.entry.js → p-d34f497c.entry.js} +1 -1
- package/dist/webcomponents/p-d791e38e.entry.js +1 -0
- package/dist/webcomponents/p-d8918d5a.entry.js +1 -0
- package/dist/webcomponents/{p-42129686.entry.js → p-de4c796a.entry.js} +1 -1
- package/dist/webcomponents/p-e204efea.entry.js +1 -0
- package/dist/webcomponents/p-e70602bd.entry.js +1 -0
- package/dist/webcomponents/p-e751e2c3.entry.js +1 -0
- package/dist/webcomponents/{p-744f57f0.entry.js → p-ef30afd5.entry.js} +1 -1
- package/dist/webcomponents/p-f7522364.entry.js +1 -0
- package/dist/webcomponents/p-fNBks3-O.js +1 -0
- package/dist/webcomponents/p-facdac1b.entry.js +1 -0
- package/dist/webcomponents/p-g6a7Gl9y.js +1 -0
- package/dist/webcomponents/p-lFx33NDk.js +1 -0
- package/dist/webcomponents/p-x7WGc-xR.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +14 -14
- package/LICENSE +0 -21
- package/dist/cjs/ComponentError-D4OLnOkg.js +0 -31
- package/dist/cjs/bank-account-document-form-inputs_9.cjs.entry.js +0 -525
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +0 -151
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +0 -353
- package/dist/esm/ComponentError-Cjcsf8ku.js +0 -31
- package/dist/esm/bank-account-document-form-inputs_9.entry.js +0 -515
- package/dist/esm/justifi-payment-provisioning-core.entry.js +0 -149
- package/dist/module/justifi-payment-provisioning-core.d.ts +0 -11
- package/dist/module/justifi-payment-provisioning-core.js +0 -6
- package/dist/module/payment-provisioning-core.js +0 -367
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +0 -43
- package/dist/webcomponents/p-08424d71.entry.js +0 -1
- package/dist/webcomponents/p-089bc927.entry.js +0 -1
- package/dist/webcomponents/p-0b7fa323.entry.js +0 -1
- package/dist/webcomponents/p-16ae88d0.entry.js +0 -1
- package/dist/webcomponents/p-179fe9a0.entry.js +0 -1
- package/dist/webcomponents/p-1a9aecbf.entry.js +0 -1
- package/dist/webcomponents/p-1d1c48c3.entry.js +0 -1
- package/dist/webcomponents/p-1da3ba0f.entry.js +0 -1
- package/dist/webcomponents/p-26062991.entry.js +0 -1
- package/dist/webcomponents/p-26074643.entry.js +0 -1
- package/dist/webcomponents/p-2719f4db.entry.js +0 -1
- package/dist/webcomponents/p-2a0ce169.entry.js +0 -1
- package/dist/webcomponents/p-2b8df3c0.entry.js +0 -1
- package/dist/webcomponents/p-358f7121.entry.js +0 -1
- package/dist/webcomponents/p-383798ab.entry.js +0 -1
- package/dist/webcomponents/p-485a8795.entry.js +0 -1
- package/dist/webcomponents/p-4d222f42.entry.js +0 -1
- package/dist/webcomponents/p-53dd8569.entry.js +0 -1
- package/dist/webcomponents/p-56d58041.entry.js +0 -1
- package/dist/webcomponents/p-61784c6a.entry.js +0 -1
- package/dist/webcomponents/p-7108eead.entry.js +0 -1
- package/dist/webcomponents/p-729c9798.entry.js +0 -1
- package/dist/webcomponents/p-7742cf61.entry.js +0 -1
- package/dist/webcomponents/p-774b69a0.entry.js +0 -1
- package/dist/webcomponents/p-77600a47.entry.js +0 -1
- package/dist/webcomponents/p-783580d4.entry.js +0 -1
- package/dist/webcomponents/p-83fd4eae.entry.js +0 -1
- package/dist/webcomponents/p-848ae146.entry.js +0 -1
- package/dist/webcomponents/p-865d4604.entry.js +0 -1
- package/dist/webcomponents/p-8Kt4Rhcq.js +0 -1
- package/dist/webcomponents/p-8c52d10a.entry.js +0 -1
- package/dist/webcomponents/p-8df335d4.entry.js +0 -1
- package/dist/webcomponents/p-9639d9d0.entry.js +0 -1
- package/dist/webcomponents/p-97d16844.entry.js +0 -1
- package/dist/webcomponents/p-B6sIVWJW.js +0 -1
- package/dist/webcomponents/p-BmEX2SfZ.js +0 -1
- package/dist/webcomponents/p-C1olhiO9.js +0 -1
- package/dist/webcomponents/p-CAl_N2gi.js +0 -1
- package/dist/webcomponents/p-CBqZge6m.js +0 -1
- package/dist/webcomponents/p-CIYOQWsL.js +0 -1
- package/dist/webcomponents/p-CMqX6btO.js +0 -1
- package/dist/webcomponents/p-CWv3GX8X.js +0 -1
- package/dist/webcomponents/p-Cjcsf8ku.js +0 -1
- package/dist/webcomponents/p-CmXujxGp.js +0 -1
- package/dist/webcomponents/p-DLmWCafe.js +0 -1
- package/dist/webcomponents/p-DYGIC0QH.js +0 -1
- package/dist/webcomponents/p-Dvcgmvfg.js +0 -1
- package/dist/webcomponents/p-MLfmcsbZ.js +0 -1
- package/dist/webcomponents/p-R0FDNhyd.js +0 -1
- package/dist/webcomponents/p-a53fae42.entry.js +0 -1
- package/dist/webcomponents/p-a5640aa4.entry.js +0 -1
- package/dist/webcomponents/p-b21e5a85.entry.js +0 -1
- package/dist/webcomponents/p-b2d7a9dd.entry.js +0 -1
- package/dist/webcomponents/p-b596cbb3.entry.js +0 -1
- package/dist/webcomponents/p-b7ffdb30.entry.js +0 -1
- package/dist/webcomponents/p-bac16c16.entry.js +0 -1
- package/dist/webcomponents/p-bb4cc829.entry.js +0 -1
- package/dist/webcomponents/p-bbdae5b7.entry.js +0 -1
- package/dist/webcomponents/p-c4da12e0.entry.js +0 -1
- package/dist/webcomponents/p-c5be6300.entry.js +0 -1
- package/dist/webcomponents/p-c63b8c8f.entry.js +0 -1
- package/dist/webcomponents/p-d6350138.entry.js +0 -1
- package/dist/webcomponents/p-d6c2d51d.entry.js +0 -1
- package/dist/webcomponents/p-def798df.entry.js +0 -1
- package/dist/webcomponents/p-e2650fe5.entry.js +0 -1
- package/dist/webcomponents/p-e4ba0754.entry.js +0 -1
- package/dist/webcomponents/p-e939affa.entry.js +0 -1
- package/dist/webcomponents/p-e9c20b52.entry.js +0 -1
- package/dist/webcomponents/p-rz2BF2Sz.js +0 -1
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { h, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js';
|
|
2
|
-
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
3
|
-
import { C as CountryCode, B as Business, c as checkProvisioningStatus } from './Business-BcNb9bVO.js';
|
|
4
|
-
import { t as text } from './parts-D50Rx76J.js';
|
|
5
|
-
import { S as StyledHost } from './styled-host-D6byRazK.js';
|
|
6
|
-
import { H as Header1 } from './header-1-bRxxOyI-.js';
|
|
7
|
-
import './event-types-CZfYo5-1.js';
|
|
8
|
-
import { B as BusinessFormClickActions } from './event-types-XYgDHrVL.js';
|
|
9
|
-
import { P as PaymentProvisioningLoading } from './payment-provisioning-loading-BAoIyEOj.js';
|
|
10
|
-
import './skeleton-DV6yJalo.js';
|
|
11
|
-
|
|
12
|
-
const PaymentProvisioningAlreadyProvisioned = () => {
|
|
13
|
-
return (h("div", { class: "row gap-3 p-5" }, h("div", { class: "col-12" }, h(Header1, { text: "Business Already Provisioned" })), h("div", { class: "col-12", part: text }, h("p", null, "We have already received the onboarding information for this business."))));
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const PaymentProvisioningSubmissionComplete = () => {
|
|
17
|
-
return (h("div", { class: "row gap-3 p5" }, h("div", { class: "col-12" }, h(Header1, { text: "You're all set for now" })), h("div", { class: "col-12", part: text }, h("p", null, "We're reviewing your information and working on your approval. We'll be in touch to let you know once you've been approved (or if we find anything that needs fixing). Have a good one!"))));
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const JustifiPaymentProvisioningCore = class {
|
|
21
|
-
constructor(hostRef) {
|
|
22
|
-
registerInstance(this, hostRef);
|
|
23
|
-
this.clickEvent = createEvent(this, "click-event", 7);
|
|
24
|
-
this.errorEvent = createEvent(this, "error-event", 7);
|
|
25
|
-
this.submitEvent = createEvent(this, "submit-event", 7);
|
|
26
|
-
this.loading = false;
|
|
27
|
-
this.businessLoading = true;
|
|
28
|
-
this.businessProvisioned = false;
|
|
29
|
-
this.formSubmitted = false;
|
|
30
|
-
this.currentStep = 0;
|
|
31
|
-
this.country = CountryCode.USA;
|
|
32
|
-
this.allowOptionalFields = false;
|
|
33
|
-
this.setBusinessProvisioned = () => {
|
|
34
|
-
return new Promise((resolve) => {
|
|
35
|
-
this.getBusiness({
|
|
36
|
-
onSuccess: (response) => {
|
|
37
|
-
const business = new Business(response.data);
|
|
38
|
-
this.businessProvisioned = checkProvisioningStatus(business);
|
|
39
|
-
this.country = business.country_of_establishment;
|
|
40
|
-
if (this.businessProvisioned) {
|
|
41
|
-
this.errorEvent.emit({
|
|
42
|
-
message: 'A request to provision payments for this business has already been submitted.',
|
|
43
|
-
errorCode: ComponentErrorCodes.PROVISIONING_REQUESTED,
|
|
44
|
-
severity: ComponentErrorSeverity.INFO,
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
this.businessLoading = false;
|
|
48
|
-
resolve();
|
|
49
|
-
},
|
|
50
|
-
onError: ({ error, code, severity }) => {
|
|
51
|
-
this.errorEvent.emit({
|
|
52
|
-
message: error,
|
|
53
|
-
errorCode: code,
|
|
54
|
-
severity: severity
|
|
55
|
-
});
|
|
56
|
-
this.businessLoading = false;
|
|
57
|
-
resolve();
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
};
|
|
62
|
-
this.postProvisioningData = () => {
|
|
63
|
-
this.postProvisioning({
|
|
64
|
-
onSuccess: (response) => {
|
|
65
|
-
this.formSubmitted = true;
|
|
66
|
-
this.submitEvent.emit({ response: response });
|
|
67
|
-
},
|
|
68
|
-
onError: ({ error, code, severity }) => {
|
|
69
|
-
this.submitEvent.emit({ response: { error } });
|
|
70
|
-
this.errorEvent.emit({
|
|
71
|
-
message: error,
|
|
72
|
-
errorCode: code,
|
|
73
|
-
severity: severity
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
};
|
|
78
|
-
this.refs = [];
|
|
79
|
-
this.incrementSteps = () => {
|
|
80
|
-
if (this.currentStep < this.totalSteps) {
|
|
81
|
-
return this.currentStep++;
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
this.decrementSteps = () => { return this.currentStep--; };
|
|
85
|
-
this.previousStepButtonOnClick = () => {
|
|
86
|
-
this.clickEvent.emit({ name: BusinessFormClickActions.previousStep });
|
|
87
|
-
this.decrementSteps();
|
|
88
|
-
};
|
|
89
|
-
this.nextStepButtonOnClick = (e, clickEventName) => {
|
|
90
|
-
e.preventDefault();
|
|
91
|
-
this.clickEvent.emit({ name: clickEventName });
|
|
92
|
-
const currentStep = this.refs[this.currentStep];
|
|
93
|
-
currentStep.validateAndSubmit({ onSuccess: this.incrementSteps });
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
handleFormCompleted() {
|
|
97
|
-
this.postProvisioningData();
|
|
98
|
-
}
|
|
99
|
-
async componentWillLoad() {
|
|
100
|
-
if (this.getBusiness) {
|
|
101
|
-
await this.setBusinessProvisioned();
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
this.businessLoading = false;
|
|
105
|
-
}
|
|
106
|
-
this.refs = [
|
|
107
|
-
this.coreInfoRef,
|
|
108
|
-
this.legalAddressRef,
|
|
109
|
-
this.additionalQuestionsRef,
|
|
110
|
-
this.representativeRef,
|
|
111
|
-
this.ownersRef,
|
|
112
|
-
this.bankAccountRef,
|
|
113
|
-
this.termsRef,
|
|
114
|
-
];
|
|
115
|
-
}
|
|
116
|
-
get businessEndpoint() {
|
|
117
|
-
return `entities/business/${this.businessId}`;
|
|
118
|
-
}
|
|
119
|
-
get formDisabled() {
|
|
120
|
-
return this.loading || this.businessProvisioned;
|
|
121
|
-
}
|
|
122
|
-
get totalSteps() {
|
|
123
|
-
return this.refs.length - 1;
|
|
124
|
-
}
|
|
125
|
-
get stepCounter() {
|
|
126
|
-
return `Step ${this.currentStep + 1} of ${this.totalSteps + 1}`;
|
|
127
|
-
}
|
|
128
|
-
handleFormLoading(event) {
|
|
129
|
-
this.loading = event.detail;
|
|
130
|
-
}
|
|
131
|
-
render() {
|
|
132
|
-
// State 1: Loading
|
|
133
|
-
if (this.businessLoading) {
|
|
134
|
-
return (h(StyledHost, null, h(PaymentProvisioningLoading, null)));
|
|
135
|
-
}
|
|
136
|
-
// State 2: Already Provisioned
|
|
137
|
-
if (this.businessProvisioned) {
|
|
138
|
-
return (h(StyledHost, null, h(PaymentProvisioningAlreadyProvisioned, null)));
|
|
139
|
-
}
|
|
140
|
-
// State 3: Submission Complete
|
|
141
|
-
if (this.formSubmitted) {
|
|
142
|
-
return (h(StyledHost, null, h(PaymentProvisioningSubmissionComplete, null)));
|
|
143
|
-
}
|
|
144
|
-
// State 4: Form Steps (default)
|
|
145
|
-
return (h(StyledHost, null, h("div", { class: 'row gap-3' }, h(Header1, { text: this.formTitle }), h("payment-provisioning-form-steps", { businessId: this.businessId, authToken: this.authToken, refs: this.refs, currentStep: this.currentStep, allowOptionalFields: this.allowOptionalFields, country: this.country, handleFormLoading: this.handleFormLoading }), h("div", { class: 'd-flex justify-content-between align-items-center' }, h("div", { class: 'd-flex align-items-center', part: text }, this.stepCounter), h("payment-provisioning-form-buttons", { currentStep: this.currentStep, totalSteps: this.totalSteps, formLoading: this.loading, formDisabled: this.formDisabled, previousStepButtonOnClick: this.previousStepButtonOnClick, nextStepButtonOnClick: this.nextStepButtonOnClick })))));
|
|
146
|
-
}
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
export { JustifiPaymentProvisioningCore as justifi_payment_provisioning_core };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface JustifiPaymentProvisioningCore extends Components.JustifiPaymentProvisioningCore, HTMLElement {}
|
|
4
|
-
export const JustifiPaymentProvisioningCore: {
|
|
5
|
-
prototype: JustifiPaymentProvisioningCore;
|
|
6
|
-
new (): JustifiPaymentProvisioningCore;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { J as JustifiPaymentProvisioningCore$1, d as defineCustomElement$1 } from './payment-provisioning-core.js';
|
|
2
|
-
|
|
3
|
-
const JustifiPaymentProvisioningCore = JustifiPaymentProvisioningCore$1;
|
|
4
|
-
const defineCustomElement = defineCustomElement$1;
|
|
5
|
-
|
|
6
|
-
export { JustifiPaymentProvisioningCore, defineCustomElement };
|
|
@@ -1,367 +0,0 @@
|
|
|
1
|
-
import { h, proxyCustomElement, HTMLElement, createEvent } from '@stencil/core/internal/client';
|
|
2
|
-
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Plaid.js';
|
|
3
|
-
import { a as CountryCode, b as Business, e as checkProvisioningStatus } from './Business.js';
|
|
4
|
-
import { j as text } from './parts.js';
|
|
5
|
-
import { S as StyledHost } from './styled-host.js';
|
|
6
|
-
import { H as Header1 } from './header-1.js';
|
|
7
|
-
import './justifi-details2.js';
|
|
8
|
-
import './event-types.js';
|
|
9
|
-
import './justifi-radio-list-item2.js';
|
|
10
|
-
import { a as BusinessFormClickActions } from './event-types2.js';
|
|
11
|
-
import { P as PaymentProvisioningLoading } from './payment-provisioning-loading.js';
|
|
12
|
-
import { d as defineCustomElement$v } from './additional-questions-form-step2.js';
|
|
13
|
-
import { d as defineCustomElement$u } from './bank-account-document-form-inputs2.js';
|
|
14
|
-
import { d as defineCustomElement$t } from './bank-account-form-inputs2.js';
|
|
15
|
-
import { d as defineCustomElement$s } from './bank-account-form-inputs-canada2.js';
|
|
16
|
-
import { d as defineCustomElement$r } from './bank-account-read-only-value2.js';
|
|
17
|
-
import { d as defineCustomElement$q } from './business-bank-account-form-step2.js';
|
|
18
|
-
import { d as defineCustomElement$p } from './business-core-info-form-step2.js';
|
|
19
|
-
import { d as defineCustomElement$o } from './business-documents-on-file2.js';
|
|
20
|
-
import { d as defineCustomElement$n } from './business-owners-form-step2.js';
|
|
21
|
-
import { d as defineCustomElement$m } from './business-representative-form-inputs2.js';
|
|
22
|
-
import { d as defineCustomElement$l } from './business-representative-form-step2.js';
|
|
23
|
-
import { d as defineCustomElement$k } from './business-terms-conditions-form-step2.js';
|
|
24
|
-
import { d as defineCustomElement$j } from './custom-popper2.js';
|
|
25
|
-
import { d as defineCustomElement$i } from './form-address-fields2.js';
|
|
26
|
-
import { d as defineCustomElement$h } from './form-control-checkbox2.js';
|
|
27
|
-
import { d as defineCustomElement$g } from './form-control-date2.js';
|
|
28
|
-
import { d as defineCustomElement$f } from './form-control-file2.js';
|
|
29
|
-
import { d as defineCustomElement$e } from './form-control-monetary-provisioning2.js';
|
|
30
|
-
import { d as defineCustomElement$d } from './form-control-number2.js';
|
|
31
|
-
import { d as defineCustomElement$c } from './form-control-number-masked2.js';
|
|
32
|
-
import { d as defineCustomElement$b } from './form-control-select2.js';
|
|
33
|
-
import { d as defineCustomElement$a } from './form-control-text2.js';
|
|
34
|
-
import { d as defineCustomElement$9 } from './form-control-tooltip2.js';
|
|
35
|
-
import { d as defineCustomElement$8 } from './identity-address-form2.js';
|
|
36
|
-
import { d as defineCustomElement$7 } from './legal-address-form-step2.js';
|
|
37
|
-
import { d as defineCustomElement$6 } from './owner-form2.js';
|
|
38
|
-
import { d as defineCustomElement$5 } from './owner-form-core2.js';
|
|
39
|
-
import { d as defineCustomElement$4 } from './owner-form-inputs2.js';
|
|
40
|
-
import { d as defineCustomElement$3 } from './payment-provisioning-form-buttons2.js';
|
|
41
|
-
import { d as defineCustomElement$2 } from './payment-provisioning-form-steps2.js';
|
|
42
|
-
import { d as defineCustomElement$1 } from './plaid-verification2.js';
|
|
43
|
-
|
|
44
|
-
const PaymentProvisioningAlreadyProvisioned = () => {
|
|
45
|
-
return (h("div", { class: "row gap-3 p-5" }, h("div", { class: "col-12" }, h(Header1, { text: "Business Already Provisioned" })), h("div", { class: "col-12", part: text }, h("p", null, "We have already received the onboarding information for this business."))));
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
const PaymentProvisioningSubmissionComplete = () => {
|
|
49
|
-
return (h("div", { class: "row gap-3 p5" }, h("div", { class: "col-12" }, h(Header1, { text: "You're all set for now" })), h("div", { class: "col-12", part: text }, h("p", null, "We're reviewing your information and working on your approval. We'll be in touch to let you know once you've been approved (or if we find anything that needs fixing). Have a good one!"))));
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
const JustifiPaymentProvisioningCore = /*@__PURE__*/ proxyCustomElement(class JustifiPaymentProvisioningCore extends HTMLElement {
|
|
53
|
-
constructor(registerHost) {
|
|
54
|
-
super();
|
|
55
|
-
if (registerHost !== false) {
|
|
56
|
-
this.__registerHost();
|
|
57
|
-
}
|
|
58
|
-
this.clickEvent = createEvent(this, "click-event", 7);
|
|
59
|
-
this.errorEvent = createEvent(this, "error-event", 7);
|
|
60
|
-
this.submitEvent = createEvent(this, "submit-event", 7);
|
|
61
|
-
this.loading = false;
|
|
62
|
-
this.businessLoading = true;
|
|
63
|
-
this.businessProvisioned = false;
|
|
64
|
-
this.formSubmitted = false;
|
|
65
|
-
this.currentStep = 0;
|
|
66
|
-
this.country = CountryCode.USA;
|
|
67
|
-
this.allowOptionalFields = false;
|
|
68
|
-
this.setBusinessProvisioned = () => {
|
|
69
|
-
return new Promise((resolve) => {
|
|
70
|
-
this.getBusiness({
|
|
71
|
-
onSuccess: (response) => {
|
|
72
|
-
const business = new Business(response.data);
|
|
73
|
-
this.businessProvisioned = checkProvisioningStatus(business);
|
|
74
|
-
this.country = business.country_of_establishment;
|
|
75
|
-
if (this.businessProvisioned) {
|
|
76
|
-
this.errorEvent.emit({
|
|
77
|
-
message: 'A request to provision payments for this business has already been submitted.',
|
|
78
|
-
errorCode: ComponentErrorCodes.PROVISIONING_REQUESTED,
|
|
79
|
-
severity: ComponentErrorSeverity.INFO,
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
this.businessLoading = false;
|
|
83
|
-
resolve();
|
|
84
|
-
},
|
|
85
|
-
onError: ({ error, code, severity }) => {
|
|
86
|
-
this.errorEvent.emit({
|
|
87
|
-
message: error,
|
|
88
|
-
errorCode: code,
|
|
89
|
-
severity: severity
|
|
90
|
-
});
|
|
91
|
-
this.businessLoading = false;
|
|
92
|
-
resolve();
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
});
|
|
96
|
-
};
|
|
97
|
-
this.postProvisioningData = () => {
|
|
98
|
-
this.postProvisioning({
|
|
99
|
-
onSuccess: (response) => {
|
|
100
|
-
this.formSubmitted = true;
|
|
101
|
-
this.submitEvent.emit({ response: response });
|
|
102
|
-
},
|
|
103
|
-
onError: ({ error, code, severity }) => {
|
|
104
|
-
this.submitEvent.emit({ response: { error } });
|
|
105
|
-
this.errorEvent.emit({
|
|
106
|
-
message: error,
|
|
107
|
-
errorCode: code,
|
|
108
|
-
severity: severity
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
};
|
|
113
|
-
this.refs = [];
|
|
114
|
-
this.incrementSteps = () => {
|
|
115
|
-
if (this.currentStep < this.totalSteps) {
|
|
116
|
-
return this.currentStep++;
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
this.decrementSteps = () => { return this.currentStep--; };
|
|
120
|
-
this.previousStepButtonOnClick = () => {
|
|
121
|
-
this.clickEvent.emit({ name: BusinessFormClickActions.previousStep });
|
|
122
|
-
this.decrementSteps();
|
|
123
|
-
};
|
|
124
|
-
this.nextStepButtonOnClick = (e, clickEventName) => {
|
|
125
|
-
e.preventDefault();
|
|
126
|
-
this.clickEvent.emit({ name: clickEventName });
|
|
127
|
-
const currentStep = this.refs[this.currentStep];
|
|
128
|
-
currentStep.validateAndSubmit({ onSuccess: this.incrementSteps });
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
handleFormCompleted() {
|
|
132
|
-
this.postProvisioningData();
|
|
133
|
-
}
|
|
134
|
-
async componentWillLoad() {
|
|
135
|
-
if (this.getBusiness) {
|
|
136
|
-
await this.setBusinessProvisioned();
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
this.businessLoading = false;
|
|
140
|
-
}
|
|
141
|
-
this.refs = [
|
|
142
|
-
this.coreInfoRef,
|
|
143
|
-
this.legalAddressRef,
|
|
144
|
-
this.additionalQuestionsRef,
|
|
145
|
-
this.representativeRef,
|
|
146
|
-
this.ownersRef,
|
|
147
|
-
this.bankAccountRef,
|
|
148
|
-
this.termsRef,
|
|
149
|
-
];
|
|
150
|
-
}
|
|
151
|
-
get businessEndpoint() {
|
|
152
|
-
return `entities/business/${this.businessId}`;
|
|
153
|
-
}
|
|
154
|
-
get formDisabled() {
|
|
155
|
-
return this.loading || this.businessProvisioned;
|
|
156
|
-
}
|
|
157
|
-
get totalSteps() {
|
|
158
|
-
return this.refs.length - 1;
|
|
159
|
-
}
|
|
160
|
-
get stepCounter() {
|
|
161
|
-
return `Step ${this.currentStep + 1} of ${this.totalSteps + 1}`;
|
|
162
|
-
}
|
|
163
|
-
handleFormLoading(event) {
|
|
164
|
-
this.loading = event.detail;
|
|
165
|
-
}
|
|
166
|
-
render() {
|
|
167
|
-
// State 1: Loading
|
|
168
|
-
if (this.businessLoading) {
|
|
169
|
-
return (h(StyledHost, null, h(PaymentProvisioningLoading, null)));
|
|
170
|
-
}
|
|
171
|
-
// State 2: Already Provisioned
|
|
172
|
-
if (this.businessProvisioned) {
|
|
173
|
-
return (h(StyledHost, null, h(PaymentProvisioningAlreadyProvisioned, null)));
|
|
174
|
-
}
|
|
175
|
-
// State 3: Submission Complete
|
|
176
|
-
if (this.formSubmitted) {
|
|
177
|
-
return (h(StyledHost, null, h(PaymentProvisioningSubmissionComplete, null)));
|
|
178
|
-
}
|
|
179
|
-
// State 4: Form Steps (default)
|
|
180
|
-
return (h(StyledHost, null, h("div", { class: 'row gap-3' }, h(Header1, { text: this.formTitle }), h("payment-provisioning-form-steps", { businessId: this.businessId, authToken: this.authToken, refs: this.refs, currentStep: this.currentStep, allowOptionalFields: this.allowOptionalFields, country: this.country, handleFormLoading: this.handleFormLoading }), h("div", { class: 'd-flex justify-content-between align-items-center' }, h("div", { class: 'd-flex align-items-center', part: text }, this.stepCounter), h("payment-provisioning-form-buttons", { currentStep: this.currentStep, totalSteps: this.totalSteps, formLoading: this.loading, formDisabled: this.formDisabled, previousStepButtonOnClick: this.previousStepButtonOnClick, nextStepButtonOnClick: this.nextStepButtonOnClick })))));
|
|
181
|
-
}
|
|
182
|
-
}, [256, "justifi-payment-provisioning-core", {
|
|
183
|
-
"businessId": [1, "business-id"],
|
|
184
|
-
"authToken": [1, "auth-token"],
|
|
185
|
-
"allowOptionalFields": [4, "allow-optional-fields"],
|
|
186
|
-
"formTitle": [1, "form-title"],
|
|
187
|
-
"getBusiness": [16],
|
|
188
|
-
"postProvisioning": [16],
|
|
189
|
-
"loading": [32],
|
|
190
|
-
"businessLoading": [32],
|
|
191
|
-
"businessProvisioned": [32],
|
|
192
|
-
"formSubmitted": [32],
|
|
193
|
-
"currentStep": [32],
|
|
194
|
-
"errorMessage": [32],
|
|
195
|
-
"country": [32]
|
|
196
|
-
}, [[0, "formCompleted", "handleFormCompleted"], [0, "formLoading", "handleFormLoading"]]]);
|
|
197
|
-
function defineCustomElement() {
|
|
198
|
-
if (typeof customElements === "undefined") {
|
|
199
|
-
return;
|
|
200
|
-
}
|
|
201
|
-
const components = ["justifi-payment-provisioning-core", "additional-questions-form-step", "bank-account-document-form-inputs", "bank-account-form-inputs", "bank-account-form-inputs-canada", "bank-account-read-only-value", "business-bank-account-form-step", "business-core-info-form-step", "business-documents-on-file", "business-owners-form-step", "business-representative-form-inputs", "business-representative-form-step", "business-terms-conditions-form-step", "custom-popper", "form-address-fields", "form-control-checkbox", "form-control-date", "form-control-file", "form-control-monetary-provisioning", "form-control-number", "form-control-number-masked", "form-control-select", "form-control-text", "form-control-tooltip", "identity-address-form", "legal-address-form-step", "owner-form", "owner-form-core", "owner-form-inputs", "payment-provisioning-form-buttons", "payment-provisioning-form-steps", "plaid-verification"];
|
|
202
|
-
components.forEach(tagName => { switch (tagName) {
|
|
203
|
-
case "justifi-payment-provisioning-core":
|
|
204
|
-
if (!customElements.get(tagName)) {
|
|
205
|
-
customElements.define(tagName, JustifiPaymentProvisioningCore);
|
|
206
|
-
}
|
|
207
|
-
break;
|
|
208
|
-
case "additional-questions-form-step":
|
|
209
|
-
if (!customElements.get(tagName)) {
|
|
210
|
-
defineCustomElement$v();
|
|
211
|
-
}
|
|
212
|
-
break;
|
|
213
|
-
case "bank-account-document-form-inputs":
|
|
214
|
-
if (!customElements.get(tagName)) {
|
|
215
|
-
defineCustomElement$u();
|
|
216
|
-
}
|
|
217
|
-
break;
|
|
218
|
-
case "bank-account-form-inputs":
|
|
219
|
-
if (!customElements.get(tagName)) {
|
|
220
|
-
defineCustomElement$t();
|
|
221
|
-
}
|
|
222
|
-
break;
|
|
223
|
-
case "bank-account-form-inputs-canada":
|
|
224
|
-
if (!customElements.get(tagName)) {
|
|
225
|
-
defineCustomElement$s();
|
|
226
|
-
}
|
|
227
|
-
break;
|
|
228
|
-
case "bank-account-read-only-value":
|
|
229
|
-
if (!customElements.get(tagName)) {
|
|
230
|
-
defineCustomElement$r();
|
|
231
|
-
}
|
|
232
|
-
break;
|
|
233
|
-
case "business-bank-account-form-step":
|
|
234
|
-
if (!customElements.get(tagName)) {
|
|
235
|
-
defineCustomElement$q();
|
|
236
|
-
}
|
|
237
|
-
break;
|
|
238
|
-
case "business-core-info-form-step":
|
|
239
|
-
if (!customElements.get(tagName)) {
|
|
240
|
-
defineCustomElement$p();
|
|
241
|
-
}
|
|
242
|
-
break;
|
|
243
|
-
case "business-documents-on-file":
|
|
244
|
-
if (!customElements.get(tagName)) {
|
|
245
|
-
defineCustomElement$o();
|
|
246
|
-
}
|
|
247
|
-
break;
|
|
248
|
-
case "business-owners-form-step":
|
|
249
|
-
if (!customElements.get(tagName)) {
|
|
250
|
-
defineCustomElement$n();
|
|
251
|
-
}
|
|
252
|
-
break;
|
|
253
|
-
case "business-representative-form-inputs":
|
|
254
|
-
if (!customElements.get(tagName)) {
|
|
255
|
-
defineCustomElement$m();
|
|
256
|
-
}
|
|
257
|
-
break;
|
|
258
|
-
case "business-representative-form-step":
|
|
259
|
-
if (!customElements.get(tagName)) {
|
|
260
|
-
defineCustomElement$l();
|
|
261
|
-
}
|
|
262
|
-
break;
|
|
263
|
-
case "business-terms-conditions-form-step":
|
|
264
|
-
if (!customElements.get(tagName)) {
|
|
265
|
-
defineCustomElement$k();
|
|
266
|
-
}
|
|
267
|
-
break;
|
|
268
|
-
case "custom-popper":
|
|
269
|
-
if (!customElements.get(tagName)) {
|
|
270
|
-
defineCustomElement$j();
|
|
271
|
-
}
|
|
272
|
-
break;
|
|
273
|
-
case "form-address-fields":
|
|
274
|
-
if (!customElements.get(tagName)) {
|
|
275
|
-
defineCustomElement$i();
|
|
276
|
-
}
|
|
277
|
-
break;
|
|
278
|
-
case "form-control-checkbox":
|
|
279
|
-
if (!customElements.get(tagName)) {
|
|
280
|
-
defineCustomElement$h();
|
|
281
|
-
}
|
|
282
|
-
break;
|
|
283
|
-
case "form-control-date":
|
|
284
|
-
if (!customElements.get(tagName)) {
|
|
285
|
-
defineCustomElement$g();
|
|
286
|
-
}
|
|
287
|
-
break;
|
|
288
|
-
case "form-control-file":
|
|
289
|
-
if (!customElements.get(tagName)) {
|
|
290
|
-
defineCustomElement$f();
|
|
291
|
-
}
|
|
292
|
-
break;
|
|
293
|
-
case "form-control-monetary-provisioning":
|
|
294
|
-
if (!customElements.get(tagName)) {
|
|
295
|
-
defineCustomElement$e();
|
|
296
|
-
}
|
|
297
|
-
break;
|
|
298
|
-
case "form-control-number":
|
|
299
|
-
if (!customElements.get(tagName)) {
|
|
300
|
-
defineCustomElement$d();
|
|
301
|
-
}
|
|
302
|
-
break;
|
|
303
|
-
case "form-control-number-masked":
|
|
304
|
-
if (!customElements.get(tagName)) {
|
|
305
|
-
defineCustomElement$c();
|
|
306
|
-
}
|
|
307
|
-
break;
|
|
308
|
-
case "form-control-select":
|
|
309
|
-
if (!customElements.get(tagName)) {
|
|
310
|
-
defineCustomElement$b();
|
|
311
|
-
}
|
|
312
|
-
break;
|
|
313
|
-
case "form-control-text":
|
|
314
|
-
if (!customElements.get(tagName)) {
|
|
315
|
-
defineCustomElement$a();
|
|
316
|
-
}
|
|
317
|
-
break;
|
|
318
|
-
case "form-control-tooltip":
|
|
319
|
-
if (!customElements.get(tagName)) {
|
|
320
|
-
defineCustomElement$9();
|
|
321
|
-
}
|
|
322
|
-
break;
|
|
323
|
-
case "identity-address-form":
|
|
324
|
-
if (!customElements.get(tagName)) {
|
|
325
|
-
defineCustomElement$8();
|
|
326
|
-
}
|
|
327
|
-
break;
|
|
328
|
-
case "legal-address-form-step":
|
|
329
|
-
if (!customElements.get(tagName)) {
|
|
330
|
-
defineCustomElement$7();
|
|
331
|
-
}
|
|
332
|
-
break;
|
|
333
|
-
case "owner-form":
|
|
334
|
-
if (!customElements.get(tagName)) {
|
|
335
|
-
defineCustomElement$6();
|
|
336
|
-
}
|
|
337
|
-
break;
|
|
338
|
-
case "owner-form-core":
|
|
339
|
-
if (!customElements.get(tagName)) {
|
|
340
|
-
defineCustomElement$5();
|
|
341
|
-
}
|
|
342
|
-
break;
|
|
343
|
-
case "owner-form-inputs":
|
|
344
|
-
if (!customElements.get(tagName)) {
|
|
345
|
-
defineCustomElement$4();
|
|
346
|
-
}
|
|
347
|
-
break;
|
|
348
|
-
case "payment-provisioning-form-buttons":
|
|
349
|
-
if (!customElements.get(tagName)) {
|
|
350
|
-
defineCustomElement$3();
|
|
351
|
-
}
|
|
352
|
-
break;
|
|
353
|
-
case "payment-provisioning-form-steps":
|
|
354
|
-
if (!customElements.get(tagName)) {
|
|
355
|
-
defineCustomElement$2();
|
|
356
|
-
}
|
|
357
|
-
break;
|
|
358
|
-
case "plaid-verification":
|
|
359
|
-
if (!customElements.get(tagName)) {
|
|
360
|
-
defineCustomElement$1();
|
|
361
|
-
}
|
|
362
|
-
break;
|
|
363
|
-
} });
|
|
364
|
-
}
|
|
365
|
-
defineCustomElement();
|
|
366
|
-
|
|
367
|
-
export { JustifiPaymentProvisioningCore as J, defineCustomElement as d };
|
package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
-
import { ComponentClickEvent, ComponentErrorEvent, ComponentSubmitEvent } from '../../../api/ComponentEvents';
|
|
3
|
-
import { CountryCode } from '../../../utils/country-codes';
|
|
4
|
-
export declare class JustifiPaymentProvisioningCore {
|
|
5
|
-
loading: boolean;
|
|
6
|
-
businessLoading: boolean;
|
|
7
|
-
businessProvisioned: boolean;
|
|
8
|
-
formSubmitted: boolean;
|
|
9
|
-
currentStep: number;
|
|
10
|
-
errorMessage: string;
|
|
11
|
-
country: CountryCode;
|
|
12
|
-
businessId: string;
|
|
13
|
-
authToken: string;
|
|
14
|
-
allowOptionalFields?: boolean;
|
|
15
|
-
formTitle: string;
|
|
16
|
-
getBusiness: Function;
|
|
17
|
-
postProvisioning: Function;
|
|
18
|
-
clickEvent: EventEmitter<ComponentClickEvent>;
|
|
19
|
-
errorEvent: EventEmitter<ComponentErrorEvent>;
|
|
20
|
-
submitEvent: EventEmitter<ComponentSubmitEvent>;
|
|
21
|
-
handleFormCompleted(): void;
|
|
22
|
-
componentWillLoad(): Promise<void>;
|
|
23
|
-
setBusinessProvisioned: () => Promise<void>;
|
|
24
|
-
postProvisioningData: () => void;
|
|
25
|
-
private coreInfoRef;
|
|
26
|
-
private legalAddressRef;
|
|
27
|
-
private additionalQuestionsRef;
|
|
28
|
-
private representativeRef;
|
|
29
|
-
private ownersRef;
|
|
30
|
-
private bankAccountRef;
|
|
31
|
-
private termsRef;
|
|
32
|
-
private refs;
|
|
33
|
-
get businessEndpoint(): string;
|
|
34
|
-
get formDisabled(): boolean;
|
|
35
|
-
get totalSteps(): number;
|
|
36
|
-
get stepCounter(): string;
|
|
37
|
-
handleFormLoading(event: CustomEvent): void;
|
|
38
|
-
incrementSteps: () => number;
|
|
39
|
-
decrementSteps: () => number;
|
|
40
|
-
previousStepButtonOnClick: () => void;
|
|
41
|
-
nextStepButtonOnClick: (e: any, clickEventName: any) => void;
|
|
42
|
-
render(): any;
|
|
43
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-CV0Pyo1O.js";import{P as o}from"./p-Dvcgmvfg.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{C as r,a as e}from"./p-Cjcsf8ku.js";import{e as p}from"./p-CBqZge6m.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as a,a as h}from"./p-D2muobcE.js";import{E as m}from"./p-CjuaXEuI.js";import{J as n}from"./p-CmXujxGp.js";import{m as c}from"./p-DYGIC0QH.js";import{c as u}from"./p-D0BjjvYt.js";import"./p-CMB3sNMT.js";import"./p-MkDHT9M4.js";import"./p-D8GTwl9v.js";import"./p-D50Rx76J.js";import"./p-CIYOQWsL.js";const d=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.enableRecordClick=!1,this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){u(),this.analytics=new n(this),this.initializeServices()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeServices()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:o,onError:e})=>{var m;try{const n=await i.fetchPayout(t,s);n.error?e({error:h(n.error),code:a(null===(m=n.error)||void 0===m?void 0:m.code),severity:r.ERROR}):o(new p(n.data))}catch(t){e({error:h(t),code:a(null==t?void 0:t.code),severity:r.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new o}),this.getPayoutCSV=c({authToken:this.authToken,service:new o})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:e.MISSING_PROPS,severity:r.ERROR}))}render(){return this.errorMessage?m(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent,enableRecordClick:this.enableRecordClick})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_payout_details}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-CV0Pyo1O.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-CBqZge6m.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{T as a,a as r,b as h,c,d as o,e as n,f as p,g as f,h as d,i as m,j as b,k as u,l as g}from"./p-CwdQ1VdH.js";import{T as y}from"./p-CZfYo5-1.js";import{t as l,a as j}from"./p-DL0R5vDy.js";import{o as k,g as w}from"./p-Dw63wyhO.js";import"./p-D8GTwl9v.js";import"./p-MkDHT9M4.js";import"./p-D50Rx76J.js";import"./p-Df9FVwA7.js";import"./p-Da4efjxw.js";const C=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.terminals=[],this.subAccounts=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:y.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:y.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminals.find((t=>t.id===s));this.clickEvent.emit({name:y.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalsTable=new a(this.terminals,this.columns,l,j),this.getTerminals&&this.getSubAccounts&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminals({params:this.terminalParams,onSuccess:async({terminals:t,pagingInfo:s})=>{this.terminals=t,this.paging=s,this.terminalsTable.collectionData=this.terminals,this.terminalsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.terminals=this.terminals.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get terminalParams(){const t=w();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.terminals.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.terminals.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"02998f36781eed9ef569cc2214b257beac0948fd"},e(r,{key:"02f9eae9ac123b8147648f2f17eb2d4835fbf62c"},e(h,{key:"212c06a2f14cd1407d653d03d00bfff1eeb7e254"},e(c,{key:"2bc532ffe62e4fba60ae4545102ea156e31c01fc"},this.terminalsTable.columnData.map((t=>t)))),e(o,{key:"0791432813e6ed171d39d0615e61e8083544c0ab"},e(n,{key:"f21849ccae8af62b3710b826afc2742b68c0556f",columnSpan:this.terminalsTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"61ce65b0a5f7fde9fffec510fe139586e3422a50",isEmpty:this.showEmptyState,columnSpan:this.terminalsTable.columnKeys.length}),e(f,{key:"90981407df2e2f815ad8c91cec6c98db13e4a95c",columnSpan:this.terminalsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalsTable.rowData.map(((t,s)=>e(d,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(m,{key:"a3756808eb67e6d7cb38dac53d31b781c5aea090"},e(b,{key:"6526d2d7e29c1bcbb0613ebe1cf1317d643885c8"},e(u,{key:"270b17f77ddb10bc1ee5356b113049771819b908",colSpan:this.terminalsTable.columnData.length},e("pagination-menu",{key:"94e8ce60d5a9576708a51a1ce02c50f3609cc7af",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminals:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{C as terminals_list_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as t,h as r}from"./p-CV0Pyo1O.js";import{A as o}from"./p-CMB3sNMT.js";import{C as i,a as e}from"./p-Cjcsf8ku.js";import"./p-CBqZge6m.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as a,a as p}from"./p-D2muobcE.js";import{E as n}from"./p-CjuaXEuI.js";import{J as c}from"./p-CmXujxGp.js";import{c as h}from"./p-D0BjjvYt.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-MkDHT9M4.js";import"./p-HXpYMWUU.js";import"./p-D50Rx76J.js";import"./p-CIYOQWsL.js";const m=o();class u{async fetchGrossVolumeChartData(s,t){return m.get({endpoint:`account/${s}/reports/gross_volume`,authToken:t})}}const j=class{constructor(r){s(this,r),this.errorEvent=t(this,"error-event",7),this.errorMessage=null,this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){h(),this.analytics=new c(this),this.initializeGetGrossPayment()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}propChanged(){this.initializeGetGrossPayment()}initializeGetGrossPayment(){this.accountId&&this.authToken?this.getGrossPayment=(({id:s,authToken:t,service:r})=>async({onSuccess:o,onError:e})=>{var n;try{const c=await r.fetchGrossVolumeChartData(s,t);c.error?e({error:p(c.error),code:a(null===(n=c.error)||void 0===n?void 0:n.code),severity:i.ERROR}):o(c.data)}catch(s){const t=a(null==s?void 0:s.code);e({error:p(s),code:t,severity:i.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new u}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):r("gross-payment-chart-core",{getGrossPayment:this.getGrossPayment,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_gross_payment_chart}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-CV0Pyo1O.js";import{l as t}from"./p-C_ifLmT1.js";import{f as s,p as r,c as l}from"./p-BPTtWj7E.js";import{f as i,a as d}from"./p-D50Rx76J.js";import{S as o}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import"./p-DVJaoI_m.js";import{c as p,a as b}from"./p-MkDHT9M4.js";import"./p-Cjcsf8ku.js";import{T as f,c}from"./p-CBqZge6m.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import"./p-BFTU3MAI.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";const m=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{s[e]=a},this.handleDateInput=(e,a)=>{const t=p(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({order_status:this.orderStatus,order_type:this.orderType,created_after:this.createdAfter,created_before:this.createdBefore,company_name:this.companyName}).forEach((([e,a])=>{a&&(r[e]=a)}))}get terminalOrderStatusOptions(){return[{label:"All",value:""},{label:"Created",value:f.created},{label:"Completed",value:f.completed},{label:"Submitted",value:f.submitted},{label:"In Progress",value:f.in_progress},{label:"On Hold",value:f.on_hold},{label:"Canceled",value:f.canceled}]}get terminalOrderTypeOptions(){return[{label:"All",value:""},{label:"Boarding Only",value:c.boardingOnly},{label:"Boarding Shipping",value:c.boardingShipping}]}render(){const e=Object.assign({},s);return a(o,{key:"07b1d17154c1591edc84a5b629ec5ff7497415b5"},a("table-filters-menu",{key:"9e135185e74772ff22ceca20edba9181e78894bb",params:e,clearParams:l,part:i},a("div",{key:"b9643f722c20fef5e06922397574cd420bb82966",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"eadd681467e5f2bb89a643bf21f04070e50448a9",class:"p-2"},a("form-control-select",{key:"9d631821783b5b1a2fc0ba9de0d2643cf07d3361",name:"order_status",label:"Order Status",options:this.terminalOrderStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderStatus||s.order_status||"",disabled:!!this.orderStatus,part:d})),a("div",{key:"d9cc60a5dd75d49bd1b4ec7ac9adbae5d8e7cb26",class:"p-2"},a("form-control-select",{key:"5789baffe41c67a53586e79fdf14005ff60314c3",name:"order_type",label:"Order Type",options:this.terminalOrderTypeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderType||s.order_type||"",disabled:!!this.orderType,part:d})),a("div",{key:"7856f1979f696ab205a067f205cf5dead033fe31",class:"p-2"},a("form-control-date",{key:"4a715c7f582fe3261bf1ae0523a27f987855e88b",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:b(this.createdAfter,{showInputDateTime:!0})||b(s.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:d})),a("div",{key:"29244342d9660ab59be8ac6ebcac10bb29233f2b",class:"p-2"},a("form-control-date",{key:"a061f8553db0a901cb533ec2726850392bc155eb",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:b(this.createdBefore,{showInputDateTime:!0})||b(s.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:d})),a("div",{key:"11c34b1ab7f619b7ee1d236952b295d39ff44010",class:"p-2"},a("form-control-text",{key:"129e422e5e90ea6fc54c0cdfbd28c361dbf79227",name:"company_name",label:"Company Name",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.companyName||s.company_name,disabled:!!this.companyName,part:d})))))}};export{m as justifi_terminal_orders_list_filters}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,r as e,c as a}from"./p-CV0Pyo1O.js";import{c as i}from"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{C as s,a as o}from"./p-Cjcsf8ku.js";import{i as r}from"./p-CBqZge6m.js";import{p as c}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{J as n}from"./p-CmXujxGp.js";import{c as d}from"./p-D0BjjvYt.js";import{g as p,a as h}from"./p-D2muobcE.js";import{P as l}from"./p-Dvcgmvfg.js";import{T as f,l as u,a as m,b,c as y,d as w,e as _,f as j,g as v,h as T,i as g,j as k,k as C}from"./p-CwdQ1VdH.js";import{S as D}from"./p-BqNNwq6C.js";import{T as P}from"./p-CZfYo5-1.js";import{a as I}from"./p-MkDHT9M4.js";import{q as S,u as q}from"./p-D50Rx76J.js";import"./p-D8GTwl9v.js";import"./p-CIYOQWsL.js";import"./p-CMB3sNMT.js";import"./p-Df9FVwA7.js";const O={id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of each transaction"},"ID"),account_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the account associated with each transaction"},"Account ID"),payout_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the payout associated with each transaction"},"Payout ID"),financial_transaction_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),amount:()=>t("th",{part:S,scope:"col",title:"The dollar amount of each transaction"},"Amount"),fee:()=>t("th",{part:S,scope:"col",title:"The fee associated with each transaction"},"Fee"),net:()=>t("th",{part:S,scope:"col",title:"The net amount of each transaction"},"Net"),currency:()=>t("th",{part:S,scope:"col",title:"The currency of each transaction"},"Currency"),description:()=>t("th",{part:S,scope:"col",title:"The description of each transaction"},"Description"),source_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),txn_type:()=>t("th",{part:S,scope:"col",title:"The type of each transaction"},"Type"),created_at:()=>t("th",{part:S,scope:"col",title:"The date and time each transaction was made"},"Processed On"),available_on:()=>t("th",{part:S,scope:"col",title:"The date and time each transaction will be available"},"Available On"),updated_at:()=>t("th",{part:S,scope:"col",title:"The date and time each transaction was last updated"},"Updated On")},x={fee:"Fee",payment:"Payment",payout:"Payout",seller_payment_refund:"Seller Payment Refund",dispute_amount_collected:"Dispute Amount Collected",dispute_fee_collected:"Dispute Fee Collected",seller_payment:"Seller Payment",transfer:"Transfer",partner_platform_proceeds_credit:"Partner Platform Proceeds Credit"},E={id:e=>t("td",{part:q(e.id)},e.id),account_id:e=>t("td",{part:q(e.account_id)},e.account_id),payout_id:e=>t("td",{part:q(e.payout_id)},e.payout_id),financial_transaction_id:e=>t("td",{part:q(e.financial_transaction_id)},e.financial_transaction_id),amount:e=>t("td",{part:q(e.amount)},e.formattedPaymentAmount(e.amount)),fee:e=>t("td",{part:q(e.fee)},e.formattedPaymentAmount(e.fee)),net:e=>t("td",{part:q(e.net)},e.formattedPaymentAmount(e.net)),currency:e=>t("td",{part:q(e.currency)},e.currency),description:e=>t("td",{part:q(e.description)},e.description),source_id:e=>t("td",{part:q(e.source_id)},e.source_id),txn_type:e=>t("td",{part:q(e.txn_type)},x[e.txn_type]),created_at:e=>t("td",{part:q(e.created_at)},t("div",{class:"fw-bold"},I(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},I(e.created_at,{showTime:!0}))),available_on:e=>t("td",{part:q(e.available_on)},t("div",{class:"fw-bold"},I(e.available_on,{showDisplayDate:!0})),t("div",{class:"fw-bold"},I(e.available_on,{showTime:!0}))),updated_at:e=>t("td",{part:q(e.updated_at)},t("div",{class:"fw-bold"},I(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},I(e.updated_at,{showTime:!0})))},A=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event",7),this.errorEvent=a(this,"error-event",7),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=c,this.pagingParams={},this.columns="created_at,txn_type,description,amount,fee,net",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:P.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:P.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:P.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,O,E),d(),this.analytics=new n(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.payoutId&&this.authToken?(({accountId:t,authToken:e,service:a})=>async({params:i,onSuccess:o,onError:c,final:n})=>{var d;try{const n=await a.fetchPayoutTransactions(t,e,i);n.error?c({error:h(n.error),code:p(null===(d=n.error)||void 0===d?void 0:d.code),severity:s.ERROR}):o({balanceTransactions:n.data.map((t=>new r(t))),pagingInfo:Object.assign({},n.page_info)})}catch(t){const e=p(null==t?void 0:t.code);c({error:h(t),code:e,severity:s.ERROR})}finally{n()}})({accountId:i.accountId,authToken:this.authToken,service:new l})({params:this.requestParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payout-id and auth-token props are required",this.handleError(o.MISSING_PROPS,this.errorMessage,s.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}get requestParams(){return Object.assign({payout_id:this.payoutId,limit:"15"},this.pagingParams)}render(){return t(D,{key:"417f224dbed2219cfffc1d51ed1610f8c17251cf"},t(u,{key:"79cec94e004bd1e0ddbc98856a51db756d22c870"},t(m,{key:"4f1fc1cca1cbd21895a7b44b765f2f19481fe11e"},t(b,{key:"6b9f02ab6fc0e05cfed7b596c5fbe0090caa1c5b"},t(y,{key:"4d6af26a445e4e4be884e254aee56ca3a2f5e928"},this.transactionsTable.columnData.map((t=>t)))),t(w,{key:"dc3847e822b42ad1ec3276a765e550010b3494ba"},t(_,{key:"e1d7dc0671c53340bac10fb6a8cba21d3491565d",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(j,{key:"5c0cb4eea3003c0d2b46fd8fa76b2e3cd6e06d1f",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(v,{key:"271edb981660d808298f3cd38c5b56bb975e20cf",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(T,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(g,{key:"0413ee414642f7201e2de86b683d53ea8ecdcf3e"},t(k,{key:"cb9f2f5a9343dd12a2a6ab8294e2d545ad553836"},t(C,{key:"fcdcae20878346b0dd0225b9ef22083fb0d1dddd",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"c6a2062f2bf46bddf452e72c18cc31e8d8628721",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],payoutId:["propChanged"],authToken:["propChanged"]}}};export{A as justifi_payout_transactions_list}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-CV0Pyo1O.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-CBqZge6m.js";import{p as a}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{T as i,a as r,b as h,c as o,d as c,e as p,f as n,g as d,h as m,i as b,j as f,k as j,l as u}from"./p-CwdQ1VdH.js";import{T as g}from"./p-CZfYo5-1.js";import{p as y,a as k}from"./p-Bwzxu5wV.js";import{o as l,g as w}from"./p-Dm07nLGs.js";import"./p-D8GTwl9v.js";import"./p-MkDHT9M4.js";import"./p-D50Rx76J.js";import"./p-Df9FVwA7.js";import"./p-CzdAS9Jo.js";import"./p-Da4efjxw.js";const C=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.payments=[],this.loading=!0,this.paging=a,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:g.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:g.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.payments.find((t=>t.id===s));this.clickEvent.emit({name:g.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.paymentsTable=new i(this.payments,this.columns,y,k),this.getPayments&&this.fetchData(),l("set",(()=>{this.pagingParams={},this.errorMessage=""})),l("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getPayments({params:this.paymentParams,onSuccess:({payments:t,pagingInfo:s})=>{this.payments=t,this.paging=s,this.paymentsTable.collectionData=this.payments},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get paymentParams(){const t=w();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.payments.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.paymentsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(u,{key:"cb0670480c9debdb07cc85643517be3e3eec1c02"},e(r,{key:"c8c191f752d92763d609b0ea63b267e5f612ecea"},e(h,{key:"3effeb476774075b9ce0f61a456b2887b4140d8e"},e(o,{key:"5a31ba0211417388a08ab75271d4cd39300e2f49"},this.paymentsTable.columnData.map((t=>t)))),e(c,{key:"53805d81a29b319bc91dc3356638e8307d371d8a"},e(p,{key:"36eae2bcd5135b2f9d2f222974f431a4378a5aef",columnSpan:this.paymentsTable.columnData.length,isLoading:this.loading}),e(n,{key:"edc30a10dc2e1e9b2316d96a60c1915c243c5f6d",isEmpty:this.showEmptyState,columnSpan:this.paymentsTable.columnData.length}),e(d,{key:"6ea908dda99c8669a72b7886bb1b987f8297bb2c",columnSpan:this.paymentsTable.columnData.length,errorMessage:this.errorMessage}),this.showRowData&&this.paymentsTable.rowData.map(((t,s)=>e(m,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(b,{key:"da0bf1d3966ad88658d2fb2562a84fc0d73378dd"},e(f,{key:"a57c80fffbba11566b3092cab3dbff2db90da698"},e(j,{key:"fea921b006d05a26759cbdc28888ac57f9bd34c9",colSpan:this.paymentsTable.columnData.length},e("pagination-menu",{key:"f23790e00890a70ef676678fab14da5beef2e02d",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getPayments:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{C as payments_list_core}
|