@justifi/webcomponents 6.9.0 → 6.10.0
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/{Api-CVbEWBG6.js → Api-Bukk55YZ.js} +1 -1
- package/dist/cjs/{Business-CB8EVrhD.js → Business-oBifyXkW.js} +3 -31
- package/dist/cjs/{Plaid-DxPvVu0H.js → Plaid-B_UkFjIV.js} +3 -295
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -3
- package/dist/cjs/{badge-xJttyTNv.js → badge-Cl6qJPK_.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_9.cjs.entry.js +16 -17
- package/dist/cjs/bank-account-form.cjs.entry.js +3 -3
- package/dist/cjs/{business-additional-questions-schema-Cnh6AXQU.js → business-additional-questions-schema-CI80eZLJ.js} +5 -5
- package/dist/cjs/business-details-core.cjs.entry.js +3 -3
- package/dist/cjs/{business-form-options-B3CbEmdc.js → business-form-options-D_nM7NDk.js} +1 -1
- package/dist/cjs/{business-identity-schema-0jg2Thn9.js → business-identity-schema-DWWtSiUF.js} +3 -3
- package/dist/cjs/{business.service-zGEitIbP.js → business.service-Kplx8w_D.js} +3 -3
- package/dist/cjs/{button-BlYRmuPs.js → button-Cr3iHpyf.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +3 -3
- package/dist/cjs/{check-pkg-version-DYPDNKpa.js → check-pkg-version-DjlvidPw.js} +4 -4
- package/dist/cjs/{checkout.service-DT13pWxH.js → checkout.service-B2toaeKY.js} +3 -3
- package/dist/cjs/checkout.store-zTfjieKa.js +111 -0
- package/dist/cjs/checkouts-list-core.cjs.entry.js +8 -9
- package/dist/cjs/{checkouts-table-sE8amz4g.js → checkouts-table-CXgizBib.js} +3 -3
- package/dist/cjs/{country-config-ETD-7Wb7.js → country-config-D7fss2oF.js} +1 -1
- package/dist/cjs/custom-popper_2.cjs.entry.js +3 -3
- package/dist/cjs/{dispute.service-GDUl1Wjs.js → dispute.service-C4n1SOsu.js} +3 -3
- package/dist/cjs/form-alert_5.cjs.entry.js +4 -4
- package/dist/cjs/form-control-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/form-control-date.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-error-text-DukLkr-1.js → form-control-error-text-6-HeM6bw.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
- package/dist/cjs/{form-control-help-text-BylrKCQO.js → form-control-help-text-D0LaZkGk.js} +1 -1
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/form-control-monetary.cjs.entry.js +6 -6
- package/dist/cjs/form-control-number-masked_3.cjs.entry.js +6 -6
- package/dist/cjs/form-control-number_3.cjs.entry.js +13 -13
- package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
- package/dist/cjs/form-control-select_2.cjs.entry.js +4 -4
- package/dist/cjs/{get-business-CP0ALW9n.js → get-business-DF-XBH8G.js} +1 -1
- package/dist/cjs/{get-payment-details-IA5Toi7Z.js → get-payment-details-Atcodhcd.js} +2 -2
- package/dist/cjs/{get-subaccounts-DiGMPvU0.js → get-subaccounts-BUyf9EhG.js} +3 -3
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
- package/dist/cjs/{header-1-BHbPS-jr.js → header-1-BOijdmPN.js} +1 -1
- package/dist/cjs/{header-3-DEAkFNHs.js → header-3-FeTJjrR1.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +7 -7
- package/dist/cjs/{index.esm-ByC0D4sJ.js → index.esm-C1ZPG85l.js} +18 -0
- package/dist/cjs/{input-handlers-gV1LyFy3.js → input-handlers-_51J5q7J.js} +1 -1
- package/dist/cjs/{insurance-state-C2diJME7.js → insurance-state-DIV_moDI.js} +1 -1
- package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +23 -22
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +26 -18
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +2 -2
- package/dist/cjs/justifi-apple-pay_8.cjs.entry.js +209 -810
- package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +7 -7
- package/dist/cjs/justifi-business-details.cjs.entry.js +10 -11
- package/dist/cjs/justifi-business-form.cjs.entry.js +18 -19
- package/dist/cjs/justifi-checkout.cjs.entry.js +17 -16
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +4 -5
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +11 -12
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -8
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +10 -11
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -9
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -13
- package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +30 -24
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +11 -12
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +15 -4
- package/dist/cjs/justifi-payments-list.cjs.entry.js +12 -13
- package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -10
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +11 -12
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +22 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +13 -14
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +12 -13
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +13 -12
- package/dist/cjs/justifi-skeleton.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +6 -7
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +10 -11
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +5 -6
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +12 -13
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-BvYokEHF.js → package-C5inXJfW.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/{parts-DtJdaXeM.js → parts-C0AyF3nd.js} +8 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +16 -17
- package/dist/cjs/payment-method-option.cjs.entry.js +2 -2
- package/dist/cjs/{payment-provisioning-actions-CZVlnRA0.js → payment-provisioning-actions-J6TGZZb9.js} +2 -0
- package/dist/cjs/{payment-provisioning-loading-hyJJ0bBW.js → payment-provisioning-loading-CbcFPETB.js} +1 -1
- package/dist/cjs/{payment.service-QODfB293.js → payment.service-CxSGTv_O.js} +3 -3
- package/dist/cjs/payments-list-core.cjs.entry.js +11 -11
- package/dist/cjs/{payments-status-WKcRbqRT.js → payments-status-EZ95BQex.js} +1 -1
- package/dist/cjs/{payments-table-DayHhWCE.js → payments-table-D5Hw3JDe.js} +3 -3
- package/dist/cjs/payout-details-core.cjs.entry.js +10 -10
- package/dist/cjs/{payout.service-k7GBuYzk.js → payout.service-CO2wDM6M.js} +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +10 -11
- package/dist/cjs/{payouts-status-DXeHIDMX.js → payouts-status-D1IbE3-c.js} +1 -1
- package/dist/cjs/{payouts-table-B1ShNA4P.js → payouts-table-DmVthJLU.js} +3 -3
- package/dist/cjs/{plaid-icon-DTpONc_Q.js → plaid-icon-DiZrP1DM.js} +3 -3
- package/dist/cjs/{schema-validations-BakyfJpE.js → schema-validations-_yWWnnaG.js} +4 -4
- package/dist/cjs/{skeleton-B-Otnf5t.js → skeleton-C9Aio7v_.js} +1 -1
- package/dist/cjs/{spinner-B1rgGfdc.js → spinner-oLSXKwxU.js} +1 -1
- package/dist/cjs/{table-CNGkG0a8.js → table-CEW0_wq-.js} +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +2 -2
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +9 -10
- package/dist/cjs/{terminal-orders-table-Aj4dJNdG.js → terminal-orders-table-DPHz95-0.js} +5 -5
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
- package/dist/cjs/{terminal.service-A90K3XNq.js → terminal.service-CUVwCH-a.js} +3 -3
- package/dist/cjs/terminals-list-core.cjs.entry.js +9 -10
- package/dist/cjs/{terminals-table-aQQov5qX.js → terminals-table-C6rm50Mk.js} +3 -3
- package/dist/cjs/{utils-D4WPxuzW.js → utils-BHi4j5rB.js} +28 -0
- package/dist/cjs/{utils-cLBudEdA.js → utils-Vwo0VR7n.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Business.js +3 -31
- package/dist/collection/api/index.js +0 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +10 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-actions.js +2 -0
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +23 -15
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/google-pay.js +112 -516
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
- package/dist/collection/components/order-terminals/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/payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +2 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +71 -3
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +3 -3
- package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +35 -3
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/internal-tokenize-payment-method.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
- package/dist/collection/styles/parts.js +4 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.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-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/form.js +18 -0
- 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/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/collection/utils/utils.js +27 -0
- package/dist/docs.json +118 -441
- package/dist/esm/{Api-ohkSjyhl.js → Api-CLZVsXZg.js} +1 -1
- package/dist/esm/{Business-GgW1g7FQ.js → Business-BcNb9bVO.js} +3 -31
- package/dist/esm/{Plaid-CBrksnBN.js → Plaid-Cmyilr-q.js} +2 -286
- package/dist/esm/additional-questions-details_5.entry.js +3 -3
- package/dist/esm/{badge-C1EiQTzO.js → badge-AZ7Z3PKH.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_9.entry.js +16 -17
- package/dist/esm/bank-account-form.entry.js +3 -3
- package/dist/esm/{business-additional-questions-schema-CQ8CuEfQ.js → business-additional-questions-schema-DKudYaoE.js} +5 -5
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{business-form-options-DamBLV7N.js → business-form-options-DRalxlqN.js} +1 -1
- package/dist/esm/{business-identity-schema-BTyJz7M9.js → business-identity-schema-CFhSc0cA.js} +3 -3
- package/dist/esm/{business.service-BWm7Kqs4.js → business.service-CS-wQJoN.js} +3 -3
- package/dist/esm/{button-BcuzSsnr.js → button-DOkTCYSa.js} +1 -1
- package/dist/esm/card-form.entry.js +3 -3
- package/dist/esm/{check-pkg-version-DU70zoMs.js → check-pkg-version-wgHSN5sV.js} +4 -4
- package/dist/esm/{checkout.service-D4Mljqjr.js → checkout.service-BcQ_onZq.js} +3 -3
- package/dist/esm/checkout.store-iNkW80yV.js +105 -0
- package/dist/esm/checkouts-list-core.entry.js +8 -9
- package/dist/esm/{checkouts-table-BPrSrgLm.js → checkouts-table-C5aYyqpX.js} +3 -3
- package/dist/esm/{country-config-D-9YmU94.js → country-config-P042rrI3.js} +1 -1
- package/dist/esm/custom-popper_2.entry.js +3 -3
- package/dist/esm/{dispute.service-ZpqfPDC0.js → dispute.service-B_oe0uFV.js} +3 -3
- package/dist/esm/form-alert_5.entry.js +4 -4
- package/dist/esm/form-control-checkbox.entry.js +3 -3
- package/dist/esm/form-control-date.entry.js +4 -4
- package/dist/esm/{form-control-error-text-BEfFiFoH.js → form-control-error-text-xEskXF-M.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/{form-control-help-text-CC-MQWel.js → form-control-help-text-Dgnv4IId.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
- package/dist/esm/form-control-monetary.entry.js +6 -6
- package/dist/esm/form-control-number-masked_3.entry.js +6 -6
- package/dist/esm/form-control-number_3.entry.js +13 -13
- package/dist/esm/form-control-radio.entry.js +3 -3
- package/dist/esm/form-control-select_2.entry.js +4 -4
- package/dist/esm/{get-business-BMB2IxN_.js → get-business-BtJWpVs_.js} +1 -1
- package/dist/esm/{get-payment-details-B71Qi6mF.js → get-payment-details-BdewJSTH.js} +2 -2
- package/dist/esm/{get-subaccounts-BYnEN5xd.js → get-subaccounts-BFALCYFr.js} +3 -3
- package/dist/esm/gross-payment-chart-core.entry.js +4 -4
- package/dist/esm/{header-1-BhMrVhZJ.js → header-1-xlSavD5o.js} +1 -1
- package/dist/esm/{header-3-D4YKnb9t.js → header-3-egutsoDI.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +7 -7
- package/dist/esm/{index.esm-IWS0494Y.js → index.esm-BHdVU4hV.js} +18 -0
- package/dist/esm/{input-handlers-CzWCJ849.js → input-handlers-1lVyzImK.js} +1 -1
- package/dist/esm/{insurance-state-DTR-V07V.js → insurance-state-jZTKdt60.js} +1 -1
- package/dist/esm/internal-tokenize-payment-method_7.entry.js +12 -11
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +26 -18
- package/dist/esm/justifi-additional-statement_8.entry.js +2 -2
- package/dist/esm/justifi-apple-pay_8.entry.js +113 -714
- package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +7 -7
- package/dist/esm/justifi-business-details.entry.js +10 -11
- package/dist/esm/justifi-business-form.entry.js +18 -19
- package/dist/esm/justifi-checkout.entry.js +9 -8
- 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-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +7 -8
- package/dist/esm/justifi-dispute-notification_3.entry.js +10 -11
- package/dist/esm/justifi-gross-payment-chart.entry.js +8 -9
- package/dist/esm/justifi-order-terminals.entry.js +12 -13
- package/dist/esm/justifi-payment-details.entry.js +10 -11
- package/dist/esm/justifi-payment-provisioning-core.entry.js +5 -5
- package/dist/esm/justifi-payment-provisioning.entry.js +30 -24
- package/dist/esm/justifi-payment-transactions-list.entry.js +11 -12
- package/dist/esm/justifi-payments-list-filters.entry.js +15 -4
- package/dist/esm/justifi-payments-list.entry.js +12 -13
- package/dist/esm/justifi-payout-details.entry.js +9 -10
- package/dist/esm/justifi-payout-transactions-list.entry.js +11 -12
- package/dist/esm/justifi-payouts-list-filters.entry.js +22 -4
- package/dist/esm/justifi-payouts-list.entry.js +13 -14
- package/dist/esm/justifi-refund-payment.entry.js +12 -13
- package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +10 -9
- package/dist/esm/justifi-skeleton.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +6 -7
- package/dist/esm/justifi-terminal-orders-list.entry.js +10 -11
- package/dist/esm/justifi-terminals-list-filters.entry.js +5 -6
- package/dist/esm/justifi-terminals-list.entry.js +12 -13
- package/dist/esm/justifi-tokenize-payment-method.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-Cnc2WKdS.js → package-D4eE0MBI.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-fTIONWal.js → parts-C4FLe2pT.js} +5 -1
- package/dist/esm/payment-details-core.entry.js +16 -17
- package/dist/esm/payment-method-option.entry.js +2 -2
- package/dist/esm/{payment-provisioning-actions-ONP8lDnV.js → payment-provisioning-actions-CBvplwPf.js} +2 -0
- package/dist/esm/{payment-provisioning-loading-C5aC-7Xf.js → payment-provisioning-loading-D_VKtlLm.js} +1 -1
- package/dist/esm/{payment.service-C2lFq1yV.js → payment.service-Nvz1TYZB.js} +3 -3
- package/dist/esm/payments-list-core.entry.js +11 -11
- package/dist/esm/{payments-status-ChFodVw0.js → payments-status-D4XkcfLU.js} +1 -1
- package/dist/esm/{payments-table-DHYfybe9.js → payments-table-BDaiD836.js} +3 -3
- package/dist/esm/payout-details-core.entry.js +10 -10
- package/dist/esm/{payout.service-ChupMPKT.js → payout.service-tTxsxoqF.js} +3 -3
- package/dist/esm/payouts-list-core.entry.js +10 -11
- package/dist/esm/{payouts-status-BFp0DBRt.js → payouts-status-BR1vd6-D.js} +1 -1
- package/dist/esm/{payouts-table-CPFbykKY.js → payouts-table-B4nuJlpC.js} +3 -3
- package/dist/esm/{plaid-icon-wJLd-2NX.js → plaid-icon-B7a1QC7F.js} +3 -3
- package/dist/esm/{schema-validations-CfHWzMvr.js → schema-validations-v6WGlZkq.js} +4 -4
- package/dist/esm/{skeleton-C0UU9Mei.js → skeleton-C162KC3u.js} +1 -1
- package/dist/esm/{spinner-CkUdH9X9.js → spinner-BfjGGaND.js} +1 -1
- package/dist/esm/table-filters-menu.entry.js +2 -2
- package/dist/esm/{table-DiZqpIWv.js → table-hHARNoRM.js} +2 -2
- package/dist/esm/terminal-orders-list-core.entry.js +9 -10
- package/dist/esm/{terminal-orders-table-BwGEq9On.js → terminal-orders-table-B-xs6ocO.js} +5 -5
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-DqibXFHt.js → terminal.service-Dv1-CZ4Y.js} +3 -3
- package/dist/esm/terminals-list-core.entry.js +9 -10
- package/dist/esm/{terminals-table-BeYpMiBC.js → terminals-table-CnKH-UOw.js} +3 -3
- package/dist/esm/{utils-CDaVtz_6.js → utils-7bp92NC7.js} +28 -1
- package/dist/esm/{utils-DBWsd4R9.js → utils-BSpK1eMX.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Analytics.js +0 -1
- package/dist/module/Business.js +3 -31
- package/dist/module/Plaid.js +1 -1
- package/dist/module/bank-account-document-inputs.js +0 -1
- package/dist/module/business-bank-account-form-step.js +1 -2
- package/dist/module/business-core-info-form-step.js +10 -1
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +0 -1
- package/dist/module/business.service.js +0 -1
- package/dist/module/checkout.service.js +0 -1
- package/dist/module/checkouts-list-core2.js +0 -1
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/dispute-response-actions.js +0 -1
- 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-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/form.js +18 -0
- package/dist/module/get-payment-details.js +0 -1
- package/dist/module/get-subaccounts.js +0 -1
- package/dist/module/google-pay.js +101 -722
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/internal-tokenize-payment-method2.js +1 -2
- package/dist/module/justifi-business-form.js +0 -1
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-checkouts-list-filters.js +0 -1
- package/dist/module/justifi-checkouts-list.js +1 -2
- package/dist/module/justifi-gross-payment-chart.js +0 -1
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-order-terminals.js +3 -4
- package/dist/module/justifi-payment-provisioning.js +23 -16
- package/dist/module/justifi-payment-transactions-list.js +2 -3
- package/dist/module/justifi-payments-list-filters.js +17 -3
- package/dist/module/justifi-payments-list.js +1 -2
- package/dist/module/justifi-payout-details.js +1 -2
- package/dist/module/justifi-payout-transactions-list.js +2 -3
- package/dist/module/justifi-payouts-list-filters.js +31 -7
- package/dist/module/justifi-payouts-list.js +2 -3
- package/dist/module/justifi-refund-payment.js +1 -2
- package/dist/module/justifi-season-interruption-insurance.js +1 -2
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +4 -5
- package/dist/module/justifi-terminal-orders-list.js +2 -3
- package/dist/module/justifi-terminals-list-filters.js +3 -4
- package/dist/module/justifi-terminals-list.js +2 -3
- package/dist/module/justifi-tokenize-payment-method.js +1 -1
- package/dist/module/modular-checkout.js +0 -1
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +5 -1
- package/dist/module/payment-details-core2.js +8 -9
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payment-provisioning-actions.js +2 -0
- package/dist/module/payment.service.js +0 -1
- package/dist/module/payments-list-core2.js +2 -2
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payout.service.js +0 -1
- package/dist/module/payouts-list-core2.js +1 -2
- package/dist/module/plaid.service.js +0 -1
- package/dist/module/summary.js +1 -1
- package/dist/module/table.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +2 -3
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminal.service.js +0 -1
- package/dist/module/terminals-list-core2.js +2 -3
- package/dist/module/utils2.js +28 -1
- package/dist/types/api/Business.d.ts +10 -10
- package/dist/types/api/Payment.d.ts +3 -0
- package/dist/types/api/Payout.d.ts +1 -0
- package/dist/types/api/index.d.ts +0 -1
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +5 -5
- package/dist/types/components/modular-checkout/sub-components/google-pay.d.ts +18 -49
- package/dist/types/components/payments-list/payments-list-filters.d.ts +7 -0
- package/dist/types/components/payouts-list/payouts-list-filters.d.ts +5 -0
- package/dist/types/components.d.ts +20 -99
- package/dist/types/styles/parts.d.ts +4 -0
- package/dist/types/ui-components/form/form.d.ts +2 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/webcomponents/p--Kvji7o2.js +1 -0
- package/dist/webcomponents/p-05d11c40.entry.js +1 -0
- package/dist/webcomponents/p-0e21749b.entry.js +1 -0
- package/dist/webcomponents/p-0f1c100d.entry.js +1 -0
- package/dist/webcomponents/{p-ab89e764.entry.js → p-11402020.entry.js} +1 -1
- package/dist/webcomponents/p-12665340.entry.js +1 -0
- package/dist/webcomponents/{p-88eb0648.entry.js → p-154efb83.entry.js} +1 -1
- package/dist/webcomponents/p-19f1e643.entry.js +1 -0
- package/dist/webcomponents/p-1b973781.entry.js +1 -0
- package/dist/webcomponents/p-2438363d.entry.js +1 -0
- package/dist/webcomponents/{p-90240aa6.entry.js → p-2b679e5a.entry.js} +1 -1
- package/dist/webcomponents/p-2bbd810a.entry.js +1 -0
- package/dist/webcomponents/{p-3cc40df9.entry.js → p-2d39358b.entry.js} +1 -1
- package/dist/webcomponents/p-300002dd.entry.js +1 -0
- package/dist/webcomponents/p-38c1e9fa.entry.js +1 -0
- package/dist/webcomponents/p-3971d6b7.entry.js +1 -0
- package/dist/webcomponents/{p-0b9b50f8.entry.js → p-402ba9aa.entry.js} +1 -1
- package/dist/webcomponents/p-423b63ad.entry.js +1 -0
- package/dist/webcomponents/{p-33ceb1cf.entry.js → p-5206cd09.entry.js} +1 -1
- package/dist/webcomponents/{p-7a48659c.entry.js → p-52dc271f.entry.js} +1 -1
- package/dist/webcomponents/{p-6be6d4ec.entry.js → p-540e2ef2.entry.js} +1 -1
- package/dist/webcomponents/{p-y8av3w9x.js → p-55QcjheA.js} +1 -1
- package/dist/webcomponents/p-5862236f.entry.js +1 -0
- package/dist/webcomponents/p-5cee4e33.entry.js +1 -0
- package/dist/webcomponents/p-5d753fd4.entry.js +1 -0
- package/dist/webcomponents/{p-CBiNYzSf.js → p-5mt2ek0H.js} +1 -1
- package/dist/webcomponents/p-62f9c008.entry.js +1 -0
- package/dist/webcomponents/p-6V4e6Fb_.js +1 -0
- package/dist/webcomponents/p-6c503a00.entry.js +1 -0
- package/dist/webcomponents/p-6d565cd6.entry.js +1 -0
- package/dist/webcomponents/p-7769de83.entry.js +1 -0
- package/dist/webcomponents/{p-8f29877f.entry.js → p-7e14f6ac.entry.js} +1 -1
- package/dist/webcomponents/p-7f3dcd42.entry.js +1 -0
- package/dist/webcomponents/{p-3fc100b7.entry.js → p-808bf425.entry.js} +1 -1
- package/dist/webcomponents/p-8728065b.entry.js +1 -0
- package/dist/webcomponents/p-88c6713a.entry.js +1 -0
- package/dist/webcomponents/p-8Wa_-5QM.js +1 -0
- package/dist/webcomponents/p-8a42d4fe.entry.js +1 -0
- package/dist/webcomponents/p-8c55dac0.entry.js +1 -0
- package/dist/webcomponents/{p-3299c8c2.entry.js → p-8e631781.entry.js} +1 -1
- package/dist/webcomponents/p-979d22d0.entry.js +1 -0
- package/dist/webcomponents/p-9a11f17b.entry.js +1 -0
- package/dist/webcomponents/{p-4301e975.entry.js → p-9d69ae9f.entry.js} +3 -3
- package/dist/webcomponents/p-BHA4oSi3.js +1 -0
- package/dist/webcomponents/p-B_KHnbK8.js +1 -0
- package/dist/webcomponents/{p-GgW1g7FQ.js → p-BcNb9bVO.js} +1 -1
- package/dist/webcomponents/p-BiNakvsa.js +1 -0
- package/dist/webcomponents/p-BoO2BHR_.js +1 -0
- package/dist/webcomponents/p-BovgIz83.js +1 -0
- package/dist/webcomponents/{p-BZbvHgMz.js → p-Bt4GjEWL.js} +1 -1
- package/dist/webcomponents/p-BtFe5yQU.js +1 -0
- package/dist/webcomponents/{p--afWnVJc.js → p-C3kbpEIZ.js} +1 -1
- package/dist/webcomponents/p-C4FLe2pT.js +1 -0
- package/dist/webcomponents/p-C6o0liMT.js +1 -0
- package/dist/webcomponents/{p-ShBqgGPM.js → p-CGJ_mnry.js} +1 -1
- package/dist/webcomponents/p-CI11WF1E.js +1 -0
- package/dist/webcomponents/{p-Bfu8Pqrd.js → p-CIh-k9yP.js} +1 -1
- package/dist/webcomponents/{p-Tj4VxUWO.js → p-CJZ09QNH.js} +1 -1
- package/dist/webcomponents/{p-DiJD6Iqx.js → p-CKiAlBsU.js} +1 -1
- package/dist/webcomponents/{p-g0kDRH6Z.js → p-CMqX6btO.js} +1 -1
- package/dist/webcomponents/{p-DowKbhRa.js → p-CbTf_N6u.js} +1 -1
- package/dist/webcomponents/{p--cI8fPJx.js → p-CemnnRdZ.js} +1 -1
- package/dist/webcomponents/p-CkX7qWsc.js +1 -0
- package/dist/webcomponents/p-D4eE0MBI.js +1 -0
- package/dist/webcomponents/{p-Y-EhaLdV.js → p-D8EGHc_m.js} +1 -1
- package/dist/webcomponents/p-DAZtHA62.js +1 -0
- package/dist/webcomponents/{p-YiF4YKVz.js → p-DFiTyYE9.js} +1 -1
- package/dist/webcomponents/{p-lDnX3HTT.js → p-DO4RBao8.js} +1 -1
- package/dist/webcomponents/{p-DSlxs7BR.js → p-DYEXDs2k.js} +1 -1
- package/dist/webcomponents/p-Daew0gTO.js +1 -0
- package/dist/webcomponents/p-DqVU8ohH.js +1 -0
- package/dist/webcomponents/{p-CWyW004b.js → p-DqtDbB8E.js} +1 -1
- package/dist/webcomponents/p-DsT0m0mo.js +1 -0
- package/dist/webcomponents/p-DyETkJs3.js +1 -0
- package/dist/webcomponents/{p-D6D_29Tw.js → p-DyJ1zSHJ.js} +1 -1
- package/dist/webcomponents/p-EaBIgUj8.js +1 -0
- package/dist/webcomponents/{p-ygekUw3Q.js → p-HT_4DkD0.js} +1 -1
- package/dist/webcomponents/{p-B2v3zyF0.js → p-HfLk4CG0.js} +1 -1
- package/dist/webcomponents/{p-wSi5d4-j.js → p-Jz9qdPhR.js} +1 -1
- package/dist/webcomponents/{p-B09GVew-.js → p-MeSAYDNh.js} +1 -1
- package/dist/webcomponents/p-R0FDNhyd.js +1 -0
- package/dist/webcomponents/{p-B1AMrMly.js → p-_-2E_vYf.js} +1 -1
- package/dist/webcomponents/{p-5d13c0c0.entry.js → p-a105de67.entry.js} +1 -1
- package/dist/webcomponents/{p-f7128387.entry.js → p-afa2ebd9.entry.js} +1 -1
- package/dist/webcomponents/p-b4b540fa.entry.js +1 -0
- package/dist/webcomponents/p-b54bf8da.entry.js +1 -0
- package/dist/webcomponents/p-bcba5950.entry.js +1 -0
- package/dist/webcomponents/p-c0592f5f.entry.js +1 -0
- package/dist/webcomponents/p-c6a9410d.entry.js +1 -0
- package/dist/webcomponents/p-c6aee723.entry.js +1 -0
- package/dist/webcomponents/p-c725dc53.entry.js +1 -0
- package/dist/webcomponents/{p-5985f6af.entry.js → p-c72c5b99.entry.js} +1 -1
- package/dist/webcomponents/p-c7930f9a.entry.js +1 -0
- package/dist/webcomponents/{p-412ae576.entry.js → p-cb09959d.entry.js} +1 -1
- package/dist/webcomponents/p-d0813f21.entry.js +1 -0
- package/dist/webcomponents/p-d62da4f2.entry.js +1 -0
- package/dist/webcomponents/p-d766763a.entry.js +1 -0
- package/dist/webcomponents/{p-2e1e489f.entry.js → p-d9118b1e.entry.js} +1 -1
- package/dist/webcomponents/p-df61f19b.entry.js +1 -0
- package/dist/webcomponents/p-e2bc6c68.entry.js +1 -0
- package/dist/webcomponents/p-e71e4c49.entry.js +1 -0
- package/dist/webcomponents/{p-f90d7db1.entry.js → p-e89d0f36.entry.js} +1 -1
- package/dist/webcomponents/p-eEJMJXTG.js +1 -0
- package/dist/webcomponents/p-eb1251bf.entry.js +1 -0
- package/dist/webcomponents/p-ed4f8027.entry.js +1 -0
- package/dist/webcomponents/p-f18e90b1.entry.js +1 -0
- package/dist/webcomponents/{p-403b2248.entry.js → p-fbfe6211.entry.js} +1 -1
- package/dist/webcomponents/{p-f9af4ade.entry.js → p-ff4d485f.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/collection/api/GooglePay.js +0 -181
- package/dist/collection/api/services/google-pay.service.js +0 -241
- package/dist/collection/ui-components/google-pay-button.js +0 -251
- package/dist/module/GooglePay.js +0 -184
- package/dist/types/api/GooglePay.d.ts +0 -271
- package/dist/types/api/services/google-pay.service.d.ts +0 -60
- package/dist/types/ui-components/google-pay-button.d.ts +0 -18
- package/dist/webcomponents/p-0188cdac.entry.js +0 -1
- package/dist/webcomponents/p-0c2728c3.entry.js +0 -1
- package/dist/webcomponents/p-130473c3.entry.js +0 -1
- package/dist/webcomponents/p-1c044649.entry.js +0 -1
- package/dist/webcomponents/p-1c5d1853.entry.js +0 -1
- package/dist/webcomponents/p-1d610dba.entry.js +0 -1
- package/dist/webcomponents/p-2019fdfd.entry.js +0 -1
- package/dist/webcomponents/p-29d056ed.entry.js +0 -1
- package/dist/webcomponents/p-2e2494ef.entry.js +0 -1
- package/dist/webcomponents/p-36103b16.entry.js +0 -1
- package/dist/webcomponents/p-387c76a4.entry.js +0 -1
- package/dist/webcomponents/p-3f7cffdc.entry.js +0 -1
- package/dist/webcomponents/p-4ddee6a9.entry.js +0 -1
- package/dist/webcomponents/p-5087ce6d.entry.js +0 -1
- package/dist/webcomponents/p-55af29a1.entry.js +0 -1
- package/dist/webcomponents/p-5aA7gjr5.js +0 -1
- package/dist/webcomponents/p-5c8bf8a6.entry.js +0 -1
- package/dist/webcomponents/p-5dv0txs0.js +0 -1
- package/dist/webcomponents/p-6c4be54a.entry.js +0 -1
- package/dist/webcomponents/p-6f82657a.entry.js +0 -1
- package/dist/webcomponents/p-76919e48.entry.js +0 -1
- package/dist/webcomponents/p-88716a35.entry.js +0 -1
- package/dist/webcomponents/p-88735d18.entry.js +0 -1
- package/dist/webcomponents/p-9484af96.entry.js +0 -1
- package/dist/webcomponents/p-96e9f41b.entry.js +0 -1
- package/dist/webcomponents/p-9a215fc7.entry.js +0 -1
- package/dist/webcomponents/p-9d0b6f34.entry.js +0 -1
- package/dist/webcomponents/p-BRPbLfCN.js +0 -1
- package/dist/webcomponents/p-BRieSe65.js +0 -1
- package/dist/webcomponents/p-Bg7JIRrk.js +0 -1
- package/dist/webcomponents/p-By-Mu1IX.js +0 -1
- package/dist/webcomponents/p-C0dMwnDO.js +0 -1
- package/dist/webcomponents/p-C3dkSx6l.js +0 -1
- package/dist/webcomponents/p-Cf0Rt_Os.js +0 -1
- package/dist/webcomponents/p-CkYB1zGe.js +0 -1
- package/dist/webcomponents/p-Cnc2WKdS.js +0 -1
- package/dist/webcomponents/p-CsilKlYU.js +0 -1
- package/dist/webcomponents/p-CuaXkS6j.js +0 -1
- package/dist/webcomponents/p-DCwnBXF7.js +0 -1
- package/dist/webcomponents/p-DKemQxaE.js +0 -1
- package/dist/webcomponents/p-DmwvaeZd.js +0 -1
- package/dist/webcomponents/p-DqD32M9M.js +0 -1
- package/dist/webcomponents/p-MVBgKFOv.js +0 -1
- package/dist/webcomponents/p-a1dafcb9.entry.js +0 -1
- package/dist/webcomponents/p-a7907856.entry.js +0 -1
- package/dist/webcomponents/p-aONkyLLS.js +0 -1
- package/dist/webcomponents/p-aab50c09.entry.js +0 -1
- package/dist/webcomponents/p-bd0404bf.entry.js +0 -1
- package/dist/webcomponents/p-bdfc61b0.entry.js +0 -1
- package/dist/webcomponents/p-bf242a98.entry.js +0 -1
- package/dist/webcomponents/p-bf3a552e.entry.js +0 -1
- package/dist/webcomponents/p-c1d48f19.entry.js +0 -1
- package/dist/webcomponents/p-c835c19b.entry.js +0 -1
- package/dist/webcomponents/p-caadf62a.entry.js +0 -1
- package/dist/webcomponents/p-ccc26acf.entry.js +0 -1
- package/dist/webcomponents/p-d375e82b.entry.js +0 -1
- package/dist/webcomponents/p-d84e5a0e.entry.js +0 -1
- package/dist/webcomponents/p-def9b542.entry.js +0 -1
- package/dist/webcomponents/p-edb8dae3.entry.js +0 -1
- package/dist/webcomponents/p-f57cb5d1.entry.js +0 -1
- package/dist/webcomponents/p-f5d407af.entry.js +0 -1
- package/dist/webcomponents/p-f7dac1c8.entry.js +0 -1
- package/dist/webcomponents/p-fTIONWal.js +0 -1
- package/dist/webcomponents/p-m_Ly-YPk.js +0 -1
|
@@ -92,17 +92,7 @@ export class CoreBusinessInfo {
|
|
|
92
92
|
this.date_of_incorporation = coreBusinessInfo.date_of_incorporation;
|
|
93
93
|
}
|
|
94
94
|
get payload() {
|
|
95
|
-
return {
|
|
96
|
-
classification: this.classification || '',
|
|
97
|
-
legal_name: this.legal_name || '',
|
|
98
|
-
doing_business_as: this.doing_business_as || '',
|
|
99
|
-
industry: this.industry || '',
|
|
100
|
-
tax_id: this.tax_id || '',
|
|
101
|
-
website_url: this.website_url || '',
|
|
102
|
-
email: this.email || '',
|
|
103
|
-
phone: this.phone || '',
|
|
104
|
-
date_of_incorporation: this.date_of_incorporation || '',
|
|
105
|
-
};
|
|
95
|
+
return Object.assign(Object.assign({ classification: this.classification || '', legal_name: this.legal_name || '', doing_business_as: this.doing_business_as || '', industry: this.industry || '' }, (!this.tax_id_last4 && { tax_id: this.tax_id || '' })), { website_url: this.website_url || '', email: this.email || '', phone: this.phone || '', date_of_incorporation: this.date_of_incorporation || '' });
|
|
106
96
|
}
|
|
107
97
|
}
|
|
108
98
|
export class Business {
|
|
@@ -141,25 +131,7 @@ export class Business {
|
|
|
141
131
|
this.bank_account_verification = business.bank_account_verification;
|
|
142
132
|
}
|
|
143
133
|
get payload() {
|
|
144
|
-
return {
|
|
145
|
-
|
|
146
|
-
.payload,
|
|
147
|
-
classification: this.classification || '',
|
|
148
|
-
doing_business_as: this.doing_business_as || '',
|
|
149
|
-
email: this.email || '',
|
|
150
|
-
industry: this.industry || '',
|
|
151
|
-
legal_address: new Address(this.legal_address).payload,
|
|
152
|
-
legal_name: this.legal_name || '',
|
|
153
|
-
metadata: this.metadata || {},
|
|
154
|
-
owners: this.owners.map((owner) => ({ id: owner.id })),
|
|
155
|
-
phone: this.phone || '',
|
|
156
|
-
platform_account_id: this.platform_account_id || '',
|
|
157
|
-
representative: new Representative(this.representative).payload,
|
|
158
|
-
tax_id: this.tax_id || '',
|
|
159
|
-
tax_id_last4: this.tax_id_last4 || '',
|
|
160
|
-
website_url: this.website_url || '',
|
|
161
|
-
date_of_incorporation: this.date_of_incorporation || '',
|
|
162
|
-
country_of_establishment: this.country_of_establishment || CountryCode.USA,
|
|
163
|
-
};
|
|
134
|
+
return Object.assign(Object.assign({ additional_questions: new AdditionalQuestions(this.additional_questions)
|
|
135
|
+
.payload, classification: this.classification || '', doing_business_as: this.doing_business_as || '', email: this.email || '', industry: this.industry || '', legal_address: new Address(this.legal_address).payload, legal_name: this.legal_name || '', metadata: this.metadata || {}, owners: this.owners.map((owner) => ({ id: owner.id })), phone: this.phone || '', platform_account_id: this.platform_account_id || '', representative: new Representative(this.representative).payload }, (!this.tax_id_last4 && { tax_id: this.tax_id || '' })), { tax_id_last4: this.tax_id_last4 || '', website_url: this.website_url || '', date_of_incorporation: this.date_of_incorporation || '', country_of_establishment: this.country_of_establishment || CountryCode.USA });
|
|
164
136
|
}
|
|
165
137
|
}
|
|
@@ -19,7 +19,6 @@ export * from './Identity';
|
|
|
19
19
|
export * from './Dispute';
|
|
20
20
|
export * from './GrossVolume';
|
|
21
21
|
export * from './ApplePay';
|
|
22
|
-
export * from './GooglePay';
|
|
23
22
|
export * from './Plaid';
|
|
24
23
|
// In a future PR I would like to update the naming of the BankAccount Payment Method class in Payment.ts so this import can be updated to be written the same as the others in this file.
|
|
25
24
|
export { BankAccount } from './BankAccount';
|
|
@@ -51,8 +51,13 @@ export class BusinessCoreInfoFormStep {
|
|
|
51
51
|
// after successful patch, revert back to read-only for tax id
|
|
52
52
|
this.isEditingTaxId = false;
|
|
53
53
|
},
|
|
54
|
-
onError: ({ error, code, severity }) => {
|
|
54
|
+
onError: ({ error, code, severity, rawError }) => {
|
|
55
55
|
submittedData = error;
|
|
56
|
+
// Set field-specific error if param exists
|
|
57
|
+
if (rawError && typeof rawError === 'object' && rawError.param) {
|
|
58
|
+
this.formController.setFieldError(rawError.param, rawError.message);
|
|
59
|
+
}
|
|
60
|
+
// Still emit component-level error
|
|
56
61
|
this.errorEvent.emit({
|
|
57
62
|
message: error,
|
|
58
63
|
errorCode: code,
|
|
@@ -66,6 +71,10 @@ export class BusinessCoreInfoFormStep {
|
|
|
66
71
|
});
|
|
67
72
|
};
|
|
68
73
|
this.inputHandler = (name, value) => {
|
|
74
|
+
// Clear backend error when user edits field
|
|
75
|
+
if (this.errors[name]) {
|
|
76
|
+
this.formController.clearFieldError(name);
|
|
77
|
+
}
|
|
69
78
|
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
70
79
|
};
|
|
71
80
|
}
|
|
@@ -44,6 +44,7 @@ export const makePatchBusiness = ({ authToken, businessId, service }) => async (
|
|
|
44
44
|
error: responseError,
|
|
45
45
|
code,
|
|
46
46
|
severity: ComponentErrorSeverity.ERROR,
|
|
47
|
+
rawError: response.error,
|
|
47
48
|
});
|
|
48
49
|
}
|
|
49
50
|
}
|
|
@@ -53,6 +54,7 @@ export const makePatchBusiness = ({ authToken, businessId, service }) => async (
|
|
|
53
54
|
error: error.message || error,
|
|
54
55
|
code,
|
|
55
56
|
severity: ComponentErrorSeverity.ERROR,
|
|
57
|
+
rawError: error,
|
|
56
58
|
});
|
|
57
59
|
}
|
|
58
60
|
finally {
|
package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js
CHANGED
|
@@ -5,6 +5,7 @@ import { makeGetBusiness, makePostProvisioning } from "./payment-provisioning-ac
|
|
|
5
5
|
import { BusinessService } from "../../../api/services/business.service";
|
|
6
6
|
import { ProvisionService } from "../../../api/services/provision.service";
|
|
7
7
|
import { checkPkgVersion } from "../../../utils/check-pkg-version";
|
|
8
|
+
import { isTokenExpired } from "../../../utils/utils";
|
|
8
9
|
export class PaymentProvisioning {
|
|
9
10
|
constructor() {
|
|
10
11
|
this.allowOptionalFields = false;
|
|
@@ -24,29 +25,36 @@ export class PaymentProvisioning {
|
|
|
24
25
|
}
|
|
25
26
|
;
|
|
26
27
|
initializeApi() {
|
|
27
|
-
if (this.authToken
|
|
28
|
-
this.getBusiness = makeGetBusiness({
|
|
29
|
-
authToken: this.authToken,
|
|
30
|
-
businessId: this.businessId,
|
|
31
|
-
service: new BusinessService()
|
|
32
|
-
});
|
|
33
|
-
this.postProvisioning = makePostProvisioning({
|
|
34
|
-
authToken: this.authToken,
|
|
35
|
-
businessId: this.businessId,
|
|
36
|
-
product: 'payment',
|
|
37
|
-
service: new ProvisionService()
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
28
|
+
if (!this.authToken || !this.businessId) {
|
|
41
29
|
this.errorEvent.emit({
|
|
42
30
|
message: 'auth-token and business-id are required',
|
|
43
31
|
errorCode: ComponentErrorCodes.MISSING_PROPS,
|
|
44
32
|
severity: ComponentErrorSeverity.ERROR,
|
|
45
33
|
});
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
if (isTokenExpired(this.authToken)) {
|
|
37
|
+
this.errorEvent.emit({
|
|
38
|
+
message: 'auth-token is expired',
|
|
39
|
+
errorCode: ComponentErrorCodes.NOT_AUTHENTICATED,
|
|
40
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
41
|
+
});
|
|
42
|
+
return;
|
|
46
43
|
}
|
|
44
|
+
this.getBusiness = makeGetBusiness({
|
|
45
|
+
authToken: this.authToken,
|
|
46
|
+
businessId: this.businessId,
|
|
47
|
+
service: new BusinessService()
|
|
48
|
+
});
|
|
49
|
+
this.postProvisioning = makePostProvisioning({
|
|
50
|
+
authToken: this.authToken,
|
|
51
|
+
businessId: this.businessId,
|
|
52
|
+
product: 'payment',
|
|
53
|
+
service: new ProvisionService()
|
|
54
|
+
});
|
|
47
55
|
}
|
|
48
56
|
render() {
|
|
49
|
-
return (h("justifi-payment-provisioning-core", { key: '
|
|
57
|
+
return (h("justifi-payment-provisioning-core", { key: '8df2a722a6c7150950cbc0a2d923bb1a107170ee', businessId: this.businessId, authToken: this.authToken, allowOptionalFields: this.allowOptionalFields, formTitle: this.formTitle, getBusiness: this.getBusiness, postProvisioning: this.postProvisioning }));
|
|
50
58
|
}
|
|
51
59
|
static get is() { return "justifi-payment-provisioning"; }
|
|
52
60
|
static get encapsulation() { return "shadow"; }
|
|
@@ -12,7 +12,7 @@ export const baseBusinessCoreInfoSchema = (allowOptionalFields) => {
|
|
|
12
12
|
doing_business_as: doingBusinessAsValidation.nullable(),
|
|
13
13
|
classification: businessClassificationValidation.required('Select business classification'),
|
|
14
14
|
industry: industryValidation.required('Enter a business industry'),
|
|
15
|
-
date_of_incorporation: dateOfIncorporationValidation.required('Enter date of
|
|
15
|
+
date_of_incorporation: dateOfIncorporationValidation.required('Enter date of registration'),
|
|
16
16
|
});
|
|
17
17
|
const easySchema = object({
|
|
18
18
|
legal_name: businessNameValidation.required('Enter legal name'),
|