@justifi/webcomponents 4.11.0 → 4.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Business-7ae04d4f.js → Business-c928bf29.js} +36 -27
- package/dist/cjs/{Payment-89a8bc21.js → Payment-eceed10f.js} +1 -0
- package/dist/cjs/{SubAccount-05867651.js → SubAccount-b3902202.js} +1 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +5 -6
- package/dist/cjs/business-additional-questions-schema-3813615c.js +47 -0
- package/dist/cjs/business-details-core.cjs.entry.js +2 -2
- package/dist/cjs/{business-form-types-29b2bad9.js → business-form-types-4b138bf2.js} +26 -0
- package/dist/cjs/{form-control-datepart_4.cjs.entry.js → form-control-date_3.cjs.entry.js} +16 -93
- package/dist/cjs/form-control-datepart_2.cjs.entry.js +124 -0
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/form-control-select_2.cjs.entry.js +1 -1
- package/dist/cjs/{form-input-masks-e3bf2614.js → form-input-masks-efd44b8e.js} +3 -1
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -4
- package/dist/cjs/{index-69b9386b.js → index-5d5f2219.js} +3 -0
- package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +20 -12
- package/dist/cjs/justifi-additional-questions_4.cjs.entry.js +17 -16
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-billing-form_4.cjs.entry.js +5 -5
- package/dist/cjs/justifi-business-details.cjs.entry.js +3 -4
- package/dist/cjs/justifi-business-form.cjs.entry.js +20 -12
- package/dist/cjs/justifi-business-list.cjs.entry.js +4 -6
- package/dist/cjs/justifi-business-owners.cjs.entry.js +2 -2
- package/dist/cjs/justifi-card-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +34 -24
- package/dist/cjs/justifi-checkout.cjs.entry.js +14 -10
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/{justifi-new-payment-method_3.cjs.entry.js → justifi-new-payment-method_4.cjs.entry.js} +95 -11
- package/dist/cjs/justifi-owner-form.cjs.entry.js +30 -16
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +11 -4
- package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +3 -4
- package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +5 -6
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +4 -5
- package/dist/cjs/justifi-table_2.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/payload-parsers-58d3798e.js +201 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +3 -4
- package/dist/cjs/{payment.service-0b0086dc.js → payment.service-9db24ab9.js} +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +3 -4
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -4
- package/dist/cjs/{payout.service-5cc3b4e9.js → payout.service-a0efb71a.js} +1 -1
- package/dist/cjs/payouts-list-core.cjs.entry.js +3 -4
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +5 -6
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +2 -2
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +2 -2
- package/dist/cjs/{utils-23e70ef2.js → utils-6e35fa70.js} +1 -1
- package/dist/cjs/{utils-2b9940e1.js → utils-6f62f7a1.js} +0 -7
- package/dist/cjs/{utils-87435719.js → utils-fc72268d.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +2 -2
- package/dist/collection/api/Business.js +2 -20
- package/dist/collection/api/Checkout.js +6 -1
- package/dist/collection/api/Identity.js +9 -4
- package/dist/collection/api/Payment.js +1 -0
- package/dist/collection/api/services/checkout.service.js +7 -3
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-form.js +48 -3
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +13 -10
- package/dist/collection/components/business-forms/owner-form/owner-form.js +25 -9
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +2 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +12 -2
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +42 -1
- package/dist/collection/components/business-forms/schemas/business-address-schema.js +1 -31
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +18 -18
- package/dist/collection/components/business-forms/schemas/business-form-schema.js +1 -1
- package/dist/collection/components/business-forms/schemas/business-identity-schema.js +15 -21
- package/dist/collection/components/business-forms/schemas/schema-helpers.js +9 -0
- package/dist/collection/components/business-forms/schemas/schema-validations.js +92 -0
- package/dist/collection/components/business-forms/utils/business-form-types.js +23 -0
- package/dist/collection/components/business-forms/utils/helpers.js +22 -2
- package/dist/collection/components/business-forms/utils/payload-parsers.js +2 -0
- package/dist/collection/components/business-list/business-list.js +0 -2
- package/dist/collection/components/checkout/checkout-actions.js +2 -2
- package/dist/collection/components/checkout/checkout-core.css +361 -0
- package/dist/collection/components/checkout/checkout-core.js +32 -27
- package/dist/collection/components/checkout/checkout.js +5 -5
- package/dist/collection/components/checkout/new-payment-method.js +12 -6
- package/dist/collection/components/checkout/payment-method-options.css +18 -2
- package/dist/collection/components/checkout/payment-method-options.js +62 -5
- package/dist/collection/components/checkout/payment-method-payload.js +1 -0
- package/dist/collection/components/checkout/saved-payment-method.js +11 -6
- package/dist/collection/components/checkout/sezzel-payment-method.js +247 -0
- package/dist/collection/components/form/form-control-date.css +1803 -0
- package/dist/collection/components/form/form-control-date.js +192 -0
- package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js +1 -1
- package/dist/collection/components/select-input/select-input.js +1 -1
- package/dist/collection/components/select-input/test/select-input.spec.js +4 -4
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +3 -3
- package/dist/collection/components/text-input/test/text-input.spec.js +4 -4
- package/dist/collection/components/text-input/text-input.js +1 -1
- package/dist/collection/utils/form-input-masks.js +2 -1
- package/dist/collection/utils/utils.js +0 -5
- package/dist/docs.json +672 -117
- package/dist/esm/{Business-91caaccb.js → Business-6cb1b9c8.js} +33 -25
- package/dist/esm/{Payment-55886c86.js → Payment-ef9fc1ae.js} +1 -0
- package/dist/esm/{SubAccount-61ac70eb.js → SubAccount-f4ae9809.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +5 -6
- package/dist/esm/business-additional-questions-schema-228d86e0.js +44 -0
- package/dist/esm/business-details-core.entry.js +2 -2
- package/dist/esm/{business-form-types-0d76133c.js → business-form-types-5ba52d61.js} +25 -1
- package/dist/esm/{form-control-datepart_4.entry.js → form-control-date_3.entry.js} +16 -92
- package/dist/esm/form-control-datepart_2.entry.js +119 -0
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/form-control-select_2.entry.js +1 -1
- package/dist/esm/form-input-masks-84875967.js +7 -0
- package/dist/esm/gross-payment-chart-core.entry.js +3 -4
- package/dist/esm/{index-df86d9a2.js → index-83dcf934.js} +3 -0
- package/dist/esm/justifi-additional-questions-form-step_5.entry.js +20 -12
- package/dist/esm/justifi-additional-questions_4.entry.js +17 -16
- package/dist/esm/justifi-bank-account-form.entry.js +1 -1
- package/dist/esm/justifi-billing-form_4.entry.js +5 -5
- package/dist/esm/justifi-business-details.entry.js +3 -4
- package/dist/esm/justifi-business-form.entry.js +20 -12
- package/dist/esm/justifi-business-list.entry.js +4 -6
- package/dist/esm/justifi-business-owners.entry.js +2 -2
- package/dist/esm/justifi-card-form.entry.js +1 -1
- package/dist/esm/justifi-checkout-core.entry.js +34 -24
- package/dist/esm/justifi-checkout.entry.js +14 -10
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
- package/dist/esm/{justifi-new-payment-method_3.entry.js → justifi-new-payment-method_4.entry.js} +95 -12
- package/dist/esm/justifi-owner-form.entry.js +30 -16
- package/dist/esm/justifi-payment-balance-transactions.entry.js +3 -4
- package/dist/esm/justifi-payment-details.entry.js +4 -4
- package/dist/esm/justifi-payment-form.entry.js +3 -4
- package/dist/esm/justifi-payment-method-selector.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +11 -4
- package/dist/esm/justifi-payments-list.entry.js +4 -4
- package/dist/esm/justifi-payout-details.entry.js +4 -4
- package/dist/esm/justifi-payouts-list.entry.js +4 -4
- package/dist/esm/justifi-proceeds-list.entry.js +3 -4
- package/dist/esm/justifi-refund-form.entry.js +2 -2
- package/dist/esm/justifi-subaccount-details.entry.js +5 -6
- package/dist/esm/justifi-subaccounts-list.entry.js +4 -5
- package/dist/esm/justifi-table_2.entry.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/payload-parsers-3e817fe9.js +186 -0
- package/dist/esm/payment-details-core.entry.js +3 -4
- package/dist/esm/{payment.service-f274ef98.js → payment.service-ec28a959.js} +1 -1
- package/dist/esm/payments-list-core.entry.js +3 -4
- package/dist/esm/payout-details-core.entry.js +3 -4
- package/dist/esm/{payout.service-af293f61.js → payout.service-5fd5986c.js} +1 -1
- package/dist/esm/payouts-list-core.entry.js +3 -4
- package/dist/esm/subaccount-account-details_4.entry.js +5 -6
- package/dist/esm/subaccount-bank-details.entry.js +2 -2
- package/dist/esm/subaccount-terms-details.entry.js +2 -2
- package/dist/esm/{utils-d01c5f3a.js → utils-210fdf39.js} +1 -1
- package/dist/esm/{utils-d9e90399.js → utils-243abdb4.js} +1 -7
- package/dist/esm/{utils-684d2e47.js → utils-6f05d9d7.js} +1 -1
- package/dist/esm/webcomponents.js +3 -3
- package/dist/module/Business.js +11 -25
- package/dist/module/Payment.js +1 -0
- package/dist/module/SubAccount.js +1 -1
- package/dist/module/business-address-schema.js +2 -32
- package/dist/module/business-core-info-form-step.js +2 -3
- package/dist/module/business-core-info-schema.js +18 -18
- package/dist/module/business-core-info.js +2 -2
- package/dist/module/business-form-types.js +25 -1
- package/dist/module/business-identity-schema.js +15 -21
- package/dist/module/business-owners-form-step.js +3 -9
- package/dist/module/business-representative-form-step.js +16 -12
- package/dist/module/business-representative.js +16 -19
- package/dist/module/checkout-core.js +50 -33
- package/dist/module/form-control-date.d.ts +11 -0
- package/dist/module/form-control-date.js +6 -0
- package/dist/module/form-control-date2.js +68 -0
- package/dist/module/form-input-masks.js +3 -2
- package/dist/module/generic-info-details2.js +2 -2
- package/dist/module/helpers.js +24 -3
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +23 -18
- package/dist/module/justifi-business-list.js +1 -3
- package/dist/module/justifi-checkout.js +31 -21
- package/dist/module/justifi-payment-balance-transactions.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +14 -13
- package/dist/module/justifi-sezzel-payment-method.d.ts +11 -0
- package/dist/module/justifi-sezzel-payment-method.js +6 -0
- package/dist/module/justifi-subaccount-details.js +1 -1
- package/dist/module/justifi-subaccounts-list.js +1 -1
- package/dist/module/legal-address-form-step.js +2 -2
- package/dist/module/new-payment-method.js +5 -4
- package/dist/module/owner-form.js +30 -20
- package/dist/module/payload-parsers.js +106 -1
- package/dist/module/payment-details-core2.js +1 -1
- package/dist/module/payment-method-form.js +1 -1
- package/dist/module/payment-method-options.js +34 -12
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/saved-payment-method.js +4 -4
- package/dist/module/select-input2.js +1 -1
- package/dist/module/sezzel-payment-method.js +99 -0
- package/dist/module/subaccount-merchant-details2.js +3 -3
- package/dist/module/text-input2.js +1 -1
- package/dist/module/utils2.js +1 -7
- package/dist/types/api/Business.d.ts +0 -19
- package/dist/types/api/Checkout.d.ts +63 -2
- package/dist/types/api/Identity.d.ts +5 -0
- package/dist/types/api/Payment.d.ts +2 -1
- package/dist/types/api/SubAccount.d.ts +0 -2
- package/dist/types/api/services/checkout.service.d.ts +8 -2
- package/dist/types/components/business-forms/business-form/business-form.d.ts +5 -0
- package/dist/types/components/business-forms/business-form/business-representative/business-representative.d.ts +3 -3
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +4 -2
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning.d.ts +3 -0
- package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +2 -2
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +6 -8
- package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +5 -7
- package/dist/types/components/business-forms/schemas/schema-helpers.d.ts +7 -0
- package/dist/types/components/business-forms/schemas/schema-validations.d.ts +17 -0
- package/dist/types/components/business-forms/utils/business-form-types.d.ts +5 -0
- package/dist/types/components/business-forms/utils/helpers.d.ts +8 -2
- package/dist/types/components/checkout/checkout-actions.d.ts +3 -3
- package/dist/types/components/checkout/checkout-core.d.ts +5 -4
- package/dist/types/components/checkout/checkout.d.ts +1 -1
- package/dist/types/components/checkout/new-payment-method.d.ts +2 -1
- package/dist/types/components/checkout/payment-method-options.d.ts +5 -1
- package/dist/types/components/checkout/payment-method-payload.d.ts +8 -0
- package/dist/types/components/checkout/saved-payment-method.d.ts +2 -1
- package/dist/types/components/checkout/sezzel-payment-method.d.ts +23 -0
- package/dist/types/components/form/form-control-date.d.ts +18 -0
- package/dist/types/components.d.ts +112 -9
- package/dist/types/utils/form-input-masks.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +0 -1
- package/dist/webcomponents/p-01913426.js +1 -0
- package/dist/webcomponents/p-02fa533c.js +1 -0
- package/dist/webcomponents/p-07080c01.entry.js +1 -0
- package/dist/webcomponents/{p-28cd23c8.entry.js → p-0c269feb.entry.js} +1 -1
- package/dist/webcomponents/p-0d371ff5.entry.js +1 -0
- package/dist/webcomponents/{p-0b76c770.entry.js → p-0eb56b44.entry.js} +1 -1
- package/dist/webcomponents/{p-436d27b9.entry.js → p-0eb77101.entry.js} +1 -1
- package/dist/webcomponents/p-1334f776.entry.js +1 -0
- package/dist/webcomponents/p-19001cc5.entry.js +1 -0
- package/dist/webcomponents/p-2319abaf.entry.js +1 -0
- package/dist/webcomponents/p-26fe62d6.entry.js +1 -0
- package/dist/webcomponents/p-28b38699.js +1 -0
- package/dist/webcomponents/{p-4df6174c.entry.js → p-29376518.entry.js} +1 -1
- package/dist/webcomponents/p-2bee72bd.entry.js +1 -0
- package/dist/webcomponents/p-2fbe8823.entry.js +1 -0
- package/dist/webcomponents/p-31ccb5f0.entry.js +1 -0
- package/dist/webcomponents/p-31e70d65.entry.js +1 -0
- package/dist/webcomponents/p-3302bc76.js +1 -0
- package/dist/webcomponents/p-3adc0688.entry.js +1 -0
- package/dist/webcomponents/{p-7c6a355f.entry.js → p-4616768c.entry.js} +1 -1
- package/dist/webcomponents/p-4c705f56.js +1 -0
- package/dist/webcomponents/{p-a46174e0.entry.js → p-5f5e730c.entry.js} +1 -1
- package/dist/webcomponents/p-5ff7826e.entry.js +1 -0
- package/dist/webcomponents/{p-8482c23f.js → p-65510838.js} +1 -1
- package/dist/webcomponents/p-71b8e2da.entry.js +1 -0
- package/dist/webcomponents/p-737473d8.js +1 -0
- package/dist/webcomponents/p-787d8f52.js +1 -0
- package/dist/webcomponents/{p-4d50d08a.entry.js → p-7d8d2984.entry.js} +1 -1
- package/dist/webcomponents/p-7da249b8.entry.js +1 -0
- package/dist/webcomponents/{p-07b326d0.entry.js → p-8657128b.entry.js} +1 -1
- package/dist/webcomponents/p-889a83d2.js +1 -0
- package/dist/webcomponents/p-8abba4c2.entry.js +1 -0
- package/dist/webcomponents/p-9245777b.js +1 -0
- package/dist/webcomponents/{p-221b9504.entry.js → p-927150b4.entry.js} +1 -1
- package/dist/webcomponents/p-9b0e5c25.entry.js +1 -0
- package/dist/webcomponents/p-9e3f9e05.entry.js +1 -0
- package/dist/webcomponents/{p-688bb5da.js → p-9ee8ad4d.js} +1 -1
- package/dist/webcomponents/p-9f529959.entry.js +1 -0
- package/dist/webcomponents/{p-fb49ef28.entry.js → p-a6f170ba.entry.js} +1 -1
- package/dist/webcomponents/{p-c071d8c1.entry.js → p-a8caec98.entry.js} +1 -1
- package/dist/webcomponents/p-a90f7ca0.js +1 -0
- package/dist/webcomponents/{p-d776fe10.entry.js → p-abc03d5a.entry.js} +1 -1
- package/dist/webcomponents/p-b9f04fb0.entry.js +1 -0
- package/dist/webcomponents/{p-1bfadb9f.entry.js → p-c1b92cec.entry.js} +1 -1
- package/dist/webcomponents/p-c556deda.entry.js +1 -0
- package/dist/webcomponents/{p-3d4aaa4a.entry.js → p-c6e207f6.entry.js} +1 -1
- package/dist/webcomponents/p-c865cda8.entry.js +1 -0
- package/dist/webcomponents/{p-b68f1dd9.entry.js → p-cdfde1ca.entry.js} +1 -1
- package/dist/webcomponents/{p-746bfba6.entry.js → p-d69a485a.entry.js} +1 -1
- package/dist/webcomponents/{p-ebf7c70f.entry.js → p-e4342f49.entry.js} +1 -1
- package/dist/webcomponents/{p-ea2cca2a.js → p-ed72a5cc.js} +1 -1
- package/dist/webcomponents/p-edab5f2b.entry.js +1 -0
- package/dist/webcomponents/{p-6b51cf97.entry.js → p-f0698778.entry.js} +1 -1
- package/dist/webcomponents/{p-ae21ed6f.entry.js → p-f76283a5.entry.js} +1 -1
- package/dist/webcomponents/p-fce2b224.entry.js +1 -0
- package/dist/webcomponents/webcomponents.css +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/business-additional-questions-schema-18a82d19.js +0 -47
- package/dist/cjs/business-form-select-options-7ccd8dca.js +0 -85
- package/dist/cjs/payload-parsers-f437272e.js +0 -132
- package/dist/collection/components/business-forms/utils/business-form-select-options.js +0 -80
- package/dist/esm/business-additional-questions-schema-b642a2b7.js +0 -44
- package/dist/esm/business-form-select-options-6b9293fe.js +0 -82
- package/dist/esm/form-input-masks-a8187c77.js +0 -6
- package/dist/esm/payload-parsers-920f49dd.js +0 -123
- package/dist/module/business-form-select-options.js +0 -82
- package/dist/types/components/business-forms/utils/business-form-select-options.d.ts +0 -11
- package/dist/webcomponents/p-091f9732.entry.js +0 -1
- package/dist/webcomponents/p-0923e39c.js +0 -1
- package/dist/webcomponents/p-0d81883d.entry.js +0 -1
- package/dist/webcomponents/p-102b593a.entry.js +0 -1
- package/dist/webcomponents/p-2b8368d2.js +0 -1
- package/dist/webcomponents/p-2df32b4a.entry.js +0 -1
- package/dist/webcomponents/p-34352d04.js +0 -1
- package/dist/webcomponents/p-448063ba.entry.js +0 -1
- package/dist/webcomponents/p-5341321d.entry.js +0 -1
- package/dist/webcomponents/p-5b262705.entry.js +0 -1
- package/dist/webcomponents/p-5e503d7d.entry.js +0 -1
- package/dist/webcomponents/p-6047b960.entry.js +0 -1
- package/dist/webcomponents/p-60b2344a.js +0 -1
- package/dist/webcomponents/p-63296409.js +0 -1
- package/dist/webcomponents/p-6d39b8bc.entry.js +0 -1
- package/dist/webcomponents/p-7294eb89.entry.js +0 -1
- package/dist/webcomponents/p-7b2cddc7.js +0 -1
- package/dist/webcomponents/p-817211f2.entry.js +0 -1
- package/dist/webcomponents/p-935d6f55.js +0 -1
- package/dist/webcomponents/p-959250e3.entry.js +0 -1
- package/dist/webcomponents/p-975ab96e.js +0 -1
- package/dist/webcomponents/p-9b99370e.js +0 -1
- package/dist/webcomponents/p-a130a884.entry.js +0 -1
- package/dist/webcomponents/p-a4122c35.entry.js +0 -1
- package/dist/webcomponents/p-ac670a3e.js +0 -1
- package/dist/webcomponents/p-c340b60f.js +0 -1
- package/dist/webcomponents/p-d5aab6b5.entry.js +0 -1
- package/dist/webcomponents/p-d5c80489.entry.js +0 -1
- package/dist/webcomponents/p-d8679fad.entry.js +0 -1
- package/dist/webcomponents/p-da34bba7.entry.js +0 -1
- package/dist/webcomponents/p-e84b3616.entry.js +0 -1
- package/dist/webcomponents/p-ea03b424.entry.js +0 -1
- package/dist/webcomponents/p-ec230480.entry.js +0 -1
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { extractComputedFontsToLoad, formatCurrency } from "../../utils/utils";
|
|
3
3
|
import { config } from "../../../config";
|
|
4
|
+
import { Checkout } from "../../api/Checkout";
|
|
4
5
|
export class CheckoutCore {
|
|
5
6
|
constructor() {
|
|
7
|
+
this.onSubmitted = (data) => {
|
|
8
|
+
this.submitted.emit(data);
|
|
9
|
+
this.isLoading = false;
|
|
10
|
+
};
|
|
6
11
|
this.loadingSpinner = (h("div", { class: "spinner-border spinner-border-sm", role: "status" }, h("span", { class: "visually-hidden" }, "Loading...")));
|
|
7
12
|
this.iframeOrigin = config.iframeOrigin;
|
|
8
13
|
this.authToken = undefined;
|
|
9
14
|
this.getCheckout = undefined;
|
|
10
|
-
this.
|
|
15
|
+
this.complete = undefined;
|
|
11
16
|
this.checkoutId = undefined;
|
|
12
17
|
this.hasLoadedFonts = false;
|
|
13
18
|
this.isLoading = false;
|
|
@@ -32,7 +37,7 @@ export class CheckoutCore {
|
|
|
32
37
|
this.isLoading = true;
|
|
33
38
|
this.getCheckout({
|
|
34
39
|
onSuccess: ({ checkout }) => {
|
|
35
|
-
this.checkout = checkout;
|
|
40
|
+
this.checkout = new Checkout(checkout);
|
|
36
41
|
this.isLoading = false;
|
|
37
42
|
},
|
|
38
43
|
onError: (errorMessage) => {
|
|
@@ -55,31 +60,31 @@ export class CheckoutCore {
|
|
|
55
60
|
parent.append(fonts);
|
|
56
61
|
}
|
|
57
62
|
async submit(event) {
|
|
63
|
+
var _a;
|
|
58
64
|
event.preventDefault();
|
|
59
65
|
this.isLoading = true;
|
|
60
|
-
const
|
|
61
|
-
if (
|
|
66
|
+
const payload = await this.paymentMethodOptionsRef.resolvePaymentMethod();
|
|
67
|
+
if (payload.token) {
|
|
68
|
+
this.complete({
|
|
69
|
+
payment: { payment_mode: 'ecom', payment_token: payload.token },
|
|
70
|
+
onSuccess: this.onSubmitted,
|
|
71
|
+
onError: this.onSubmitted,
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
else if (((_a = payload.bnpl) === null || _a === void 0 ? void 0 : _a.status) === 'success') {
|
|
75
|
+
this.complete({
|
|
76
|
+
payment: { payment_mode: 'bnpl' },
|
|
77
|
+
onSuccess: this.onSubmitted,
|
|
78
|
+
onError: this.onSubmitted,
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
62
82
|
this.isLoading = false;
|
|
63
|
-
return;
|
|
64
83
|
}
|
|
65
|
-
;
|
|
66
|
-
this.pay({
|
|
67
|
-
paymentMethodToken: token,
|
|
68
|
-
onSuccess: ({ checkout }) => {
|
|
69
|
-
if (!checkout)
|
|
70
|
-
return;
|
|
71
|
-
this.checkout = checkout;
|
|
72
|
-
this.isLoading = false;
|
|
73
|
-
},
|
|
74
|
-
onError: (errorMessage) => {
|
|
75
|
-
this.errorMessage = errorMessage;
|
|
76
|
-
this.isLoading = false;
|
|
77
|
-
},
|
|
78
|
-
});
|
|
79
84
|
}
|
|
80
85
|
render() {
|
|
81
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
82
|
-
return (h(Host, null, h("div", { class: "row gy-3" }, h("div", { class: "col-12 mb-4" }, h("h2", { class: "fs-5 fw-bold" }, "Summary"), this.checkout && (h("div", null, h("div",
|
|
86
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
87
|
+
return (h(Host, null, h("div", { class: "row gy-3 jfi-checkout-core" }, h("div", { class: "col-12 mb-4" }, h("h2", { class: "fs-5 fw-bold pb-3 jfi-header" }, "Summary"), this.checkout && (h("div", null, h("div", { class: "jfi-payment-description" }, (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_description), h("div", { class: "jfi-payment-total" }, h("span", { class: "jfi-payment-total-label" }, "Total"), "\u00A0", h("span", { class: "jfi-payment-total-amount" }, formatCurrency(+this.checkout.payment_amount)))))), h("div", { class: "col-12" }, h("h2", { class: "fs-5 fw-bold pb-3 jfi-header" }, "Payment"), h("h3", { class: "fs-6 fw-bold lh-lg" }, "Select payment type"), h("div", { class: "d-flex flex-column" }, h("justifi-payment-method-options", { ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": ((_c = (_b = this.checkout) === null || _b === void 0 ? void 0 : _b.payment_settings) === null || _c === void 0 ? void 0 : _c.credit_card_payments) || true, "show-ach": ((_e = (_d = this.checkout) === null || _d === void 0 ? void 0 : _d.payment_settings) === null || _e === void 0 ? void 0 : _e.ach_payments) || true, bnpl: (_f = this.checkout) === null || _f === void 0 ? void 0 : _f.bnpl, "client-id": (_g = this.checkout) === null || _g === void 0 ? void 0 : _g.payment_client_id, "account-id": (_h = this.checkout) === null || _h === void 0 ? void 0 : _h.account_id, savedPaymentMethods: ((_j = this.checkout) === null || _j === void 0 ? void 0 : _j.payment_methods) || [], paymentAmount: (_k = this.checkout) === null || _k === void 0 ? void 0 : _k.payment_amount }))), h("div", { class: "col-12" }, h("div", { class: "d-flex justify-content-end" }, h("button", { type: "submit", onClick: event => this.submit(event), disabled: this.isLoading, part: "pay-button", class: `btn btn-primary jfi-submit-button ${this.isLoading ? 'jfi-submit-button-loading' : ''}` }, this.isLoading ? this.loadingSpinner : 'Pay'))))));
|
|
83
88
|
}
|
|
84
89
|
static get is() { return "justifi-checkout-core"; }
|
|
85
90
|
static get encapsulation() { return "shadow"; }
|
|
@@ -150,7 +155,7 @@ export class CheckoutCore {
|
|
|
150
155
|
"text": ""
|
|
151
156
|
}
|
|
152
157
|
},
|
|
153
|
-
"
|
|
158
|
+
"complete": {
|
|
154
159
|
"type": "unknown",
|
|
155
160
|
"mutable": false,
|
|
156
161
|
"complexType": {
|
|
@@ -212,13 +217,13 @@ export class CheckoutCore {
|
|
|
212
217
|
"text": ""
|
|
213
218
|
},
|
|
214
219
|
"complexType": {
|
|
215
|
-
"original": "
|
|
216
|
-
"resolved": "
|
|
220
|
+
"original": "ICheckoutCompleteResponse",
|
|
221
|
+
"resolved": "IApiResponse<{ payment_mode: \"ecom\" | \"bnpl\"; payment_token: null; payment_status: string; payment_response: null; checkout_id: string; additional_transactions: any[]; checkout: ICheckout; }>",
|
|
217
222
|
"references": {
|
|
218
|
-
"
|
|
223
|
+
"ICheckoutCompleteResponse": {
|
|
219
224
|
"location": "import",
|
|
220
|
-
"path": "
|
|
221
|
-
"id": "src/
|
|
225
|
+
"path": "../../api/Checkout",
|
|
226
|
+
"id": "src/api/Checkout.ts::ICheckoutCompleteResponse"
|
|
222
227
|
}
|
|
223
228
|
}
|
|
224
229
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { makeGetCheckout,
|
|
2
|
+
import { makeGetCheckout, makeCheckoutComplete } from "./checkout-actions";
|
|
3
3
|
import { CheckoutService } from "../../api/services/checkout.service";
|
|
4
4
|
export class Checkout {
|
|
5
5
|
constructor() {
|
|
@@ -7,7 +7,7 @@ export class Checkout {
|
|
|
7
7
|
this.authToken = undefined;
|
|
8
8
|
this.checkoutId = undefined;
|
|
9
9
|
this.getCheckout = undefined;
|
|
10
|
-
this.
|
|
10
|
+
this.complete = undefined;
|
|
11
11
|
this.errorMessage = '';
|
|
12
12
|
}
|
|
13
13
|
componentWillLoad() {
|
|
@@ -20,7 +20,7 @@ export class Checkout {
|
|
|
20
20
|
checkoutId: this.checkoutId,
|
|
21
21
|
service: new CheckoutService()
|
|
22
22
|
});
|
|
23
|
-
this.
|
|
23
|
+
this.complete = makeCheckoutComplete({
|
|
24
24
|
authToken: this.authToken,
|
|
25
25
|
checkoutId: this.checkoutId,
|
|
26
26
|
service: new CheckoutService()
|
|
@@ -34,7 +34,7 @@ export class Checkout {
|
|
|
34
34
|
this.initializeGetCheckout();
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h("justifi-checkout-core", { getCheckout: this.getCheckout,
|
|
37
|
+
return (h("justifi-checkout-core", { getCheckout: this.getCheckout, complete: this.complete }));
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "justifi-checkout"; }
|
|
40
40
|
static get encapsulation() { return "shadow"; }
|
|
@@ -96,7 +96,7 @@ export class Checkout {
|
|
|
96
96
|
static get states() {
|
|
97
97
|
return {
|
|
98
98
|
"getCheckout": {},
|
|
99
|
-
"
|
|
99
|
+
"complete": {},
|
|
100
100
|
"errorMessage": {}
|
|
101
101
|
};
|
|
102
102
|
}
|
|
@@ -15,14 +15,15 @@ export class NewPaymentMethod {
|
|
|
15
15
|
this.paymentMethodOption = undefined;
|
|
16
16
|
this.isSelected = undefined;
|
|
17
17
|
}
|
|
18
|
-
async
|
|
18
|
+
async resolvePaymentMethod() {
|
|
19
19
|
if (!this.paymentMethodFormRef || !this.billingFormRef)
|
|
20
20
|
return;
|
|
21
21
|
const billingFormValidation = await this.billingFormRef.validate();
|
|
22
22
|
const paymentMethodFormValidation = await this.paymentMethodFormRef.validate();
|
|
23
23
|
if (!billingFormValidation.isValid || !paymentMethodFormValidation.isValid)
|
|
24
24
|
return;
|
|
25
|
-
|
|
25
|
+
const token = await this.tokenize();
|
|
26
|
+
return { token: token };
|
|
26
27
|
}
|
|
27
28
|
async tokenize() {
|
|
28
29
|
try {
|
|
@@ -49,7 +50,7 @@ export class NewPaymentMethod {
|
|
|
49
50
|
}
|
|
50
51
|
render() {
|
|
51
52
|
var _a, _b, _c, _d;
|
|
52
|
-
return (h("div", { class: "payment-method" }, h("div", { class: `payment-method-header p-3
|
|
53
|
+
return (h("div", { class: "payment-method" }, h("div", { class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, PaymentMethodTypeLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.id])), this.isSelected ? this.showNewPaymentMethodForm() : null));
|
|
53
54
|
}
|
|
54
55
|
static get is() { return "justifi-new-payment-method"; }
|
|
55
56
|
static get properties() {
|
|
@@ -166,17 +167,22 @@ export class NewPaymentMethod {
|
|
|
166
167
|
}
|
|
167
168
|
static get methods() {
|
|
168
169
|
return {
|
|
169
|
-
"
|
|
170
|
+
"resolvePaymentMethod": {
|
|
170
171
|
"complexType": {
|
|
171
|
-
"signature": "() => Promise<
|
|
172
|
+
"signature": "() => Promise<PaymentMethodPayload>",
|
|
172
173
|
"parameters": [],
|
|
173
174
|
"references": {
|
|
174
175
|
"Promise": {
|
|
175
176
|
"location": "global",
|
|
176
177
|
"id": "global::Promise"
|
|
178
|
+
},
|
|
179
|
+
"PaymentMethodPayload": {
|
|
180
|
+
"location": "import",
|
|
181
|
+
"path": "./payment-method-payload",
|
|
182
|
+
"id": "src/components/checkout/payment-method-payload.ts::PaymentMethodPayload"
|
|
177
183
|
}
|
|
178
184
|
},
|
|
179
|
-
"return": "Promise<
|
|
185
|
+
"return": "Promise<PaymentMethodPayload>"
|
|
180
186
|
},
|
|
181
187
|
"docs": {
|
|
182
188
|
"text": "",
|
|
@@ -7063,11 +7063,27 @@ textarea.form-control-lg {
|
|
|
7063
7063
|
|
|
7064
7064
|
.payment-method-header {
|
|
7065
7065
|
cursor: pointer;
|
|
7066
|
+
color: var(--jfi-radio-button-group-color);
|
|
7067
|
+
background-color: var(--jfi-radio-button-group-background-color);
|
|
7068
|
+
border-bottom: var(--jfi-radio-button-group-divider);
|
|
7066
7069
|
}
|
|
7067
|
-
.payment-method-header input,
|
|
7070
|
+
.payment-method-header input[type=radio],
|
|
7068
7071
|
.payment-method-header label {
|
|
7069
7072
|
cursor: pointer;
|
|
7070
7073
|
}
|
|
7074
|
+
.payment-method-header input[type=radio] {
|
|
7075
|
+
background-color: var(--jfi-radio-button-background-color);
|
|
7076
|
+
border-color: var(--jfi-radio-button-border-color);
|
|
7077
|
+
}
|
|
7078
|
+
.payment-method-header input[type=radio]:checked, .payment-method-header input[type=radio]:checked:focus {
|
|
7079
|
+
background-color: var(--jfi-radio-button-background-color-selected);
|
|
7080
|
+
border-color: var(--jfi-radio-button-border-color-selected);
|
|
7081
|
+
}
|
|
7082
|
+
.payment-method-header input[type=radio]:focus {
|
|
7083
|
+
border-color: var(--jfi-radio-button-border-color-focus);
|
|
7084
|
+
box-shadow: var(--jfi-radio-button-box-shadow-focus);
|
|
7085
|
+
}
|
|
7071
7086
|
.payment-method-header:hover {
|
|
7072
|
-
|
|
7087
|
+
color: var(--jfi-radio-button-group-color-hover);
|
|
7088
|
+
background-color: var(--jfi-radio-button-group-background-color-hover);
|
|
7073
7089
|
}
|
|
@@ -6,14 +6,17 @@ export class PaymentMethodOptions {
|
|
|
6
6
|
constructor() {
|
|
7
7
|
this.showCard = undefined;
|
|
8
8
|
this.showAch = undefined;
|
|
9
|
+
this.bnpl = undefined;
|
|
9
10
|
this.clientId = undefined;
|
|
10
11
|
this.accountId = undefined;
|
|
11
12
|
this.iframeOrigin = config.iframeOrigin;
|
|
12
13
|
this.savedPaymentMethods = [];
|
|
13
14
|
this.selectedPaymentMethodId = undefined;
|
|
15
|
+
this.paymentAmount = undefined;
|
|
14
16
|
this.paymentMethodOptions = [];
|
|
15
17
|
}
|
|
16
18
|
paymentMethodsChanged() {
|
|
19
|
+
var _a;
|
|
17
20
|
this.paymentMethodOptions = this.savedPaymentMethods.map((paymentMethod) => new PaymentMethodOption(paymentMethod));
|
|
18
21
|
if (this.showCard) {
|
|
19
22
|
this.paymentMethodOptions.push(new PaymentMethodOption({ id: PaymentMethodTypes.card }));
|
|
@@ -21,14 +24,17 @@ export class PaymentMethodOptions {
|
|
|
21
24
|
if (this.showAch) {
|
|
22
25
|
this.paymentMethodOptions.push(new PaymentMethodOption({ id: PaymentMethodTypes.bankAccount }));
|
|
23
26
|
}
|
|
27
|
+
if (((_a = this.bnpl) === null || _a === void 0 ? void 0 : _a.provider) === 'sezzle') {
|
|
28
|
+
this.paymentMethodOptions.push(new PaymentMethodOption({ id: PaymentMethodTypes.sezzel }));
|
|
29
|
+
}
|
|
24
30
|
this.selectedPaymentMethodId = this.paymentMethodOptions[0].id;
|
|
25
31
|
}
|
|
26
32
|
paymentMethodOptionSelected(event) {
|
|
27
33
|
this.selectedPaymentMethodId = event.detail.id;
|
|
28
34
|
}
|
|
29
|
-
async
|
|
35
|
+
async resolvePaymentMethod() {
|
|
30
36
|
var _a;
|
|
31
|
-
return await ((_a = this.selectedPaymentMethodOptionRef) === null || _a === void 0 ? void 0 : _a.
|
|
37
|
+
return await ((_a = this.selectedPaymentMethodOptionRef) === null || _a === void 0 ? void 0 : _a.resolvePaymentMethod());
|
|
32
38
|
}
|
|
33
39
|
render() {
|
|
34
40
|
var _a;
|
|
@@ -36,6 +42,7 @@ export class PaymentMethodOptions {
|
|
|
36
42
|
const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
|
|
37
43
|
const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
|
|
38
44
|
const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
|
|
45
|
+
const sezzel = paymentMethodOption.id === PaymentMethodTypes.sezzel;
|
|
39
46
|
if (newCard || newBankAccount) {
|
|
40
47
|
return (h("justifi-new-payment-method", { paymentMethodOption: paymentMethodOption, "client-id": this.clientId, "account-id": this.accountId, "is-selected": isSelected, ref: (el) => {
|
|
41
48
|
if (isSelected) {
|
|
@@ -43,6 +50,13 @@ export class PaymentMethodOptions {
|
|
|
43
50
|
}
|
|
44
51
|
} }));
|
|
45
52
|
}
|
|
53
|
+
else if (sezzel) {
|
|
54
|
+
return (h("justifi-sezzel-payment-method", { paymentMethodOption: paymentMethodOption, "is-selected": isSelected, paymentAmount: this.paymentAmount, bnpl: this.bnpl, ref: (el) => {
|
|
55
|
+
if (isSelected) {
|
|
56
|
+
this.selectedPaymentMethodOptionRef = el;
|
|
57
|
+
}
|
|
58
|
+
} }));
|
|
59
|
+
}
|
|
46
60
|
else {
|
|
47
61
|
return (h("justifi-saved-payment-method", { paymentMethodOption: paymentMethodOption, "is-selected": isSelected, ref: (el) => {
|
|
48
62
|
if (isSelected) {
|
|
@@ -99,6 +113,27 @@ export class PaymentMethodOptions {
|
|
|
99
113
|
"attribute": "show-ach",
|
|
100
114
|
"reflect": false
|
|
101
115
|
},
|
|
116
|
+
"bnpl": {
|
|
117
|
+
"type": "unknown",
|
|
118
|
+
"mutable": false,
|
|
119
|
+
"complexType": {
|
|
120
|
+
"original": "IBnpl",
|
|
121
|
+
"resolved": "IBnpl",
|
|
122
|
+
"references": {
|
|
123
|
+
"IBnpl": {
|
|
124
|
+
"location": "import",
|
|
125
|
+
"path": "../../api",
|
|
126
|
+
"id": "src/api/index.ts::IBnpl"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"required": false,
|
|
131
|
+
"optional": false,
|
|
132
|
+
"docs": {
|
|
133
|
+
"tags": [],
|
|
134
|
+
"text": ""
|
|
135
|
+
}
|
|
136
|
+
},
|
|
102
137
|
"clientId": {
|
|
103
138
|
"type": "string",
|
|
104
139
|
"mutable": false,
|
|
@@ -183,6 +218,23 @@ export class PaymentMethodOptions {
|
|
|
183
218
|
},
|
|
184
219
|
"attribute": "selected-payment-method-id",
|
|
185
220
|
"reflect": false
|
|
221
|
+
},
|
|
222
|
+
"paymentAmount": {
|
|
223
|
+
"type": "string",
|
|
224
|
+
"mutable": false,
|
|
225
|
+
"complexType": {
|
|
226
|
+
"original": "string",
|
|
227
|
+
"resolved": "string",
|
|
228
|
+
"references": {}
|
|
229
|
+
},
|
|
230
|
+
"required": false,
|
|
231
|
+
"optional": false,
|
|
232
|
+
"docs": {
|
|
233
|
+
"tags": [],
|
|
234
|
+
"text": ""
|
|
235
|
+
},
|
|
236
|
+
"attribute": "payment-amount",
|
|
237
|
+
"reflect": false
|
|
186
238
|
}
|
|
187
239
|
};
|
|
188
240
|
}
|
|
@@ -211,17 +263,22 @@ export class PaymentMethodOptions {
|
|
|
211
263
|
}
|
|
212
264
|
static get methods() {
|
|
213
265
|
return {
|
|
214
|
-
"
|
|
266
|
+
"resolvePaymentMethod": {
|
|
215
267
|
"complexType": {
|
|
216
|
-
"signature": "() => Promise<
|
|
268
|
+
"signature": "() => Promise<PaymentMethodPayload>",
|
|
217
269
|
"parameters": [],
|
|
218
270
|
"references": {
|
|
219
271
|
"Promise": {
|
|
220
272
|
"location": "global",
|
|
221
273
|
"id": "global::Promise"
|
|
274
|
+
},
|
|
275
|
+
"PaymentMethodPayload": {
|
|
276
|
+
"location": "import",
|
|
277
|
+
"path": "./payment-method-payload",
|
|
278
|
+
"id": "src/components/checkout/payment-method-payload.ts::PaymentMethodPayload"
|
|
222
279
|
}
|
|
223
280
|
},
|
|
224
|
-
"return": "Promise<
|
|
281
|
+
"return": "Promise<PaymentMethodPayload>"
|
|
225
282
|
},
|
|
226
283
|
"docs": {
|
|
227
284
|
"text": "",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -10,14 +10,14 @@ export class SavedPaymentMethod {
|
|
|
10
10
|
this.paymentMethodOption = undefined;
|
|
11
11
|
this.isSelected = undefined;
|
|
12
12
|
}
|
|
13
|
-
async
|
|
13
|
+
async resolvePaymentMethod() {
|
|
14
14
|
var _a;
|
|
15
|
-
return (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id;
|
|
15
|
+
return { token: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id };
|
|
16
16
|
}
|
|
17
17
|
;
|
|
18
18
|
render() {
|
|
19
19
|
var _a, _b, _c, _d, _e;
|
|
20
|
-
return (h(Fragment, null, h("div", { class: "payment-method" }, h("div", { class: "payment-method-header p-3
|
|
20
|
+
return (h(Fragment, null, h("div", { class: "payment-method" }, h("div", { class: "payment-method-header p-3", onClick: () => this.onPaymentMethodOptionClick() }, h("input", { type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, CardBrandLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.brand], " *", (_e = this.paymentMethodOption) === null || _e === void 0 ? void 0 :
|
|
21
21
|
_e.acct_last_four)))));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "justifi-saved-payment-method"; }
|
|
@@ -101,17 +101,22 @@ export class SavedPaymentMethod {
|
|
|
101
101
|
}
|
|
102
102
|
static get methods() {
|
|
103
103
|
return {
|
|
104
|
-
"
|
|
104
|
+
"resolvePaymentMethod": {
|
|
105
105
|
"complexType": {
|
|
106
|
-
"signature": "() => Promise<
|
|
106
|
+
"signature": "() => Promise<PaymentMethodPayload>",
|
|
107
107
|
"parameters": [],
|
|
108
108
|
"references": {
|
|
109
109
|
"Promise": {
|
|
110
110
|
"location": "global",
|
|
111
111
|
"id": "global::Promise"
|
|
112
|
+
},
|
|
113
|
+
"PaymentMethodPayload": {
|
|
114
|
+
"location": "import",
|
|
115
|
+
"path": "./payment-method-payload",
|
|
116
|
+
"id": "src/components/checkout/payment-method-payload.ts::PaymentMethodPayload"
|
|
112
117
|
}
|
|
113
118
|
},
|
|
114
|
-
"return": "Promise<
|
|
119
|
+
"return": "Promise<PaymentMethodPayload>"
|
|
115
120
|
},
|
|
116
121
|
"docs": {
|
|
117
122
|
"text": "",
|