@justifi/webcomponents 6.14.5 → 6.15.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Analytics-BVHauOC2.js → Analytics-COhunq0p.js} +3 -3
- package/dist/cjs/{Api-BzB0rppJ.js → Api-Do6SaltY.js} +1 -1
- package/dist/cjs/{Plaid-B2o4c_Ej.js → Plaid-D85oV9FN.js} +5 -0
- package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +7 -7
- package/dist/cjs/additional-statement_8.cjs.entry.js +8 -8
- package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +4 -4
- package/dist/cjs/bank-account-document-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/bank-account-form.cjs.entry.js +5 -5
- package/dist/cjs/{business.service-j_VDzA2-.js → business.service-72YETCdB.js} +2 -2
- package/dist/cjs/card-form.cjs.entry.js +5 -5
- package/dist/cjs/{check-pkg-version-JMiLuNXu.js → check-pkg-version-BxGoSXGD.js} +1 -1
- package/dist/cjs/{checkout-actions-VCJi-q4z.js → checkout-actions-BRQFQ6n-.js} +2 -2
- package/dist/cjs/{checkout.service-0vHtBDZY.js → checkout.service-CPsXfx0Z.js} +2 -2
- package/dist/cjs/{checkout.store-DOa1-SjA.js → checkout.store-DaV9lvEQ.js} +6 -1
- package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
- package/dist/cjs/dispute-notification_2.cjs.entry.js +10 -10
- package/dist/cjs/{event-types-CMpeGHw8.js → event-types-UHzCC7Ga.js} +2 -2
- package/dist/cjs/form-address-fields_3.cjs.entry.js +2 -2
- package/dist/cjs/form-alert_3.cjs.entry.js +5 -5
- package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/form-control-date.cjs.entry.js +2 -2
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
- package/dist/cjs/form-control-file.cjs.entry.js +2 -2
- package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number_2.cjs.entry.js +2 -2
- package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
- package/dist/cjs/form-control-select_2.cjs.entry.js +4 -4
- package/dist/cjs/{get-business-BBDsPv-b.js → get-business-BpaRbn5S.js} +2 -2
- package/dist/cjs/{get-payment-details-BYZeUFAB.js → get-payment-details-Cmg8gWvo.js} +2 -2
- package/dist/cjs/{get-subaccounts-B7e8Eovg.js → get-subaccounts-Bp7DOmM_.js} +3 -3
- package/dist/cjs/{index-CajjbB9t.js → index-DDa1jd08.js} +4 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/internal-button.cjs.entry.js +1 -1
- package/dist/cjs/{justifi-apple-pay_11.cjs.entry.js → justifi-apple-pay_12.cjs.entry.js} +314 -26
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +6 -6
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
- package/dist/cjs/justifi-billing-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +8 -8
- package/dist/cjs/justifi-business-form.cjs.entry.js +8 -8
- package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +5 -5
- package/dist/cjs/justifi-checkout.cjs.entry.js +8 -8
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +8 -8
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -6
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payment-details.cjs.entry.js +16 -16
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payout-details.cjs.entry.js +11 -11
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-qr-terminal.cjs.entry.js +8 -8
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +8 -8
- package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +8 -8
- package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +9 -9
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-DfdMLmz7.js → package-G3Vs7Jx5.js} +1 -1
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/{payment-provisioning-actions-CIsDrh8k.js → payment-provisioning-actions-DDooZhhk.js} +2 -2
- package/dist/cjs/{payment.service-Bs3HJ4Kv.js → payment.service-CVwTrHEL.js} +2 -2
- package/dist/cjs/{payout.service-DNWZxt3R.js → payout.service-CL3VR0hN.js} +2 -2
- package/dist/cjs/{payouts-status-DVU5138C.js → payouts-status-1IUtW-UQ.js} +2 -2
- package/dist/cjs/{plaid.service-B_YQGBoC.js → plaid.service-Cukg5wuY.js} +2 -2
- package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
- package/dist/cjs/save-new-payment-method.cjs.entry.js +3 -3
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/{terminal.service-CvFZEemr.js → terminal.service-C0KG7BqL.js} +2 -2
- package/dist/cjs/{utils-WrOn06xB.js → utils-CBriZzRC.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Checkout.js +5 -0
- package/dist/collection/api/Paypal.js +1 -0
- package/dist/collection/api/index.js +1 -0
- package/dist/collection/api/services/paypal.service.js +9 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/checkout/billing-form/bank-account-billing-form-simple.js +1 -1
- package/dist/collection/components/checkout/billing-form/card-billing-form-simple.js +1 -1
- package/dist/collection/components/checkout/billing-form/justifi-billing-form.js +1 -1
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/justifi-checkout.js +1 -1
- package/dist/collection/components/checkout/justifi-saved-payment-method.js +1 -1
- package/dist/collection/components/checkout/save-new-payment-method/justifi-save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/save-new-payment-method/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +3 -3
- package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +2 -2
- package/dist/collection/components/dispute-management/dispute-notification.js +2 -2
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/dispute-management/justifi-dispute-management.js +1 -1
- package/dist/collection/components/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/modular-checkout/ModularCheckout.js +4 -0
- package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +75 -11
- package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/paypal/justifi-paypal.js +278 -0
- package/dist/collection/components/modular-checkout/sub-components/paypal/paypal.js +17 -0
- package/dist/collection/components/order-terminals/justifi-order-terminals.js +1 -1
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/justifi-payment-details.js +8 -8
- package/dist/collection/components/payment-transactions-list/justifi-payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/justifi-payments-list.js +1 -1
- package/dist/collection/components/payout-details/justifi-payout-details.js +3 -3
- package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/justifi-payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
- package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +2 -2
- package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/justifi-terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +1 -1
- package/dist/collection/store/checkout.store.js +5 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +3 -3
- package/dist/collection/ui-components/internal-button.js +1 -1
- package/dist/collection/ui-components/radio-list-item.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
- package/dist/docs.json +115 -3
- package/dist/esm/{Analytics-Dgz_MQ1D.js → Analytics-3WmRTICF.js} +3 -3
- package/dist/esm/{Api-DScockhO.js → Api-83B3f28Q.js} +1 -1
- package/dist/esm/{Plaid-DJ-4YL0_.js → Plaid-BP3xNxQF.js} +5 -0
- package/dist/esm/additional-questions-form-step_15.entry.js +7 -7
- package/dist/esm/additional-statement_8.entry.js +8 -8
- package/dist/esm/bank-account-billing-form-simple_4.entry.js +4 -4
- package/dist/esm/bank-account-document-form-inputs.entry.js +1 -1
- package/dist/esm/bank-account-form.entry.js +5 -5
- package/dist/esm/{business.service-DR2ldRqG.js → business.service-CTqiKKy5.js} +2 -2
- package/dist/esm/card-form.entry.js +5 -5
- package/dist/esm/{check-pkg-version-CPMg0K2m.js → check-pkg-version-CmFl6VLH.js} +1 -1
- package/dist/esm/{checkout-actions-DhL8YxrK.js → checkout-actions-0ftD0elo.js} +2 -2
- package/dist/esm/{checkout.service-CU4BnB34.js → checkout.service-wjFjBxIB.js} +2 -2
- package/dist/esm/{checkout.store-B6amfNq_.js → checkout.store-B2mtQcB5.js} +6 -1
- package/dist/esm/custom-popper_2.entry.js +2 -2
- package/dist/esm/dispute-notification_2.entry.js +10 -10
- package/dist/esm/{event-types-BNfdthYa.js → event-types-cqQHLwCy.js} +2 -2
- package/dist/esm/form-address-fields_3.entry.js +2 -2
- package/dist/esm/form-alert_3.entry.js +5 -5
- package/dist/esm/form-control-checkbox.entry.js +2 -2
- package/dist/esm/form-control-date.entry.js +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +3 -3
- package/dist/esm/form-control-file.entry.js +2 -2
- package/dist/esm/form-control-monetary.entry.js +2 -2
- package/dist/esm/form-control-number_2.entry.js +2 -2
- package/dist/esm/form-control-radio.entry.js +2 -2
- package/dist/esm/form-control-select_2.entry.js +4 -4
- package/dist/esm/{get-business-BSyOONF0.js → get-business-BLCT-zfN.js} +2 -2
- package/dist/esm/{get-payment-details-CoGzqJ6o.js → get-payment-details-BokzuPGl.js} +2 -2
- package/dist/esm/{get-subaccounts-BraeNX17.js → get-subaccounts-ClGG-LRZ.js} +3 -3
- package/dist/esm/{index-DkoufM1t.js → index-DEx8fQeW.js} +4 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/internal-button.entry.js +1 -1
- package/dist/esm/{justifi-apple-pay_11.entry.js → justifi-apple-pay_12.entry.js} +314 -27
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +6 -6
- package/dist/esm/justifi-bank-account-form.entry.js +6 -6
- package/dist/esm/justifi-billing-form-full.entry.js +1 -1
- package/dist/esm/justifi-billing-form.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +8 -8
- package/dist/esm/justifi-business-form.entry.js +8 -8
- package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
- package/dist/esm/justifi-card-form.entry.js +6 -6
- package/dist/esm/justifi-checkout-qr-code.entry.js +5 -5
- package/dist/esm/justifi-checkout.entry.js +8 -8
- package/dist/esm/justifi-checkouts-list-filters.entry.js +3 -3
- package/dist/esm/justifi-checkouts-list.entry.js +10 -10
- package/dist/esm/justifi-dispute-management.entry.js +8 -8
- package/dist/esm/justifi-gross-payment-chart.entry.js +6 -6
- package/dist/esm/justifi-order-terminals.entry.js +10 -10
- package/dist/esm/justifi-payment-details.entry.js +16 -16
- package/dist/esm/justifi-payment-provisioning.entry.js +8 -8
- package/dist/esm/justifi-payment-transactions-list.entry.js +8 -8
- package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +8 -8
- package/dist/esm/justifi-payout-details.entry.js +11 -11
- package/dist/esm/justifi-payout-transactions-list.entry.js +8 -8
- package/dist/esm/justifi-payouts-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payouts-list.entry.js +10 -10
- package/dist/esm/justifi-qr-terminal.entry.js +8 -8
- package/dist/esm/justifi-refund-payment.entry.js +8 -8
- package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
- package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +8 -8
- package/dist/esm/justifi-skeleton.entry.js +1 -1
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +4 -4
- package/dist/esm/justifi-terminal-orders-list.entry.js +8 -8
- package/dist/esm/justifi-terminals-list-filters.entry.js +2 -2
- package/dist/esm/justifi-terminals-list.entry.js +9 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-CiypNylL.js → package-CAVi_ne1.js} +1 -1
- package/dist/esm/payment-method-option.entry.js +1 -1
- package/dist/esm/{payment-provisioning-actions-DJKGndr3.js → payment-provisioning-actions-VRIPjnAQ.js} +2 -2
- package/dist/esm/{payment.service-BxBf9T-D.js → payment.service-D7uv5vym.js} +2 -2
- package/dist/esm/{payout.service-DKe3_O4y.js → payout.service-BoSyqft1.js} +2 -2
- package/dist/esm/{payouts-status-C0nijel1.js → payouts-status-CaiC5qpn.js} +2 -2
- package/dist/esm/{plaid.service-DwWljJOH.js → plaid.service-DufQkxDk.js} +2 -2
- package/dist/esm/radio-list-item.entry.js +1 -1
- package/dist/esm/save-new-payment-method.entry.js +3 -3
- package/dist/esm/table-filters-menu.entry.js +1 -1
- package/dist/esm/terminal-quantity-selector.entry.js +1 -1
- package/dist/esm/{terminal.service-Q4KXLOka.js → terminal.service-BM2aebB6.js} +2 -2
- package/dist/esm/{utils-D6LKoG0M.js → utils-YUOJKtjO.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/ModularCheckout.js +4 -0
- package/dist/module/Plaid.js +5 -0
- package/dist/module/additional-statement2.js +1 -1
- package/dist/module/bank-account-billing-form-simple2.js +1 -1
- package/dist/module/cancellation-policy2.js +1 -1
- package/dist/module/card-billing-form-simple2.js +1 -1
- package/dist/module/card-form2.js +2 -2
- package/dist/module/checkout.store.js +5 -0
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details2.js +1 -1
- package/dist/module/dispute-notification2.js +2 -2
- package/dist/module/dispute-response2.js +1 -1
- package/dist/module/duplicate-charge2.js +1 -1
- package/dist/module/electronic-evidence2.js +1 -1
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +2 -2
- package/dist/module/form-control-monetary2.js +2 -2
- package/dist/module/form-control-number-masked2.js +2 -2
- package/dist/module/form-control-number2.js +2 -2
- package/dist/module/form-control-radio2.js +2 -2
- package/dist/module/form-control-select2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/internal-button2.js +1 -1
- package/dist/module/justifi-bank-account-billing-form-simple.js +1 -1
- package/dist/module/justifi-bank-account-form.js +1 -1
- package/dist/module/justifi-billing-form-full.js +1 -1
- package/dist/module/justifi-billing-form.js +1 -1
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-card-billing-form-simple.js +1 -1
- package/dist/module/justifi-card-form.js +1 -1
- package/dist/module/justifi-checkout-summary2.js +1 -1
- package/dist/module/justifi-checkout.js +53 -47
- package/dist/module/justifi-checkouts-list-filters.js +2 -2
- package/dist/module/justifi-checkouts-list.js +2 -2
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-modular-checkout2.js +75 -11
- package/dist/module/justifi-order-terminals.js +1 -1
- package/dist/module/justifi-payment-details.js +8 -8
- package/dist/module/justifi-payment-transactions-list.js +1 -1
- package/dist/module/justifi-payments-list-filters.js +2 -2
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payout-details.js +3 -3
- package/dist/module/justifi-payout-transactions-list.js +1 -1
- package/dist/module/justifi-payouts-list-filters.js +2 -2
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-paypal.d.ts +11 -0
- package/dist/module/justifi-paypal.js +6 -0
- package/dist/module/justifi-paypal2.js +254 -0
- package/dist/module/justifi-save-new-payment-method.js +1 -1
- package/dist/module/justifi-saved-payment-method.js +1 -1
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
- package/dist/module/justifi-terminal-orders-list.js +2 -2
- package/dist/module/justifi-terminals-list-filters.js +1 -1
- package/dist/module/justifi-terminals-list.js +1 -1
- package/dist/module/justifi-tokenize-payment-method2.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/product-or-service2.js +1 -1
- package/dist/module/radio-list-item2.js +1 -1
- package/dist/module/refund-policy2.js +1 -1
- package/dist/module/save-new-payment-method2.js +1 -1
- package/dist/module/shipping-details2.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/types/api/Checkout.d.ts +13 -1
- package/dist/types/api/Paypal.d.ts +11 -0
- package/dist/types/api/index.d.ts +1 -0
- package/dist/types/api/services/paypal.service.d.ts +8 -0
- package/dist/types/components/modular-checkout/ModularCheckout.d.ts +6 -2
- package/dist/types/components/modular-checkout/justifi-modular-checkout.d.ts +7 -0
- package/dist/types/components/modular-checkout/sub-components/paypal/justifi-paypal.d.ts +43 -0
- package/dist/types/components/modular-checkout/sub-components/paypal/paypal.d.ts +39 -0
- package/dist/types/components.d.ts +53 -0
- package/dist/types/store/checkout.store.d.ts +2 -0
- package/dist/webcomponents/index.esm.js +1 -1
- package/dist/webcomponents/{p-49e40ebe.entry.js → p-0aa96018.entry.js} +1 -1
- package/dist/webcomponents/p-0fbc806f.entry.js +1 -0
- package/dist/webcomponents/p-10787684.entry.js +1 -0
- package/dist/webcomponents/{p-bc435cae.entry.js → p-1365a46b.entry.js} +1 -1
- package/dist/webcomponents/p-1fa62eba.entry.js +1 -0
- package/dist/webcomponents/p-25f70d5f.entry.js +1 -0
- package/dist/webcomponents/{p-BlqdDtQr.js → p-27igUlku.js} +1 -1
- package/dist/webcomponents/{p-4f54d1b2.entry.js → p-28fb6b50.entry.js} +1 -1
- package/dist/webcomponents/{p-f0083ace.entry.js → p-2b5533a1.entry.js} +1 -1
- package/dist/webcomponents/{p-da21ae43.entry.js → p-36340e63.entry.js} +1 -1
- package/dist/webcomponents/p-3642e189.entry.js +1 -0
- package/dist/webcomponents/p-388082cd.entry.js +1 -0
- package/dist/webcomponents/p-3f2fb856.entry.js +1 -0
- package/dist/webcomponents/{p-041a22dd.entry.js → p-42021e67.entry.js} +1 -1
- package/dist/webcomponents/{p-0d9022e5.entry.js → p-4cad48c1.entry.js} +1 -1
- package/dist/webcomponents/{p-373586db.entry.js → p-50c2b8f0.entry.js} +1 -1
- package/dist/webcomponents/p-5842d4e8.entry.js +1 -0
- package/dist/webcomponents/{p-e7909732.entry.js → p-5c89dcdf.entry.js} +1 -1
- package/dist/webcomponents/p-5d7b3d71.entry.js +1 -0
- package/dist/webcomponents/p-5dcb1713.entry.js +1 -0
- package/dist/webcomponents/p-5f8c30b6.entry.js +1 -0
- package/dist/webcomponents/p-68e88747.entry.js +1 -0
- package/dist/webcomponents/p-6931a1f2.entry.js +1 -0
- package/dist/webcomponents/{p-f8f01bbb.entry.js → p-6c94218c.entry.js} +1 -1
- package/dist/webcomponents/{p-e954f46c.entry.js → p-6eb65d23.entry.js} +1 -1
- package/dist/webcomponents/{p-027ef7e9.entry.js → p-7002286e.entry.js} +1 -1
- package/dist/webcomponents/{p-d6122124.entry.js → p-72bb4aff.entry.js} +1 -1
- package/dist/webcomponents/p-74575a99.entry.js +1 -0
- package/dist/webcomponents/p-777470cb.entry.js +1 -0
- package/dist/webcomponents/p-7c405573.entry.js +1 -0
- package/dist/webcomponents/p-825a7ee6.entry.js +1 -0
- package/dist/webcomponents/p-8d11aa27.entry.js +1 -0
- package/dist/webcomponents/{p-3870712e.entry.js → p-909a9828.entry.js} +4 -4
- package/dist/webcomponents/p-955c06d3.entry.js +1 -0
- package/dist/webcomponents/{p-2139497d.entry.js → p-97c6593d.entry.js} +1 -1
- package/dist/webcomponents/p-9e3e2e32.entry.js +1 -0
- package/dist/webcomponents/{p-29f68bd0.entry.js → p-9e9a2546.entry.js} +1 -1
- package/dist/webcomponents/{p-cb977890.entry.js → p-9f0ef3f3.entry.js} +1 -1
- package/dist/webcomponents/{p-DD9-ceDZ.js → p-B0DHIvEj.js} +1 -1
- package/dist/webcomponents/{p-BL112JyU.js → p-BAKuMxC9.js} +1 -1
- package/dist/webcomponents/{p-DcA_wt-j.js → p-BEL8sLz6.js} +1 -1
- package/dist/webcomponents/{p-H4vl65HO.js → p-BSxXlu9H.js} +1 -1
- package/dist/webcomponents/p-CAVi_ne1.js +1 -0
- package/dist/webcomponents/{p-rIJv0FaI.js → p-CIpBEUtx.js} +1 -1
- package/dist/webcomponents/{p-CnHbIkmu.js → p-CJEetAx7.js} +1 -1
- package/dist/webcomponents/p-CLq3Og7o.js +1 -0
- package/dist/webcomponents/p-CXsRwohv.js +1 -0
- package/dist/webcomponents/p-Cy2N3vAg.js +1 -0
- package/dist/webcomponents/p-CyOXIqHo.js +1 -0
- package/dist/webcomponents/p-D6uhYbLo.js +1 -0
- package/dist/webcomponents/p-DEx8fQeW.js +1 -0
- package/dist/webcomponents/p-DN7VhlTn.js +1 -0
- package/dist/webcomponents/{p-Co3Rtlnu.js → p-DZQBPUfH.js} +1 -1
- package/dist/webcomponents/p-D_84NsmN.js +1 -0
- package/dist/webcomponents/p-Fpaf7CLD.js +1 -0
- package/dist/webcomponents/{p-CnDagPty.js → p-PdwJswAy.js} +1 -1
- package/dist/webcomponents/p-acb0b66c.entry.js +1 -0
- package/dist/webcomponents/p-b23dfa13.entry.js +1 -0
- package/dist/webcomponents/{p-b17fabdc.entry.js → p-b98ea26a.entry.js} +1 -1
- package/dist/webcomponents/{p-6884fa3d.entry.js → p-c3818a5a.entry.js} +1 -1
- package/dist/webcomponents/{p-61eae8cd.entry.js → p-c4889a06.entry.js} +1 -1
- package/dist/webcomponents/{p-b9316945.entry.js → p-c5424fda.entry.js} +1 -1
- package/dist/webcomponents/p-ca13117d.entry.js +1 -0
- package/dist/webcomponents/p-ca6c5365.entry.js +1 -0
- package/dist/webcomponents/{p-f6b900f4.entry.js → p-cb1cc88e.entry.js} +1 -1
- package/dist/webcomponents/{p-387aba3d.entry.js → p-ced6f6f1.entry.js} +1 -1
- package/dist/webcomponents/{p-c5560a87.entry.js → p-d59676ea.entry.js} +1 -1
- package/dist/webcomponents/p-d98bc829.entry.js +1 -0
- package/dist/webcomponents/{p-b9b5d046.entry.js → p-e55216fb.entry.js} +1 -1
- package/dist/webcomponents/{p-cb5d2198.entry.js → p-ead48010.entry.js} +1 -1
- package/dist/webcomponents/p-eb31024f.entry.js +1 -0
- package/dist/webcomponents/{p-543fcff2.entry.js → p-ee7fe3a8.entry.js} +1 -1
- package/dist/webcomponents/p-f0434a13.entry.js +1 -0
- package/dist/webcomponents/{p-c14dde7c.entry.js → p-f3682c72.entry.js} +1 -1
- package/dist/webcomponents/{p-537ea763.entry.js → p-f5358a80.entry.js} +1 -1
- package/dist/webcomponents/{p-b945fa49.entry.js → p-f9f0cb1f.entry.js} +1 -1
- package/dist/webcomponents/p-fda6f27d.entry.js +1 -0
- package/dist/webcomponents/p-fdd087d4.entry.js +1 -0
- package/dist/webcomponents/{p-C8g8unYJ.js → p-nbKvRcwU.js} +1 -1
- package/dist/webcomponents/{p-WnMmPpEb.js → p-vIQBTQmc.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +15 -15
- package/LICENSE +0 -21
- package/dist/webcomponents/p-04153e8c.entry.js +0 -1
- package/dist/webcomponents/p-0464be7b.entry.js +0 -1
- package/dist/webcomponents/p-0c1cc1e9.entry.js +0 -1
- package/dist/webcomponents/p-0fe976d6.entry.js +0 -1
- package/dist/webcomponents/p-15934f30.entry.js +0 -1
- package/dist/webcomponents/p-2128265d.entry.js +0 -1
- package/dist/webcomponents/p-21a5c3d8.entry.js +0 -1
- package/dist/webcomponents/p-25d24964.entry.js +0 -1
- package/dist/webcomponents/p-3086ee7a.entry.js +0 -1
- package/dist/webcomponents/p-36d7033b.entry.js +0 -1
- package/dist/webcomponents/p-3ef039ec.entry.js +0 -1
- package/dist/webcomponents/p-49f279c3.entry.js +0 -1
- package/dist/webcomponents/p-4d60d249.entry.js +0 -1
- package/dist/webcomponents/p-51714ea9.entry.js +0 -1
- package/dist/webcomponents/p-558677a7.entry.js +0 -1
- package/dist/webcomponents/p-568b81a2.entry.js +0 -1
- package/dist/webcomponents/p-6f34fa90.entry.js +0 -1
- package/dist/webcomponents/p-8fO8CrtQ.js +0 -1
- package/dist/webcomponents/p-9b758a11.entry.js +0 -1
- package/dist/webcomponents/p-9c506058.entry.js +0 -1
- package/dist/webcomponents/p-BEOJqK7T.js +0 -1
- package/dist/webcomponents/p-C0w_sG9P.js +0 -1
- package/dist/webcomponents/p-CMvr3y5s.js +0 -1
- package/dist/webcomponents/p-CaLXuYmg.js +0 -1
- package/dist/webcomponents/p-CiypNylL.js +0 -1
- package/dist/webcomponents/p-D1H6VUbM.js +0 -1
- package/dist/webcomponents/p-DNxN6bjU.js +0 -1
- package/dist/webcomponents/p-DkoufM1t.js +0 -1
- package/dist/webcomponents/p-Dl0CAW76.js +0 -1
- package/dist/webcomponents/p-a14d3d7d.entry.js +0 -1
- package/dist/webcomponents/p-a47854b9.entry.js +0 -1
- package/dist/webcomponents/p-b8d46fc5.entry.js +0 -1
- package/dist/webcomponents/p-c0bd4006.entry.js +0 -1
- package/dist/webcomponents/p-c4799285.entry.js +0 -1
- package/dist/webcomponents/p-cc5a97a0.entry.js +0 -1
- package/dist/webcomponents/p-d57ae599.entry.js +0 -1
- package/dist/webcomponents/p-de8c6cd4.entry.js +0 -1
- package/dist/webcomponents/p-f6941969.entry.js +0 -1
- package/dist/webcomponents/p-f8cff289.entry.js +0 -1
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { S as StyledHost } from './styled-host.js';
|
|
3
|
+
import './justifi-details2.js';
|
|
4
|
+
import './event-types.js';
|
|
5
|
+
import './justifi-radio-list-item2.js';
|
|
6
|
+
import { c as checkoutStore, o as onChange } from './checkout.store.js';
|
|
7
|
+
import { A as Api } from './Api.js';
|
|
8
|
+
import './Plaid.js';
|
|
9
|
+
import './Pagination.js';
|
|
10
|
+
import './Business.js';
|
|
11
|
+
import './ApplePay.js';
|
|
12
|
+
|
|
13
|
+
const api = Api();
|
|
14
|
+
class PaypalService {
|
|
15
|
+
async createPaypalOrder(authToken, checkoutId, fundingSource, signal) {
|
|
16
|
+
const endpoint = `checkouts/${checkoutId}/paypal/orders`;
|
|
17
|
+
const body = { funding_source: fundingSource };
|
|
18
|
+
return api.post({ endpoint, body, authToken, signal });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const PAYPAL_SANDBOX_SCRIPT_URL = 'https://www.sandbox.paypal.com/web-sdk/v6/core';
|
|
23
|
+
const PAYPAL_PRODUCTION_SCRIPT_URL = 'https://www.paypal.com/web-sdk/v6/core';
|
|
24
|
+
const PAYPAL_SCRIPT_DATA_TEST_ID = 'paypal-script';
|
|
25
|
+
const PAYPAL_COMPONENTS = ['paypal-payments', 'venmo-payments'];
|
|
26
|
+
const PAYPAL_PAGE_TYPE = 'checkout';
|
|
27
|
+
const PAYPAL_DEFAULT_CURRENCY = 'USD';
|
|
28
|
+
const PAYPAL_PRESENTATION_MODE = 'auto';
|
|
29
|
+
/** Venmo only settles in USD, and the checkout payload carries no country. */
|
|
30
|
+
const VENMO_SUPPORTED_CURRENCY = 'USD';
|
|
31
|
+
/** `test` checkouts talk to PayPal's sandbox; everything else goes to production. */
|
|
32
|
+
const paypalScriptUrl = (mode) => mode === 'test' ? PAYPAL_SANDBOX_SCRIPT_URL : PAYPAL_PRODUCTION_SCRIPT_URL;
|
|
33
|
+
const PaypalErrorCode = {
|
|
34
|
+
CONFIG_ERROR: 'CONFIG_ERROR',
|
|
35
|
+
INITIALIZATION_ERROR: 'INITIALIZATION_ERROR',
|
|
36
|
+
ORDER_ERROR: 'ORDER_ERROR',
|
|
37
|
+
PAYMENT_FAILED: 'PAYMENT_FAILED',
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const SHOWN_CLASS = 'shown';
|
|
41
|
+
const setShown = (el, shown) => {
|
|
42
|
+
if (!el)
|
|
43
|
+
return;
|
|
44
|
+
if (shown)
|
|
45
|
+
el.classList.add(SHOWN_CLASS);
|
|
46
|
+
else
|
|
47
|
+
el.classList.remove(SHOWN_CLASS);
|
|
48
|
+
};
|
|
49
|
+
const JustifiPaypal = /*@__PURE__*/ proxyCustomElement(class JustifiPaypal extends HTMLElement {
|
|
50
|
+
constructor(registerHost) {
|
|
51
|
+
super();
|
|
52
|
+
if (registerHost !== false) {
|
|
53
|
+
this.__registerHost();
|
|
54
|
+
}
|
|
55
|
+
this.__attachShadow();
|
|
56
|
+
this.paypalStarted = createEvent(this, "paypalStarted", 7);
|
|
57
|
+
this.paypalCompleted = createEvent(this, "paypalCompleted", 7);
|
|
58
|
+
this.paypalCancelled = createEvent(this, "paypalCancelled", 7);
|
|
59
|
+
this.paypalError = createEvent(this, "paypalError", 7);
|
|
60
|
+
this.paypalService = new PaypalService();
|
|
61
|
+
this.paypalEligible = false;
|
|
62
|
+
this.venmoEligible = false;
|
|
63
|
+
this.startSession = async (session, fundingSource) => {
|
|
64
|
+
if (!session)
|
|
65
|
+
return;
|
|
66
|
+
this.pendingOrderId = undefined;
|
|
67
|
+
this.paypalStarted.emit({ fundingSource });
|
|
68
|
+
let orderFailed = false;
|
|
69
|
+
const order = this.createOrder(fundingSource)
|
|
70
|
+
.then((created) => ({ orderId: created.provider_order_id }))
|
|
71
|
+
.catch((error) => {
|
|
72
|
+
orderFailed = true;
|
|
73
|
+
this.emitError((error === null || error === void 0 ? void 0 : error.message) || 'Could not create the Paypal order', PaypalErrorCode.ORDER_ERROR);
|
|
74
|
+
throw error;
|
|
75
|
+
});
|
|
76
|
+
// The SDK is what normally consumes this rejection; swallow a copy so a
|
|
77
|
+
// failed order can never surface as an unhandled rejection.
|
|
78
|
+
order.catch(() => undefined);
|
|
79
|
+
try {
|
|
80
|
+
await session.start({ presentationMode: PAYPAL_PRESENTATION_MODE }, order);
|
|
81
|
+
}
|
|
82
|
+
catch (error) {
|
|
83
|
+
if (orderFailed)
|
|
84
|
+
return;
|
|
85
|
+
this.emitError((error === null || error === void 0 ? void 0 : error.message) || 'Paypal payment failed', PaypalErrorCode.PAYMENT_FAILED);
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
componentDidLoad() {
|
|
90
|
+
if (checkoutStore.checkoutLoaded) {
|
|
91
|
+
this.initializePaypal();
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
onChange('checkoutLoaded', (loaded) => {
|
|
95
|
+
if (loaded)
|
|
96
|
+
this.initializePaypal();
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
componentDidRender() {
|
|
101
|
+
this.applyVisibility();
|
|
102
|
+
}
|
|
103
|
+
get currencyCode() {
|
|
104
|
+
return (checkoutStore.paymentCurrency || PAYPAL_DEFAULT_CURRENCY).toUpperCase();
|
|
105
|
+
}
|
|
106
|
+
get showPaypal() {
|
|
107
|
+
return !!checkoutStore.paypalEnabled && this.paypalEligible;
|
|
108
|
+
}
|
|
109
|
+
get showVenmo() {
|
|
110
|
+
return (!!checkoutStore.paypalEnabled &&
|
|
111
|
+
this.venmoEligible &&
|
|
112
|
+
this.currencyCode === VENMO_SUPPORTED_CURRENCY);
|
|
113
|
+
}
|
|
114
|
+
applyVisibility() {
|
|
115
|
+
const { showPaypal, showVenmo } = this;
|
|
116
|
+
setShown(this.buttonsEl, showPaypal || showVenmo);
|
|
117
|
+
setShown(this.paypalButtonEl, showPaypal);
|
|
118
|
+
setShown(this.venmoButtonEl, showVenmo);
|
|
119
|
+
}
|
|
120
|
+
emitError(error, code) {
|
|
121
|
+
this.paypalError.emit({ error, code });
|
|
122
|
+
}
|
|
123
|
+
// The script tag is the dedup token, so a second instance (or a remount)
|
|
124
|
+
// reuses the in-flight load instead of appending another SDK.
|
|
125
|
+
loadPaypalScript() {
|
|
126
|
+
const loaded = window.paypal;
|
|
127
|
+
if (loaded)
|
|
128
|
+
return Promise.resolve(loaded);
|
|
129
|
+
return new Promise((resolve, reject) => {
|
|
130
|
+
const selector = `script[data-test-id="${PAYPAL_SCRIPT_DATA_TEST_ID}"]`;
|
|
131
|
+
let script = document.head.querySelector(selector);
|
|
132
|
+
if (!script) {
|
|
133
|
+
script = document.createElement('script');
|
|
134
|
+
script.src = paypalScriptUrl(checkoutStore.checkoutMode);
|
|
135
|
+
script.async = true;
|
|
136
|
+
script.setAttribute('data-test-id', PAYPAL_SCRIPT_DATA_TEST_ID);
|
|
137
|
+
document.head.appendChild(script);
|
|
138
|
+
}
|
|
139
|
+
script.addEventListener('load', () => {
|
|
140
|
+
const paypal = window.paypal;
|
|
141
|
+
if (paypal) {
|
|
142
|
+
resolve(paypal);
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
reject(new Error('Paypal script loaded but window.paypal is undefined'));
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
script.addEventListener('error', () => reject(new Error('Error loading Paypal script')));
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
metadataId() {
|
|
152
|
+
return (Math.random().toString(36).substring(2, 15) +
|
|
153
|
+
Math.random().toString(36).substring(2, 15));
|
|
154
|
+
}
|
|
155
|
+
async initializePaypal() {
|
|
156
|
+
const clientId = checkoutStore.paypalProviderClientId;
|
|
157
|
+
if (!clientId) {
|
|
158
|
+
this.paypalEligible = false;
|
|
159
|
+
this.venmoEligible = false;
|
|
160
|
+
this.applyVisibility();
|
|
161
|
+
this.emitError('Missing Paypal client id', PaypalErrorCode.CONFIG_ERROR);
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
try {
|
|
165
|
+
const paypal = await this.loadPaypalScript();
|
|
166
|
+
this.sdkInstance = await paypal.createInstance({
|
|
167
|
+
clientId,
|
|
168
|
+
components: PAYPAL_COMPONENTS,
|
|
169
|
+
pageType: PAYPAL_PAGE_TYPE,
|
|
170
|
+
metadataId: this.metadataId(),
|
|
171
|
+
});
|
|
172
|
+
const eligibleMethods = await this.sdkInstance.findEligibleMethods({
|
|
173
|
+
currencyCode: this.currencyCode,
|
|
174
|
+
});
|
|
175
|
+
this.paypalEligible = eligibleMethods.isEligible('paypal');
|
|
176
|
+
this.venmoEligible = eligibleMethods.isEligible('venmo');
|
|
177
|
+
if (this.paypalEligible) {
|
|
178
|
+
this.paypalSession = this.sdkInstance.createPayPalOneTimePaymentSession(this.sessionOptions('paypal'));
|
|
179
|
+
}
|
|
180
|
+
if (this.venmoEligible) {
|
|
181
|
+
this.venmoSession = this.sdkInstance.createVenmoOneTimePaymentSession(this.sessionOptions('venmo'));
|
|
182
|
+
}
|
|
183
|
+
this.applyVisibility();
|
|
184
|
+
}
|
|
185
|
+
catch (error) {
|
|
186
|
+
this.paypalEligible = false;
|
|
187
|
+
this.venmoEligible = false;
|
|
188
|
+
this.applyVisibility();
|
|
189
|
+
this.emitError((error === null || error === void 0 ? void 0 : error.message) || 'Error initializing Paypal', PaypalErrorCode.INITIALIZATION_ERROR);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
sessionOptions(fundingSource) {
|
|
193
|
+
return {
|
|
194
|
+
onApprove: () => this.paypalCompleted.emit({
|
|
195
|
+
success: true,
|
|
196
|
+
paymentMethodId: this.pendingOrderId,
|
|
197
|
+
fundingSource,
|
|
198
|
+
}),
|
|
199
|
+
onCancel: () => this.paypalCancelled.emit({ fundingSource }),
|
|
200
|
+
onError: (error) => this.emitError((error === null || error === void 0 ? void 0 : error.message) || 'Paypal payment failed', PaypalErrorCode.PAYMENT_FAILED),
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
async createOrder(fundingSource) {
|
|
204
|
+
const response = await this.paypalService.createPaypalOrder(checkoutStore.authToken, checkoutStore.checkoutId, fundingSource);
|
|
205
|
+
if (response === null || response === void 0 ? void 0 : response.error) {
|
|
206
|
+
const message = typeof response.error === 'string'
|
|
207
|
+
? response.error
|
|
208
|
+
: response.error.message;
|
|
209
|
+
throw new Error(message || 'Could not create the Paypal order');
|
|
210
|
+
}
|
|
211
|
+
const order = response === null || response === void 0 ? void 0 : response.data;
|
|
212
|
+
if (!(order === null || order === void 0 ? void 0 : order.provider_order_id)) {
|
|
213
|
+
throw new Error('Paypal order is missing a provider order id');
|
|
214
|
+
}
|
|
215
|
+
this.pendingOrderId = order.id;
|
|
216
|
+
return order;
|
|
217
|
+
}
|
|
218
|
+
render() {
|
|
219
|
+
return (h(StyledHost, { key: '05c771ae41d3b21da7046e70c7d0e03efc296a0c' }, h("div", { key: '8e7a14372ce29b4da284efadb43c27d0c059607e', class: "paypal-buttons", ref: (el) => (this.buttonsEl = el) }, h("paypal-button", { key: 'aa7fa82c96ca4d41872f445a01e72a18f6f5920a', type: "pay", ref: (el) => (this.paypalButtonEl = el), onClick: () => this.startSession(this.paypalSession, 'paypal') }), h("venmo-button", { key: '2cb068aa82460068548f133607cebec096028a41', type: "pay", ref: (el) => (this.venmoButtonEl = el), onClick: () => this.startSession(this.venmoSession, 'venmo') })), h("style", { key: '159cc68f682ed79a9a83be7d1b4c88127f8a2623' }, `
|
|
220
|
+
.paypal-buttons {
|
|
221
|
+
display: none;
|
|
222
|
+
gap: 8px;
|
|
223
|
+
width: 100%;
|
|
224
|
+
}
|
|
225
|
+
.paypal-buttons.shown {
|
|
226
|
+
display: flex;
|
|
227
|
+
}
|
|
228
|
+
.paypal-buttons > * {
|
|
229
|
+
display: none;
|
|
230
|
+
flex: 1 1 0;
|
|
231
|
+
min-width: 0;
|
|
232
|
+
}
|
|
233
|
+
.paypal-buttons > .shown {
|
|
234
|
+
display: block;
|
|
235
|
+
}
|
|
236
|
+
`)));
|
|
237
|
+
}
|
|
238
|
+
}, [257, "justifi-paypal"]);
|
|
239
|
+
function defineCustomElement() {
|
|
240
|
+
if (typeof customElements === "undefined") {
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
const components = ["justifi-paypal"];
|
|
244
|
+
components.forEach(tagName => { switch (tagName) {
|
|
245
|
+
case "justifi-paypal":
|
|
246
|
+
if (!customElements.get(tagName)) {
|
|
247
|
+
customElements.define(tagName, JustifiPaypal);
|
|
248
|
+
}
|
|
249
|
+
break;
|
|
250
|
+
} });
|
|
251
|
+
}
|
|
252
|
+
defineCustomElement();
|
|
253
|
+
|
|
254
|
+
export { JustifiPaypal as J, defineCustomElement as d };
|
|
@@ -17,7 +17,7 @@ const JustifiSaveNewPaymentMethod$1 = /*@__PURE__*/ proxyCustomElement(class Jus
|
|
|
17
17
|
this.label = 'Save New Payment Method';
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h(StyledHost, { key: '
|
|
20
|
+
return (h(StyledHost, { key: 'a8b450dc8d759d10da91b81e062adfcc4ec803f1' }, h("save-new-payment-method", { key: 'f463f223c38e4078b96efb0a99c3d932663b3574', label: this.label, hidden: this.hidden, onCheckboxChanged: (e) => this.checkboxChanged.emit(e.detail) })));
|
|
21
21
|
}
|
|
22
22
|
}, [257, "justifi-save-new-payment-method", {
|
|
23
23
|
"label": [1],
|
|
@@ -26,7 +26,7 @@ const JustifiSavedPaymentMethod$1 = /*@__PURE__*/ proxyCustomElement(class Justi
|
|
|
26
26
|
;
|
|
27
27
|
render() {
|
|
28
28
|
var _a, _b, _c;
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: 'd775b9a1bc4bc1e2c8992e165cd50b23f5e0d8dd', class: "payment-method" }, h("div", { key: '812af6ff715167c3a50e308e868fe582fa838f8a', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick }, h("form-control-radio", { key: 'cb1b06940efa7394c03178cb4f6b9fa7edc49133', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: `${CardBrandLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.brand] || ''} *${(_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.acct_last_four}` }))));
|
|
30
30
|
}
|
|
31
31
|
}, [256, "justifi-saved-payment-method", {
|
|
32
32
|
"paymentMethodOption": [16],
|
|
@@ -11,7 +11,7 @@ const JustifiSkeleton$1 = /*@__PURE__*/ proxyCustomElement(class JustifiSkeleton
|
|
|
11
11
|
this.__attachShadow();
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(StyledHost, { key: '
|
|
14
|
+
return (h(StyledHost, { key: 'aae82594ed1833982d7bb06ea0808e56e06b11f8' }, h(Skeleton, { key: '52c5680b1dc298b75646e5409b9c5c5b83f53eae', component: this.component, height: this.height, width: this.width, className: this.class, styles: this.customStyle })));
|
|
15
15
|
}
|
|
16
16
|
}, [257, "justifi-skeleton", {
|
|
17
17
|
"component": [1],
|
|
@@ -69,9 +69,9 @@ const JustifiTerminalOrdersListFilters$1 = /*@__PURE__*/ proxyCustomElement(clas
|
|
|
69
69
|
}
|
|
70
70
|
render() {
|
|
71
71
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
72
|
-
return (h(StyledHost, { key: '
|
|
73
|
-
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: filterParam })), h("div", { key: '
|
|
74
|
-
convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: filterParam })), h("div", { key: '
|
|
72
|
+
return (h(StyledHost, { key: '4917947c32b986dfd3e03e2194166a22b854c596' }, h("table-filters-menu", { key: '7cbdd6699501511839d26e0ecd320838da3d2ea8', params: filterMenuParams, clearParams: clearParams, part: filterMenu }, h("div", { key: '3a5ed4007f3d9c68f71a31cb7086956f6808d3bd', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'cd50327bf0d34adebab19ac71d2839e33572006c', class: "p-2" }, h("form-control-select", { key: '08340399deae9c6445d0bbcbc48c97afa9258e69', name: "order_status", label: "Order Status", options: this.terminalOrderStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderStatus || filterParams.order_status || '', disabled: !!this.orderStatus, part: filterParam })), h("div", { key: '613cdc6699d667a0b733b1cb90bf336f4595d351', class: "p-2" }, h("form-control-select", { key: '8b432626428e64553c2c32a94aa53750474a677d', name: "order_type", label: "Order Type", options: this.terminalOrderTypeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderType || filterParams.order_type || '', disabled: !!this.orderType, part: filterParam })), h("div", { key: '3f7f2d2fdf271489ea628eda3c9137ee60cb752f', class: "p-2" }, h("form-control-date", { key: 'dcf0f4ab51c8511d2877405b0460faa1b272ac61', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
|
|
73
|
+
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: filterParam })), h("div", { key: '5dca482d9530e6867a13d8f94961b909f243d316', class: "p-2" }, h("form-control-date", { key: '1d5fdee06fd5420edcc1b0b5cd75bfc1d4b563e7', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
|
|
74
|
+
convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: filterParam })), h("div", { key: '38fb2f90de478f0b29b8711ba502fd280e6599ab', class: "p-2" }, h("form-control-text", { key: '772e6efb136cfd0edd2a0bfe3810e7616a2541b3', name: "company_name", label: "Company Name", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.companyName || filterParams.company_name, disabled: !!this.companyName, part: filterParam }))))));
|
|
75
75
|
}
|
|
76
76
|
}, [257, "justifi-terminal-orders-list-filters", {
|
|
77
77
|
"orderStatus": [1, "order-status"],
|
|
@@ -250,8 +250,8 @@ const JustifiTerminalOrdersList$1 = /*@__PURE__*/ proxyCustomElement(class Justi
|
|
|
250
250
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
251
251
|
}
|
|
252
252
|
render() {
|
|
253
|
-
return (h(StyledHost, { key: '
|
|
254
|
-
this.terminalOrdersTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: '
|
|
253
|
+
return (h(StyledHost, { key: 'ba50fc1b4bd66163d2ed0c5f98a6bbe18d991ddb' }, h(TableWrapper, { key: 'b3203a5765b3ef1e564bdee4e0a6ad2603ac7c09' }, h(TableComponent, { key: 'efd22eb95810e22ac977dc6d323dc5b807110a95' }, h(TableHead, { key: '2ded9affdda7af379ffbbd76fa05226389de0dd0' }, h(TableHeadRow, { key: 'ca48cefe5d497f0b6cbe83f498939f4d1232a45b' }, this.terminalOrdersTable.columnData.map((column) => column))), h(TableBody, { key: 'd7a38ad880b6e9334bf72d3fa8cb6eb69b0032d6' }, h(TableLoadingState, { key: 'f4bc0a54a68f29f82a8f7a1c34a5d29a80f16f65', columnSpan: this.terminalOrdersTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '7a0f199dd9640efc16578fe106d5d16cf8872e5a', isEmpty: this.showEmptyState, columnSpan: this.terminalOrdersTable.columnKeys.length }), h(TableErrorState, { key: 'cf1bf5094f0769f0a4d81c730649769cd0870fe3', columnSpan: this.terminalOrdersTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData &&
|
|
254
|
+
this.terminalOrdersTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: 'cd9dee54cd5f27a0ae9c56771f6c99e0ea2ff125' }, h(TableFootRow, { key: '877284dd9926a1889fdf175ce0bf5db841fd9066' }, h(TableFootCell, { key: '2558454e5a5e3eb340170d6af43ad24c12aebdb8', colSpan: this.terminalOrdersTable.columnData.length }, h("pagination-menu", { key: '8cf390bed552045b9950c4fcfe80f70e308d2cee', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
255
255
|
}
|
|
256
256
|
static get watchers() { return {
|
|
257
257
|
"accountId": ["authPropChanged"],
|
|
@@ -64,7 +64,7 @@ const JustifiTerminalsListFilters$1 = /*@__PURE__*/ proxyCustomElement(class Jus
|
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
66
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
67
|
-
return (h(StyledHost, { key: '
|
|
67
|
+
return (h(StyledHost, { key: 'a74ed2422b669401402664c77542412f3763ba76' }, h("table-filters-menu", { key: '9158ca6884cb610dc712fb1b3a69ca6803a7dce7', params: filterMenuParams, clearParams: clearParams, part: filterMenu }, h("div", { key: 'e24cfc9c7f078f9eb7d5f1f5b4d5cef8374378ce', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'cce1419064f7e7cdc687437416327f7daebe5eae', class: "p-2" }, h("form-control-text", { key: '750c30bc7e281f40646bdfaf0a29393d0ce7f72b', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: filterParam })), h("div", { key: '512ccc43edb3aab2ec6ab7d9c76bebf6369df73d', class: "p-2" }, h("form-control-text", { key: '6320c75ecd89ad00162c764998c1c703a5965787', name: "terminal_order_id", label: "Terminal Order ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalOrderId || filterParams.terminal_order_id, disabled: !!this.terminalOrderId, part: filterParam })), h("div", { key: '6f0d58b200a36516ede61609aad03ca191f240c2', class: "p-2" }, h("form-control-text", { key: 'f786e9fbbd7c9604429c5f43935121245f2943d2', name: "provider_id", label: "Device ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.providerId || filterParams.provider_id, disabled: !!this.providerId, part: filterParam })), h("div", { key: 'b4d84761c2f5de192669012acc41bb5ba2b76750', class: "p-2" }, h("form-control-text", { key: 'deb1c3b5cc3b72b2724a296b1024f8f66ae69683', name: "serial_number", label: "Serial Number", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.serialNumber || filterParams.serial_number, disabled: !!this.serialNumber, part: filterParam })), h("div", { key: 'b90c15ba9fa6bbe5eac425152753d1cb508b1710', class: "p-2" }, h("form-control-select", { key: 'beb78ebcd076b7b26a0cb5115ae9b619584fc307', name: "status", label: "Status", options: this.terminalStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.terminalStatus || filterParams.status || '', disabled: !!this.terminalStatus, part: filterParam })), h("div", { key: 'e6109b7758b998d41d2ff555bf26ee9de1011c94', class: "p-2" }, h("form-control-date", { key: 'e407111678baea094666e8789175ce15d40c2ee8', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter || filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: filterParam })), h("div", { key: 'edc59eb19b58592803ffba665adae26d34fdfe0c', class: "p-2" }, h("form-control-date", { key: '21c995d7eef08082ca7996eaf9286aeaa80fd2e9', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore || filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: filterParam }))))));
|
|
68
68
|
}
|
|
69
69
|
}, [257, "justifi-terminals-list-filters", {
|
|
70
70
|
"terminalId": [1, "terminal-id"],
|
|
@@ -266,7 +266,7 @@ const JustifiTerminalsList$1 = /*@__PURE__*/ proxyCustomElement(class JustifiTer
|
|
|
266
266
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
267
267
|
}
|
|
268
268
|
render() {
|
|
269
|
-
return (h(StyledHost, { key: '
|
|
269
|
+
return (h(StyledHost, { key: '47fca9f9a3285303bf0edc9f771324cdeeccc81d' }, h(TableWrapper, { key: '08158b4b6353b0aa178bc1999372341826dacebe' }, h(TableComponent, { key: '6667e38e47b157fce34912108f303c688e891d50' }, h(TableHead, { key: '4fb637073cc3ecdea161af76a4aa63dce3572749' }, h(TableHeadRow, { key: 'aaa85ad73185d77deff24c8085a794871eae2058' }, this.terminalsTable.columnData.map((column) => column))), h(TableBody, { key: '794e1d3efc15addf7d4638583d5c269aeec270b1' }, h(TableLoadingState, { key: '6545c145ccba03f2e8b3ee990ee1050349b428ac', columnSpan: this.terminalsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '4464655c4eb9dfa6f5da83f41e7776488b0780c5', isEmpty: this.showEmptyState, columnSpan: this.terminalsTable.columnKeys.length }), h(TableErrorState, { key: '63b0460aba3b2c173d0aa94ba33c46081561d459', columnSpan: this.terminalsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: '4555f7a255231f691498ec3780d0df9e8a70bfbd' }, h(TableFootRow, { key: 'ba55004c9e60032698b79d2c15a9e06a123ef6a0' }, h(TableFootCell, { key: 'c778a569fb066ca834730cc9ac4d7a0592c420ad', colSpan: this.terminalsTable.columnData.length }, h("pagination-menu", { key: '936ef5ccd9b1d1d2043daed21006ad2bc8a9011a', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
270
270
|
}
|
|
271
271
|
static get watchers() { return {
|
|
272
272
|
"accountId": ["propChanged"],
|
|
@@ -297,7 +297,7 @@ const JustifiTokenizePaymentMethod = /*@__PURE__*/ proxyCustomElement(class Just
|
|
|
297
297
|
} }));
|
|
298
298
|
}
|
|
299
299
|
render() {
|
|
300
|
-
return (h(StyledHost, { key: '
|
|
300
|
+
return (h(StyledHost, { key: '16a5a47febb09295c95f141ddc96a849e530c477' }, h("form", { key: 'e1ac3ac80435b32cb0a742198d814778bffd635c' }, h("fieldset", { key: '68d0f984d3e66a6abc794e8b2086e27f26ecc809' }, h("div", { key: 'b1759ec1b9c94a976da992947b06da6d8f48f553', class: "row gy-3" }, h("div", { key: 'bc1ef82406d3da36c5d4d97b1a10259de87fdd09', class: "col-12" }, this.availablePaymentMethods.map((method) => this.renderPaymentMethodOption(method))), h("div", { key: 'ed26f2908aa90daba5ab320a668369566b9dacfa', class: "col-12" }, h("internal-button", { key: '094cdacb592825374ad33dd80a05091747bfec4b', text: this.submitButtonText, variant: "primary", type: "submit", clickHandler: (e) => this.tokenizePaymentMethod(e), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.computedHideSubmitButton })))))));
|
|
301
301
|
}
|
|
302
302
|
get host() { return this; }
|
|
303
303
|
static get watchers() { return {
|
package/dist/module/package.js
CHANGED
|
@@ -16,7 +16,7 @@ const PaymentMethodOption$1 = /*@__PURE__*/ proxyCustomElement(class PaymentMeth
|
|
|
16
16
|
this.__attachShadow();
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(StyledHost, { key: '
|
|
19
|
+
return (h(StyledHost, { key: 'da82ac8f91a83d8be03b6db4d0a297d71182dea3', class: "payment-method" }, h("div", { key: '0b08e32931ffdbe963334c70cf245ad2230e7cc7', class: "radio-list-item p-3", part: radioListItem, onClick: this.clickHandler, hidden: this.radioButtonHidden }, h("form-control-radio", { key: '36b905117b18c8feace01d4b28ce532c4b2826dc', name: "paymentMethodType", value: this.paymentMethodOptionId, checked: this.isSelected, label: this.label }))));
|
|
20
20
|
}
|
|
21
21
|
}, [257, "payment-method-option", {
|
|
22
22
|
"paymentMethodOptionId": [1, "payment-method-option-id"],
|
|
@@ -41,7 +41,7 @@ const ProductOrService = /*@__PURE__*/ proxyCustomElement(class ProductOrService
|
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
43
|
var _a, _b, _c;
|
|
44
|
-
return (h("div", { key: '
|
|
44
|
+
return (h("div", { key: '3f2d1c2f4b0595e922712f8754ae1022b2d19261' }, h("div", { key: '0ab14085510225a4d00b352014ea72f4dc0a059a', class: "row gy-3" }, h("div", { key: '12271b714bf3e6b6756274674e3413018124fa4c', class: "col-12" }, h("h2", { key: '9b6175bf1eb88788b909be3f7a46337a75856306', class: "h5", part: heading5 }, "Product & Service Details")), h("div", { key: '912e647000393b9146329e7d4cca78ee15837621', class: "col-12" }, h("form-control-text", { key: '7b365315a58fdfa65fa7e1e6f009dc5c70c17d95', label: "Product Description", name: "product_description", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.product_description, inputHandler: this.inputHandler, errorText: this.errors.product_description })), h("div", { key: '03d48b21fb83a4a4b07ed6f0f7b6f08a32c10ce5', class: "col-12" }, h("form-control-date", { key: 'fbd7c448acc69aa0012999f90d3b38f9374af933', label: "Service Date", name: "service_date", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.service_date, inputHandler: this.inputHandler, errorText: this.errors.service_date })), h("div", { key: '74683fc2825cffa9403313b21d52a4ddb76db12e', class: "col-12" }, h("form-control-file-v2", { key: '7d3e5f2f96375d884a98e207c22d2b3115ed6e1b', label: "Service Documentation", name: "service_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.service_documentation })))));
|
|
45
45
|
}
|
|
46
46
|
}, [256, "product-or-service", {
|
|
47
47
|
"disputeResponse": [8, "dispute-response"],
|
|
@@ -17,7 +17,7 @@ const RadioListItem = /*@__PURE__*/ proxyCustomElement(class RadioListItem exten
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: '254375c6a1fd52924a84392bfd36d21ac60e4c0b' }, h("div", { key: 'df0f6abdeb91cbbe3c1b7e91f42cd7950379d8bf', class: `radio-list-item p-3 ${this.class || ''}`, part: radioListItem, onClick: this.handleClick, hidden: this.hidden }, h("form-control-radio", { key: '4c7e8e499b76bc83e83504b0cf22785fe2fdf6ec', name: this.name, value: this.value, checked: this.checked, label: this.label, inputHandler: () => null }))));
|
|
21
21
|
}
|
|
22
22
|
}, [256, "radio-list-item", {
|
|
23
23
|
"name": [1],
|
|
@@ -41,7 +41,7 @@ const RefundPolicy = /*@__PURE__*/ proxyCustomElement(class RefundPolicy extends
|
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
43
|
var _a, _b, _c, _d;
|
|
44
|
-
return (h("div", { key: '
|
|
44
|
+
return (h("div", { key: '828ac1997382fa491920b9439099959ae5376c81' }, h("div", { key: '8d0453e4c2ec424a2010cfd01885cb4a03020d93', class: "row gy-3" }, h("div", { key: 'd15021ea6df4b3939d4564a84951ebadb50cc7cd', class: "col-12" }, h("h2", { key: '632eafab4924af0d433f28a3329877b98376ea27', class: "h5", part: heading5 }, "Refund Policy and Receipt")), h("div", { key: 'cb55f0f106e68e9af4057a4496811db991f487d0', class: "col-12" }, h("form-control-textarea", { key: '1fdca1aea95757a0dac55b338355eeffd351c6cb', label: "Refund Policy Disclosure", name: "refund_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.refund_policy_disclosure, inputHandler: this.inputHandler })), h("div", { key: '6f6c35c4626a764e4119dc253aded2985ac6ffbc', class: "col-12" }, h("form-control-textarea", { key: '6c0fcba48cad9f8c3cc9ed6c35d6b0e1301f9c35', label: "Refund Refusal Explanation", name: "refund_refusal_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.refund_refusal_explanation, inputHandler: this.inputHandler })), h("div", { key: '1bf52c92c53313ab7542bfc1b2ed607e9d5db032', class: "col-12" }, h("form-control-file-v2", { key: '67b266e26d5568e3370b3f8aaad2c0d6450f67f6', label: "Upload Refund Policy", name: "refund_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.refund_policy })), h("div", { key: '8994ee85c8a31fc709a0fa396d97e4da576e57c3', class: "col-12" }, h("form-control-file-v2", { key: 'c468b92349b6a92f02b6eef0dc06c71dfc924c4e', label: "Upload Receipt", name: "receipt", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.receipt })))));
|
|
45
45
|
}
|
|
46
46
|
}, [256, "refund-policy", {
|
|
47
47
|
"disputeResponse": [8, "dispute-response"],
|
|
@@ -18,7 +18,7 @@ const SaveNewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class SaveNewPayme
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: '664463db96e3e2ce7152dbe33a9a1a940a2b2c2f', hidden: this.hidden }, h("form-control-checkbox", { key: '4f90f2799f1efddc15703906a6f3e183816239e6', label: this.label || 'Save New Payment Method', name: "saveNewPaymentMethod", checked: this.isChecked, inputHandler: this.handleCheckboxChange })));
|
|
22
22
|
}
|
|
23
23
|
}, [256, "save-new-payment-method", {
|
|
24
24
|
"label": [1],
|
|
@@ -46,7 +46,7 @@ const ShippingDetails = /*@__PURE__*/ proxyCustomElement(class ShippingDetails e
|
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
48
|
var _a, _b, _c, _d, _e;
|
|
49
|
-
return (h("div", { key: '
|
|
49
|
+
return (h("div", { key: '0d7695711048ad14596ba44e364b45e3aa3d1e39' }, h("div", { key: 'e6911e35f66ef8aaa591f54e389d67c202af8172', class: "row gy-3" }, h("div", { key: 'd59ab2fe6318a27c4b38650e4e9d07b9c851041f', class: "col-12" }, h("h2", { key: 'b8a8634fe9dcf11c332dab0c1736732e579aeb59', class: "h5", part: heading5 }, "Shipping Details")), h("div", { key: '5170b37a386805e194d8cf7c769ffdbac8db8fa2', class: "col-12" }, h("form-control-text", { key: '7bc3f59737fa075134e2bc476fa26d79ddc4e26b', label: "Shipping Carrier Name", name: "shipping_carrier", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.shipping_carrier, inputHandler: this.inputHandler, errorText: this.errors.shipping_carrier })), h("div", { key: 'ef41052d0eec68b02d04638ce7cfdbc1477c16eb', class: "col-12" }, h("form-control-text", { key: 'b88d31bed47cdf09e04a29122c1adf955bdc4d25', label: "Tracking Number", name: "shipping_tracking_number", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.shipping_tracking_number, inputHandler: this.inputHandler, errorText: this.errors.shipping_tracking_number })), h("div", { key: '743dea4d8f59e62103403fa58936ca86d7bbf216', class: "col-12" }, h("form-control-date", { key: '4be255a38f91f9bf758428d780649d2775d22153', label: "Date Shipped", name: "shipping_date", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.shipping_date, inputHandler: this.inputHandler, errorText: this.errors.shipping_date })), h("div", { key: '7b274a743a9ca8f3cb7b86facbe12b723b8695e4', class: "col-12" }, h("form-control-textarea", { key: '833a03ac489cfa6fe6991e14a079b104b7b86ddc', label: "Shipping Address", name: "shipping_address", defaultValue: (_d = this.disputeResponse) === null || _d === void 0 ? void 0 : _d.shipping_address, inputHandler: this.inputHandler, errorText: this.errors.shipping_address })), h("div", { key: 'a1363e8014fe90442e1d0f6820bf2b9cf9966c90', class: "col-12" }, h("form-control-file-v2", { key: 'beb99c4b9e898265f8a904984172fb1a6a52cb49', label: "Shipping Documentation", name: "shipping_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.shipping_documentation })))));
|
|
50
50
|
}
|
|
51
51
|
}, [256, "shipping-details", {
|
|
52
52
|
"disputeResponse": [8, "dispute-response"],
|
|
@@ -31,7 +31,7 @@ const TableFiltersMenu = /*@__PURE__*/ proxyCustomElement(class TableFiltersMenu
|
|
|
31
31
|
this.showClearButton = hasFilters(this.params);
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h("div", { key: '
|
|
34
|
+
return (h("div", { key: '467c453ff98299885dfde3e25a7911211220bd21', class: "d-flex gap-2" }, h("div", { key: '3a25ceab0cccbcde3fb9e3073e4e581f6a08591a', class: "dropdown pb-3" }, h("button", { key: '833cbfe0e73c388971ef9eca8240198251b4271e', type: "button dropdown-toggle", ref: (el) => (this.anchorButton = el), class: "btn btn-primary dropdown-toggle", part: dropdownMenuButton, "data-test-id": "open-filters-button", "data-bs-toggle": "dropdown" }, "Filters"), h("custom-popper", { key: '00371051688c5b62e60c7c42cf92d8261019bd06', offset: [20, 10], strategy: "fixed", anchorRef: this.anchorButton, trigger: "click" }, h("form", { key: 'a8d97a8bde738a0ddf9f194487bc6cec590d384d', class: "dropdown-menu", part: dropdownMenu, "data-test-id": "filter-menu", ref: (el) => (this.menu = el), onSubmit: (e) => e.preventDefault() }, h("slot", { key: '97b96488fff4b33f90fdab113511a529234da457' })))), h("div", { key: '41c110a579fa3da4c9a8711fec9a6b1a0ee07218' }, h(Button, { key: '83ee38c0db83d3d25779a462fc123cedc7128870', variant: "secondary", onClick: () => this.clearParams(), hidden: !this.showClearButton, "data-test-id": "clear-filters-button" }, "Clear Filters"))));
|
|
35
35
|
}
|
|
36
36
|
static get watchers() { return {
|
|
37
37
|
"params": ["watchParamsHandler"]
|
|
@@ -26,7 +26,7 @@ const TerminalQuantitySelector = /*@__PURE__*/ proxyCustomElement(class Terminal
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (h("div", { key: '
|
|
29
|
+
return (h("div", { key: '63237aed2228e101ed2a882e4993865afa886a09', class: "rounded shadow-sm card p-2", part: card }, h("div", { key: '5dccc2e66eb1555f5d60a5c9b0e4250ff003194f', class: "d-flex gap-3" }, h("div", { key: '6da3cf0ddc09d0a80969f4a109320190c9ec26a4', class: "d-flex align-items-center" }, h("img", { key: '900fbef983071b6838dc62ef62aeecc7a83c22fc', src: this.imageUrl, alt: this.modelName, height: 75, width: 75, part: image })), h("div", { key: '9c2f602f486233d1749faaadaa5c5c4a46e2e86b', class: "d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center" }, h("div", { key: 'b2f2a90050ad90240c249a62b5dfb353c4a9d6f3', class: "row" }, h("div", { key: '816a91666b31568fb7a26e2d34c2894c79d67303', class: "col-6 d-flex gap-2" }, this.modelName, h("form-control-tooltip", { key: '48e67406ec6cb6095a5bf0216595800172bd01b7', helpText: this.description })), h("div", { key: 'eb8b820f364f724f3deef236c7d0f16a6afa0e10', class: "col-6 d-flex justify-content-end align-items-center" }, h("button", { key: 'fc01f21c067d963c61b2aeb4ee29b172dec7ab54', class: "p-0 minus btn", onClick: this.removeUnit, part: buttonLink }, "-"), h("div", { key: 'bc61bbe36b0031ba78bfc5789a8359f3848afbca', class: "w-25 text-center" }, this.selectedQuantity), h("button", { key: '30061e988706cb075066ebf7876dab5a65d855dd', class: "p-0 plus btn", onClick: this.addUnit, part: buttonLink }, "+")))))));
|
|
30
30
|
}
|
|
31
31
|
}, [256, "terminal-quantity-selector", {
|
|
32
32
|
"modelName": [1, "model-name"],
|
|
@@ -59,8 +59,12 @@ export interface ICheckout {
|
|
|
59
59
|
bank_account_verification?: boolean;
|
|
60
60
|
apple_payments?: boolean;
|
|
61
61
|
google_payments?: boolean;
|
|
62
|
+
paypal_payments?: boolean;
|
|
62
63
|
};
|
|
63
64
|
bnpl?: IBnpl;
|
|
65
|
+
paypal?: {
|
|
66
|
+
provider_client_id: string;
|
|
67
|
+
};
|
|
64
68
|
total_amount: number;
|
|
65
69
|
insurance_amount: number;
|
|
66
70
|
status: ICheckoutStatus;
|
|
@@ -92,8 +96,12 @@ export declare class Checkout implements ICheckout {
|
|
|
92
96
|
bank_account_verification?: boolean;
|
|
93
97
|
apple_payments?: boolean;
|
|
94
98
|
google_payments?: boolean;
|
|
99
|
+
paypal_payments?: boolean;
|
|
95
100
|
};
|
|
96
101
|
bnpl?: IBnpl;
|
|
102
|
+
paypal?: {
|
|
103
|
+
provider_client_id: string;
|
|
104
|
+
};
|
|
97
105
|
total_amount: number;
|
|
98
106
|
insurance_amount: number;
|
|
99
107
|
status: ICheckoutStatus;
|
|
@@ -117,12 +125,16 @@ export declare enum ICheckoutPaymentMode {
|
|
|
117
125
|
bank_account = "Bank Account",
|
|
118
126
|
card_present = "Card Present",
|
|
119
127
|
apple_pay = "Apple Pay",
|
|
128
|
+
paypal = "PayPal",
|
|
129
|
+
venmo = "Venmo",
|
|
120
130
|
unknown = ""
|
|
121
131
|
}
|
|
122
132
|
export declare enum ICheckoutPaymentModeParam {
|
|
123
133
|
bnpl = "bnpl",
|
|
124
134
|
ecom = "ecom",
|
|
125
|
-
apple_pay = "apple_pay"
|
|
135
|
+
apple_pay = "apple_pay",
|
|
136
|
+
paypal = "paypal",
|
|
137
|
+
venmo = "venmo"
|
|
126
138
|
}
|
|
127
139
|
export declare enum ICheckoutStatus {
|
|
128
140
|
created = "created",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type PaypalFundingSource = 'paypal' | 'venmo';
|
|
2
|
+
export interface IPaypalOrder {
|
|
3
|
+
id: string;
|
|
4
|
+
checkout_id: string;
|
|
5
|
+
funding_source: PaypalFundingSource;
|
|
6
|
+
provider_order_id: string;
|
|
7
|
+
status?: string;
|
|
8
|
+
payer_action_url?: string | null;
|
|
9
|
+
amount?: number;
|
|
10
|
+
currency?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IApiResponse } from '..';
|
|
2
|
+
import { IPaypalOrder, PaypalFundingSource } from '../Paypal';
|
|
3
|
+
export interface IPaypalService {
|
|
4
|
+
createPaypalOrder(authToken: string, checkoutId: string, fundingSource: PaypalFundingSource, signal?: AbortSignal): Promise<IApiResponse<IPaypalOrder>>;
|
|
5
|
+
}
|
|
6
|
+
export declare class PaypalService implements IPaypalService {
|
|
7
|
+
createPaypalOrder(authToken: string, checkoutId: string, fundingSource: PaypalFundingSource, signal?: AbortSignal): Promise<IApiResponse<IPaypalOrder>>;
|
|
8
|
+
}
|
|
@@ -4,7 +4,9 @@ export declare enum PAYMENT_MODE {
|
|
|
4
4
|
ECOM = "ecom",
|
|
5
5
|
BNPL = "bnpl",
|
|
6
6
|
APPLE_PAY = "apple_pay",
|
|
7
|
-
GOOGLE_PAY = "google_pay"
|
|
7
|
+
GOOGLE_PAY = "google_pay",
|
|
8
|
+
PAYPAL = "paypal",
|
|
9
|
+
VENMO = "venmo"
|
|
8
10
|
}
|
|
9
11
|
export declare enum PAYMENT_METHOD_TYPES {
|
|
10
12
|
CARD = "card",
|
|
@@ -22,7 +24,9 @@ export declare enum PAYMENT_METHODS {
|
|
|
22
24
|
APPLE_PAY = "apple_pay",
|
|
23
25
|
GOOGLE_PAY = "google_pay",
|
|
24
26
|
SEZZLE = "sezzle",
|
|
25
|
-
PLAID = "plaid"
|
|
27
|
+
PLAID = "plaid",
|
|
28
|
+
PAYPAL = "paypal",
|
|
29
|
+
VENMO = "venmo"
|
|
26
30
|
}
|
|
27
31
|
export type SelectedPaymentMethod = {
|
|
28
32
|
id?: string;
|