@justifi/webcomponents 6.12.1-rc.5 → 6.12.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/LICENSE +21 -0
- package/dist/cjs/{Analytics-D4AupIs5.js → Analytics-C1Wd9OW4.js} +3 -3
- package/dist/cjs/{Plaid-DAigb4JE.js → Plaid-BlSGeGpn.js} +0 -4
- package/dist/cjs/additional-questions-form-step_14.cjs.entry.js +12 -12
- package/dist/cjs/additional-questions_5.cjs.entry.js +6 -6
- package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +3 -3
- package/dist/cjs/bank-account-form.cjs.entry.js +4 -4
- package/dist/cjs/bank-account-read-only-value.cjs.entry.js +1 -1
- package/dist/cjs/{business.service-CdT38fur.js → business.service-BheJs82v.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +4 -4
- package/dist/cjs/{check-pkg-version-Cl1JxnNX.js → check-pkg-version-DMXmPDqZ.js} +1 -1
- package/dist/cjs/{checkout.service-BXK8cZfN.js → checkout.service-DZKdHQQq.js} +1 -1
- package/dist/cjs/{checkout.store-zTfjieKa.js → checkout.store-CztwuCnG.js} +2 -0
- package/dist/cjs/checkouts-list-core.cjs.entry.js +2 -2
- package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
- package/dist/cjs/{dispute.service-CeBgrOjr.js → dispute.service-BbtwY673.js} +1 -1
- package/dist/cjs/form-address-fields_3.cjs.entry.js +4 -4
- 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-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number_3.cjs.entry.js +5 -5
- 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-Cu7Avp2x.js → get-business-CKC1P4Qs.js} +2 -2
- package/dist/cjs/{get-payment-details-qWCANtqS.js → get-payment-details-DL5FmIyF.js} +2 -2
- package/dist/cjs/{get-subaccounts-D6z1oD7x.js → get-subaccounts-CVK4O7th.js} +2 -2
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
- package/dist/cjs/internal-button.cjs.entry.js +1 -1
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
- package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +117 -53
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +5 -5
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -5
- 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 +58 -22
- package/dist/cjs/justifi-business-form.cjs.entry.js +7 -7
- package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +5 -5
- package/dist/cjs/justifi-checkout.cjs.entry.js +9 -12
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -7
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +10 -10
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payment-details.cjs.entry.js +69 -30
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -8
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +132 -18
- package/dist/cjs/justifi-payout-details.cjs.entry.js +74 -18
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +169 -21
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +7 -7
- 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 +6 -6
- 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 +7 -7
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +183 -20
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-BRuzzVG1.js → package-CRaVpb0w.js} +1 -1
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/{payment-provisioning-actions-COLn1qHN.js → payment-provisioning-actions-BO7dzIm1.js} +2 -2
- package/dist/cjs/payment-provisioning-form-buttons_2.cjs.entry.js +2 -2
- package/dist/cjs/{payment.service-CiOWHJtd.js → payment.service-sZKlg2Jq.js} +1 -1
- package/dist/cjs/{payout.service-U7tm4CKf.js → payout.service-BcQVsMCS.js} +1 -1
- package/dist/cjs/{payouts-status-DXZ5fl4v.js → payouts-status-CwgOMz-S.js} +21 -0
- package/dist/cjs/{plaid.service-DFL4b6_i.js → plaid.service-BcgO2VXC.js} +1 -1
- package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
- package/dist/cjs/save-new-payment-method.cjs.entry.js +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +3 -3
- package/dist/cjs/{terminal-orders-table-D28SoPYI.js → terminal-orders-table-Cz6qvzVE.js} +1 -1
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/{terminal.service-Cl7Vp33V.js → terminal.service-CjMMWSh3.js} +1 -1
- package/dist/cjs/{utils-CIjcxKu1.js → utils-DbTucCTO.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Analytics.js +1 -1
- package/dist/collection/api/ApplePay.js +0 -4
- package/dist/collection/api/services/apple-pay.service.js +1 -6
- package/dist/collection/collection-manifest.json +0 -6
- package/dist/collection/components/business-details/justifi-business-details.js +56 -17
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +2 -2
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +2 -2
- package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +3 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- 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 +4 -8
- 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-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
- package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management-core.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/justifi-additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-shipping-details.js +1 -1
- package/dist/collection/components/dispute-management/justifi-dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/justifi-dispute-notification.js +2 -2
- 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/justifi-modular-checkout.js +31 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +34 -15
- 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/justifi-google-pay.js +20 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-plaid-payment-method.js +27 -14
- package/dist/collection/components/modular-checkout/sub-components/justifi-saved-payment-methods.js +7 -5
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- 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 +59 -17
- 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 +114 -5
- package/dist/collection/components/payout-details/justifi-payout-details.js +86 -8
- 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 +166 -7
- 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 +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/justifi-terminals-list.js +153 -7
- package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +1 -1
- 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-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 +256 -995
- package/dist/esm/{Analytics-BCoK2BKE.js → Analytics-qafLCOEU.js} +4 -4
- package/dist/esm/{Api-BrYhtpEh.js → Api-DMd8hTI-.js} +1 -1
- package/dist/esm/{Plaid-BMnuSHeX.js → Plaid-BuKEVgbB.js} +2 -6
- package/dist/esm/additional-questions-details_5.entry.js +3 -3
- package/dist/esm/additional-questions-form-step_14.entry.js +18 -18
- package/dist/esm/additional-questions_5.entry.js +7 -7
- package/dist/esm/{badge-B_DdhQ3Q.js → badge-B6dp1XGV.js} +1 -1
- package/dist/esm/bank-account-billing-form-simple_4.entry.js +5 -5
- package/dist/esm/bank-account-form.entry.js +7 -7
- package/dist/esm/bank-account-read-only-value.entry.js +2 -2
- package/dist/esm/{business.service-D47BEQPH.js → business.service-BPbZ5fxQ.js} +2 -2
- package/dist/esm/{button-B-Agn8yQ.js → button-DRdaAudE.js} +1 -1
- package/dist/esm/card-form.entry.js +7 -7
- package/dist/esm/{check-pkg-version-C1z6CAOx.js → check-pkg-version-BJtCbzf9.js} +1 -1
- package/dist/esm/{checkout.service-BDZroRf0.js → checkout.service-CJMfFKyS.js} +2 -2
- package/dist/esm/{checkout.store-C1TdhFf6.js → checkout.store-DFnkcDZ8.js} +2 -0
- package/dist/esm/checkouts-list-core.entry.js +8 -8
- package/dist/esm/{checkouts-table-BXm9GGFI.js → checkouts-table-C8sPHeTm.js} +3 -3
- package/dist/esm/custom-popper_2.entry.js +3 -3
- package/dist/esm/{dispute.service-CuBGEFgB.js → dispute.service-vlYGy0nR.js} +2 -2
- package/dist/esm/form-address-fields_3.entry.js +6 -6
- package/dist/esm/form-control-checkbox.entry.js +5 -5
- package/dist/esm/form-control-date.entry.js +4 -4
- package/dist/esm/{form-control-error-text-DMKhr8QA.js → form-control-error-text-DVedKyhp.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/form-control-file.entry.js +4 -4
- package/dist/esm/{form-control-help-text-CsdCuw5-.js → form-control-help-text-D-349cNw.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +5 -5
- package/dist/esm/form-control-monetary.entry.js +6 -6
- package/dist/esm/form-control-number_3.entry.js +9 -9
- package/dist/esm/form-control-radio.entry.js +3 -3
- package/dist/esm/form-control-select_2.entry.js +6 -6
- package/dist/esm/{get-business-BsjvgFCj.js → get-business-DpFRs5dE.js} +2 -2
- package/dist/esm/{get-payment-details-Br1249qD.js → get-payment-details-DjBou5Fu.js} +2 -2
- package/dist/esm/{get-subaccounts-zrWoI4Bh.js → get-subaccounts-CgDWE_5o.js} +3 -3
- package/dist/esm/gross-payment-chart-core.entry.js +5 -5
- package/dist/esm/{header-1-bRxxOyI-.js → header-1-Bl7MHW0w.js} +1 -1
- package/dist/esm/{header-3-E533c0A3.js → header-3-C7JJVnMG.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +7 -7
- package/dist/esm/{insurance-state-obAKb1XR.js → insurance-state-qTdpe84i.js} +1 -1
- package/dist/esm/internal-button.entry.js +3 -3
- package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
- package/dist/esm/justifi-apple-pay_11.entry.js +124 -60
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +7 -7
- package/dist/esm/justifi-bank-account-form.entry.js +7 -7
- 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 +63 -27
- package/dist/esm/justifi-business-form.entry.js +13 -13
- package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
- package/dist/esm/justifi-card-form.entry.js +7 -7
- package/dist/esm/justifi-checkout.entry.js +12 -15
- package/dist/esm/justifi-checkouts-list-filters.entry.js +5 -5
- package/dist/esm/justifi-checkouts-list.entry.js +13 -13
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +9 -9
- package/dist/esm/justifi-dispute-notification_3.entry.js +15 -15
- package/dist/esm/justifi-gross-payment-chart.entry.js +9 -9
- package/dist/esm/justifi-order-terminals.entry.js +13 -13
- package/dist/esm/justifi-payment-details.entry.js +71 -32
- package/dist/esm/justifi-payment-provisioning.entry.js +16 -14
- package/dist/esm/justifi-payment-transactions-list.entry.js +12 -12
- package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
- package/dist/esm/justifi-payments-list.entry.js +134 -20
- package/dist/esm/justifi-payout-details.entry.js +76 -20
- package/dist/esm/justifi-payout-transactions-list.entry.js +12 -12
- package/dist/esm/justifi-payouts-list-filters.entry.js +5 -5
- package/dist/esm/justifi-payouts-list.entry.js +170 -22
- package/dist/esm/justifi-refund-payment.entry.js +12 -12
- package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
- package/dist/esm/justifi-saved-payment-method.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +11 -11
- package/dist/esm/justifi-skeleton.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +6 -6
- package/dist/esm/justifi-terminal-orders-list.entry.js +11 -11
- package/dist/esm/justifi-terminals-list-filters.entry.js +4 -4
- package/dist/esm/justifi-terminals-list.entry.js +184 -21
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-DbJ8_F44.js → package-BCgsLInF.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-D50Rx76J.js → parts-DnrawQn3.js} +1 -1
- package/dist/esm/payment-method-option.entry.js +2 -2
- package/dist/esm/{payment-provisioning-actions-B6LHK2Ka.js → payment-provisioning-actions-Dr0YIShV.js} +2 -2
- package/dist/esm/payment-provisioning-form-buttons_2.entry.js +4 -4
- package/dist/esm/{payment-provisioning-loading-BAoIyEOj.js → payment-provisioning-loading-DI2wDkhm.js} +1 -1
- package/dist/esm/{payment.service-C6ebnLOw.js → payment.service-Ckbb7gXA.js} +2 -2
- package/dist/esm/{payments-status-7P7L51CK.js → payments-status-BIDoGw-m.js} +1 -1
- package/dist/esm/{payout.service-B6KqlDyg.js → payout.service-BgFKxEoL.js} +2 -2
- package/dist/esm/{payouts-status-CGZRMu-q.js → payouts-status-1T2NZBoE.js} +22 -2
- package/dist/esm/{plaid.service-BS8Zt6ui.js → plaid.service-BLguQHs_.js} +2 -2
- package/dist/esm/radio-list-item.entry.js +2 -2
- package/dist/esm/save-new-payment-method.entry.js +2 -2
- package/dist/esm/{skeleton-DV6yJalo.js → skeleton-CXGFVqDf.js} +1 -1
- package/dist/esm/{spinner--fEgBBOG.js → spinner-kSw6PcwU.js} +1 -1
- package/dist/esm/{table-Deugl8h5.js → table-CcyuIutB.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/terminal-orders-list-core.entry.js +8 -8
- package/dist/esm/{terminal-orders-table-BKbTybx0.js → terminal-orders-table-C7KOcRpq.js} +4 -4
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-0AO0m5oh.js → terminal.service-0oISl5j-.js} +2 -2
- package/dist/esm/{utils-De6tr4ug.js → utils-BTtxWI2r.js} +1 -1
- package/dist/esm/{utils-DJOBwFeP.js → utils-BxYS3WDw.js} +1 -1
- package/dist/esm/{utils-DtiRLISl.js → utils-DcfpJGDZ.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Analytics.js +1 -1
- package/dist/module/ApplePay.js +0 -4
- package/dist/module/Plaid.js +2 -2
- package/dist/module/additional-questions2.js +1 -1
- package/dist/module/bank-account-billing-form-simple2.js +1 -1
- package/dist/module/bank-account-document-form-inputs2.js +1 -1
- package/dist/module/bank-account-form-inputs-canada2.js +1 -1
- package/dist/module/bank-account-form-inputs2.js +1 -1
- package/dist/module/bank-account-form2.js +2 -2
- package/dist/module/bank-account-read-only-value2.js +1 -1
- package/dist/module/business-bank-account-form-step2.js +1 -1
- package/dist/module/business-core-info2.js +2 -2
- package/dist/module/business-representative-form-inputs2.js +2 -2
- package/dist/module/business-representative2.js +2 -2
- package/dist/module/business-terms-conditions-form-step2.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 +2 -0
- package/dist/module/checkouts-list-core2.js +1 -1
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/form-address-fields2.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-monetary-provisioning2.js +2 -2
- package/dist/module/form-control-monetary2.js +3 -3
- package/dist/module/form-control-number-masked2.js +2 -2
- package/dist/module/form-control-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/gross-payment-chart-core2.js +2 -2
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/identity-address-form2.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/internal-button2.js +1 -1
- package/dist/module/justifi-additional-statement2.js +1 -1
- package/dist/module/justifi-apple-pay2.js +35 -21
- 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-business-details.js +64 -27
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-cancellation-policy2.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 +2 -2
- package/dist/module/justifi-checkout.js +4 -8
- package/dist/module/justifi-checkouts-list-filters.js +2 -2
- package/dist/module/justifi-checkouts-list.js +2 -2
- package/dist/module/justifi-customer-details2.js +1 -1
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-dispute-notification2.js +3 -3
- package/dist/module/justifi-dispute-response2.js +1 -1
- package/dist/module/justifi-duplicate-charge2.js +1 -1
- package/dist/module/justifi-electronic-evidence2.js +1 -1
- package/dist/module/justifi-google-pay2.js +6 -1
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-modular-checkout2.js +31 -1
- package/dist/module/justifi-order-terminals.js +2 -2
- package/dist/module/justifi-payment-details.js +71 -29
- package/dist/module/justifi-payment-provisioning.js +4 -2
- package/dist/module/justifi-payment-transactions-list.js +2 -2
- package/dist/module/justifi-payments-list-filters.js +2 -2
- package/dist/module/justifi-payments-list.js +137 -18
- package/dist/module/justifi-payout-details.js +76 -21
- package/dist/module/justifi-payout-transactions-list.js +2 -2
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +174 -20
- package/dist/module/justifi-plaid-payment-method2.js +27 -14
- package/dist/module/justifi-product-or-service2.js +1 -1
- package/dist/module/justifi-refund-payment.js +1 -1
- package/dist/module/justifi-refund-policy2.js +1 -1
- 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-saved-payment-methods2.js +7 -5
- package/dist/module/justifi-season-interruption-insurance.js +1 -1
- package/dist/module/justifi-sezzle-payment-method2.js +1 -1
- package/dist/module/justifi-shipping-details2.js +1 -1
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +4 -4
- package/dist/module/justifi-terminal-orders-list.js +2 -2
- package/dist/module/justifi-terminals-list-filters.js +2 -2
- package/dist/module/justifi-terminals-list.js +190 -20
- package/dist/module/justifi-tokenize-payment-method2.js +1 -1
- package/dist/module/legal-address-form2.js +1 -1
- package/dist/module/owner-details2.js +1 -1
- package/dist/module/owner-form-core2.js +1 -1
- package/dist/module/owner-form-inputs2.js +2 -2
- package/dist/module/owner-form2.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payment-provisioning-form-buttons2.js +1 -1
- package/dist/module/payment-provisioning-form-steps2.js +1 -1
- package/dist/module/payouts-status.js +21 -1
- package/dist/module/radio-list-item2.js +1 -1
- package/dist/module/representative-details2.js +1 -1
- package/dist/module/save-new-payment-method2.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +2 -2
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/utils2.js +1 -1
- package/dist/types/api/ApplePay.d.ts +0 -7
- package/dist/types/components/business-details/justifi-business-details.d.ts +7 -2
- package/dist/types/components/business-forms/payment-provisioning/justifi-payment-provisioning.d.ts +1 -1
- package/dist/types/components/checkout/justifi-checkout.d.ts +0 -1
- package/dist/types/components/modular-checkout/justifi-modular-checkout.d.ts +2 -0
- package/dist/types/components/modular-checkout/sub-components/justifi-apple-pay.d.ts +3 -0
- package/dist/types/components/modular-checkout/sub-components/justifi-google-pay.d.ts +1 -0
- package/dist/types/components/modular-checkout/sub-components/justifi-plaid-payment-method.d.ts +2 -2
- package/dist/types/components/payment-details/justifi-payment-details.d.ts +7 -4
- package/dist/types/components/payments-list/justifi-payments-list.d.ts +19 -2
- package/dist/types/components/payout-details/justifi-payout-details.d.ts +10 -2
- package/dist/types/components/payouts-list/justifi-payouts-list.d.ts +25 -2
- package/dist/types/components/terminals-list/justifi-terminals-list.d.ts +24 -2
- package/dist/types/components.d.ts +10 -216
- package/dist/types/store/checkout.store.d.ts +2 -0
- package/dist/webcomponents/{p-C2h_HoOZ.js → p--e0ff06z.js} +1 -1
- package/dist/webcomponents/p-032b4553.entry.js +1 -0
- package/dist/webcomponents/p-042daaf8.entry.js +1 -0
- package/dist/webcomponents/{p-272cc70e.entry.js → p-0638f0bd.entry.js} +1 -1
- package/dist/webcomponents/p-06ecd4cb.entry.js +1 -0
- package/dist/webcomponents/{p-8d215ad8.entry.js → p-09d2efad.entry.js} +1 -1
- package/dist/webcomponents/p-0b3f4f22.entry.js +1 -0
- package/dist/webcomponents/{p-c499a613.entry.js → p-10be75b8.entry.js} +1 -1
- package/dist/webcomponents/p-164f95ec.entry.js +1 -0
- package/dist/webcomponents/p-174eb877.entry.js +1 -0
- package/dist/webcomponents/p-1e0be7b0.entry.js +1 -0
- package/dist/webcomponents/{p-de4c796a.entry.js → p-1e877e0a.entry.js} +1 -1
- package/dist/webcomponents/{p-5d2bcf39.entry.js → p-2425a375.entry.js} +1 -1
- package/dist/webcomponents/p-24935254.entry.js +1 -0
- package/dist/webcomponents/{p-938e4dc8.entry.js → p-256c5509.entry.js} +1 -1
- package/dist/webcomponents/p-2LVpxCS_.js +1 -0
- package/dist/webcomponents/{p-89bf64ef.entry.js → p-354fb3c4.entry.js} +1 -1
- package/dist/webcomponents/p-39cc6928.entry.js +1 -0
- package/dist/webcomponents/{p-257597f1.entry.js → p-3c046adc.entry.js} +1 -1
- package/dist/webcomponents/p-4226eb4a.entry.js +1 -0
- package/dist/webcomponents/p-474ee3f8.entry.js +1 -0
- package/dist/webcomponents/p-485b77ba.entry.js +1 -0
- package/dist/webcomponents/p-52908814.entry.js +1 -0
- package/dist/webcomponents/{p-b7ac15d8.entry.js → p-581808f0.entry.js} +1 -1
- package/dist/webcomponents/p-587886f1.entry.js +1 -0
- package/dist/webcomponents/p-5ef355ce.entry.js +1 -0
- package/dist/webcomponents/p-6917aa3c.entry.js +1 -0
- package/dist/webcomponents/{p-d072a65f.entry.js → p-6d81822f.entry.js} +1 -1
- package/dist/webcomponents/{p-3e74bd93.entry.js → p-6ecb3ef9.entry.js} +1 -1
- package/dist/webcomponents/p-79713014.entry.js +1 -0
- package/dist/webcomponents/p-798f4708.entry.js +1 -0
- package/dist/webcomponents/p-7f0f72c6.entry.js +1 -0
- package/dist/webcomponents/p-7f814609.entry.js +1 -0
- package/dist/webcomponents/p-80652cf8.entry.js +1 -0
- package/dist/webcomponents/{p-b322d2f3.entry.js → p-8253ef9f.entry.js} +1 -1
- package/dist/webcomponents/p-82fe02e4.entry.js +1 -0
- package/dist/webcomponents/p-83147f23.entry.js +1 -0
- package/dist/webcomponents/p-870fac9e.entry.js +1 -0
- package/dist/webcomponents/p-8c2427ed.entry.js +1 -0
- package/dist/webcomponents/p-92de00d7.entry.js +1 -0
- package/dist/webcomponents/p-956eca2e.entry.js +1 -0
- package/dist/webcomponents/p-9581d6a1.entry.js +1 -0
- package/dist/webcomponents/{p-7791b55e.entry.js → p-9db1444f.entry.js} +1 -1
- package/dist/webcomponents/p-9f74d7ea.entry.js +1 -0
- package/dist/webcomponents/{p-DV_3k3u_.js → p-B--N37zY.js} +1 -1
- package/dist/webcomponents/p-B5vVjDc_.js +1 -0
- package/dist/webcomponents/p-BArmtmkq.js +1 -0
- package/dist/webcomponents/p-BCgsLInF.js +1 -0
- package/dist/webcomponents/{p-D4DAh8XF.js → p-BJ7GFTiW.js} +1 -1
- package/dist/webcomponents/{p-CTwm3w6I.js → p-BRnBHsdq.js} +1 -1
- package/dist/webcomponents/{p-C7SCfFA7.js → p-BnaR7f2G.js} +1 -1
- package/dist/webcomponents/p-BsQy297i.js +1 -0
- package/dist/webcomponents/p-CDf5H0TB.js +1 -0
- package/dist/webcomponents/{p-eNNtSIbE.js → p-CR_-qIuN.js} +1 -1
- package/dist/webcomponents/{p-CprMk6Bv.js → p-CUI41_5y.js} +1 -1
- package/dist/webcomponents/p-CX36GHQP.js +1 -0
- package/dist/webcomponents/{p-CEnTtUmd.js → p-CYQvLgSs.js} +1 -1
- package/dist/webcomponents/p-Cej-1bD6.js +1 -0
- package/dist/webcomponents/p-Cf6HoQKl.js +1 -0
- package/dist/webcomponents/{p-s8zhbjC5.js → p-CsdYMTrc.js} +1 -1
- package/dist/webcomponents/{p-CzdAS9Jo.js → p-D1D2eC05.js} +1 -1
- package/dist/webcomponents/p-D4OlsyTo.js +1 -0
- package/dist/webcomponents/{p-CbM9cuX_.js → p-DPmnGTmg.js} +1 -1
- package/dist/webcomponents/p-DWevPe7C.js +1 -0
- package/dist/webcomponents/{p-Bo0dEB2o.js → p-Dbg501Lu.js} +1 -1
- package/dist/webcomponents/p-DcBvJu0k.js +1 -0
- package/dist/webcomponents/p-DkdzUTnl.js +1 -0
- package/dist/webcomponents/{p-D50Rx76J.js → p-DnrawQn3.js} +1 -1
- package/dist/webcomponents/p-GJyHX3us.js +1 -0
- package/dist/webcomponents/p-MDZuGvsl.js +1 -0
- package/dist/webcomponents/p-XrKLre8M.js +1 -0
- package/dist/webcomponents/p-a7a1b168.entry.js +1 -0
- package/dist/webcomponents/{p-c683cb34.entry.js → p-a80d958d.entry.js} +1 -1
- package/dist/webcomponents/p-b06910b0.entry.js +1 -0
- package/dist/webcomponents/p-b2447726.entry.js +1 -0
- package/dist/webcomponents/{p-d34f497c.entry.js → p-b483e71b.entry.js} +1 -1
- package/dist/webcomponents/{p-431ad048.entry.js → p-bc2af6b4.entry.js} +1 -1
- package/dist/webcomponents/p-befe01ef.entry.js +1 -0
- package/dist/webcomponents/p-bfe2583d.entry.js +1 -0
- package/dist/webcomponents/{p-CwdQ1VdH.js → p-bn_huKYG.js} +1 -1
- package/dist/webcomponents/p-c4767c7b.entry.js +1 -0
- package/dist/webcomponents/p-c73631f0.entry.js +1 -0
- package/dist/webcomponents/p-c8f7ebf6.entry.js +1 -0
- package/dist/webcomponents/p-d253a573.entry.js +1 -0
- package/dist/webcomponents/p-d7633e10.entry.js +1 -0
- package/dist/webcomponents/p-d878df6c.entry.js +1 -0
- package/dist/webcomponents/p-da882bd1.entry.js +1 -0
- package/dist/webcomponents/{p-2595b409.entry.js → p-dd1cfb9e.entry.js} +1 -1
- package/dist/webcomponents/{p-bbcaa5cc.entry.js → p-ddf699e6.entry.js} +4 -4
- package/dist/webcomponents/p-de836ec9.entry.js +1 -0
- package/dist/webcomponents/{p-1c54dc53.entry.js → p-e6e56dbb.entry.js} +1 -1
- package/dist/webcomponents/p-ea30cf08.entry.js +1 -0
- package/dist/webcomponents/p-edf5a854.entry.js +1 -0
- package/dist/webcomponents/p-f24563ab.entry.js +1 -0
- package/dist/webcomponents/p-f4aeda71.entry.js +1 -0
- package/dist/webcomponents/p-faa090a5.entry.js +1 -0
- package/dist/webcomponents/p-fc7ba195.entry.js +1 -0
- package/dist/webcomponents/{p-MvySE12i.js → p-hhdRync5.js} +1 -1
- package/dist/webcomponents/p-niGr4RT2.js +1 -0
- package/dist/webcomponents/{p-Da4efjxw.js → p-pL4dNfsl.js} +1 -1
- package/dist/webcomponents/p-qcQTYcr3.js +1 -0
- package/dist/webcomponents/p-uCg79W3M.js +1 -0
- package/dist/webcomponents/{p-CjuaXEuI.js → p-x9fFFf7F.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +14 -14
- package/dist/cjs/business-details-core.cjs.entry.js +0 -61
- package/dist/cjs/get-payout-csv-DDrtCacG.js +0 -24
- package/dist/cjs/payment-details-core.cjs.entry.js +0 -83
- package/dist/cjs/payments-list-core.cjs.entry.js +0 -112
- package/dist/cjs/payments-table-CUxpxNnc.js +0 -50
- package/dist/cjs/payout-details-core.cjs.entry.js +0 -89
- package/dist/cjs/payouts-list-core.cjs.entry.js +0 -162
- package/dist/cjs/payouts-table-Dex2W8r1.js +0 -34
- package/dist/cjs/terminals-list-core.cjs.entry.js +0 -146
- package/dist/cjs/terminals-table-DmnAuog5.js +0 -64
- package/dist/collection/components/business-details/business-details-core.js +0 -105
- package/dist/collection/components/payment-details/payment-details-core.js +0 -127
- package/dist/collection/components/payments-list/payments-list-core.js +0 -202
- package/dist/collection/components/payout-details/payout-details-core.js +0 -199
- package/dist/collection/components/payouts-list/payouts-list-core.js +0 -298
- package/dist/collection/components/terminals-list/terminals-list-core.js +0 -262
- package/dist/esm/business-details-core.entry.js +0 -59
- package/dist/esm/get-payout-csv-Dhezo7Ty.js +0 -22
- package/dist/esm/payment-details-core.entry.js +0 -81
- package/dist/esm/payments-list-core.entry.js +0 -110
- package/dist/esm/payments-table-n1VrIKIR.js +0 -46
- package/dist/esm/payout-details-core.entry.js +0 -87
- package/dist/esm/payouts-list-core.entry.js +0 -160
- package/dist/esm/payouts-table-CbzI90ci.js +0 -30
- package/dist/esm/terminals-list-core.entry.js +0 -144
- package/dist/esm/terminals-table-Bja7MP5H.js +0 -60
- package/dist/module/business-details-core.d.ts +0 -11
- package/dist/module/business-details-core.js +0 -6
- package/dist/module/business-details-core2.js +0 -117
- package/dist/module/get-payout-csv.js +0 -22
- package/dist/module/payment-details-core.d.ts +0 -11
- package/dist/module/payment-details-core.js +0 -6
- package/dist/module/payment-details-core2.js +0 -109
- package/dist/module/payments-list-core.d.ts +0 -11
- package/dist/module/payments-list-core.js +0 -6
- package/dist/module/payments-list-core2.js +0 -184
- package/dist/module/payout-details-core.d.ts +0 -11
- package/dist/module/payout-details-core.js +0 -6
- package/dist/module/payout-details-core2.js +0 -118
- package/dist/module/payouts-list-core.d.ts +0 -11
- package/dist/module/payouts-list-core.js +0 -6
- package/dist/module/payouts-list-core2.js +0 -221
- package/dist/module/terminals-list-core.d.ts +0 -11
- package/dist/module/terminals-list-core.js +0 -6
- package/dist/module/terminals-list-core2.js +0 -236
- package/dist/types/components/business-details/business-details-core.d.ts +0 -19
- package/dist/types/components/payment-details/payment-details-core.d.ts +0 -16
- package/dist/types/components/payments-list/payments-list-core.d.ts +0 -28
- package/dist/types/components/payout-details/payout-details-core.d.ts +0 -20
- package/dist/types/components/payouts-list/payouts-list-core.d.ts +0 -36
- package/dist/types/components/terminals-list/terminals-list-core.d.ts +0 -34
- package/dist/webcomponents/p-0b95dd8f.entry.js +0 -1
- package/dist/webcomponents/p-0f961323.entry.js +0 -1
- package/dist/webcomponents/p-15dfb893.entry.js +0 -1
- package/dist/webcomponents/p-15f43759.entry.js +0 -1
- package/dist/webcomponents/p-1628613b.entry.js +0 -1
- package/dist/webcomponents/p-180a3b65.entry.js +0 -1
- package/dist/webcomponents/p-18fc10ca.entry.js +0 -1
- package/dist/webcomponents/p-1b610299.entry.js +0 -1
- package/dist/webcomponents/p-1b92fb9a.entry.js +0 -1
- package/dist/webcomponents/p-1srXnUJh.js +0 -1
- package/dist/webcomponents/p-22798967.entry.js +0 -1
- package/dist/webcomponents/p-26c419f3.entry.js +0 -1
- package/dist/webcomponents/p-2d680f77.entry.js +0 -1
- package/dist/webcomponents/p-30f61950.entry.js +0 -1
- package/dist/webcomponents/p-38281490.entry.js +0 -1
- package/dist/webcomponents/p-39bb134c.entry.js +0 -1
- package/dist/webcomponents/p-3a4e27f6.entry.js +0 -1
- package/dist/webcomponents/p-3c50f7aa.entry.js +0 -1
- package/dist/webcomponents/p-4db2e291.entry.js +0 -1
- package/dist/webcomponents/p-4df1d08d.entry.js +0 -1
- package/dist/webcomponents/p-548c411f.entry.js +0 -1
- package/dist/webcomponents/p-55e7e239.entry.js +0 -1
- package/dist/webcomponents/p-563097f0.entry.js +0 -1
- package/dist/webcomponents/p-605636be.entry.js +0 -1
- package/dist/webcomponents/p-6e5ec134.entry.js +0 -1
- package/dist/webcomponents/p-6efbbec1.entry.js +0 -1
- package/dist/webcomponents/p-71de86bf.entry.js +0 -1
- package/dist/webcomponents/p-7225bc77.entry.js +0 -1
- package/dist/webcomponents/p-7c244e99.entry.js +0 -1
- package/dist/webcomponents/p-84168bf0.entry.js +0 -1
- package/dist/webcomponents/p-84879c92.entry.js +0 -1
- package/dist/webcomponents/p-8d5138d8.entry.js +0 -1
- package/dist/webcomponents/p-8e9407a1.entry.js +0 -1
- package/dist/webcomponents/p-92e64f49.entry.js +0 -1
- package/dist/webcomponents/p-9805bc39.entry.js +0 -1
- package/dist/webcomponents/p-B--wlcf0.js +0 -1
- package/dist/webcomponents/p-BJtvT9BX.js +0 -1
- package/dist/webcomponents/p-BrO0HEFJ.js +0 -1
- package/dist/webcomponents/p-C-QiUcEa.js +0 -1
- package/dist/webcomponents/p-C6IaNDXe.js +0 -1
- package/dist/webcomponents/p-C95_YBmG.js +0 -1
- package/dist/webcomponents/p-CSW_ZzE9.js +0 -1
- package/dist/webcomponents/p-CV3lgp6D.js +0 -1
- package/dist/webcomponents/p-D5MdA21U.js +0 -1
- package/dist/webcomponents/p-D68EHdgA.js +0 -1
- package/dist/webcomponents/p-DB_pqjwH.js +0 -1
- package/dist/webcomponents/p-DU2RAZiD.js +0 -1
- package/dist/webcomponents/p-DbJ8_F44.js +0 -1
- package/dist/webcomponents/p-Df9FVwA7.js +0 -1
- package/dist/webcomponents/p-DgPbJiLD.js +0 -1
- package/dist/webcomponents/p-DmBX8khF.js +0 -1
- package/dist/webcomponents/p-DsYFjVQa.js +0 -1
- package/dist/webcomponents/p-EBsfAkrP.js +0 -1
- package/dist/webcomponents/p-N60pPiy5.js +0 -1
- package/dist/webcomponents/p-_fynNk40.js +0 -1
- package/dist/webcomponents/p-ad785edd.entry.js +0 -1
- package/dist/webcomponents/p-b1a947c8.entry.js +0 -1
- package/dist/webcomponents/p-b1c179d7.entry.js +0 -1
- package/dist/webcomponents/p-b822ab7e.entry.js +0 -1
- package/dist/webcomponents/p-bd3f7117.entry.js +0 -1
- package/dist/webcomponents/p-c29859d9.entry.js +0 -1
- package/dist/webcomponents/p-c30dd92c.entry.js +0 -1
- package/dist/webcomponents/p-c4c9f37b.entry.js +0 -1
- package/dist/webcomponents/p-cfd944e6.entry.js +0 -1
- package/dist/webcomponents/p-dc99d6b0.entry.js +0 -1
- package/dist/webcomponents/p-dd704b1a.entry.js +0 -1
- package/dist/webcomponents/p-e29f42c6.entry.js +0 -1
- package/dist/webcomponents/p-e322fcca.entry.js +0 -1
- package/dist/webcomponents/p-e360d88f.entry.js +0 -1
- package/dist/webcomponents/p-eadbb4dc.entry.js +0 -1
- package/dist/webcomponents/p-ef30afd5.entry.js +0 -1
- package/dist/webcomponents/p-eff6a50d.entry.js +0 -1
- package/dist/webcomponents/p-f266373d.entry.js +0 -1
- package/dist/webcomponents/p-fb04fa5a.entry.js +0 -1
- package/dist/webcomponents/p-feb19fa5.entry.js +0 -1
- package/dist/webcomponents/p-k4rghbOK.js +0 -1
- package/dist/webcomponents/p-xSaSp1Jy.js +0 -1
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-p7cvUYAE.js');
|
|
4
|
-
var badge = require('./badge-GBNtUypt.js');
|
|
5
|
-
var parts = require('./parts-BXshb_S-.js');
|
|
6
|
-
var utils = require('./utils-BHi4j5rB.js');
|
|
7
|
-
|
|
8
|
-
const MapTerminalStatusToBadge = (status) => {
|
|
9
|
-
const statusToBadgeProps = {
|
|
10
|
-
connected: {
|
|
11
|
-
variant: badge.BadgeVariant.SUCCESS,
|
|
12
|
-
title: 'This terminal is connected',
|
|
13
|
-
text: 'Connected',
|
|
14
|
-
},
|
|
15
|
-
disconnected: {
|
|
16
|
-
variant: badge.BadgeVariant.DANGER,
|
|
17
|
-
title: 'This terminal is disconnected',
|
|
18
|
-
text: 'Disconnected',
|
|
19
|
-
},
|
|
20
|
-
unknown: {
|
|
21
|
-
variant: badge.BadgeVariant.SECONDARY,
|
|
22
|
-
title: 'The status of this terminal is unknown',
|
|
23
|
-
text: 'Unknown',
|
|
24
|
-
},
|
|
25
|
-
pending_configuration: {
|
|
26
|
-
variant: badge.BadgeVariant.WARNING,
|
|
27
|
-
title: 'This terminal is pending configuration',
|
|
28
|
-
text: 'Pending configuration',
|
|
29
|
-
},
|
|
30
|
-
archived: {
|
|
31
|
-
variant: badge.BadgeVariant.SECONDARY,
|
|
32
|
-
title: 'This terminal is archived',
|
|
33
|
-
text: 'Archived',
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
const badgeProps = statusToBadgeProps[status];
|
|
37
|
-
return index.h(badge.Badge, Object.assign({}, badgeProps));
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
const defaultColumnsKeys = 'nickname,provider_serial_number,status';
|
|
41
|
-
const terminalTableColumns = {
|
|
42
|
-
nickname: () => (index.h("th", { part: parts.tableHeadCell, scope: "col", title: "The nickname associated with the terminal" }, "Nickname")),
|
|
43
|
-
model_name: () => (index.h("th", { part: parts.tableHeadCell, scope: "col", title: "The model name of the terminal" }, "Model Name")),
|
|
44
|
-
id: () => (index.h("th", { part: parts.tableHeadCell, scope: "col", title: "The ID of the terminal" }, "ID")),
|
|
45
|
-
provider: () => (index.h("th", { part: parts.tableHeadCell, scope: "col", title: "The provider of the terminal" }, "Provider")),
|
|
46
|
-
provider_serial_number: () => (index.h("th", { part: parts.tableHeadCell, scope: "col", title: "The serial number of the terminal" }, "Serial Number")),
|
|
47
|
-
device_id: () => (index.h("th", { part: parts.tableHeadCell, scope: "col", title: "The device/provider ID of the terminal" }, "Device ID")),
|
|
48
|
-
sub_account_name: () => (index.h("th", { part: parts.tableHeadCell, scope: "col", title: "The sub account associated with the terminal" }, "Sub Account")),
|
|
49
|
-
status: () => (index.h("th", { part: parts.tableHeadCell, scope: "col", title: "The current status of each terminal" }, "Status")),
|
|
50
|
-
};
|
|
51
|
-
const terminalTableCells = {
|
|
52
|
-
nickname: (terminal, index$1) => (index.h("td", { part: parts.getAlternateTableCellPart(index$1) }, terminal.nickname)),
|
|
53
|
-
model_name: (terminal, index$1) => (index.h("td", { part: parts.getAlternateTableCellPart(index$1) }, terminal.model_name)),
|
|
54
|
-
id: (terminal, index$1) => (index.h("td", { part: parts.getAlternateTableCellPart(index$1) }, terminal.id)),
|
|
55
|
-
provider: (terminal, index$1) => (index.h("td", { part: parts.getAlternateTableCellPart(index$1) }, utils.capitalFirstLetter(terminal.provider))),
|
|
56
|
-
provider_serial_number: (terminal, index$1) => (index.h("td", { part: parts.getAlternateTableCellPart(index$1) }, terminal.provider_serial_number)),
|
|
57
|
-
device_id: (terminal, index$1) => (index.h("td", { part: parts.getAlternateTableCellPart(index$1) }, terminal.provider_id)),
|
|
58
|
-
sub_account_name: (terminal, index$1) => (index.h("td", { part: parts.getAlternateTableCellPart(index$1) }, terminal.sub_account_name)),
|
|
59
|
-
status: (terminal, index$1) => (index.h("td", { part: parts.getAlternateTableCellPart(index$1) }, MapTerminalStatusToBadge(terminal.status))),
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
exports.defaultColumnsKeys = defaultColumnsKeys;
|
|
63
|
-
exports.terminalTableCells = terminalTableCells;
|
|
64
|
-
exports.terminalTableColumns = terminalTableColumns;
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { ErrorState } from "../../ui-components/details/utils";
|
|
3
|
-
import { StyledHost } from "../../ui-components";
|
|
4
|
-
import { BusinessDetailsLoading } from "./business-details-loading";
|
|
5
|
-
var RENDER_STATES;
|
|
6
|
-
(function (RENDER_STATES) {
|
|
7
|
-
RENDER_STATES["LOADING"] = "loading";
|
|
8
|
-
RENDER_STATES["READY"] = "ready";
|
|
9
|
-
RENDER_STATES["ERROR"] = "error";
|
|
10
|
-
})(RENDER_STATES || (RENDER_STATES = {}));
|
|
11
|
-
export class BusinessDetailsCore {
|
|
12
|
-
constructor() {
|
|
13
|
-
this.renderState = RENDER_STATES.LOADING;
|
|
14
|
-
}
|
|
15
|
-
async componentWillLoad() {
|
|
16
|
-
if (this.getBusiness) {
|
|
17
|
-
this.fetchData();
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
fetchData() {
|
|
21
|
-
this.renderState = RENDER_STATES.LOADING;
|
|
22
|
-
this.getBusiness({
|
|
23
|
-
onSuccess: ({ business }) => {
|
|
24
|
-
this.business = business;
|
|
25
|
-
this.renderState = RENDER_STATES.READY;
|
|
26
|
-
},
|
|
27
|
-
onError: ({ error, code, severity }) => {
|
|
28
|
-
this.errorMessage = error;
|
|
29
|
-
this.renderState = RENDER_STATES.ERROR;
|
|
30
|
-
this.errorEvent.emit({
|
|
31
|
-
errorCode: code,
|
|
32
|
-
message: error,
|
|
33
|
-
severity,
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
render() {
|
|
39
|
-
if (this.renderState === RENDER_STATES.LOADING) {
|
|
40
|
-
return (h(StyledHost, null, h(BusinessDetailsLoading, null)));
|
|
41
|
-
}
|
|
42
|
-
if (this.renderState === RENDER_STATES.ERROR) {
|
|
43
|
-
return h(StyledHost, null, ErrorState(this.errorMessage));
|
|
44
|
-
}
|
|
45
|
-
return (h(StyledHost, null, h("justifi-details", { errorMessage: this.errorMessage }, h("div", { slot: 'detail-sections' }, h("core-info-details", { business: this.business }), h("legal-address-details", { legalAddress: this.business.legal_address }), h("representative-details", { representative: this.business.representative }), h("owner-details", { owners: this.business.owners }), h("additional-questions-details", { additionalQuestions: this.business.additional_questions })))));
|
|
46
|
-
}
|
|
47
|
-
static get is() { return "business-details-core"; }
|
|
48
|
-
static get properties() {
|
|
49
|
-
return {
|
|
50
|
-
"getBusiness": {
|
|
51
|
-
"type": "unknown",
|
|
52
|
-
"mutable": false,
|
|
53
|
-
"complexType": {
|
|
54
|
-
"original": "Function",
|
|
55
|
-
"resolved": "Function",
|
|
56
|
-
"references": {
|
|
57
|
-
"Function": {
|
|
58
|
-
"location": "global",
|
|
59
|
-
"id": "global::Function"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"required": true,
|
|
64
|
-
"optional": false,
|
|
65
|
-
"docs": {
|
|
66
|
-
"tags": [],
|
|
67
|
-
"text": ""
|
|
68
|
-
},
|
|
69
|
-
"getter": false,
|
|
70
|
-
"setter": false
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
static get states() {
|
|
75
|
-
return {
|
|
76
|
-
"business": {},
|
|
77
|
-
"renderState": {},
|
|
78
|
-
"errorMessage": {}
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
static get events() {
|
|
82
|
-
return [{
|
|
83
|
-
"method": "errorEvent",
|
|
84
|
-
"name": "error-event",
|
|
85
|
-
"bubbles": true,
|
|
86
|
-
"cancelable": true,
|
|
87
|
-
"composed": true,
|
|
88
|
-
"docs": {
|
|
89
|
-
"tags": [],
|
|
90
|
-
"text": ""
|
|
91
|
-
},
|
|
92
|
-
"complexType": {
|
|
93
|
-
"original": "ComponentErrorEvent",
|
|
94
|
-
"resolved": "ComponentErrorEvent",
|
|
95
|
-
"references": {
|
|
96
|
-
"ComponentErrorEvent": {
|
|
97
|
-
"location": "import",
|
|
98
|
-
"path": "../../api/ComponentEvents",
|
|
99
|
-
"id": "src/api/ComponentEvents.ts::ComponentErrorEvent"
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}];
|
|
104
|
-
}
|
|
105
|
-
}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { DisputeStatus, PaymentStatuses } from "../../api";
|
|
3
|
-
import { formatDate, formatTime, snakeCaseToHumanReadable } from "../../utils/utils";
|
|
4
|
-
import { MapPaymentStatusToBadge, PaymentStatusBadge } from "../payments-list/payments-status";
|
|
5
|
-
import { CodeBlock, DetailItem, DetailSectionTitle, EntityHeadInfo, EntityHeadInfoItem, ErrorState } from "../../ui-components/details/utils";
|
|
6
|
-
import { StyledHost } from "../../ui-components";
|
|
7
|
-
import PaymentDetailsLoading from "./payment-details-loading";
|
|
8
|
-
import { Badge, BadgeVariant } from "../../ui-components/badge/badge";
|
|
9
|
-
export class PaymentDetailsCore {
|
|
10
|
-
constructor() {
|
|
11
|
-
this.loading = true;
|
|
12
|
-
}
|
|
13
|
-
componentWillLoad() {
|
|
14
|
-
if (this.getPaymentDetails) {
|
|
15
|
-
this.fetchData();
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
updateOnPropChange() {
|
|
19
|
-
this.fetchData();
|
|
20
|
-
}
|
|
21
|
-
fetchData() {
|
|
22
|
-
this.loading = true;
|
|
23
|
-
this.getPaymentDetails({
|
|
24
|
-
onSuccess: ({ payment }) => {
|
|
25
|
-
this.payment = payment;
|
|
26
|
-
this.errorMessage = null;
|
|
27
|
-
},
|
|
28
|
-
onError: ({ error, code, severity }) => {
|
|
29
|
-
this.errorMessage = error;
|
|
30
|
-
this.errorEvent.emit({
|
|
31
|
-
errorCode: code,
|
|
32
|
-
message: error,
|
|
33
|
-
severity,
|
|
34
|
-
});
|
|
35
|
-
},
|
|
36
|
-
final: () => {
|
|
37
|
-
this.loading = false;
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
get PaymentStatus() {
|
|
42
|
-
if (this.payment.status === PaymentStatuses.disputed) {
|
|
43
|
-
const disputeWasLost = this.payment.disputes.some((dispute) => dispute.status === DisputeStatus.lost);
|
|
44
|
-
if (disputeWasLost) {
|
|
45
|
-
return PaymentStatusBadge.DISPUTE_LOST;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return this.payment.status;
|
|
49
|
-
}
|
|
50
|
-
render() {
|
|
51
|
-
return (h(StyledHost, { key: '92ef6c638768adc01e3682fb486dc2f988c677cd' }, this.loading && h(PaymentDetailsLoading, { key: '8fe108114498a6aa3c515f64bd1503b8bcd1bfb8' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && !this.errorMessage &&
|
|
52
|
-
this.payment && (h("justifi-details", { key: 'a47c503739269d4c0f429540268e93eb3e4594b3', errorMessage: this.errorMessage }, h(EntityHeadInfo, { key: '98b968f9568403995a6581d1504691707251a1cb', slot: "head-info", badge: (h("div", { class: "d-flex gap-1" }, MapPaymentStatusToBadge(this.PaymentStatus), this.payment.expedited ? (h(Badge, { variant: BadgeVariant.WARNING, title: "Expedited", text: "Expedited" })) : null)), title: this.payment.formattedPaymentAmount(this.payment.amount) }, h(EntityHeadInfoItem, { key: '8269b38c09e7b0904d49cbecedede97fea33525e', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payment.updated_at)} ${formatTime(this.payment.updated_at)}` }), h(EntityHeadInfoItem, { key: '4595b47217d10510b2999c1911d9705f7b9d2279', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payment.created_at)} ${formatTime(this.payment.created_at)}` }), h(EntityHeadInfoItem, { key: 'd85ff59ce766dd40a852aca41554b67bc9399060', title: "ID", value: this.payment.id })), h("div", { key: 'f3d19819c8adf1c0fb22aaec41835b6591ddbb21', slot: 'detail-sections' }, h(DetailSectionTitle, { key: '362ece2a9a5b7297e0c6f9e60f617146fab29ef8', sectionTitle: "Details" }), h("div", { key: '7d4f1ceeb5d2b76b1dff3be0e4931c1b184b4c64', class: "d-flex flex-column gap-2 w-100" }, h(DetailItem, { key: 'addc59665a77d044f134627d79a0c1194cf462f0', title: "Amount", value: this.payment.formattedPaymentAmount(this.payment.amount) }), h(DetailItem, { key: '17422ecc90e0847b6eb340d30c36299542f235da', title: "Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: 'b51e5fdd7c166fcfa837776602d4de69785c89b7', title: "Refunded", value: this.payment.formattedPaymentAmount(this.payment.amount_refunded) }), h(DetailItem, { key: 'd6d3155f1a874f65126211bcab62b81f24fd57f3', title: "Net", value: this.payment.formattedPaymentAmount(this.payment.balance) }), h(DetailItem, { key: '7e1598c0bf56a6edc90d180377f734aae586eca0', title: "Status", value: MapPaymentStatusToBadge(this.PaymentStatus) }), h(DetailItem, { key: 'be12abf332c2e9f67623e63a517ea23f231289ca', title: "Payment ID", value: this.payment.id }), h(DetailItem, { key: '3781968bb4c2a463623101007cefdf8c6ea6bcc4', title: "Processing Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: '6ebe10c76ada3fe1dd5f05c58a52fa0604f185df', title: "Statement Descriptor", value: this.payment.statement_descriptor }), h(DetailItem, { key: 'dc9df4e19723689e619a543815919e2044bd5511', title: "Description", value: this.payment.description }), h(DetailItem, { key: '52dcd8984dda1115b53a9567e79a0d86d8117f0a', title: "Expedited", value: this.payment.expedited ? 'Yes' : 'No' })), this.payment.payment_method.card && [
|
|
53
|
-
h(DetailSectionTitle, { key: '0a5595ced3b093b930e262415592c373109a95dc', sectionTitle: "Payment Method" }),
|
|
54
|
-
h("div", { key: '0c8a056b36babb831b5d684ccf8d76a498878b16', class: "d-flex flex-column gap-2 w-100" }, h(DetailItem, { key: 'e321d0b86c58fd62c7df5d12cb02a10f364058f7', title: "ID", value: this.payment.payment_method.card.id }), h(DetailItem, { key: 'fcabccc2c569dc9990d8f2c38853dedbe4a5f6e4', title: "Payment Type", value: "Card" }), h(DetailItem, { key: '5aece8dd14247b1cf5dc6f42ae07c508df0509a6', title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { key: 'b31e5a5f532d128168f3ec7b394e853bad0d5a1f', title: "Brand", value: snakeCaseToHumanReadable(this.payment.payment_method.card.brand) }), h(DetailItem, { key: '0527fd97d660f293d557ee89230e9f79a5565e44', title: "Cardholder", value: this.payment.payment_method.payersName }))
|
|
55
|
-
], this.payment.payment_method.bank_account && [
|
|
56
|
-
h(DetailSectionTitle, { key: '9c7478beff791dcdd02744b83ae9d9f556e88133', sectionTitle: "Payment Method" }),
|
|
57
|
-
h("div", { key: '09057810c9c5a091c4bd2d4f44f4ba034aeacb5e', class: "d-flex flex-column gap-2 w-100" }, h(DetailItem, { key: 'b3a4d4e3404fbe85c27bfc1d00394ca87c668516', title: "ID", value: this.payment.payment_method.bank_account.id }), h(DetailItem, { key: 'd1422c95907ef5a4889c2993db38b12ce0511435', title: "Last 4 Numbers", value: this.payment.last_four_digits }), h(DetailItem, { key: 'b915ccece34ddb429c7f3809b7bd843f5cc85b5d', title: "Bank Name", value: this.payment.payment_method.bank_account.brand }), h(DetailItem, { key: '5cddb813c21797f33a2c50fd9d76c5e02823147f', title: "Account Owner", value: this.payment.payment_method.payersName }))
|
|
58
|
-
], this.payment.metadata && [
|
|
59
|
-
h(DetailSectionTitle, { key: '75e1a474ef6d9290c8556345757ac5a69f72d615', sectionTitle: 'Metadata' }),
|
|
60
|
-
h("div", { key: '26482e1a90fa4b0e21fbefabd8c1d2d7a50d4e5a', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: '2d1dd8a6d4fbb47c6dd13aa9c3f9508a984b3bf8', metadata: this.payment.metadata }))
|
|
61
|
-
])))));
|
|
62
|
-
}
|
|
63
|
-
static get is() { return "payment-details-core"; }
|
|
64
|
-
static get properties() {
|
|
65
|
-
return {
|
|
66
|
-
"getPaymentDetails": {
|
|
67
|
-
"type": "unknown",
|
|
68
|
-
"mutable": false,
|
|
69
|
-
"complexType": {
|
|
70
|
-
"original": "Function",
|
|
71
|
-
"resolved": "Function",
|
|
72
|
-
"references": {
|
|
73
|
-
"Function": {
|
|
74
|
-
"location": "global",
|
|
75
|
-
"id": "global::Function"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
"required": true,
|
|
80
|
-
"optional": false,
|
|
81
|
-
"docs": {
|
|
82
|
-
"tags": [],
|
|
83
|
-
"text": ""
|
|
84
|
-
},
|
|
85
|
-
"getter": false,
|
|
86
|
-
"setter": false
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
static get states() {
|
|
91
|
-
return {
|
|
92
|
-
"payment": {},
|
|
93
|
-
"loading": {},
|
|
94
|
-
"errorMessage": {}
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
static get events() {
|
|
98
|
-
return [{
|
|
99
|
-
"method": "errorEvent",
|
|
100
|
-
"name": "error-event",
|
|
101
|
-
"bubbles": true,
|
|
102
|
-
"cancelable": true,
|
|
103
|
-
"composed": true,
|
|
104
|
-
"docs": {
|
|
105
|
-
"tags": [],
|
|
106
|
-
"text": ""
|
|
107
|
-
},
|
|
108
|
-
"complexType": {
|
|
109
|
-
"original": "ComponentErrorEvent",
|
|
110
|
-
"resolved": "ComponentErrorEvent",
|
|
111
|
-
"references": {
|
|
112
|
-
"ComponentErrorEvent": {
|
|
113
|
-
"location": "import",
|
|
114
|
-
"path": "../../api/ComponentEvents",
|
|
115
|
-
"id": "src/api/ComponentEvents.ts::ComponentErrorEvent"
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}];
|
|
120
|
-
}
|
|
121
|
-
static get watchers() {
|
|
122
|
-
return [{
|
|
123
|
-
"propName": "getPaymentDetails",
|
|
124
|
-
"methodName": "updateOnPropChange"
|
|
125
|
-
}];
|
|
126
|
-
}
|
|
127
|
-
}
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { pagingDefaults } from "../../api";
|
|
3
|
-
import { TableEmptyState, TableErrorState, TableLoadingState } from "../../ui-components";
|
|
4
|
-
import { paymentTableCells, paymentTableColumns } from "./payments-table";
|
|
5
|
-
import { Table } from "../../utils/table";
|
|
6
|
-
import { getRequestParams, onQueryParamsChange } from "./payments-list-params-state";
|
|
7
|
-
import { TableWrapper, TableComponent, TableHead, TableHeadRow, TableBody, TableRow, TableFoot, TableFootRow, TableFootCell, TableClickActions } from "../../ui-components";
|
|
8
|
-
export class PaymentsListCore {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.payments = [];
|
|
11
|
-
this.loading = true;
|
|
12
|
-
this.paging = pagingDefaults;
|
|
13
|
-
this.pagingParams = {};
|
|
14
|
-
this.handleClickPrevious = (beforeCursor) => {
|
|
15
|
-
this.pagingParams = { before_cursor: beforeCursor };
|
|
16
|
-
this.clickEvent.emit({ name: TableClickActions.previous });
|
|
17
|
-
};
|
|
18
|
-
this.handleClickNext = (afterCursor) => {
|
|
19
|
-
this.pagingParams = { after_cursor: afterCursor };
|
|
20
|
-
this.clickEvent.emit({ name: TableClickActions.next });
|
|
21
|
-
};
|
|
22
|
-
this.rowClickHandler = (e) => {
|
|
23
|
-
const clickedPaymentID = e.target.closest('tr').dataset.rowEntityId;
|
|
24
|
-
if (!clickedPaymentID)
|
|
25
|
-
return;
|
|
26
|
-
const paymentData = this.payments.find((payment) => payment.id === clickedPaymentID);
|
|
27
|
-
this.clickEvent.emit({ name: TableClickActions.row, data: paymentData });
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
updateOnPropChange() {
|
|
31
|
-
this.fetchData();
|
|
32
|
-
}
|
|
33
|
-
componentWillLoad() {
|
|
34
|
-
this.paymentsTable = new Table(this.payments, this.columns, paymentTableColumns, paymentTableCells);
|
|
35
|
-
if (this.getPayments) {
|
|
36
|
-
this.fetchData();
|
|
37
|
-
}
|
|
38
|
-
onQueryParamsChange('set', () => {
|
|
39
|
-
this.pagingParams = {};
|
|
40
|
-
this.errorMessage = '';
|
|
41
|
-
});
|
|
42
|
-
onQueryParamsChange('reset', () => {
|
|
43
|
-
this.pagingParams = {};
|
|
44
|
-
this.errorMessage = '';
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
fetchData() {
|
|
48
|
-
this.loading = true;
|
|
49
|
-
this.getPayments({
|
|
50
|
-
params: this.paymentParams,
|
|
51
|
-
onSuccess: ({ payments, pagingInfo }) => {
|
|
52
|
-
this.payments = payments;
|
|
53
|
-
this.paging = pagingInfo;
|
|
54
|
-
this.paymentsTable.collectionData = this.payments;
|
|
55
|
-
},
|
|
56
|
-
onError: ({ error, code, severity }) => {
|
|
57
|
-
this.errorMessage = error;
|
|
58
|
-
this.errorEvent.emit({
|
|
59
|
-
errorCode: code,
|
|
60
|
-
message: error,
|
|
61
|
-
severity,
|
|
62
|
-
});
|
|
63
|
-
},
|
|
64
|
-
final: () => {
|
|
65
|
-
this.loading = false;
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
get paymentParams() {
|
|
70
|
-
const requestParams = getRequestParams();
|
|
71
|
-
const params = Object.assign(Object.assign({}, requestParams), this.pagingParams);
|
|
72
|
-
return params;
|
|
73
|
-
}
|
|
74
|
-
get entityId() {
|
|
75
|
-
return this.payments.map((payment) => payment.id);
|
|
76
|
-
}
|
|
77
|
-
get showEmptyState() {
|
|
78
|
-
return !this.loading && !this.errorMessage && this.paymentsTable.rowData.length < 1;
|
|
79
|
-
}
|
|
80
|
-
get showErrorState() {
|
|
81
|
-
return !this.loading && !!this.errorMessage;
|
|
82
|
-
}
|
|
83
|
-
get showRowData() {
|
|
84
|
-
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
85
|
-
}
|
|
86
|
-
render() {
|
|
87
|
-
return (h(TableWrapper, { key: 'b582865a40c00ace45e5288f79f1a89afabb9eb7' }, h(TableComponent, { key: '399614aeac9d7daa7e91a6974ed36a22e9bfad7a' }, h(TableHead, { key: '41932e7e448c1826d1f994016cdcca83a845966d' }, h(TableHeadRow, { key: 'd1e28d54aff40b2c44ec25b89e7772eb6e2fd5f4' }, this.paymentsTable.columnData.map((column) => column))), h(TableBody, { key: '1b8ba62acf2c908ee52d3fbd1246dc0d71a4b927' }, h(TableLoadingState, { key: 'ee94ffebe89c0fd7e36660847462c74e019ece95', columnSpan: this.paymentsTable.columnData.length, isLoading: this.loading }), h(TableEmptyState, { key: 'c2cea2a7c73e5a846e1bfc0905d7da810b1af2e5', isEmpty: this.showEmptyState, columnSpan: this.paymentsTable.columnData.length }), h(TableErrorState, { key: 'e0dec0ca5484e11265ebe86f95b268e1f59d73b9', columnSpan: this.paymentsTable.columnData.length, errorMessage: this.errorMessage }), this.showRowData && this.paymentsTable.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: 'dfd4f8411c7bb181444a9a8034ae19c6509e9972' }, h(TableFootRow, { key: 'f97f23407781f236b92714aeaa5f5dee3dd36743' }, h(TableFootCell, { key: '4b92b54e288bbb0f39b312ac7b0d88dd253add6b', colSpan: this.paymentsTable.columnData.length }, h("pagination-menu", { key: 'e3ad51e4d4d96cf38eb4240c01f0077374861b6e', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) }))))))));
|
|
88
|
-
}
|
|
89
|
-
static get is() { return "payments-list-core"; }
|
|
90
|
-
static get properties() {
|
|
91
|
-
return {
|
|
92
|
-
"getPayments": {
|
|
93
|
-
"type": "unknown",
|
|
94
|
-
"mutable": false,
|
|
95
|
-
"complexType": {
|
|
96
|
-
"original": "Function",
|
|
97
|
-
"resolved": "Function",
|
|
98
|
-
"references": {
|
|
99
|
-
"Function": {
|
|
100
|
-
"location": "global",
|
|
101
|
-
"id": "global::Function"
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
"required": true,
|
|
106
|
-
"optional": false,
|
|
107
|
-
"docs": {
|
|
108
|
-
"tags": [],
|
|
109
|
-
"text": ""
|
|
110
|
-
},
|
|
111
|
-
"getter": false,
|
|
112
|
-
"setter": false
|
|
113
|
-
},
|
|
114
|
-
"columns": {
|
|
115
|
-
"type": "string",
|
|
116
|
-
"mutable": false,
|
|
117
|
-
"complexType": {
|
|
118
|
-
"original": "string",
|
|
119
|
-
"resolved": "string",
|
|
120
|
-
"references": {}
|
|
121
|
-
},
|
|
122
|
-
"required": true,
|
|
123
|
-
"optional": false,
|
|
124
|
-
"docs": {
|
|
125
|
-
"tags": [],
|
|
126
|
-
"text": ""
|
|
127
|
-
},
|
|
128
|
-
"getter": false,
|
|
129
|
-
"setter": false,
|
|
130
|
-
"reflect": false,
|
|
131
|
-
"attribute": "columns"
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
static get states() {
|
|
136
|
-
return {
|
|
137
|
-
"payments": {},
|
|
138
|
-
"paymentsTable": {},
|
|
139
|
-
"loading": {},
|
|
140
|
-
"errorMessage": {},
|
|
141
|
-
"paging": {},
|
|
142
|
-
"pagingParams": {}
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
static get events() {
|
|
146
|
-
return [{
|
|
147
|
-
"method": "clickEvent",
|
|
148
|
-
"name": "click-event",
|
|
149
|
-
"bubbles": true,
|
|
150
|
-
"cancelable": true,
|
|
151
|
-
"composed": true,
|
|
152
|
-
"docs": {
|
|
153
|
-
"tags": [],
|
|
154
|
-
"text": ""
|
|
155
|
-
},
|
|
156
|
-
"complexType": {
|
|
157
|
-
"original": "ComponentClickEvent",
|
|
158
|
-
"resolved": "ComponentClickEvent",
|
|
159
|
-
"references": {
|
|
160
|
-
"ComponentClickEvent": {
|
|
161
|
-
"location": "import",
|
|
162
|
-
"path": "../../api/ComponentEvents",
|
|
163
|
-
"id": "src/api/ComponentEvents.ts::ComponentClickEvent"
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}, {
|
|
168
|
-
"method": "errorEvent",
|
|
169
|
-
"name": "error-event",
|
|
170
|
-
"bubbles": true,
|
|
171
|
-
"cancelable": true,
|
|
172
|
-
"composed": true,
|
|
173
|
-
"docs": {
|
|
174
|
-
"tags": [],
|
|
175
|
-
"text": ""
|
|
176
|
-
},
|
|
177
|
-
"complexType": {
|
|
178
|
-
"original": "ComponentErrorEvent",
|
|
179
|
-
"resolved": "ComponentErrorEvent",
|
|
180
|
-
"references": {
|
|
181
|
-
"ComponentErrorEvent": {
|
|
182
|
-
"location": "import",
|
|
183
|
-
"path": "../../api/ComponentEvents",
|
|
184
|
-
"id": "src/api/ComponentEvents.ts::ComponentErrorEvent"
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}];
|
|
189
|
-
}
|
|
190
|
-
static get watchers() {
|
|
191
|
-
return [{
|
|
192
|
-
"propName": "pagingParams",
|
|
193
|
-
"methodName": "updateOnPropChange"
|
|
194
|
-
}, {
|
|
195
|
-
"propName": "getPayments",
|
|
196
|
-
"methodName": "updateOnPropChange"
|
|
197
|
-
}, {
|
|
198
|
-
"propName": "columns",
|
|
199
|
-
"methodName": "updateOnPropChange"
|
|
200
|
-
}];
|
|
201
|
-
}
|
|
202
|
-
}
|