@justifi/webcomponents 6.0.0-rc.10 → 6.0.0-rc.11
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/{check-pkg-version-DiQ-d5Nl.js → check-pkg-version-B85-DAz3.js} +1 -1
- package/dist/cjs/{checkout.store-BGvYPPz0.js → checkout.store-CDQXaOcP.js} +2 -0
- package/dist/cjs/checkouts-list-core.cjs.entry.js +1 -1
- package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
- package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/form-control-date.cjs.entry.js +2 -2
- package/dist/cjs/form-control-select_2.cjs.entry.js +2 -2
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
- package/dist/cjs/justifi-apple-pay.cjs.entry.js +1 -1
- package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +9 -8
- package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +74 -74
- package/dist/cjs/justifi-checkout.cjs.entry.js +5 -5
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +3 -3
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +5 -5
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-Be2aoTf8.js → package-BL9z319y.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +1 -1
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +1 -1
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +1 -1
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/terminals-list-core.cjs.entry.js +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/index.js +1 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/checkout/checkout.js +2 -2
- package/dist/collection/components/checkout/save-new-payment-method.js +26 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
- 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-core.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/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/modular-checkout/modular-checkout.js +42 -32
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.js +6 -38
- package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.test.js +6 -5
- package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
- package/dist/collection/components/order-terminals/order-terminals.js +1 -1
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +3 -3
- package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +21 -2
- package/dist/collection/store/checkout.store.js +2 -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-select.js +2 -2
- package/dist/docs.json +55 -31
- package/dist/esm/{check-pkg-version-CAnDiqiu.js → check-pkg-version-CeFbumLK.js} +1 -1
- package/dist/esm/{checkout.store-CCdFOPCK.js → checkout.store-CKOWX2jL.js} +2 -0
- package/dist/esm/checkouts-list-core.entry.js +1 -1
- package/dist/esm/custom-popper_2.entry.js +2 -2
- package/dist/esm/form-control-checkbox.entry.js +2 -2
- package/dist/esm/form-control-date.entry.js +2 -2
- package/dist/esm/form-control-select_2.entry.js +2 -2
- package/dist/esm/gross-payment-chart-core.entry.js +1 -1
- package/dist/esm/hidden-input_2.entry.js +1 -1
- package/dist/esm/justifi-additional-statement_8.entry.js +8 -8
- package/dist/esm/justifi-apple-pay.entry.js +1 -1
- package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +9 -8
- package/dist/esm/justifi-business-details.entry.js +2 -2
- package/dist/esm/justifi-business-form.entry.js +2 -2
- package/dist/esm/justifi-checkout-summary_7.entry.js +74 -74
- package/dist/esm/justifi-checkout.entry.js +5 -5
- package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
- package/dist/esm/justifi-checkouts-list.entry.js +3 -3
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +3 -3
- package/dist/esm/justifi-dispute-notification_3.entry.js +5 -5
- package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
- package/dist/esm/justifi-order-terminals.entry.js +3 -3
- package/dist/esm/justifi-payment-details.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
- package/dist/esm/justifi-payment-transactions-list.entry.js +3 -3
- package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +3 -3
- package/dist/esm/justifi-payout-details.entry.js +2 -2
- package/dist/esm/justifi-payout-transactions-list.entry.js +3 -3
- package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +3 -3
- package/dist/esm/justifi-refund-payment.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +2 -2
- package/dist/esm/justifi-terminal-orders-list.entry.js +3 -3
- package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminals-list.entry.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-CnWtPu8L.js → package-CxLeEBSa.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +8 -8
- package/dist/esm/payment-method-option.entry.js +1 -1
- package/dist/esm/payments-list-core.entry.js +1 -1
- package/dist/esm/payout-details-core.entry.js +3 -3
- package/dist/esm/payouts-list-core.entry.js +1 -1
- package/dist/esm/table-filters-menu.entry.js +1 -1
- package/dist/esm/terminal-orders-list-core.entry.js +1 -1
- package/dist/esm/terminal-quantity-selector.entry.js +1 -1
- package/dist/esm/terminals-list-core.entry.js +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/bank-account.js +2 -2
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-form2.js +2 -2
- package/dist/module/checkout.store.js +2 -0
- package/dist/module/checkouts-list-core2.js +1 -1
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +1 -1
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/dispute-response.js +1 -1
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.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-select2.js +2 -2
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/justifi-checkout.js +2 -2
- package/dist/module/justifi-checkouts-list-filters.js +1 -1
- package/dist/module/justifi-checkouts-list.js +1 -1
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-order-terminals.js +1 -1
- package/dist/module/justifi-payment-transactions-list.js +1 -1
- package/dist/module/justifi-payments-list-filters.js +2 -2
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +1 -1
- package/dist/module/justifi-payouts-list-filters.js +2 -2
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +2 -2
- package/dist/module/justifi-terminal-orders-list.js +1 -1
- package/dist/module/justifi-terminals-list-filters.js +1 -1
- package/dist/module/justifi-terminals-list.js +1 -1
- package/dist/module/modular-checkout.js +42 -12
- package/dist/module/package.js +1 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/plaid-payment-method.js +9 -61
- package/dist/module/plaid.service.js +26 -0
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/save-new-payment-method.js +3 -1
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/summary.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +1 -1
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminals-list-core2.js +1 -1
- package/dist/module/tokenize-payment-method.js +3 -2
- package/dist/types/api/index.d.ts +2 -2
- package/dist/types/components/checkout/save-new-payment-method.d.ts +1 -0
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +1 -2
- package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.d.ts +0 -1
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +1 -0
- package/dist/types/components.d.ts +10 -8
- package/dist/types/index.d.ts +1 -0
- package/dist/types/store/checkout.store.d.ts +2 -0
- package/dist/webcomponents/p-06283633.entry.js +1 -0
- package/dist/webcomponents/{p-af9c4174.entry.js → p-0ff04742.entry.js} +1 -1
- package/dist/webcomponents/{p-eddaca4e.entry.js → p-19c7e6a5.entry.js} +1 -1
- package/dist/webcomponents/{p-89ecd650.entry.js → p-2430761e.entry.js} +1 -1
- package/dist/webcomponents/{p-1a08b47f.entry.js → p-2953b537.entry.js} +1 -1
- package/dist/webcomponents/{p-b7d2f2eb.entry.js → p-29d05416.entry.js} +1 -1
- package/dist/webcomponents/p-2b39ab97.entry.js +1 -0
- package/dist/webcomponents/{p-e8a67dc7.entry.js → p-2d14f144.entry.js} +1 -1
- package/dist/webcomponents/{p-7bcfaff4.entry.js → p-2f658457.entry.js} +1 -1
- package/dist/webcomponents/{p-8a6718b6.entry.js → p-35ae3497.entry.js} +1 -1
- package/dist/webcomponents/{p-d62cd269.entry.js → p-3fe420c4.entry.js} +1 -1
- package/dist/webcomponents/p-402caa84.entry.js +1 -0
- package/dist/webcomponents/p-406ebea6.entry.js +1 -0
- package/dist/webcomponents/{p-17093105.entry.js → p-42d4ea58.entry.js} +1 -1
- package/dist/webcomponents/{p-9a2c044f.entry.js → p-431ba789.entry.js} +1 -1
- package/dist/webcomponents/{p-2fa34c82.entry.js → p-46b6142b.entry.js} +1 -1
- package/dist/webcomponents/{p-bbc4b4cb.entry.js → p-48e32b40.entry.js} +1 -1
- package/dist/webcomponents/p-4c3d8cef.entry.js +1 -0
- package/dist/webcomponents/p-4e1653c2.entry.js +1 -0
- package/dist/webcomponents/{p-9e8021a1.entry.js → p-522e7b24.entry.js} +1 -1
- package/dist/webcomponents/p-537aa971.entry.js +1 -0
- package/dist/webcomponents/{p-1eb2b847.entry.js → p-53daaca6.entry.js} +1 -1
- package/dist/webcomponents/p-5c17360c.entry.js +1 -0
- package/dist/webcomponents/{p-7dd74e6f.entry.js → p-62d3d62c.entry.js} +1 -1
- package/dist/webcomponents/p-63300c63.entry.js +1 -0
- package/dist/webcomponents/{p-f7c4222f.entry.js → p-67332ff8.entry.js} +1 -1
- package/dist/webcomponents/p-7186f4a7.entry.js +1 -0
- package/dist/webcomponents/{p-62d12566.entry.js → p-71f9c48a.entry.js} +1 -1
- package/dist/webcomponents/p-778e9fe9.entry.js +1 -0
- package/dist/webcomponents/{p-9fcff84c.entry.js → p-9c997d0b.entry.js} +1 -1
- package/dist/webcomponents/{p-a55f07af.entry.js → p-9c9a4eb7.entry.js} +1 -1
- package/dist/webcomponents/p-9d37b85f.entry.js +1 -0
- package/dist/webcomponents/p-CY7N7-0P.js +1 -0
- package/dist/webcomponents/p-CxLeEBSa.js +1 -0
- package/dist/webcomponents/{p-c599e526.entry.js → p-a6748a1d.entry.js} +1 -1
- package/dist/webcomponents/{p-54ca3070.entry.js → p-a7ac285c.entry.js} +1 -1
- package/dist/webcomponents/p-bc45aa92.entry.js +1 -0
- package/dist/webcomponents/{p-0803d130.entry.js → p-bc81d165.entry.js} +1 -1
- package/dist/webcomponents/p-c4c88660.entry.js +1 -0
- package/dist/webcomponents/p-c8bed49a.entry.js +1 -0
- package/dist/webcomponents/{p-464e7a8e.entry.js → p-e13d6ed3.entry.js} +1 -1
- package/dist/webcomponents/{p-5ad0f438.entry.js → p-e6d1ed81.entry.js} +1 -1
- package/dist/webcomponents/{p-50392803.entry.js → p-e7b66120.entry.js} +1 -1
- package/dist/webcomponents/p-e9a5c837.entry.js +1 -0
- package/dist/webcomponents/{p-ab6a5dc9.entry.js → p-ed901f9d.entry.js} +1 -1
- package/dist/webcomponents/{p-f4d0cdf0.entry.js → p-f3c312b1.entry.js} +1 -1
- package/dist/webcomponents/p-f849a34e.entry.js +1 -0
- package/dist/webcomponents/{p-DZYcH7jA.js → p-xuDuc7qr.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-117b7f47.entry.js +0 -1
- package/dist/webcomponents/p-1bcb3852.entry.js +0 -1
- package/dist/webcomponents/p-2f7aa249.entry.js +0 -1
- package/dist/webcomponents/p-336c31b3.entry.js +0 -1
- package/dist/webcomponents/p-3f33c940.entry.js +0 -1
- package/dist/webcomponents/p-442f86e8.entry.js +0 -1
- package/dist/webcomponents/p-6cf30a24.entry.js +0 -1
- package/dist/webcomponents/p-729dbd8f.entry.js +0 -1
- package/dist/webcomponents/p-85f20746.entry.js +0 -1
- package/dist/webcomponents/p-8d6b81ba.entry.js +0 -1
- package/dist/webcomponents/p-8f7396b1.entry.js +0 -1
- package/dist/webcomponents/p-98cffba9.entry.js +0 -1
- package/dist/webcomponents/p-9fc0ea58.entry.js +0 -1
- package/dist/webcomponents/p-CnWtPu8L.js +0 -1
- package/dist/webcomponents/p-DIjoBk44.js +0 -1
- package/dist/webcomponents/p-d9dd7d24.entry.js +0 -1
- package/dist/webcomponents/p-dd7352da.entry.js +0 -1
- package/dist/webcomponents/p-ef32fe0e.entry.js +0 -1
- package/dist/webcomponents/p-f1f0b405.entry.js +0 -1
package/dist/collection/components/dispute-management/dispute-response/additional-statement.js
CHANGED
|
@@ -29,7 +29,7 @@ export class AdditionalStatement {
|
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
31
|
var _a, _b;
|
|
32
|
-
return (h("div", { key: '
|
|
32
|
+
return (h("div", { key: '4d0fbca80a880577be7853efc494807d7d1e2fd9' }, h("div", { key: '6c3a82afe01b0812807a8e19dc750d4e9901876a', class: "row gy-3" }, h("div", { key: '89e7f50b0c6d67249b892caf8c6b2d78c1742309', class: "col-12" }, h("h2", { key: 'e0c4db3f5330cdd0e00897da0a54b898f0056f93', class: "h5", part: heading5 }, "Additional Evidence")), h("div", { key: '58d4506d4bc0470afa4de87fdcf25ce4397d4180', class: "col-12" }, h("form-control-textarea", { key: 'aee641d90803d0ff483cfe75d881e3259303d4bc', label: "Is there anything else you would like to say about this dispute?", name: "additional_statement", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.additional_statement, inputHandler: this.inputHandler, errorText: this.errors.additional_statement })), h("div", { key: '19377eb6382adc9cb69ec57fe7928b7d477110d8', class: "col-12" }, h("form-control-file-v2", { key: '9529de236046398904d4780fcedada3a67ce4daf', label: "Additional files", name: "uncategorized_file", multiple: true, helpText: "Upload any additional pieces of evidence that have not already been provided.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.uncategorized_file })))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "justifi-additional-statement"; }
|
|
35
35
|
static get properties() {
|
package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js
CHANGED
|
@@ -28,7 +28,7 @@ export class CancellationPolicy {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
var _a, _b, _c;
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: 'ac10b9b21d37179211d74118b06f561e95d9ea71' }, h("div", { key: '8ff525f8ed20828ed153b7dc23cb84a0277b81d4', class: "row gy-3" }, h("div", { key: '4f22ed526972a6625dc77b3ab0ab5b074277d7b2', class: "col-12" }, h("h2", { key: 'd78d54468b91edd99238bd757f871b18ec5b58ca', class: "h5", part: heading5 }, "Cancellation Policy")), h("div", { key: '629c9660446cbba8951cd8396d9b72aea71c731b', class: "col-12" }, h("form-control-textarea", { key: '60e0b4903e4ddec6915d23617f215d5d2ea20935', label: "Cancellation Policy Disclosure", name: "cancellation_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.cancellation_policy_disclosure, inputHandler: this.inputHandler, errorText: this.errors.cancellation_policy_disclosure })), h("div", { key: 'aec3e4561f880b86ba6f5c7ce0298e45b837c2fd', class: "col-12" }, h("form-control-textarea", { key: 'e77d126709037cb22e6e4fcf2228652ffeb672ee', label: "Cancellation Rebuttal", name: "cancellation_rebuttal", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.cancellation_rebuttal, inputHandler: this.inputHandler, errorText: this.errors.cancellation_rebuttal })), h("div", { key: '407c071a0f7a1e488eb2ef4d522e515138a5ed2c', class: "col-12" }, h("form-control-file-v2", { key: '15dfacd8e1de439848d12ecec9a0f5ffac259484', label: "Upload Cancellation Policy", name: "cancellation_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.cancellation_policy })))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "justifi-cancellation-policy"; }
|
|
34
34
|
static get properties() {
|
|
@@ -28,7 +28,7 @@ export class CustomerDetails {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
var _a, _b, _c, _d, _e;
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: 'e09402d1c3ca9bb8f3a243c22bec2e9d908d661f' }, h("div", { key: '67a1038f92a9a9711ca37d353af7a06b87cbe0a8', class: "row gy-3" }, h("div", { key: '1be2249539c434bf3faf847b4202ff2f421d15a3', class: "col-12" }, h("h2", { key: '17d8bc1b31dfa77f08500ff4029f572049d9e1ce', class: "h5", part: heading5 }, "Customer Details")), h("div", { key: '3e218b39c8f5dab178cc8b23caf403e1a912694c', class: "col-12" }, h("form-control-text", { key: 'ab28a2176315c3ecd1ff984a599589a81375f4e0', label: "Full Name", name: "customer_name", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_name, inputHandler: this.inputHandler, errorText: this.errors.customer_name })), h("div", { key: 'e1739728748de575e39f29018cd1139d75232611', class: "col-12" }, h("form-control-text", { key: '9f2aec120b08ac793be93f9c990d81a74c9e57d2', label: "Email", name: "customer_email_address", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.customer_email_address, inputHandler: this.inputHandler, errorText: this.errors.customer_email_address })), h("div", { key: '9be7e4a85edfc9bc95e8ede96ebc81f4777f1cdb', class: "col-12" }, h("form-control-textarea", { key: '100e419cc2064509aaa03c76e2898fc7df85e950', label: "Billing Address", name: "customer_billing_address", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.customer_billing_address, inputHandler: this.inputHandler, errorText: this.errors.customer_billing_address })), h("div", { key: '94da95bb013738aefb17088203ee14e07f159ae0', class: "col-12" }, h("form-control-file-v2", { key: '1ab77a12a715fbb82c0bc1c9f9081e54fd3fef0e', label: "Customer Signature", name: "customer_signature", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.customer_signature })), h("div", { key: '88eed9387758b86332137fa64b4e3b3c5825d908', class: "col-12" }, h("form-control-file-v2", { key: '0b654ffcf253c639b07ffe03450a87550caaa75a', label: "Customer Communication", name: "customer_communication", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.customer_communication })))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "justifi-customer-details"; }
|
|
34
34
|
static get properties() {
|
package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js
CHANGED
|
@@ -156,7 +156,7 @@ export class DisputeResponseCore {
|
|
|
156
156
|
return this.currentStep === 0;
|
|
157
157
|
}
|
|
158
158
|
render() {
|
|
159
|
-
return (h("div", { key: '
|
|
159
|
+
return (h("div", { key: '20d075178a9d88cd73be32e52f8df6d3d360f8d7', class: "row gy-3" }, h("div", { key: '6c1bc735f1a15709c596b5bea7cc3ce50e9a73f5', class: "col-12" }, h("h1", { key: '27a0804924937ee7a8d01265bd0da2d9dd31d301', class: "h4", part: heading4 }, "Counter dispute")), h("div", { key: 'b60822e91425c5c4af003169f47fd725daf9fb0f', class: "col-12" }, this.currentStepComponent), h("div", { key: 'd1be3f6be53de37836275067070cf4b5a2eb3e4a', class: "col-12" }, h("div", { key: '48c8725d8de8b658e59ccfa851a6af6638e19ca5', class: "d-flex gap-2 mt-4 justify-content-end" }, this.isFirstStep ? (h(Button, { variant: "secondary", onClick: () => this.onCancel(), disabled: this.isLoading, isLoading: this.isLoading }, "Cancel")) : (h(Button, { variant: "secondary", onClick: () => this.onBack(), disabled: this.isLoading, isLoading: this.isLoading }, "Back")), this.isLastStep ? (h(Button, { variant: "primary", onClick: () => this.onSubmit(), disabled: this.isLoading, isLoading: this.isLoading }, "Submit Counter Dispute")) : (h(Button, { variant: "primary", onClick: () => this.onNext(), disabled: this.isLoading, isLoading: this.isLoading }, "Next"))))));
|
|
160
160
|
}
|
|
161
161
|
static get is() { return "justifi-dispute-response-core"; }
|
|
162
162
|
static get properties() {
|
|
@@ -55,7 +55,7 @@ export class DisputeResponse {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
|
-
return (h(StyledHost, { key: '
|
|
58
|
+
return (h(StyledHost, { key: 'dbdfd59a21c7e8ea4dfdaecb91f885f82540a27c' }, h("justifi-dispute-response-core", { key: '3cff38e5995f0033c45c54fa195ffeebc27e189e', "onError-event": this.handleErrorEvent, "dispute-id": this.disputeId, disputeResponse: this.disputeResponse, createDisputeEvidence: this.createDisputeEvidence, updateDisputeResponse: this.updateDisputeResponse, submitDisputeResponse: this.submitDisputeResponse })));
|
|
59
59
|
}
|
|
60
60
|
;
|
|
61
61
|
static get is() { return "justifi-dispute-response"; }
|
|
@@ -28,7 +28,7 @@ export class DuplicateCharge {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
var _a, _b, _c;
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: '2a51ce4a6859bdd9b6fc3376f08726a682a61587' }, h("div", { key: '49765fde2654e0eda955e4569d3003749d04b1a1', class: "row gy-3" }, h("div", { key: '9a04ce529407e436c5c7dc363525821116eb3271', class: "col-12" }, h("h2", { key: '6d8c1c64da56d19e3adedc08171b7096084adb0b', class: "h5", part: heading5 }, "Duplicate Charge")), h("div", { key: '3a4be2ced9e35974864a6fb3504dff58d792e623', class: "col-12" }, h("form-control-text", { key: 'a3d86e2059a017d931619d1e53a24e60e9f95282', label: "Original Payment ID", name: "duplicate_charge_original_payment_id", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.duplicate_charge_original_payment_id, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_original_payment_id })), h("div", { key: '407386824a21bc40a802366ebf4c8e0cc2aef908', class: "col-12" }, h("form-control-textarea", { key: 'c4b5a5026eeffedeae11d9f6fd74ecd4e288894c', label: "Duplicate Charge Explanation", name: "duplicate_charge_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.duplicate_charge_explanation, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_explanation })), h("div", { key: 'cc4a805b1c5574436a19258007cd3271831e9967', class: "col-12" }, h("form-control-file-v2", { key: '49d84e63f7acd6dd953429063fc9206373482d16', label: "Duplicate Charge Documentation", name: "duplicate_charge_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.duplicate_charge_documentation })))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "justifi-duplicate-charge"; }
|
|
34
34
|
static get properties() {
|
package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js
CHANGED
|
@@ -28,7 +28,7 @@ export class ElectronicEvidence {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
var _a, _b;
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: '41d5fd40ac6fc4fffddb7913b647046869882dfd' }, h("div", { key: '265d25bbd6423f6514a1bb4fab1574631113783d', class: "row gy-3" }, h("div", { key: 'e55e31fbfaa88eacd940622551e37951e54aa321', class: "col-12" }, h("h2", { key: '710bec9fdf42a7ddedbaed447ab1212bc9d6be9c', class: "h5", part: heading5 }, "Electronic Evidence")), h("div", { key: '81ad6d6af441041c0aa0f39c732d528e9d966b61', class: "col-12" }, h("form-control-text", { key: 'b9a3ae49cc394e28baadec0ca9904e5c25996921', label: "Purchase IP Address", name: "customer_purchase_ip_address", helpText: "The IP address used by the customer during the purchase.", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_purchase_ip_address, inputHandler: this.inputHandler, errorText: this.errors.customer_purchase_ip_address })), h("div", { key: '53c9b52e9ff3a988805c9e72dca2038ac8cb8483', class: "col-12" }, h("form-control-file-v2", { key: 'bd2bd5d7131bf7c92a7d11042211a9b7764dbbd7', label: "Activity Logs", name: "activity_log", helpText: "Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.activity_log })))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "justifi-electronic-evidence"; }
|
|
34
34
|
static get properties() {
|
package/dist/collection/components/dispute-management/dispute-response/product-or-service.js
CHANGED
|
@@ -28,7 +28,7 @@ export class ProductOrService {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
var _a, _b, _c;
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: 'c93f5bc2e64f5e2964eb033cb6c972283841876b' }, h("div", { key: '7986f459ba9cc0d7e896a418ba4bd9e51148d36f', class: "row gy-3" }, h("div", { key: 'ddf033f861a5b91961294600a5d6d7261937711c', class: "col-12" }, h("h2", { key: '2a33306859a2982fbb3457831c29a98cd3e86c4f', class: "h5", part: heading5 }, "Product & Service Details")), h("div", { key: '385212b08cbdcd4d610c806f1f9b5d18446a9831', class: "col-12" }, h("form-control-text", { key: '210a8c07288473e93737e93659dc91e7f813e306', 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: '5a52ad00db803d2ddd0afe6ee7cde4b907e1ad1a', class: "col-12" }, h("form-control-date", { key: '1bdef3f3391b4a97aa3e97aefac3e29b5520f620', 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: 'd4fc75d0f175914e2fbb134e6449e1d45742a9f3', class: "col-12" }, h("form-control-file-v2", { key: '62e1ae0f42103f49bc5c93427b62ad90570634f8', 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 })))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "justifi-product-or-service"; }
|
|
34
34
|
static get properties() {
|
|
@@ -28,7 +28,7 @@ export class RefundPolicy {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
var _a, _b, _c, _d;
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: 'a300941b5472ab2cfd1dd212fbab4b280c132f73' }, h("div", { key: '1f11681c815c4f0676da384884b758b1bd49f3d1', class: "row gy-3" }, h("div", { key: '56f1575a5e2c7da5d725ca224b5d64163de0fd23', class: "col-12" }, h("h2", { key: '9ccb22c016184f233d1096b66380473a8e62c269', class: "h5", part: heading5 }, "Refund Policy and Receipt")), h("div", { key: 'e602ac3e5fe3cbd3d12910d66cc8d879295a9e4a', class: "col-12" }, h("form-control-textarea", { key: 'f6e6dae3ab7d383da16fa5308933a77cf63f11d8', 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: '8cdb3b28847683f5fd4594eb64522c899e5ef993', class: "col-12" }, h("form-control-textarea", { key: 'c8e4b7c760cbe8bb9cb30818b0c29f6012092649', 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: '95c376af4517e3ee23afd64d479a6ae051f03d72', class: "col-12" }, h("form-control-file-v2", { key: 'dc2ef0d5911dbab2d820bc46563bbb7218390501', 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: 'b9d6ffb85e987f5037e414dde26e72f5219c0ea8', class: "col-12" }, h("form-control-file-v2", { key: 'c6513b7a2f9d68c2df2be8c21da0d16e03a6a885', label: "Upload Receipt", name: "receipt", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.receipt })))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "justifi-refund-policy"; }
|
|
34
34
|
static get properties() {
|
|
@@ -29,7 +29,7 @@ export class ShippingDetails {
|
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
31
|
var _a, _b, _c, _d, _e;
|
|
32
|
-
return (h("div", { key: '
|
|
32
|
+
return (h("div", { key: '4556d3dbedce4833b63302f78f467ccf71cce02c' }, h("div", { key: '18569ca4c37bbf7b82a13db6c8ae878d0b2c12fa', class: "row gy-3" }, h("div", { key: '001f41285eda4237686861df1aaaad24836fbf7c', class: "col-12" }, h("h2", { key: '3193324c11f5ca7c81de99cd224e2f8a8d21a43d', class: "h5", part: heading5 }, "Shipping Details")), h("div", { key: 'e312e8aee070bee2b317dc7f6f9e616dc3cbd26e', class: "col-12" }, h("form-control-text", { key: '69a90af0a8c328b7e0eba67d39ac3f2f4ffd3439', 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: '5c4ca04204a7467918e2e130d6ee437a4c5db85b', class: "col-12" }, h("form-control-text", { key: '266415e75633d4d4b5062f56ec43d47e60e03aa1', 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: '90088259556bbfce03c87af029ea53efc4c394de', class: "col-12" }, h("form-control-date", { key: 'b5eaf92844540c4536f8296e8668ed7e826dfd1f', 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: '180c72ec5c37cb7bca2edbf3d158d4973c149084', class: "col-12" }, h("form-control-textarea", { key: '924cae54e30cba491dd4ce10bb514a7374a1d793', 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: 'b7f06251c0a03bec0b6622b9d05c7c55d7d6bb13', class: "col-12" }, h("form-control-file-v2", { key: '832da84ac1f4822ac882c03d60b169a2351ffb8e', 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 })))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "justifi-shipping-details"; }
|
|
35
35
|
static get properties() {
|
|
@@ -19,7 +19,7 @@ export class TableFiltersMenu {
|
|
|
19
19
|
this.showClearButton = hasFilters(this.params);
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h("div", { key: '
|
|
22
|
+
return (h("div", { key: 'db1619bbaa73d4102c684b2ca1b4897d1c36fa66', class: "d-flex gap-2" }, h("div", { key: '68f4538d4465aadbf20e322264e219ce7ca8078a', class: "dropdown pb-3" }, h("button", { key: 'cc1835756c1fa2a24a4bbc4ec2960caca0d24e75', 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: '14f88ecd195fcf3770cadd71659b00d4c117c460', offset: [20, 10], strategy: "fixed", anchorRef: this.anchorButton, trigger: "click" }, h("form", { key: 'd33a6875f30413f3a2f5b8d706cf0bf0e3d6620a', class: "dropdown-menu", part: dropdownMenu, "data-test-id": "filter-menu", ref: (el) => (this.menu = el), onSubmit: (e) => e.preventDefault() }, h("slot", { key: '5923bb3684fc9f710a6686d9bf90a6d0f35a1818' })))), h("div", { key: 'eba66abc4ef60bf7603fd9459cf4040ed6105e8c' }, h(Button, { key: 'f5de28962ac56636904cee2a5e5d41204e07143c', variant: "secondary", onClick: () => this.clearParams(), hidden: !this.showClearButton, "data-test-id": "clear-filters-button" }, "Clear Filters"))));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "table-filters-menu"; }
|
|
25
25
|
static get properties() {
|
|
@@ -67,7 +67,7 @@ export class GrossPaymentChartCore {
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
render() {
|
|
70
|
-
return (h(Host, { key: '
|
|
70
|
+
return (h(Host, { key: '663505aa79e84647ccc612ba671910a2cbc9e27d' }, this.loading && h(Spinner, { key: '2c0a00781ec16313786e76e2d95f4cddae5d3cb9' }), !this.errorMessage ? h("canvas", { id: "chart", ref: (elem) => this.chartRef = elem }) : ErrorState(this.errorMessage)));
|
|
71
71
|
}
|
|
72
72
|
static get is() { return "gross-payment-chart-core"; }
|
|
73
73
|
static get properties() {
|
|
@@ -5,11 +5,12 @@ import { checkPkgVersion } from "../../utils/check-pkg-version";
|
|
|
5
5
|
import { ComponentErrorCodes, ComponentErrorMessages, ComponentErrorSeverity, ICheckoutStatus, PaymentMethodTypes, } from "../../api";
|
|
6
6
|
import { makeCheckoutComplete, makeGetCheckout, } from "../../actions/checkout/checkout-actions";
|
|
7
7
|
import { CheckoutService } from "../../api/services/checkout.service";
|
|
8
|
+
import { PlaidService } from "../../api/services/plaid.service";
|
|
8
9
|
import { insuranceValues, insuranceValuesOn, hasInsuranceValueChanged } from "../insurance/insurance-state";
|
|
9
10
|
import { PAYMENT_MODE } from "./ModularCheckout";
|
|
10
11
|
export class ModularCheckout {
|
|
11
12
|
constructor() {
|
|
12
|
-
this.
|
|
13
|
+
this.plaidService = new PlaidService();
|
|
13
14
|
this.handleApplePayCompleted = (event) => {
|
|
14
15
|
const { success, token, paymentMethodId, error } = event.detail;
|
|
15
16
|
if (success && token) {
|
|
@@ -40,9 +41,6 @@ export class ModularCheckout {
|
|
|
40
41
|
checkoutStore.selectedPaymentMethod = undefined;
|
|
41
42
|
};
|
|
42
43
|
}
|
|
43
|
-
savePaymentMethodChanged(newValue) {
|
|
44
|
-
checkoutStore.savePaymentMethod = newValue;
|
|
45
|
-
}
|
|
46
44
|
connectedCallback() {
|
|
47
45
|
this.observer = new MutationObserver(() => {
|
|
48
46
|
this.queryFormRefs();
|
|
@@ -69,7 +67,6 @@ export class ModularCheckout {
|
|
|
69
67
|
this.analytics = new JustifiAnalytics(this);
|
|
70
68
|
checkPkgVersion();
|
|
71
69
|
checkoutStore.authToken = this.authToken;
|
|
72
|
-
checkoutStore.savePaymentMethod = this.savePaymentMethod;
|
|
73
70
|
this.fetchCheckout();
|
|
74
71
|
// Refresh the checkout data when insurance values actually change (not on initial load)
|
|
75
72
|
insuranceValuesOn("set", (key) => {
|
|
@@ -197,6 +194,7 @@ export class ModularCheckout {
|
|
|
197
194
|
// set the selected payment method to the checkout store from outside the component
|
|
198
195
|
async setSelectedPaymentMethod(paymentMethod) {
|
|
199
196
|
checkoutStore.selectedPaymentMethod = paymentMethod;
|
|
197
|
+
checkoutStore.paymentToken = paymentMethod.id || undefined;
|
|
200
198
|
}
|
|
201
199
|
// getAvailablePaymentMethods removed in favor of checkout-changed event
|
|
202
200
|
// if validation fails, the error will be emitted by the component
|
|
@@ -239,11 +237,13 @@ export class ModularCheckout {
|
|
|
239
237
|
}
|
|
240
238
|
}
|
|
241
239
|
async submitCheckout(submitCheckoutArgs) {
|
|
240
|
+
var _a;
|
|
242
241
|
const isValid = await this.validate();
|
|
243
242
|
const isNewCard = checkoutStore.selectedPaymentMethod.type === PaymentMethodTypes.card &&
|
|
244
243
|
checkoutStore.selectedPaymentMethod.id === undefined;
|
|
245
244
|
const isNewBankAccount = checkoutStore.selectedPaymentMethod.type === PaymentMethodTypes.bankAccount &&
|
|
246
245
|
checkoutStore.selectedPaymentMethod.id === undefined;
|
|
246
|
+
const isPlaid = checkoutStore.selectedPaymentMethod.type === PaymentMethodTypes.plaid;
|
|
247
247
|
const shouldTokenize = isNewCard || isNewBankAccount;
|
|
248
248
|
if (shouldTokenize) {
|
|
249
249
|
const tokenizeResult = await this.tokenizePaymentMethod(submitCheckoutArgs);
|
|
@@ -256,6 +256,41 @@ export class ModularCheckout {
|
|
|
256
256
|
return;
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
|
+
// For Plaid, perform exchange at submit time using stored public token and link token id
|
|
260
|
+
if (isPlaid && !checkoutStore.paymentToken) {
|
|
261
|
+
const publicToken = checkoutStore.plaidPublicToken;
|
|
262
|
+
const linkTokenId = checkoutStore.plaidLinkTokenId;
|
|
263
|
+
if (!publicToken) {
|
|
264
|
+
this.errorEvent.emit({
|
|
265
|
+
message: 'Missing Plaid public token. Please connect your bank.',
|
|
266
|
+
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
267
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
268
|
+
});
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
try {
|
|
272
|
+
const response = await this.plaidService.tokenizeBankAccount(checkoutStore.authToken, checkoutStore.accountId, publicToken, linkTokenId || undefined, checkoutStore.savePaymentMethod ? checkoutStore.paymentMethodGroupId : undefined);
|
|
273
|
+
if (response === null || response === void 0 ? void 0 : response.error) {
|
|
274
|
+
this.errorEvent.emit({
|
|
275
|
+
message: typeof response.error === 'string' ? response.error : response.error.message || 'Failed to tokenize bank account',
|
|
276
|
+
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
277
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
278
|
+
});
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
const paymentMethod = response === null || response === void 0 ? void 0 : response.data;
|
|
282
|
+
const token = ((_a = paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.bank_account) === null || _a === void 0 ? void 0 : _a.token) || (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.token) || (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id);
|
|
283
|
+
checkoutStore.paymentToken = token;
|
|
284
|
+
}
|
|
285
|
+
catch (err) {
|
|
286
|
+
this.errorEvent.emit({
|
|
287
|
+
message: (err === null || err === void 0 ? void 0 : err.message) || 'Plaid exchange error',
|
|
288
|
+
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
289
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
290
|
+
});
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
259
294
|
if (!isValid) {
|
|
260
295
|
this.errorEvent.emit({
|
|
261
296
|
message: "Please fill in all required fields.",
|
|
@@ -270,6 +305,7 @@ export class ModularCheckout {
|
|
|
270
305
|
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
271
306
|
severity: ComponentErrorSeverity.ERROR,
|
|
272
307
|
});
|
|
308
|
+
return;
|
|
273
309
|
}
|
|
274
310
|
let payment;
|
|
275
311
|
const mapTypeToPaymentMode = (type) => {
|
|
@@ -308,7 +344,7 @@ export class ModularCheckout {
|
|
|
308
344
|
});
|
|
309
345
|
}
|
|
310
346
|
render() {
|
|
311
|
-
return h(Host, { key: '
|
|
347
|
+
return h(Host, { key: '6d77d6adf39e471c1fac481dee997b71ebc01e24' });
|
|
312
348
|
}
|
|
313
349
|
static get is() { return "justifi-modular-checkout"; }
|
|
314
350
|
static get properties() {
|
|
@@ -350,26 +386,6 @@ export class ModularCheckout {
|
|
|
350
386
|
"getter": false,
|
|
351
387
|
"setter": false,
|
|
352
388
|
"reflect": false
|
|
353
|
-
},
|
|
354
|
-
"savePaymentMethod": {
|
|
355
|
-
"type": "boolean",
|
|
356
|
-
"attribute": "save-payment-method",
|
|
357
|
-
"mutable": false,
|
|
358
|
-
"complexType": {
|
|
359
|
-
"original": "boolean",
|
|
360
|
-
"resolved": "boolean",
|
|
361
|
-
"references": {}
|
|
362
|
-
},
|
|
363
|
-
"required": false,
|
|
364
|
-
"optional": true,
|
|
365
|
-
"docs": {
|
|
366
|
-
"tags": [],
|
|
367
|
-
"text": ""
|
|
368
|
-
},
|
|
369
|
-
"getter": false,
|
|
370
|
-
"setter": false,
|
|
371
|
-
"reflect": false,
|
|
372
|
-
"defaultValue": "false"
|
|
373
389
|
}
|
|
374
390
|
};
|
|
375
391
|
}
|
|
@@ -516,10 +532,4 @@ export class ModularCheckout {
|
|
|
516
532
|
};
|
|
517
533
|
}
|
|
518
534
|
static get elementRef() { return "hostEl"; }
|
|
519
|
-
static get watchers() {
|
|
520
|
-
return [{
|
|
521
|
-
"propName": "savePaymentMethod",
|
|
522
|
-
"methodName": "savePaymentMethodChanged"
|
|
523
|
-
}];
|
|
524
|
-
}
|
|
525
535
|
}
|
|
@@ -40,10 +40,10 @@ export class BankAccountForm {
|
|
|
40
40
|
return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
|
-
return (h(StyledHost, { key: '
|
|
43
|
+
return (h(StyledHost, { key: '55cf04f40c030d67235807168a303dc2680561d2' }, h(BankAccountFormSkeleton, { key: '1b076c4d58b80c5f9b5842e1e0228657ec39f68b', isReady: this.isReady }), h("hidden-input", { key: '8b622b9693d7648a6bd33f082241910801c14e1e' }), h("div", { key: 'ce79e65bd2dba972885b5c906715e70d2817dd4c', class: "container-fluid p-0", style: {
|
|
44
44
|
opacity: this.isReady ? '1' : '0',
|
|
45
45
|
height: this.isReady ? 'auto' : '0',
|
|
46
|
-
} }, h("div", { key: '
|
|
46
|
+
} }, h("div", { key: '8cc5b4b9c742ba0958845f2e5fee3e94c6449229', class: "row mb-3" }, h("iframe-input", { key: '3c41e6d2af86ff242f3b7a3d462628ab16626fe7', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber` })), h("div", { key: 'd95374c4f22fe40bc0033f159d456d94ee10363f', class: "row" }, h("iframe-input", { key: '22df6eb6ad22ccb18e9e24533dd8b208afb44309', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber` })))));
|
|
47
47
|
}
|
|
48
48
|
static get is() { return "justifi-bank-account-form"; }
|
|
49
49
|
static get encapsulation() { return "shadow"; }
|
|
@@ -44,10 +44,10 @@ export class JustifiCardForm {
|
|
|
44
44
|
return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
45
45
|
}
|
|
46
46
|
render() {
|
|
47
|
-
return (h(StyledHost, { key: '
|
|
47
|
+
return (h(StyledHost, { key: '46acef24075db09eea0c94417e92e90a360e5850' }, h(CardFormSkeleton, { key: 'bd4f610e83d7bcbf5b597079d68bbeb2abe8c02e', isReady: this.isReady }), h("hidden-input", { key: 'b4a289f1ac7f104f5dce7848a94d22c9aa4a4b56' }), h("div", { key: 'df003c1be11c5a5262e6563d1fd4755ae60dc700', class: "container-fluid p-0", style: {
|
|
48
48
|
opacity: this.isReady ? '1' : '0',
|
|
49
49
|
height: this.isReady ? 'auto' : '0',
|
|
50
|
-
} }, h("div", { key: '
|
|
50
|
+
} }, h("div", { key: '900e56045f6db140c74db42396a85153d3fae683', class: "mb-3" }, h("iframe-input", { key: '1600ae4cddd10afb5abeea9d9a4e851e76ad3de2', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber` })), h("div", { key: 'ce66d35bd549b2cebca200c8c42eeddca4acd2d1', class: "row" }, h("div", { key: 'f1480606b802eff983710a37f79a9492f79b8440', class: "col-4 align-content-end" }, h("iframe-input", { key: 'd04785d62994fef3ee2d597a189d0b823e803bca', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth` })), h("div", { key: '875e03320bb22f4f6891f01e749fef871f37cf18', class: "col-4 align-content-end" }, h("iframe-input", { key: 'ead59922d5ffeefe6e5951203b9ec157135dee3c', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear` })), h("div", { key: 'a70d098fc88770441dfb347b9124f4c4d159714d', class: "col-4 align-content-end" }, h("iframe-input", { key: 'eff54f20b8b3280b08839aaf4e77ab46c3262202', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV` }))))));
|
|
51
51
|
}
|
|
52
52
|
static get is() { return "justifi-card-form"; }
|
|
53
53
|
static get encapsulation() { return "shadow"; }
|
|
@@ -3,7 +3,7 @@ import { radioListItem } from "../../../styles/parts";
|
|
|
3
3
|
import { StyledHost } from "../../../ui-components";
|
|
4
4
|
export class PaymentMethodOption {
|
|
5
5
|
render() {
|
|
6
|
-
return (h(StyledHost, { key: '
|
|
6
|
+
return (h(StyledHost, { key: '42003535aac99ae51b47511facb02f602dff703d', class: "payment-method" }, h("div", { key: 'c1ad6051d7b2dd88d2a76cd94ed69fe3f7408c7d', class: "radio-list-item p-3", part: radioListItem, onClick: this.clickHandler, hidden: this.radioButtonHidden }, h("form-control-radio", { key: '98ea069afd3e9d09ca8599ab35f998294046463a', name: "paymentMethodType", value: this.paymentMethodOptionId, checked: this.isSelected, label: this.label }))));
|
|
7
7
|
}
|
|
8
8
|
static get is() { return "payment-method-option"; }
|
|
9
9
|
static get encapsulation() { return "shadow"; }
|
|
@@ -165,6 +165,9 @@ export class PlaidPaymentMethod {
|
|
|
165
165
|
this.linkToken = response.data.link_token;
|
|
166
166
|
// Try to capture link token id if present in envelope
|
|
167
167
|
this.linkTokenId = (response === null || response === void 0 ? void 0 : response.id) || ((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.id) || null;
|
|
168
|
+
if (this.linkTokenId) {
|
|
169
|
+
checkoutStore.plaidLinkTokenId = this.linkTokenId;
|
|
170
|
+
}
|
|
168
171
|
}
|
|
169
172
|
catch (error) {
|
|
170
173
|
// Clear timeout
|
|
@@ -244,41 +247,10 @@ export class PlaidPaymentMethod {
|
|
|
244
247
|
message: 'Bank account connected successfully',
|
|
245
248
|
severity: ComponentErrorSeverity.INFO
|
|
246
249
|
});
|
|
247
|
-
//
|
|
248
|
-
|
|
249
|
-
};
|
|
250
|
-
this.exchangePublicTokenForPaymentMethod = async () => {
|
|
251
|
-
var _a;
|
|
252
|
-
if (!this.publicToken) {
|
|
253
|
-
console.error('[PlaidPaymentMethod] exchange: missing publicToken');
|
|
254
|
-
return;
|
|
255
|
-
}
|
|
256
|
-
if (!checkoutStore.authToken || !checkoutStore.accountId) {
|
|
257
|
-
console.error('[PlaidPaymentMethod] exchange: missing auth/account context');
|
|
258
|
-
return;
|
|
259
|
-
}
|
|
260
|
-
try {
|
|
261
|
-
const response = await this.plaidService.tokenizeBankAccount(checkoutStore.authToken, checkoutStore.accountId, this.publicToken, this.linkTokenId || undefined, checkoutStore.savePaymentMethod ? checkoutStore.paymentMethodGroupId : undefined);
|
|
262
|
-
if (response === null || response === void 0 ? void 0 : response.error) {
|
|
263
|
-
console.error('[PlaidPaymentMethod] exchange: backend error', response.error);
|
|
264
|
-
return;
|
|
265
|
-
}
|
|
266
|
-
// Extract token from payment method response
|
|
267
|
-
const paymentMethod = response === null || response === void 0 ? void 0 : response.data;
|
|
268
|
-
const token = ((_a = paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.bank_account) === null || _a === void 0 ? void 0 : _a.token) || (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.token) || (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id);
|
|
269
|
-
if (!token) {
|
|
270
|
-
console.error('[PlaidPaymentMethod] exchange: no token in response');
|
|
271
|
-
return;
|
|
272
|
-
}
|
|
273
|
-
// Save for downstream submit flows
|
|
274
|
-
checkoutStore.paymentToken = token;
|
|
275
|
-
}
|
|
276
|
-
catch (err) {
|
|
277
|
-
console.error('[PlaidPaymentMethod] exchange: exception', {
|
|
278
|
-
message: (err === null || err === void 0 ? void 0 : err.message) || String(err),
|
|
279
|
-
});
|
|
280
|
-
}
|
|
250
|
+
// Store public token in checkout store; exchange will be handled on submit
|
|
251
|
+
checkoutStore.plaidPublicToken = publicToken;
|
|
281
252
|
};
|
|
253
|
+
// Exchange logic moved to Modular Checkout submit flow.
|
|
282
254
|
this.handlePlaidExit = (err, _metadata) => {
|
|
283
255
|
this.isAuthenticating = false;
|
|
284
256
|
if (err) {
|
|
@@ -491,10 +463,6 @@ export class PlaidPaymentMethod {
|
|
|
491
463
|
// Returns a usable payment method token for checkout completion.
|
|
492
464
|
// Will perform the backend exchange if the token is not yet present in the store.
|
|
493
465
|
async getPaymentToken() {
|
|
494
|
-
if (checkoutStore.paymentToken) {
|
|
495
|
-
return checkoutStore.paymentToken;
|
|
496
|
-
}
|
|
497
|
-
await this.exchangePublicTokenForPaymentMethod();
|
|
498
466
|
return checkoutStore.paymentToken;
|
|
499
467
|
}
|
|
500
468
|
async handleSelectionClick() {
|
package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.test.js
CHANGED
|
@@ -107,18 +107,19 @@ describe('PlaidPaymentMethod', () => {
|
|
|
107
107
|
expect(component.isAuthenticating).toBe(false);
|
|
108
108
|
});
|
|
109
109
|
});
|
|
110
|
-
describe('Plaid
|
|
111
|
-
it('
|
|
110
|
+
describe('Plaid success flow', () => {
|
|
111
|
+
it('stores public token in store and does not set payment token', async () => {
|
|
112
112
|
// Arrange
|
|
113
|
-
mockCheckoutStore.selectedPaymentMethod =
|
|
113
|
+
mockCheckoutStore.selectedPaymentMethod = { type: PaymentMethodTypes.plaid };
|
|
114
114
|
const instance = page.rootInstance;
|
|
115
115
|
// Act: simulate Plaid success
|
|
116
116
|
instance.handlePlaidSuccess('public-sandbox-xyz', {});
|
|
117
117
|
await page.waitForChanges();
|
|
118
|
-
// Allow any async
|
|
118
|
+
// Allow any async handlers to complete
|
|
119
119
|
await new Promise((r) => setTimeout(r, 0));
|
|
120
120
|
// Assert
|
|
121
|
-
expect(mockCheckoutStore.
|
|
121
|
+
expect(mockCheckoutStore.plaidPublicToken).toBe('public-sandbox-xyz');
|
|
122
|
+
expect(mockCheckoutStore.paymentToken).toBeUndefined();
|
|
122
123
|
});
|
|
123
124
|
});
|
|
124
125
|
});
|
|
@@ -5,7 +5,7 @@ import { checkoutStore } from "../../../store/checkout.store";
|
|
|
5
5
|
import { StyledHost } from "../../../ui-components";
|
|
6
6
|
export class Summary {
|
|
7
7
|
render() {
|
|
8
|
-
return (h(StyledHost, { key: '
|
|
8
|
+
return (h(StyledHost, { key: '2644d423d844136d86f7f6b1b80aa98b224146ac' }, h("section", { key: '2017758b2eb8bf6483ca4765e5f18279ff2f6de7' }, h("div", { key: '029f98c45be1e9c807eef1dbf1508e231c7215d1' }, h("div", { key: 'db1b7e220f5afd230ea1fcf5dc818f96d03f68b9', part: text }, checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.paymentDescription), h("div", { key: 'b9d401af17512a5f5ef24350f8c9e9ad1163d83e' }, h("span", { key: '5d7dcef6b946ae455cb2b8e57089f0365b8bb52b', part: text }, "Total"), "\u00A0", h("span", { key: 'cfc8fc46c2f87011de758ccce92a9f4bfbe2ba88', part: text }, formatCurrency(+(checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.totalAmount))))))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "justifi-checkout-summary"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -126,7 +126,7 @@ export class OrderTerminals {
|
|
|
126
126
|
return (h("div", { class: "mt-3" }, h("div", { class: "text-end" }, "Order limit: ", this.orderLimit), h("div", { class: "d-flex justify-content-end mt-3" }, h("button", { class: "btn btn-primary submit-btn", onClick: this.submitOrder.bind(this), disabled: this.order.totalQuantity === 0 || this.submitting, part: buttonPrimary }, this.submitting ? 'Submitting...' : this.submitButtonText))));
|
|
127
127
|
}
|
|
128
128
|
render() {
|
|
129
|
-
return (h(StyledHost, { key: '
|
|
129
|
+
return (h(StyledHost, { key: 'd30fa51dfc5de12c0c70b642a8ad43093717b6e3' }, h("div", { key: '022332e39a80c3cc276ad8e0f56e98a592f14f0a', part: text }, this.renderLoading(), this.renderBusinessDetails(), this.renderTerminals(), this.renderOrderSection())));
|
|
130
130
|
}
|
|
131
131
|
static get is() { return "justifi-order-terminals"; }
|
|
132
132
|
static get encapsulation() { return "shadow"; }
|
|
@@ -18,7 +18,7 @@ export class TerminalQuantitySelector {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h("div", { key: '
|
|
21
|
+
return (h("div", { key: '603c96b88979220a6af352f61f7a9064c937bbf1', class: "rounded shadow-sm card p-2", part: card }, h("div", { key: '56b78a47f1cb6758a0c74add974d9a24cf67e853', class: "d-flex gap-3" }, h("div", { key: '285e8a83d30d21f104d5a0c768b6ca05e7b37c4d', class: "d-flex align-items-center" }, h("img", { key: 'a11fdde276b66855a509491b99e3896bd2ff4aa3', src: this.imageUrl, alt: this.modelName, height: 75, width: 75, part: image })), h("div", { key: '62d068e4c6c438cd192f3faf83b8fda9943e3eb8', class: "d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center" }, h("div", { key: 'f1a48335799e72cce713d9571ae5f313a45ab54a', class: "row" }, h("div", { key: 'd6c2fcb777e79cd6b0fc801d17b9c4c840466eee', class: "col-6 d-flex gap-2" }, this.modelName, h("form-control-tooltip", { key: 'bf00cf7b3e517d2993031d32dc429f37b28e6bf1', helpText: this.description })), h("div", { key: '6f9f3eb93344cc0805e7245af1ad4dd933f23301', class: "col-6 d-flex justify-content-end align-items-center" }, h("button", { key: '499243fd7c9a784317d8772acee70e73eace0cb4', class: "p-0 minus btn", onClick: this.removeUnit, part: buttonLink }, "-"), h("div", { key: '374ac100515f1a9ceeb77e64c2143405dfe759bf', class: "w-25 text-center" }, this.selectedQuantity), h("button", { key: 'fe56458a7873bb1b9b6e0366dca058f468252816', class: "p-0 plus btn", onClick: this.addUnit, part: buttonLink }, "+")))))));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "terminal-quantity-selector"; }
|
|
24
24
|
static get properties() {
|
|
@@ -38,16 +38,16 @@ export class PaymentDetailsCore {
|
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return (h(StyledHost, { key: '
|
|
42
|
-
this.payment && (h("justifi-details", { key: '
|
|
43
|
-
h(DetailSectionTitle, { key: '
|
|
44
|
-
h("div", { key: '
|
|
41
|
+
return (h(StyledHost, { key: 'f2b186044ccc85a72cfcb8fb144ee77667e15ba6' }, this.loading && h(PaymentDetailsLoading, { key: 'edb17ed3599ad66988a15d9834e17e49408b9507' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && !this.errorMessage &&
|
|
42
|
+
this.payment && (h("justifi-details", { key: '62bf6dd11a6c6b31dcece28cfc375ae1eb6f9344', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: '40a3d2f1d327efe61d186f2b24126ec52bcf28bc', slot: "head-info", badge: (h("div", { class: "d-flex gap-1" }, MapPaymentStatusToBadge(this.payment.status), this.payment.expedited ? (h(Badge, { variant: BadgeVariant.WARNING, title: "Expedited", text: "Expedited" })) : null)), title: this.payment.formattedPaymentAmount(this.payment.amount) }, h(EntityHeadInfoItem, { key: '83903da52e88d24f09667e1aba282377f35f8e64', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payment.updated_at)} ${formatTime(this.payment.updated_at)}` }), h(EntityHeadInfoItem, { key: '4f87ad37c9a2b8f8a1ecd181af3b30dbf73aea57', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payment.created_at)} ${formatTime(this.payment.created_at)}` }), h(EntityHeadInfoItem, { key: '52711a7db01db2fb3899fd7defac22021e339e99', title: "ID", value: this.payment.id })), h("div", { key: 'fce421c4a9803e24e05685fa50c0695584ebc5db', slot: 'detail-sections' }, h(DetailSectionTitle, { key: '0734f86c73fa6ec4aee0d65c7ead7f0ae2f36cc2', sectionTitle: "Details" }), h("div", { key: '70df3fc23267c96de447842859ef570b3208a719', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '56a458e4e555e0c6eec08dfc5741e497a2d34686', title: "Amount", value: this.payment.formattedPaymentAmount(this.payment.amount) }), h(DetailItem, { key: 'f38251a639c1dc0f3299184525074cc312a495ee', title: "Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: '24bd2a8275278305655b381ba364f7ef352507e5', title: "Refunded", value: this.payment.formattedPaymentAmount(this.payment.amount_refunded) }), h(DetailItem, { key: '501de65bfda2966ee0ba78d5a7ef9b7f358549f1', title: "Net", value: this.payment.formattedPaymentAmount(this.payment.balance) }), h(DetailItem, { key: 'd0296e2992ba58514e658b7b32ddfc28c5c833f5', title: "Status", value: MapPaymentStatusToBadge(this.payment.status) }), h(DetailItem, { key: '5b5ee68f54dab15339abcff35e8c7fd80504030b', title: "Payment ID", value: this.payment.id }), h(DetailItem, { key: 'ee1f690a6ce8f4b11376c7f92d9b7869642ba0a3', title: "Processing Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: '7857ee342d7b3af9cbd8e833c9ecc8947c74b5cd', title: "Statement Descriptor", value: this.payment.statement_descriptor }), h(DetailItem, { key: '38fdde533028fa041c6d22cf1727461fe8691ace', title: "Description", value: this.payment.description }), h(DetailItem, { key: 'f629e61d7e7dfbbc74ff3590abf8ce9a5cc3614d', title: "Expedited", value: this.payment.expedited ? 'Yes' : 'No' })), this.payment.payment_method.card && [
|
|
43
|
+
h(DetailSectionTitle, { key: 'ee90457c952f0ac7217556e8566972fb43b29984', sectionTitle: "Payment Method" }),
|
|
44
|
+
h("div", { key: 'd6007e904c9f45d48f02ce675d75f451b09a344b', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '5fd5fae2793f2d1cb7b63e405c9b865458228e8f', title: "ID", value: this.payment.payment_method.card.id }), h(DetailItem, { key: '7e6d640a4ed7b4842d3b502901a177a49ae30637', title: "Payment Type", value: "Card" }), h(DetailItem, { key: '6d593f6ef45f8e286c3262750bdef8f686d2dd0a', title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { key: '89301ddd84e5cefd3c6576506e590a7fb1d98749', title: "Brand", value: snakeCaseToHumanReadable(this.payment.payment_method.card.brand) }), h(DetailItem, { key: '8119c2e7ccf0e4c76d93a7033311a244e3b16921', title: "Cardholder", value: this.payment.payment_method.payersName }))
|
|
45
45
|
], this.payment.payment_method.bank_account && [
|
|
46
|
-
h(DetailSectionTitle, { key: '
|
|
47
|
-
h("div", { key: '
|
|
46
|
+
h(DetailSectionTitle, { key: 'b410bff21158a0800cddbd46c622de479315313b', sectionTitle: "Payment Method" }),
|
|
47
|
+
h("div", { key: 'f5595402cdc5f3fa2a5e19e99d6e0a21f8dbf0eb', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '6f157f4c6f0c915a47f597dd20883b4f2acfd74a', title: "ID", value: this.payment.payment_method.bank_account.id }), h(DetailItem, { key: 'c1872ab9da698076ba617bbaeb7ef6790f5ea487', title: "Last 4 Numbers", value: this.payment.last_four_digits }), h(DetailItem, { key: '0fe4b0af3aff5f03e660dbe9d4286fc3981e6ada', title: "Bank Name", value: this.payment.payment_method.bank_account.brand }), h(DetailItem, { key: '6920ce8ae22fed7bd3e12ec48e0197e0e6675257', title: "Account Owner", value: this.payment.payment_method.payersName }))
|
|
48
48
|
], this.payment.metadata && [
|
|
49
|
-
h(DetailSectionTitle, { key: '
|
|
50
|
-
h("div", { key: '
|
|
49
|
+
h(DetailSectionTitle, { key: '4d0be28ad0075d2ff0a5565c90d202f767d70607', sectionTitle: 'Metadata' }),
|
|
50
|
+
h("div", { key: '88a5700230f8585eec6ea505fa5f9b05fa9f21ac', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: 'a9e61b8eef8e0c21ae4359e18e05856734661320', metadata: this.payment.metadata }))
|
|
51
51
|
])))));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "payment-details-core"; }
|
|
@@ -91,7 +91,7 @@ export class PaymentTransactionsList {
|
|
|
91
91
|
return !this.showEmptyState && !this.showErrorState && !this.isLoading;
|
|
92
92
|
}
|
|
93
93
|
render() {
|
|
94
|
-
return (h(StyledHost, { key: '
|
|
94
|
+
return (h(StyledHost, { key: '94919675808cd7b7df82403b7fa40e72c763f676' }, h(TableWrapper, { key: 'e405a069813214b692d7efb39b1a2b8313291088' }, h(TableComponent, { key: '27c7d5a96075d6e1e3b25d18272b4f4f57e374f0' }, h(TableHead, { key: 'e80e58ed2c38902adc86b7088cf9094b1e4f2540' }, h(TableHeadRow, { key: '641c6bc3d69a20bbd4624043cca1178f6e7257ba' }, this.transactionsTable.columnData.map((column) => column))), h(TableBody, { key: 'b1a029e801f1f87f35201ba8725bff6e9cc5eb28' }, h(TableLoadingState, { key: '8af52c5f9a0072502e64539900aeae2d08dce1ce', columnSpan: this.transactionsTable.columnKeys.length, isLoading: this.isLoading }), h(TableEmptyState, { key: 'df0d89fd7fee252611ea45052373b59974d86c81', isEmpty: this.showEmptyState, columnSpan: this.transactionsTable.columnKeys.length }), h(TableErrorState, { key: '1ae2c61e4eaa643ed47cd37ec2a7fa192b99ec11', columnSpan: this.transactionsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.transactionsTable.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: 'c3b9d5df20e37e8325ce8b99360ed5547078b9a6' }, h(TableFootRow, { key: '8ae2ddda61552ff945b075287654d0bfc64a8dae' }, h(TableFootCell, { key: 'ee9fe2a43b9ea6e6916d196fbfcf67f87b46821c', colSpan: this.transactionsTable.columnData.length }, h("pagination-menu", { key: '79f03d48df9fde25ee3ceb9b5a369b1d8296caa8', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
95
95
|
}
|
|
96
96
|
static get is() { return "justifi-payment-transactions-list"; }
|
|
97
97
|
static get encapsulation() { return "shadow"; }
|