@justifi/webcomponents 5.7.0 → 5.7.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/{ApiNew-C8nf_gS9.js → Api-Dp4CW5K6.js} +1 -1
- package/dist/cjs/{Business-DyiDiIuO.js → Business-DCRzZf0w.js} +3 -1
- package/dist/cjs/{Checkout-RAGvjVPj.js → Checkout-TZnRz3-3.js} +1 -1
- package/dist/cjs/{Payment-CQCmj3Ck.js → Document-Qt0qiXeh.js} +58 -1
- package/dist/cjs/{Refund-CpurRc4w.js → Refund-BDFOEJv_.js} +2 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +12 -13
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +11 -10
- package/dist/cjs/bank-account-form_9.cjs.entry.js +35 -25
- package/dist/cjs/{business-additional-questions-schema-gVepoR4V.js → business-additional-questions-schema-JlysTRE3.js} +1 -1
- package/dist/cjs/business-details-core.cjs.entry.js +1 -2
- package/dist/cjs/{business-form-options-BCj0efiD.js → business-form-options-CMII7nIK.js} +1 -1
- package/dist/cjs/{business-identity-schema-dt0zCW0R.js → business-identity-schema-BksYFWls.js} +1 -1
- package/dist/cjs/{business.service-yVtplFhh.js → business.service-DMIMZpx4.js} +9 -2
- package/dist/cjs/{check-pkg-version-BYKcQDik.js → check-pkg-version-hqYwYpQq.js} +13 -3
- package/dist/cjs/{checkout.service-Dd2AbBn2.js → checkout.service-DKH8NODe.js} +9 -2
- package/dist/cjs/checkouts-list-core.cjs.entry.js +11 -8
- package/dist/cjs/{checkouts-table-_T5eblyc.js → checkouts-table-Cj2iSB_P.js} +1 -1
- package/dist/cjs/custom-popper_4.cjs.entry.js +4 -4
- package/dist/cjs/{dispute.service-C0J-Wh-Y.js → dispute.service-8j6tLV4i.js} +9 -2
- package/dist/cjs/form-alert_5.cjs.entry.js +2 -2
- 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-monetary.cjs.entry.js +3 -3
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number.cjs.entry.js +2 -2
- package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
- package/dist/cjs/{get-business-DHg5rpse.js → get-business-BJrtsomz.js} +1 -1
- package/dist/cjs/{get-payment-details-DqvDYbnK.js → get-payment-details-MM1u5jMc.js} +8 -6
- package/dist/cjs/{get-subaccounts-CquZS5kP.js → get-subaccounts-CkjWYxIU.js} +9 -7
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/iframe-input.cjs.entry.js +4 -4
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +12 -11
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +13 -15
- package/dist/cjs/justifi-business-details.cjs.entry.js +22 -10
- package/dist/cjs/justifi-business-form.cjs.entry.js +19 -18
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout.cjs.entry.js +18 -8
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +10 -7
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +20 -16
- package/dist/cjs/justifi-details.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +15 -7
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +17 -7
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +19 -10
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +20 -16
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +12 -8
- package/dist/cjs/justifi-payment-details.cjs.entry.js +14 -11
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +18 -8
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +18 -14
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +19 -15
- package/dist/cjs/justifi-payout-details.cjs.entry.js +16 -12
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +18 -14
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +19 -15
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +16 -14
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +4 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +20 -23
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +11 -8
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +21 -14
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +10 -7
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +19 -15
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +19 -13
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-CX6Njc5t.js → package-BCOEGxFC.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +10 -10
- package/dist/cjs/{payment.service-BvTU2Orj.js → payment.service-CCxGhTwZ.js} +9 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +12 -9
- package/dist/cjs/{payments-table-BkRhDePE.js → payments-table-BR97ybd6.js} +1 -1
- package/dist/cjs/payout-details-core.cjs.entry.js +5 -5
- package/dist/cjs/{payout.service-C99pgxvg.js → payout.service-CtphIhUK.js} +9 -2
- package/dist/cjs/payouts-list-core.cjs.entry.js +12 -9
- package/dist/cjs/{payouts-table-DJMz3bVh.js → payouts-table-DMcQiC1g.js} +1 -1
- package/dist/cjs/{schema-validations-p4OCdblz.js → schema-validations-BUor-ySb.js} +6 -7
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +12 -9
- package/dist/cjs/{terminal-orders-table-BeeUTKtj.js → terminal-orders-table-D-CLcZws.js} +7 -5
- package/dist/cjs/{terminal.service-DEGcoaCb.js → terminal.service-Dv_WJkue.js} +9 -2
- package/dist/cjs/terminals-list-core.cjs.entry.js +12 -9
- package/dist/cjs/{terminals-table-D2XUsf_J.js → terminals-table-BEJ6sF7w.js} +1 -1
- package/dist/cjs/{utils-DmZ8Dia3.js → utils-qOon0GWm.js} +3 -0
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Analytics.js +3 -0
- package/dist/collection/api/Api.js +23 -12
- package/dist/collection/api/Business.js +3 -1
- package/dist/collection/api/Payment.js +1 -0
- package/dist/collection/api/Payout.js +1 -0
- package/dist/collection/api/index.js +5 -1
- package/dist/collection/api/services/analytics.service.js +1 -1
- package/dist/collection/api/services/business.service.js +1 -1
- package/dist/collection/api/services/checkout.service.js +1 -1
- package/dist/collection/api/services/dispute.service.js +1 -1
- package/dist/collection/api/services/insurance.service.js +5 -8
- package/dist/collection/api/services/payment.service.js +1 -1
- package/dist/collection/api/services/payout.service.js +1 -1
- package/dist/collection/api/services/provision.service.js +1 -1
- package/dist/collection/api/services/refund.service.js +1 -1
- package/dist/collection/api/services/reports.service.js +3 -3
- package/dist/collection/api/services/subaccounts.service.js +1 -1
- package/dist/collection/api/services/terminal.service.js +1 -1
- package/dist/collection/api/services/terminal_orders.service.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +3 -4
- package/dist/collection/components/business-details/business-details-core.js +1 -2
- package/dist/collection/components/business-details/business-details.js +13 -4
- package/dist/collection/components/business-details/core-info-details/core-info-details.js +41 -0
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +3 -3
- package/dist/collection/components/business-details/representative-details/representative-details.js +3 -3
- package/dist/collection/components/business-forms/business-form/business-form.js +3 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +4 -2
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +4 -4
- package/dist/collection/components/business-forms/schemas/schema-validations.js +6 -7
- package/dist/collection/components/checkout/billing-form/billing-form.js +6 -5
- package/dist/collection/components/checkout/checkout.js +5 -3
- package/dist/collection/components/checkout/new-payment-method.js +17 -6
- package/dist/collection/components/checkout/payment-method-options.js +4 -5
- package/dist/collection/components/checkouts-list/checkouts-list.js +4 -2
- package/dist/collection/components/dispute-management/dispute-management.js +3 -2
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +4 -2
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +3 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +4 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +3 -4
- package/dist/collection/components/order-terminals/order-terminals.js +6 -1
- package/dist/collection/components/payment-details/payment-details-core.js +9 -8
- package/dist/collection/components/payment-details/payment-details.js +2 -1
- package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +4 -2
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.js +4 -2
- package/dist/collection/components/payout-details/payout-details-core.js +4 -3
- package/dist/collection/components/payout-details/payout-details.js +3 -1
- package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +4 -2
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +4 -2
- 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 +6 -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 +4 -2
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +9 -5
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/details/details.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-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/utils/utils.js +3 -0
- package/dist/docs.json +85 -78
- package/dist/esm/{ApiNew-KYhsw8Nv.js → Api-cgKcLG0y.js} +1 -1
- package/dist/esm/{Business-D6XNzizo.js → Business-BCoP0TAV.js} +3 -1
- package/dist/esm/{Checkout-Dfpql997.js → Checkout-B9LrTq63.js} +1 -1
- package/dist/esm/{Dispute-7MWRbTXI.js → Dispute-BH0Xfn-F.js} +1 -1
- package/dist/esm/{Payment-BADkZFaz.js → Document-DvWsQBM6.js} +58 -3
- package/dist/esm/{Refund-DOvd7RJp.js → Refund-zZewCvey.js} +2 -1
- package/dist/esm/additional-questions-details_5.entry.js +12 -13
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +11 -10
- package/dist/esm/bank-account-form_9.entry.js +28 -18
- package/dist/esm/{business-additional-questions-schema-DWnZs60Z.js → business-additional-questions-schema-CBUm3D7O.js} +1 -1
- package/dist/esm/business-details-core.entry.js +1 -2
- package/dist/esm/{business-form-options-Bn05PRR4.js → business-form-options-CgssATyg.js} +1 -1
- package/dist/esm/{business-identity-schema-lqdJS3MT.js → business-identity-schema-CntGz8jo.js} +1 -1
- package/dist/esm/{business.service-_645Z23O.js → business.service-BWivPbyO.js} +8 -1
- package/dist/esm/{check-pkg-version-Dh7UNmHL.js → check-pkg-version-BykGn7tx.js} +12 -2
- package/dist/esm/{checkout.service-7FGjq0rO.js → checkout.service-Bh-Q24Cr.js} +8 -1
- package/dist/esm/checkouts-list-core.entry.js +11 -8
- package/dist/esm/{checkouts-table-DKd0QLys.js → checkouts-table-DcVkD83l.js} +1 -1
- package/dist/esm/custom-popper_4.entry.js +4 -4
- package/dist/esm/{dispute.service-lJlAFuE6.js → dispute.service-1AYcALSg.js} +8 -1
- package/dist/esm/form-alert_5.entry.js +2 -2
- 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-monetary.entry.js +3 -3
- package/dist/esm/form-control-number-masked_2.entry.js +2 -2
- package/dist/esm/form-control-number.entry.js +2 -2
- package/dist/esm/form-control-radio.entry.js +2 -2
- package/dist/esm/{get-business-CIKToQur.js → get-business-GEPTefIj.js} +1 -1
- package/dist/esm/{get-payment-details-CXiGG9cO.js → get-payment-details-DXhXxFPr.js} +7 -5
- package/dist/esm/{get-subaccounts-DIJtLFsb.js → get-subaccounts-CtHj1UM6.js} +8 -6
- package/dist/esm/gross-payment-chart-core.entry.js +1 -1
- package/dist/esm/iframe-input.entry.js +4 -4
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +12 -11
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +13 -15
- package/dist/esm/justifi-business-details.entry.js +23 -11
- package/dist/esm/justifi-business-form.entry.js +19 -18
- package/dist/esm/justifi-checkout-core.entry.js +2 -2
- package/dist/esm/justifi-checkout.entry.js +18 -8
- package/dist/esm/justifi-checkouts-list-filters.entry.js +10 -7
- package/dist/esm/justifi-checkouts-list.entry.js +20 -16
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +16 -8
- package/dist/esm/justifi-dispute-notification_3.entry.js +17 -7
- package/dist/esm/justifi-gross-payment-chart.entry.js +19 -10
- package/dist/esm/justifi-order-terminals.entry.js +20 -16
- package/dist/esm/justifi-owner-form_3.entry.js +12 -8
- package/dist/esm/justifi-payment-details.entry.js +15 -12
- package/dist/esm/justifi-payment-provisioning.entry.js +17 -7
- package/dist/esm/justifi-payment-transactions-list.entry.js +18 -14
- package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +18 -14
- package/dist/esm/justifi-payout-details.entry.js +16 -12
- package/dist/esm/justifi-payout-transactions-list.entry.js +18 -14
- package/dist/esm/justifi-payouts-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payouts-list.entry.js +19 -15
- package/dist/esm/justifi-refund-payment.entry.js +15 -13
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +20 -23
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +11 -8
- package/dist/esm/justifi-terminal-orders-list.entry.js +20 -13
- package/dist/esm/justifi-terminals-list-filters.entry.js +10 -7
- package/dist/esm/justifi-terminals-list.entry.js +19 -15
- package/dist/esm/justifi-tokenize-payment-method.entry.js +19 -13
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-DLLK41AX.js → package-BjMTOtI1.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +10 -10
- package/dist/esm/{payment.service-DdCJ1Dc7.js → payment.service-2afJc31y.js} +8 -1
- package/dist/esm/payments-list-core.entry.js +12 -9
- package/dist/esm/{payments-table-BBf5fV74.js → payments-table-B8316Kqz.js} +1 -1
- package/dist/esm/payout-details-core.entry.js +5 -5
- package/dist/esm/{payout.service-G1Isezyi.js → payout.service-Bd8Tc7-Q.js} +8 -1
- package/dist/esm/payouts-list-core.entry.js +12 -9
- package/dist/esm/{payouts-table-DhZEXhGH.js → payouts-table-Ip10eH4Q.js} +1 -1
- package/dist/esm/{schema-validations-BsbYeDDR.js → schema-validations-C7D5tPzq.js} +6 -7
- package/dist/esm/terminal-orders-list-core.entry.js +12 -9
- package/dist/esm/{terminal-orders-table-BlT9YrFD.js → terminal-orders-table-CCJT7oq4.js} +7 -5
- package/dist/esm/{terminal.service-aFe-O3PC.js → terminal.service-8kwGru35.js} +8 -1
- package/dist/esm/terminals-list-core.entry.js +12 -9
- package/dist/esm/{terminals-table-CkWr-6tD.js → terminals-table-cMkKUVff.js} +1 -1
- package/dist/esm/{utils-BWcTxbSg.js → utils-DB5fh6Iv.js} +3 -0
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Api.js +23 -11
- package/dist/module/Business.js +3 -1
- package/dist/module/Checkout.js +22 -2
- package/dist/module/Payment.js +59 -3
- package/dist/module/Refund.js +2 -1
- package/dist/module/additional-questions-details2.js +3 -4
- package/dist/module/bank-account-document-inputs.js +2 -1
- package/dist/module/billing-form.js +4 -3
- package/dist/module/business-additional-questions-form-step.js +1 -1
- package/dist/module/business-bank-account-form-step-core.js +2 -2
- package/dist/module/business-bank-account-form-step.js +3 -2
- package/dist/module/business-core-info-form-step.js +1 -1
- package/dist/module/business-details-core2.js +11 -7
- package/dist/module/business-documents-on-file2.js +1 -1
- package/dist/module/business-owners-form-step.js +1 -1
- package/dist/module/business-representative-form-step.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +6 -7
- package/dist/module/business.service.js +7 -1
- package/dist/module/check-pkg-version.js +10 -1
- package/dist/module/checkout-core.js +2 -3
- package/dist/module/checkout.service.js +7 -1
- package/dist/module/checkouts-list-core2.js +3 -2
- package/dist/module/{generic-info-details.d.ts → core-info-details.d.ts} +4 -4
- package/dist/module/core-info-details.js +6 -0
- package/dist/module/core-info-details2.js +34 -0
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/details.js +2 -2
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +1 -1
- package/dist/module/dispute-response-actions.js +7 -2
- package/dist/module/dispute-response.js +5 -3
- 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 +3 -3
- package/dist/module/form-control-number-masked2.js +2 -2
- package/dist/module/form-control-number.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/get-business.js +1 -1
- package/dist/module/get-payment-details.js +4 -3
- package/dist/module/get-payout-csv.js +1 -1
- package/dist/module/get-subaccounts.js +5 -4
- 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/justifi-business-details.js +24 -11
- package/dist/module/justifi-business-form.js +5 -3
- package/dist/module/justifi-checkout.js +6 -4
- package/dist/module/justifi-checkouts-list-filters.js +3 -2
- package/dist/module/justifi-checkouts-list.js +7 -4
- package/dist/module/justifi-dispute-management.js +5 -4
- package/dist/module/justifi-gross-payment-chart.js +11 -4
- package/dist/module/justifi-order-terminals.js +8 -3
- package/dist/module/justifi-payment-details.js +3 -2
- package/dist/module/justifi-payment-provisioning.js +11 -4
- package/dist/module/justifi-payment-transactions-list.js +7 -4
- package/dist/module/justifi-payments-list-filters.js +2 -2
- package/dist/module/justifi-payments-list.js +8 -5
- package/dist/module/justifi-payout-details.js +6 -3
- package/dist/module/justifi-payout-transactions-list.js +7 -5
- package/dist/module/justifi-payouts-list-filters.js +2 -2
- package/dist/module/justifi-payouts-list.js +7 -4
- package/dist/module/justifi-refund-payment.js +5 -4
- package/dist/module/justifi-season-interruption-insurance.js +10 -14
- package/dist/module/justifi-terminal-orders-list-filters.js +4 -3
- package/dist/module/justifi-terminal-orders-list.js +10 -4
- package/dist/module/justifi-terminals-list-filters.js +3 -2
- package/dist/module/justifi-terminals-list.js +7 -4
- package/dist/module/justifi-tokenize-payment-method.js +10 -5
- package/dist/module/legal-address-details2.js +3 -3
- package/dist/module/legal-address-form-step.js +1 -1
- package/dist/module/new-payment-method.js +15 -4
- package/dist/module/owner-details2.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/payment-details-core2.js +10 -9
- package/dist/module/payment-method-options.js +2 -3
- package/dist/module/payment-provisioning-actions.js +1 -1
- package/dist/module/payment-provisioning-core.js +1 -1
- package/dist/module/payment.service.js +7 -1
- package/dist/module/payments-list-core2.js +3 -2
- package/dist/module/payout-details-core2.js +5 -4
- package/dist/module/payout.service.js +7 -1
- package/dist/module/payouts-list-core2.js +4 -3
- package/dist/module/representative-details2.js +4 -4
- package/dist/module/schema-validations.js +4 -5
- package/dist/module/season-interruption-insurance-core.js +6 -3
- package/dist/module/sezzle-payment-method.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +3 -2
- package/dist/module/terminal.service.js +7 -1
- package/dist/module/terminals-list-core2.js +3 -2
- package/dist/module/utils2.js +4 -1
- package/dist/module/utils4.js +1 -1
- package/dist/types/api/Api.d.ts +41 -35
- package/dist/types/api/Payment.d.ts +2 -0
- package/dist/types/api/Payout.d.ts +2 -0
- package/dist/types/api/index.d.ts +5 -1
- package/dist/types/api/services/business.service.d.ts +1 -5
- package/dist/types/api/services/dispute.service.d.ts +1 -2
- package/dist/types/api/services/payout.service.d.ts +1 -2
- package/dist/types/api/services/provision.service.d.ts +1 -1
- package/dist/types/api/services/reports.service.d.ts +1 -2
- package/dist/types/api/services/subaccounts.service.d.ts +1 -2
- package/dist/types/components/business-details/business-details.d.ts +1 -0
- package/dist/types/components/business-details/core-info-details/core-info-details.d.ts +5 -0
- package/dist/types/components/business-forms/utils/helpers.d.ts +1 -1
- package/dist/types/components/checkout/billing-form/billing-form.d.ts +1 -0
- package/dist/types/components/checkout/new-payment-method.d.ts +4 -1
- package/dist/types/components/checkout/payment-method-options.d.ts +1 -0
- package/dist/types/components/order-terminals/order-terminals.d.ts +1 -0
- package/dist/types/components/terminal-orders-list/terminal-orders-list.d.ts +1 -0
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +2 -0
- package/dist/types/components.d.ts +21 -21
- package/dist/types/utils/utils.d.ts +1 -1
- package/dist/webcomponents/p-10d41e17.entry.js +1 -0
- package/dist/webcomponents/{p-b2192f8b.entry.js → p-1678e9e3.entry.js} +1 -1
- package/dist/webcomponents/p-16d29d0b.entry.js +1 -0
- package/dist/webcomponents/{p-8224e3c2.entry.js → p-19b9c96a.entry.js} +1 -1
- package/dist/webcomponents/p-22a0b397.entry.js +1 -0
- package/dist/webcomponents/p-292da2d4.entry.js +1 -0
- package/dist/webcomponents/p-2c7ae3ac.entry.js +1 -0
- package/dist/webcomponents/p-2c8d7aa9.entry.js +1 -0
- package/dist/webcomponents/p-3368d3d5.entry.js +1 -0
- package/dist/webcomponents/p-33b23638.entry.js +1 -0
- package/dist/webcomponents/{p-12674a89.entry.js → p-3a979295.entry.js} +1 -1
- package/dist/webcomponents/p-40f7e3af.entry.js +1 -0
- package/dist/webcomponents/p-4680f931.entry.js +1 -0
- package/dist/webcomponents/p-4a070b7a.entry.js +1 -0
- package/dist/webcomponents/p-4b51a896.entry.js +1 -0
- package/dist/webcomponents/p-4f8b9b99.entry.js +1 -0
- package/dist/webcomponents/p-57c89023.entry.js +1 -0
- package/dist/webcomponents/p-57fc593a.entry.js +1 -0
- package/dist/webcomponents/{p-9c1a79c5.entry.js → p-59abf1de.entry.js} +1 -1
- package/dist/webcomponents/p-5d81f36e.entry.js +1 -0
- package/dist/webcomponents/p-5df5aa41.entry.js +1 -0
- package/dist/webcomponents/p-70c498d4.entry.js +1 -0
- package/dist/webcomponents/p-722c5e42.entry.js +1 -0
- package/dist/webcomponents/{p-d2dc6f22.entry.js → p-758ce5e5.entry.js} +4 -4
- package/dist/webcomponents/p-77896e7b.entry.js +1 -0
- package/dist/webcomponents/p-77ac321c.entry.js +1 -0
- package/dist/webcomponents/p-7d3cf734.entry.js +1 -0
- package/dist/webcomponents/p-8183c2d1.entry.js +1 -0
- package/dist/webcomponents/p-8ad67f87.entry.js +1 -0
- package/dist/webcomponents/p-8c107267.entry.js +1 -0
- package/dist/webcomponents/{p-32345016.entry.js → p-935bbc62.entry.js} +1 -1
- package/dist/webcomponents/p-93df56e1.entry.js +1 -0
- package/dist/webcomponents/p-99b080d9.entry.js +1 -0
- package/dist/webcomponents/{p-7MWRbTXI.js → p-BH0Xfn-F.js} +1 -1
- package/dist/webcomponents/p-BR7flk4G.js +1 -0
- package/dist/webcomponents/p-BjMTOtI1.js +1 -0
- package/dist/webcomponents/p-Bk4gk-f7.js +1 -0
- package/dist/webcomponents/{p-BrvbVMVq.js → p-BlJnA265.js} +1 -1
- package/dist/webcomponents/{p-CpTwq2jw.js → p-BnE7qgLh.js} +1 -1
- package/dist/webcomponents/{p-d-_oUZor.js → p-C1sOJl-_.js} +1 -1
- package/dist/webcomponents/p-COcul8pX.js +1 -0
- package/dist/webcomponents/p-CaGOSFHG.js +1 -0
- package/dist/webcomponents/p-Cm_0sqXz.js +1 -0
- package/dist/webcomponents/p-Cs0cIpIm.js +1 -0
- package/dist/webcomponents/p-Cx60eQXT.js +1 -0
- package/dist/webcomponents/{p-OSmuQKbK.js → p-D2ZiLcDE.js} +1 -1
- package/dist/webcomponents/p-DClC2nMO.js +1 -0
- package/dist/webcomponents/p-DR89sFne.js +1 -0
- package/dist/webcomponents/{p-ByRPlUBS.js → p-DnB1x5JE.js} +1 -1
- package/dist/webcomponents/p-DvhDilDP.js +1 -0
- package/dist/webcomponents/{p-BjB_yKBJ.js → p-DzFysjCc.js} +1 -1
- package/dist/webcomponents/{p-DvHZ2jYI.js → p-HBDBB6lL.js} +1 -1
- package/dist/webcomponents/p-_pH3Hg4P.js +1 -0
- package/dist/webcomponents/p-a0662195.entry.js +1 -0
- package/dist/webcomponents/{p-82515f70.entry.js → p-a136ff22.entry.js} +1 -1
- package/dist/webcomponents/p-a33cfcfe.entry.js +1 -0
- package/dist/webcomponents/p-a6722f44.entry.js +1 -0
- package/dist/webcomponents/{p-9dae8152.entry.js → p-a8119fda.entry.js} +1 -1
- package/dist/webcomponents/p-a94952f6.entry.js +1 -0
- package/dist/webcomponents/p-abdae97a.entry.js +1 -0
- package/dist/webcomponents/p-af09b6ee.entry.js +1 -0
- package/dist/webcomponents/p-b0d3aab7.entry.js +1 -0
- package/dist/webcomponents/p-b1586aa2.entry.js +1 -0
- package/dist/webcomponents/p-c01544c3.entry.js +1 -0
- package/dist/webcomponents/p-c3c7be24.entry.js +1 -0
- package/dist/webcomponents/p-c5628e09.entry.js +1 -0
- package/dist/webcomponents/p-c5b6b76f.entry.js +1 -0
- package/dist/webcomponents/p-c6490254.entry.js +1 -0
- package/dist/webcomponents/p-ceefc483.entry.js +1 -0
- package/dist/webcomponents/p-clwP6zk3.js +1 -0
- package/dist/webcomponents/{p-774eee26.entry.js → p-d8b8b17c.entry.js} +1 -1
- package/dist/webcomponents/p-e2bfdba5.entry.js +1 -0
- package/dist/webcomponents/p-e73fe424.entry.js +1 -0
- package/dist/webcomponents/{p-CegkOiUz.js → p-eHhqPyVW.js} +1 -1
- package/dist/webcomponents/p-f23d4fdb.entry.js +1 -0
- package/dist/webcomponents/p-ffd197c2.entry.js +1 -0
- package/dist/webcomponents/p-gZGxqQgQ.js +1 -0
- package/dist/webcomponents/p-l3uWWMRW.js +1 -0
- package/dist/webcomponents/p-r__elyG4.js +1 -0
- package/dist/webcomponents/{p-82kiZkHt.js → p-uSM1EMk-.js} +1 -1
- package/dist/webcomponents/{p-IA90llLO.js → p-yH3TC3ZQ.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/Api-KMweahmp.js +0 -74
- package/dist/cjs/Document-rXGBUaOh.js +0 -58
- package/dist/collection/api/ApiNew.js +0 -82
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +0 -40
- package/dist/esm/Api-C9CDE-UM.js +0 -72
- package/dist/esm/Document-Ct-uNz2r.js +0 -55
- package/dist/module/ApiNew.js +0 -84
- package/dist/module/ComponentError.js +0 -21
- package/dist/module/Dispute.js +0 -57
- package/dist/module/generic-info-details.js +0 -6
- package/dist/module/generic-info-details2.js +0 -34
- package/dist/types/api/ApiNew.d.ts +0 -61
- package/dist/types/components/business-details/generic-info-details/generic-info-details.d.ts +0 -5
- package/dist/webcomponents/p-05138b5d.entry.js +0 -1
- package/dist/webcomponents/p-0661622e.entry.js +0 -1
- package/dist/webcomponents/p-0a4abfba.entry.js +0 -1
- package/dist/webcomponents/p-0d73af88.entry.js +0 -1
- package/dist/webcomponents/p-107fdd99.entry.js +0 -1
- package/dist/webcomponents/p-12ea3a21.entry.js +0 -1
- package/dist/webcomponents/p-13a56c04.entry.js +0 -1
- package/dist/webcomponents/p-22e9ff07.entry.js +0 -1
- package/dist/webcomponents/p-2ce8e7ac.entry.js +0 -1
- package/dist/webcomponents/p-357e1077.entry.js +0 -1
- package/dist/webcomponents/p-3a691b9a.entry.js +0 -1
- package/dist/webcomponents/p-3adEM48l.js +0 -1
- package/dist/webcomponents/p-3bb94f41.entry.js +0 -1
- package/dist/webcomponents/p-460eae73.entry.js +0 -1
- package/dist/webcomponents/p-48d84a6f.entry.js +0 -1
- package/dist/webcomponents/p-4a3ee65c.entry.js +0 -1
- package/dist/webcomponents/p-58f415f4.entry.js +0 -1
- package/dist/webcomponents/p-5ff7f253.entry.js +0 -1
- package/dist/webcomponents/p-6334c2bc.entry.js +0 -1
- package/dist/webcomponents/p-6780e07e.entry.js +0 -1
- package/dist/webcomponents/p-6a3a8a7a.entry.js +0 -1
- package/dist/webcomponents/p-76d1a604.entry.js +0 -1
- package/dist/webcomponents/p-7c62b59d.entry.js +0 -1
- package/dist/webcomponents/p-833576ca.entry.js +0 -1
- package/dist/webcomponents/p-83d4ac72.entry.js +0 -1
- package/dist/webcomponents/p-AVaenhw9.js +0 -1
- package/dist/webcomponents/p-B1ubyLhU.js +0 -1
- package/dist/webcomponents/p-BBsCnePk.js +0 -1
- package/dist/webcomponents/p-BHbsXXRt.js +0 -1
- package/dist/webcomponents/p-Bxs6fi7a.js +0 -1
- package/dist/webcomponents/p-C0piBrye.js +0 -1
- package/dist/webcomponents/p-CkrVt-dj.js +0 -1
- package/dist/webcomponents/p-Ct-uNz2r.js +0 -1
- package/dist/webcomponents/p-Cy4aIACq.js +0 -1
- package/dist/webcomponents/p-D5Sh88BE.js +0 -1
- package/dist/webcomponents/p-DLLK41AX.js +0 -1
- package/dist/webcomponents/p-Da_GeglS.js +0 -1
- package/dist/webcomponents/p-Dgxn_B6C.js +0 -1
- package/dist/webcomponents/p-DmIOVniD.js +0 -1
- package/dist/webcomponents/p-DqOTECuf.js +0 -1
- package/dist/webcomponents/p-Dz-Ft5b1.js +0 -1
- package/dist/webcomponents/p-a5af8397.entry.js +0 -1
- package/dist/webcomponents/p-a61f9b3c.entry.js +0 -1
- package/dist/webcomponents/p-a6fb7730.entry.js +0 -1
- package/dist/webcomponents/p-aTcDcUMZ.js +0 -1
- package/dist/webcomponents/p-aa954ce9.entry.js +0 -1
- package/dist/webcomponents/p-ac4ac963.entry.js +0 -1
- package/dist/webcomponents/p-ae7c6b81.entry.js +0 -1
- package/dist/webcomponents/p-ae8c3dab.entry.js +0 -1
- package/dist/webcomponents/p-afa54e39.entry.js +0 -1
- package/dist/webcomponents/p-b061c21c.entry.js +0 -1
- package/dist/webcomponents/p-b4d857b2.entry.js +0 -1
- package/dist/webcomponents/p-bb45705e.entry.js +0 -1
- package/dist/webcomponents/p-c2f3d7da.entry.js +0 -1
- package/dist/webcomponents/p-c7227fc1.entry.js +0 -1
- package/dist/webcomponents/p-c8f70818.entry.js +0 -1
- package/dist/webcomponents/p-c9288f47.entry.js +0 -1
- package/dist/webcomponents/p-d1a440e3.entry.js +0 -1
- package/dist/webcomponents/p-dd89c516.entry.js +0 -1
- package/dist/webcomponents/p-e39b5ffd.entry.js +0 -1
- package/dist/webcomponents/p-e5d35016.entry.js +0 -1
- package/dist/webcomponents/p-ebd7753d.entry.js +0 -1
- package/dist/webcomponents/p-ec47b7c8.entry.js +0 -1
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { Api } from "..";
|
|
2
|
+
const api = Api();
|
|
2
3
|
export class InsuranceService {
|
|
3
4
|
async fetchQuote(authToken, payload) {
|
|
4
5
|
const endpoint = 'insurance/quotes';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
body: payload,
|
|
8
|
-
});
|
|
6
|
+
const body = payload;
|
|
7
|
+
return api.post({ endpoint, body, authToken });
|
|
9
8
|
}
|
|
10
9
|
async toggleCoverage(authToken, quoteId, payload) {
|
|
11
10
|
const endpoint = `insurance/quotes/${quoteId}/toggle`;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
body: payload,
|
|
15
|
-
});
|
|
11
|
+
const body = payload;
|
|
12
|
+
return api.post({ endpoint, body, authToken });
|
|
16
13
|
}
|
|
17
14
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import Api from "
|
|
1
|
+
import { Api } from "..";
|
|
2
|
+
const api = Api();
|
|
2
3
|
export class ReportsService {
|
|
3
4
|
async fetchGrossVolumeChartData(accountId, authToken) {
|
|
4
|
-
const api = Api({ authToken: authToken, apiOrigin: PROXY_API_ORIGIN });
|
|
5
5
|
const endpoint = `account/${accountId}/reports/gross_volume`;
|
|
6
|
-
return api.get({ endpoint });
|
|
6
|
+
return api.get({ endpoint, authToken });
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"components/business-details/business-details-core.js",
|
|
6
6
|
"components/business-details/business-details.js",
|
|
7
7
|
"components/business-details/additional-questions-details/additional-questions-details.js",
|
|
8
|
-
"components/business-details/
|
|
8
|
+
"components/business-details/core-info-details/core-info-details.js",
|
|
9
9
|
"components/business-details/legal-address-details/legal-address-details.js",
|
|
10
10
|
"components/business-details/owner-details/owner-details.js",
|
|
11
11
|
"components/business-details/representative-details/representative-details.js",
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
import { DetailItem, DetailSectionTitle } from "../../../ui-components/details/utils";
|
|
3
3
|
import { isEmptyObject } from "../../../utils/utils";
|
|
4
4
|
export class AdditionalQuestionsDetails {
|
|
5
5
|
render() {
|
|
6
|
-
|
|
7
|
-
if (isEmptyObject(this.additionalQuestions))
|
|
6
|
+
if (!this.additionalQuestions || isEmptyObject(this.additionalQuestions))
|
|
8
7
|
return null;
|
|
9
|
-
return (h(
|
|
8
|
+
return (h("div", null, h(DetailSectionTitle, { sectionTitle: "Additional Questions" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Business Revenue", value: this.additionalQuestions.business_revenue }), h(DetailItem, { title: "Business Payment Volume", value: this.additionalQuestions.business_payment_volume }))))));
|
|
10
9
|
}
|
|
11
10
|
static get is() { return "additional-questions-details"; }
|
|
12
11
|
static get properties() {
|
|
@@ -11,7 +11,6 @@ var RENDER_STATES;
|
|
|
11
11
|
export class BusinessDetailsCore {
|
|
12
12
|
constructor() {
|
|
13
13
|
this.renderState = RENDER_STATES.LOADING;
|
|
14
|
-
this.errorMessage = 'An error ocurred.';
|
|
15
14
|
}
|
|
16
15
|
async componentWillLoad() {
|
|
17
16
|
if (this.getBusiness) {
|
|
@@ -43,7 +42,7 @@ export class BusinessDetailsCore {
|
|
|
43
42
|
if (this.renderState === RENDER_STATES.ERROR) {
|
|
44
43
|
return h(StyledHost, null, ErrorState(this.errorMessage));
|
|
45
44
|
}
|
|
46
|
-
return (h(StyledHost, null, h("
|
|
45
|
+
return (h(StyledHost, null, h("justifi-details", { "error-message": this.errorMessage }, h("div", { slot: 'detail-sections' }, h("core-info-details", { business: this.business }), h("legal-address-details", { legalAddress: this.business.legal_address }), h("representative-details", { representative: this.business.representative }), h("owner-details", { owners: this.business.owners }), h("additional-questions-details", { additionalQuestions: this.business.additional_questions })))));
|
|
47
46
|
}
|
|
48
47
|
static get is() { return "business-details-core"; }
|
|
49
48
|
static get properties() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
import { ErrorState } from "../../ui-components/details/utils";
|
|
3
3
|
import { BusinessService } from "../../api/services/business.service";
|
|
4
4
|
import { makeGetBusiness } from "../../actions/business/get-business";
|
|
@@ -6,14 +6,23 @@ import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/Component
|
|
|
6
6
|
import JustifiAnalytics from "../../api/Analytics";
|
|
7
7
|
import { checkPkgVersion } from "../../utils/check-pkg-version";
|
|
8
8
|
export class BusinessDetails {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.errorMessage = null;
|
|
11
|
+
this.handleErrorEvent = event => {
|
|
12
|
+
this.errorMessage = event.detail.message;
|
|
13
|
+
this.errorEvent.emit(event.detail);
|
|
14
|
+
};
|
|
15
|
+
}
|
|
9
16
|
componentWillLoad() {
|
|
10
17
|
checkPkgVersion();
|
|
11
18
|
this.analytics = new JustifiAnalytics(this);
|
|
12
19
|
this.initializeGetBusiness();
|
|
13
20
|
}
|
|
14
21
|
disconnectedCallback() {
|
|
15
|
-
|
|
22
|
+
var _a;
|
|
23
|
+
(_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
16
24
|
}
|
|
25
|
+
;
|
|
17
26
|
initializeGetBusiness() {
|
|
18
27
|
if (!this.businessId || !this.authToken) {
|
|
19
28
|
this.errorMessage = 'Invalid business id or auth token';
|
|
@@ -32,9 +41,9 @@ export class BusinessDetails {
|
|
|
32
41
|
}
|
|
33
42
|
render() {
|
|
34
43
|
if (this.errorMessage) {
|
|
35
|
-
return
|
|
44
|
+
return ErrorState(this.errorMessage);
|
|
36
45
|
}
|
|
37
|
-
return (h(
|
|
46
|
+
return (h("business-details-core", { getBusiness: this.getBusiness, "onError-event": this.handleErrorEvent }));
|
|
38
47
|
}
|
|
39
48
|
static get is() { return "justifi-business-details"; }
|
|
40
49
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { DetailItem, DetailSectionTitle } from "../../../ui-components/details/utils";
|
|
3
|
+
import { snakeCaseToHumanReadable } from "../../../utils/utils";
|
|
4
|
+
export class CoreInfoDetails {
|
|
5
|
+
render() {
|
|
6
|
+
if (!this.business) {
|
|
7
|
+
return null;
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
return (h("div", null, h(DetailSectionTitle, { sectionTitle: "Business Core Info Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Legal Name", value: this.business.legal_name }), h(DetailItem, { title: "Doing Business As (DBA)", value: this.business.doing_business_as }), h(DetailItem, { title: "Business Classification", value: snakeCaseToHumanReadable(this.business.classification) }), h(DetailItem, { title: "Industry", value: this.business.industry })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Tax ID", value: this.business.tax_id }), h(DetailItem, { title: "Website URL", value: this.business.website_url }), h(DetailItem, { title: "Email Address", value: this.business.email }), h(DetailItem, { title: "Phone Number", value: this.business.phone }))))));
|
|
11
|
+
}
|
|
12
|
+
static get is() { return "core-info-details"; }
|
|
13
|
+
static get properties() {
|
|
14
|
+
return {
|
|
15
|
+
"business": {
|
|
16
|
+
"type": "unknown",
|
|
17
|
+
"attribute": "business",
|
|
18
|
+
"mutable": false,
|
|
19
|
+
"complexType": {
|
|
20
|
+
"original": "Business",
|
|
21
|
+
"resolved": "Business",
|
|
22
|
+
"references": {
|
|
23
|
+
"Business": {
|
|
24
|
+
"location": "import",
|
|
25
|
+
"path": "../../../api/Business",
|
|
26
|
+
"id": "src/api/Business.ts::Business"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"required": false,
|
|
31
|
+
"optional": false,
|
|
32
|
+
"docs": {
|
|
33
|
+
"tags": [],
|
|
34
|
+
"text": ""
|
|
35
|
+
},
|
|
36
|
+
"getter": false,
|
|
37
|
+
"setter": false
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
}
|
package/dist/collection/components/business-details/legal-address-details/legal-address-details.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
import { DetailItem, DetailSectionTitle } from "../../../ui-components/details/utils";
|
|
3
3
|
import { isEmptyObject } from "../../../utils/utils";
|
|
4
4
|
export class LegalAddressDetails {
|
|
5
5
|
render() {
|
|
6
6
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
7
|
-
if (isEmptyObject(this.legalAddress))
|
|
7
|
+
if (!this.legalAddress || isEmptyObject(this.legalAddress))
|
|
8
8
|
return null;
|
|
9
|
-
return (h(
|
|
9
|
+
return (h("div", null, h(DetailSectionTitle, { sectionTitle: "Business Legal Address Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Country", value: (_a = this.legalAddress) === null || _a === void 0 ? void 0 : _a.country }), h(DetailItem, { title: "Legal Address", value: (_b = this.legalAddress) === null || _b === void 0 ? void 0 : _b.line1 }), h(DetailItem, { title: "Address Line 2", value: (_c = this.legalAddress) === null || _c === void 0 ? void 0 : _c.line2 })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "City", value: (_d = this.legalAddress) === null || _d === void 0 ? void 0 : _d.city }), h(DetailItem, { title: "State", value: (_e = this.legalAddress) === null || _e === void 0 ? void 0 : _e.state }), h(DetailItem, { title: "Postal Code", value: (_g = (_f = this.legalAddress) === null || _f === void 0 ? void 0 : _f.postal_code) === null || _g === void 0 ? void 0 : _g.toString() }))))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "legal-address-details"; }
|
|
12
12
|
static get properties() {
|
package/dist/collection/components/business-details/representative-details/representative-details.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
import { DetailItem, DetailSectionTitle } from "../../../ui-components/details/utils";
|
|
3
3
|
import { formatMediumDate, isEmptyObject } from "../../../utils/utils";
|
|
4
4
|
export class JustifiRepresentativeDetails {
|
|
5
5
|
render() {
|
|
6
6
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
7
|
-
if (isEmptyObject(this.representative))
|
|
7
|
+
if (!this.representative || isEmptyObject(this.representative))
|
|
8
8
|
return null;
|
|
9
|
-
return (h(
|
|
9
|
+
return (h("div", null, h(DetailSectionTitle, { sectionTitle: "Representative Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Name", value: (_a = this.representative) === null || _a === void 0 ? void 0 : _a.name }), h(DetailItem, { title: "ID", value: (_b = this.representative) === null || _b === void 0 ? void 0 : _b.id }), h(DetailItem, { title: "Address", value: (_d = (_c = this.representative) === null || _c === void 0 ? void 0 : _c.address) === null || _d === void 0 ? void 0 : _d.line1 }), h(DetailItem, { title: "Created At", value: ((_e = this.representative) === null || _e === void 0 ? void 0 : _e.created_at) && formatMediumDate((_f = this.representative) === null || _f === void 0 ? void 0 : _f.created_at) })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Title", value: (_g = this.representative) === null || _g === void 0 ? void 0 : _g.title }), h(DetailItem, { title: "Is Owner?", value: (_h = this.representative) === null || _h === void 0 ? void 0 : _h.is_owner.toString() }), h(DetailItem, { title: "Date Of Birth", value: this.representative && formatMediumDate(new Date(Number((_j = this.representative) === null || _j === void 0 ? void 0 : _j.dob_year), Number((_k = this.representative) === null || _k === void 0 ? void 0 : _k.dob_month) - 1, Number((_l = this.representative) === null || _l === void 0 ? void 0 : _l.dob_day))) }), h(DetailItem, { title: "Email", value: (_m = this.representative) === null || _m === void 0 ? void 0 : _m.email }), h(DetailItem, { title: "Phone", value: (_o = this.representative) === null || _o === void 0 ? void 0 : _o.phone }), h(DetailItem, { title: "Updated At", value: this.representative && formatMediumDate((_p = this.representative) === null || _p === void 0 ? void 0 : _p.updated_at) }))))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "representative-details"; }
|
|
12
12
|
static get properties() {
|
|
@@ -52,8 +52,10 @@ export class BusinessForm {
|
|
|
52
52
|
this.initializeApi();
|
|
53
53
|
}
|
|
54
54
|
disconnectedCallback() {
|
|
55
|
-
|
|
55
|
+
var _a;
|
|
56
|
+
(_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
56
57
|
}
|
|
58
|
+
;
|
|
57
59
|
get title() {
|
|
58
60
|
return this.removeTitle ? '' : this.formTitle;
|
|
59
61
|
}
|
package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js
CHANGED
|
@@ -19,8 +19,10 @@ export class PaymentProvisioning {
|
|
|
19
19
|
this.initializeApi();
|
|
20
20
|
}
|
|
21
21
|
disconnectedCallback() {
|
|
22
|
-
|
|
22
|
+
var _a;
|
|
23
|
+
(_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
23
24
|
}
|
|
25
|
+
;
|
|
24
26
|
initializeApi() {
|
|
25
27
|
if (this.authToken && this.businessId) {
|
|
26
28
|
this.getBusiness = makeGetBusiness({
|
|
@@ -44,7 +46,7 @@ export class PaymentProvisioning {
|
|
|
44
46
|
}
|
|
45
47
|
}
|
|
46
48
|
render() {
|
|
47
|
-
return (h("justifi-payment-provisioning-core", { key: '
|
|
49
|
+
return (h("justifi-payment-provisioning-core", { key: '11871305b4b4974787a9278195ea0b314be250b0', businessId: this.businessId, authToken: this.authToken, allowOptionalFields: this.allowOptionalFields, formTitle: this.formTitle, getBusiness: this.getBusiness, postProvisioning: this.postProvisioning }));
|
|
48
50
|
}
|
|
49
51
|
static get is() { return "justifi-payment-provisioning"; }
|
|
50
52
|
static get encapsulation() { return "shadow"; }
|
|
@@ -11,7 +11,7 @@ export class BusinessTermsConditionsFormStep {
|
|
|
11
11
|
this.fetchData = async () => {
|
|
12
12
|
this.formLoading.emit(true);
|
|
13
13
|
try {
|
|
14
|
-
const response = await this.api.get({ endpoint: this.businessEndpoint });
|
|
14
|
+
const response = await this.api.get({ endpoint: this.businessEndpoint, authToken: this.authToken });
|
|
15
15
|
this.acceptedTermsBefore = response.data.terms_conditions_accepted;
|
|
16
16
|
}
|
|
17
17
|
catch (error) {
|
|
@@ -30,7 +30,7 @@ export class BusinessTermsConditionsFormStep {
|
|
|
30
30
|
this.formLoading.emit(true);
|
|
31
31
|
try {
|
|
32
32
|
const payload = this.termsPayload;
|
|
33
|
-
const response = await this.api.post({ endpoint: this.termsConditionsEndpoint, body: payload });
|
|
33
|
+
const response = await this.api.post({ endpoint: this.termsConditionsEndpoint, body: payload, authToken: this.authToken });
|
|
34
34
|
this.handleResponse(response, onSuccess);
|
|
35
35
|
}
|
|
36
36
|
catch (error) {
|
|
@@ -67,7 +67,7 @@ export class BusinessTermsConditionsFormStep {
|
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
async componentWillLoad() {
|
|
70
|
-
this.api = Api(
|
|
70
|
+
this.api = Api();
|
|
71
71
|
this.formController = new FormController(businessTermsConditionsSchema(this.allowOptionalFields));
|
|
72
72
|
if (this.businessId && this.authToken) {
|
|
73
73
|
this.fetchData();
|
|
@@ -108,7 +108,7 @@ export class BusinessTermsConditionsFormStep {
|
|
|
108
108
|
return (h("a", { href: "https://justifi.tech/merchant-agreement/", target: "_blank", rel: "noopener noreferrer" }, "merchant agreement"));
|
|
109
109
|
}
|
|
110
110
|
render() {
|
|
111
|
-
return (h("form", { key: '
|
|
111
|
+
return (h("form", { key: 'c1ca0ecd364a999e7525e9ac3da82e874a8784e8' }, h("fieldset", { key: 'a77178a38044c458d8dbd31a7e1aeb3f1a34c968' }, h("legend", { key: '7e933517fca8d54095466715bf1f0485625be74f', part: heading2 }, "Terms and Conditions"), h("hr", { key: '1c1da0b7378c51ad2be5efc0e51dedd3ed178c8f' }), h("div", { key: 'bc37aa5162dddc8ade4316b5f24deb1d4a4b6f86' }, h("p", { key: 'aef3d0c9186845e3f44b8e1906c405647f489b53' }, "Please read and accept the ", this.merchantAgreementLink, " to submit your provisioning request.")), h("br", { key: '2a6a480916cc0c4bf35d96c96c3f0250e87149cb' }), h("div", { key: '2e3bed3a57bcb026152fcdc82debab0e667f8148', class: "row-gy-3" }, h("div", { key: '3243c1819e4e61921421467271b2a4d2a89e73d4', class: "col-12" }, h("form-control-checkbox", { key: '20b9b72809148ef390a6da7d9f5bc216436d34a5', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText, checked: this.acceptedTerms }))))));
|
|
112
112
|
}
|
|
113
113
|
static get is() { return "justifi-business-terms-conditions-form-step"; }
|
|
114
114
|
static get properties() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mixed, string } from "yup";
|
|
2
2
|
import StateOptions from "../../../utils/state-options";
|
|
3
|
-
import { businessServiceReceivedOptions, recurringPaymentsOptions, seasonalBusinessOptions, bankAccountTypeOptions, businessClassificationOptions } from "../utils/business-form-options";
|
|
4
|
-
import { numbersOnlyRegex, phoneRegex, poBoxRegex, ssnRegex, transformEmptyString, urlRegex, validateRoutingNumber } from "./schema-helpers";
|
|
3
|
+
import { businessServiceReceivedOptions, recurringPaymentsOptions, seasonalBusinessOptions, bankAccountTypeOptions, businessClassificationOptions, } from "../utils/business-form-options";
|
|
4
|
+
import { numbersOnlyRegex, phoneRegex, poBoxRegex, ssnRegex, transformEmptyString, urlRegex, validateRoutingNumber, } from "./schema-helpers";
|
|
5
5
|
import { EntityDocumentType } from "../../../api/Document";
|
|
6
6
|
// Common Validations
|
|
7
7
|
export const emailValidation = string()
|
|
@@ -55,7 +55,7 @@ export const identityTitleValidation = string()
|
|
|
55
55
|
.max(50, 'Title must be less than 50 characters')
|
|
56
56
|
.transform(transformEmptyString);
|
|
57
57
|
export const dobValidation = (role) => {
|
|
58
|
-
return
|
|
58
|
+
return string()
|
|
59
59
|
.test('min', 'Enter a valid date', (value) => {
|
|
60
60
|
const date = new Date(value);
|
|
61
61
|
const minDate = new Date('1902-01-01');
|
|
@@ -67,7 +67,7 @@ export const dobValidation = (role) => {
|
|
|
67
67
|
minAgeDate.setFullYear(minAgeDate.getFullYear() - 18);
|
|
68
68
|
return date <= minAgeDate;
|
|
69
69
|
})
|
|
70
|
-
.transform(transformEmptyString)
|
|
70
|
+
.transform(transformEmptyString);
|
|
71
71
|
};
|
|
72
72
|
export const ssnValidation = string()
|
|
73
73
|
.matches(ssnRegex, 'Enter valid SSN')
|
|
@@ -102,7 +102,7 @@ export const cityValidation = string()
|
|
|
102
102
|
.max(50, 'City must be less than 50 characters')
|
|
103
103
|
.transform(transformEmptyString);
|
|
104
104
|
export const stateValidation = string()
|
|
105
|
-
.oneOf(StateOptions.map((option) => option.value), '
|
|
105
|
+
.oneOf(StateOptions.map((option) => option.value), 'Enter a 2-letter state abbreviation, such as CA')
|
|
106
106
|
.transform(transformEmptyString);
|
|
107
107
|
export const postalValidation = string()
|
|
108
108
|
.matches(/^[0-9]{5}$/, 'Enter valid postal code')
|
|
@@ -130,8 +130,7 @@ export const recurringPaymentsPercentageValidation = string()
|
|
|
130
130
|
export const seasonalBusinessValidation = string()
|
|
131
131
|
.oneOf(seasonalBusinessOptions.map((option) => option.value), 'Select seasonal business')
|
|
132
132
|
.transform(transformEmptyString);
|
|
133
|
-
export const otherPaymentDetailsValidation = string()
|
|
134
|
-
.transform(transformEmptyString);
|
|
133
|
+
export const otherPaymentDetailsValidation = string().transform(transformEmptyString);
|
|
135
134
|
// Bank Account Validations
|
|
136
135
|
export const bankNameValidation = string()
|
|
137
136
|
.min(2, 'Name must be at least 2 characters')
|
|
@@ -35,13 +35,14 @@ export class BillingForm {
|
|
|
35
35
|
this.formController.setInitialValues(fields);
|
|
36
36
|
}
|
|
37
37
|
async validate() {
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
const isValid = await this.formController.validate();
|
|
39
|
+
const errors = this.formController.errors.getValue();
|
|
40
|
+
return { isValid, errors };
|
|
40
41
|
}
|
|
41
42
|
render() {
|
|
42
43
|
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
43
44
|
const showHeader = !this.isPostalOnlyMode && !this.hideAllBillingFields;
|
|
44
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: 'df86239c476aadde3af18742bbf643d61825c051' }, h("div", { key: '186f3ef6c2295223da888b7645a0af7aa8df4535', part: billingForm, class: "mt-4", hidden: this.hideAllBillingFields }, showHeader && h(Header3, { key: '72284e3fcea18cbdfe879989fb7f1b007e2a37df', text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), h("form", { key: '9479d696a0486e63edfad4bd0dbe374a21cb7b8c' }, h("fieldset", { key: 'b780abf09a714f2e9588670ad149c3ca999cbc87' }, this.legend && h("legend", { key: 'f102dc51722fe2f050c951e7b56117c9577f3b83' }, this.legend), h("div", { key: '00d6c7e35d768f3357cc17836c916e2bf24e3a7e', class: "row gy-3" }, h("div", { key: 'cb2b29aa769c97ccab246dc74e463d389497edbd', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '3cb8ca5e3ecd0817f8e16aafbb5d3ca5ee7824ed', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '781338b1c79fd815d2ab2dbc15e7b56b534a2278', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '682a37c6b417fbc0edf76b89122b5bf618603360', name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { key: '50d657891e492c8568bf179d752b9aadf10f2387', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: 'ce1f04bfc3307af7a025390bcbcce6a6b3da6fab', name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { key: 'ddb45c1cbdc6aa5d27c6a0c4b6f29366ed0e8eba', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '410efdbcd5381bdf61d9c752f292f794d8e12670', name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { key: 'a65811acc25443a07cdb1401231ce1e703096fd4', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-select", { key: 'bed28d564c9e5a2ebfc10b6ab47e43e2b17bd6e6', name: 'address_state', label: 'State', options: StateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { key: '8aca307d318e87b17e09122fa91e817c0a59c8d5', class: "col-12", hidden: this.hideAllBillingFields }, h("form-control-text", { key: '4dd06dc9ae01fc2953780e52f9e9c918a38a7bbd', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: numberOnlyHandler }))))))));
|
|
45
46
|
}
|
|
46
47
|
static get is() { return "justifi-billing-form"; }
|
|
47
48
|
static get properties() {
|
|
@@ -183,7 +184,7 @@ export class BillingForm {
|
|
|
183
184
|
},
|
|
184
185
|
"validate": {
|
|
185
186
|
"complexType": {
|
|
186
|
-
"signature": "() => Promise<{ isValid: boolean; }>",
|
|
187
|
+
"signature": "() => Promise<{ isValid: boolean; errors: any; }>",
|
|
187
188
|
"parameters": [],
|
|
188
189
|
"references": {
|
|
189
190
|
"Promise": {
|
|
@@ -191,7 +192,7 @@ export class BillingForm {
|
|
|
191
192
|
"id": "global::Promise"
|
|
192
193
|
}
|
|
193
194
|
},
|
|
194
|
-
"return": "Promise<{ isValid: boolean; }>"
|
|
195
|
+
"return": "Promise<{ isValid: boolean; errors: any; }>"
|
|
195
196
|
},
|
|
196
197
|
"docs": {
|
|
197
198
|
"text": "",
|
|
@@ -14,8 +14,10 @@ export class Checkout {
|
|
|
14
14
|
this.initializeGetCheckout();
|
|
15
15
|
}
|
|
16
16
|
disconnectedCallback() {
|
|
17
|
-
|
|
17
|
+
var _a;
|
|
18
|
+
(_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
18
19
|
}
|
|
20
|
+
;
|
|
19
21
|
initializeGetCheckout() {
|
|
20
22
|
if (this.authToken && this.checkoutId) {
|
|
21
23
|
this.getCheckout = makeGetCheckout({
|
|
@@ -48,11 +50,11 @@ export class Checkout {
|
|
|
48
50
|
return { isValid };
|
|
49
51
|
}
|
|
50
52
|
render() {
|
|
51
|
-
return (h("justifi-checkout-core", { key: '
|
|
53
|
+
return (h("justifi-checkout-core", { key: 'c1c7cf4f1aadce928e3ed6a6ae05a7824d875d68', getCheckout: this.getCheckout, authToken: this.authToken, complete: this.complete, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, disableBnpl: this.disableBnpl, disablePaymentMethodGroup: this.disablePaymentMethodGroup, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, ref: el => {
|
|
52
54
|
if (el) {
|
|
53
55
|
this.checkoutCoreRef = el;
|
|
54
56
|
}
|
|
55
|
-
} }, h("div", { key: '
|
|
57
|
+
} }, h("div", { key: '7a4be7220e5eb199f94c5086c23e10dce68d4854', slot: "insurance" }, h("slot", { key: 'f5db23ef6dc82d0521518ea2dbfe99d8c8b6c2cc', name: "insurance" }))));
|
|
56
58
|
}
|
|
57
59
|
static get is() { return "justifi-checkout"; }
|
|
58
60
|
static get properties() {
|
|
@@ -23,9 +23,18 @@ export class NewPaymentMethod {
|
|
|
23
23
|
if (!this.paymentMethodFormRef || !this.billingFormRef)
|
|
24
24
|
return;
|
|
25
25
|
try {
|
|
26
|
-
const isValid = await this.validate();
|
|
26
|
+
const { isValid, errors } = await this.validate();
|
|
27
27
|
if (!isValid || !insuranceValidation.isValid) {
|
|
28
|
-
|
|
28
|
+
// get propety value from first property in errors object
|
|
29
|
+
const message = `${Object.values(errors)[0] || 'Validation error'}`;
|
|
30
|
+
return {
|
|
31
|
+
validationError: true,
|
|
32
|
+
error: {
|
|
33
|
+
code: 'validation_error',
|
|
34
|
+
message,
|
|
35
|
+
decline_code: undefined
|
|
36
|
+
}
|
|
37
|
+
};
|
|
29
38
|
}
|
|
30
39
|
const tokenizeResponse = await this.tokenize();
|
|
31
40
|
if (tokenizeResponse.error) {
|
|
@@ -46,7 +55,9 @@ export class NewPaymentMethod {
|
|
|
46
55
|
async validate() {
|
|
47
56
|
const billingFormValidation = await this.billingFormRef.validate();
|
|
48
57
|
const paymentMethodFormValidation = await this.paymentMethodFormRef.validate();
|
|
49
|
-
|
|
58
|
+
const isValid = billingFormValidation.isValid && paymentMethodFormValidation.isValid;
|
|
59
|
+
const errors = Object.assign(Object.assign({}, billingFormValidation.errors), paymentMethodFormValidation.errors);
|
|
60
|
+
return { isValid, errors };
|
|
50
61
|
}
|
|
51
62
|
async tokenize() {
|
|
52
63
|
try {
|
|
@@ -76,7 +87,7 @@ export class NewPaymentMethod {
|
|
|
76
87
|
}
|
|
77
88
|
render() {
|
|
78
89
|
var _a, _b;
|
|
79
|
-
return (h(Host, { key: '
|
|
90
|
+
return (h(Host, { key: '137378e62a729bd2287b1bdf89cb85c702cd4e12', class: "payment-method" }, h("div", { key: 'dabfcf5c56169708a8968a16aeaafefb43ca3ab8', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick, hidden: this.hiddenRadioInput }, h("form-control-radio", { key: 'd098e2b8f6e1230fc16fdc2cbfd616559bcf2b89', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: PaymentMethodTypeLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id] })), this.isSelected ? this.showNewPaymentMethodForm() : null));
|
|
80
91
|
}
|
|
81
92
|
static get is() { return "justifi-new-payment-method"; }
|
|
82
93
|
static get properties() {
|
|
@@ -338,7 +349,7 @@ export class NewPaymentMethod {
|
|
|
338
349
|
},
|
|
339
350
|
"validate": {
|
|
340
351
|
"complexType": {
|
|
341
|
-
"signature": "() => Promise<boolean>",
|
|
352
|
+
"signature": "() => Promise<{ isValid: boolean; errors: any; }>",
|
|
342
353
|
"parameters": [],
|
|
343
354
|
"references": {
|
|
344
355
|
"Promise": {
|
|
@@ -346,7 +357,7 @@ export class NewPaymentMethod {
|
|
|
346
357
|
"id": "global::Promise"
|
|
347
358
|
}
|
|
348
359
|
},
|
|
349
|
-
"return": "Promise<boolean>"
|
|
360
|
+
"return": "Promise<{ isValid: boolean; errors: any; }>"
|
|
350
361
|
},
|
|
351
362
|
"docs": {
|
|
352
363
|
"text": "",
|
|
@@ -46,12 +46,11 @@ export class PaymentMethodOptions {
|
|
|
46
46
|
}
|
|
47
47
|
async validate() {
|
|
48
48
|
const newPaymentMethodElement = this.selectedPaymentMethodOptionRef;
|
|
49
|
-
|
|
50
|
-
return { isValid: isValid };
|
|
49
|
+
return newPaymentMethodElement.validate();
|
|
51
50
|
}
|
|
52
51
|
render() {
|
|
53
52
|
var _a;
|
|
54
|
-
return (h(Host, { key: '
|
|
53
|
+
return (h(Host, { key: 'c61e82c72aaa25e87ded723799a1eb0961c05444' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
|
|
55
54
|
const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
|
|
56
55
|
const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
|
|
57
56
|
const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
|
|
@@ -402,7 +401,7 @@ export class PaymentMethodOptions {
|
|
|
402
401
|
},
|
|
403
402
|
"validate": {
|
|
404
403
|
"complexType": {
|
|
405
|
-
"signature": "() => Promise<{ isValid: boolean; }>",
|
|
404
|
+
"signature": "() => Promise<{ isValid: boolean; errors?: any; }>",
|
|
406
405
|
"parameters": [],
|
|
407
406
|
"references": {
|
|
408
407
|
"Promise": {
|
|
@@ -414,7 +413,7 @@ export class PaymentMethodOptions {
|
|
|
414
413
|
"id": "global::HTMLJustifiNewPaymentMethodElement"
|
|
415
414
|
}
|
|
416
415
|
},
|
|
417
|
-
"return": "Promise<{ isValid: boolean; }>"
|
|
416
|
+
"return": "Promise<{ isValid: boolean; errors?: any; }>"
|
|
418
417
|
},
|
|
419
418
|
"docs": {
|
|
420
419
|
"text": "",
|
|
@@ -23,8 +23,10 @@ export class CheckoutsList {
|
|
|
23
23
|
this.initializeGetData();
|
|
24
24
|
}
|
|
25
25
|
disconnectedCallback() {
|
|
26
|
-
|
|
26
|
+
var _a;
|
|
27
|
+
(_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
27
28
|
}
|
|
29
|
+
;
|
|
28
30
|
propChanged() {
|
|
29
31
|
this.initializeGetData();
|
|
30
32
|
}
|
|
@@ -59,7 +61,7 @@ export class CheckoutsList {
|
|
|
59
61
|
}
|
|
60
62
|
}
|
|
61
63
|
render() {
|
|
62
|
-
return (h(StyledHost, { key: '
|
|
64
|
+
return (h(StyledHost, { key: 'c76ca3b186023ebea3ac3fe0cf6599786a2f2ea7' }, h("checkouts-list-core", { key: '484d31c0b0434181b3bd69cb9c3b6810aa0f2983', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
63
65
|
}
|
|
64
66
|
static get is() { return "justifi-checkouts-list"; }
|
|
65
67
|
static get encapsulation() { return "shadow"; }
|
|
@@ -18,7 +18,8 @@ export class DisputeManagement {
|
|
|
18
18
|
this.initializeGetDispute();
|
|
19
19
|
}
|
|
20
20
|
disconnectedCallback() {
|
|
21
|
-
|
|
21
|
+
var _a;
|
|
22
|
+
(_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
22
23
|
}
|
|
23
24
|
;
|
|
24
25
|
propChanged() {
|
|
@@ -42,7 +43,7 @@ export class DisputeManagement {
|
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
render() {
|
|
45
|
-
return (h("justifi-dispute-management-core", { key: '
|
|
46
|
+
return (h("justifi-dispute-management-core", { key: '5abe4c29317f9baa7fc40d82e2cd533de321d58f', getDispute: this.getDispute, disputeId: this.disputeId, authToken: this.authToken, "onError-event": this.handleErrorEvent }));
|
|
46
47
|
}
|
|
47
48
|
static get is() { return "justifi-dispute-management"; }
|
|
48
49
|
static get properties() {
|
|
@@ -20,8 +20,10 @@ export class DisputeResponse {
|
|
|
20
20
|
this.initializeDisputeServiceMethods();
|
|
21
21
|
}
|
|
22
22
|
disconnectedCallback() {
|
|
23
|
-
|
|
23
|
+
var _a;
|
|
24
|
+
(_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
24
25
|
}
|
|
26
|
+
;
|
|
25
27
|
propChanged() {
|
|
26
28
|
this.initializeDisputeServiceMethods();
|
|
27
29
|
}
|
|
@@ -53,7 +55,7 @@ export class DisputeResponse {
|
|
|
53
55
|
}
|
|
54
56
|
}
|
|
55
57
|
render() {
|
|
56
|
-
return (h(StyledHost, { key: '
|
|
58
|
+
return (h(StyledHost, { key: '6f1fd8e2109c806c82c63cfd046739e18cc2b3b7' }, h("justifi-dispute-response-core", { key: '56cba360a731ed4054c89c11250f115a7e3b9e63', "onError-event": this.handleErrorEvent, "dispute-id": this.disputeId, disputeResponse: this.disputeResponse, createDisputeEvidence: this.createDisputeEvidence, updateDisputeResponse: this.updateDisputeResponse, submitDisputeResponse: this.submitDisputeResponse })));
|
|
57
59
|
}
|
|
58
60
|
;
|
|
59
61
|
static get is() { return "justifi-dispute-response"; }
|