@justifi/webcomponents 4.22.2 → 4.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Analytics-99a3c7f8.js → Analytics-7ab90cae.js} +1 -1
- package/dist/cjs/{Payment-04a842f4.js → Payment-87b47c43.js} +7 -1
- package/dist/cjs/{SubAccount-cc95a4a0.js → SubAccount-fda5ec5b.js} +3 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
- package/dist/cjs/{business-additional-questions-schema-d82355b0.js → business-additional-questions-schema-f5591026.js} +2 -2
- package/dist/cjs/{business-identity-schema-3d241053.js → business-identity-schema-804a4bd7.js} +1 -1
- package/dist/cjs/{check-pkg-version-9bd49ad6.js → check-pkg-version-fe8c72a9.js} +1 -1
- package/dist/cjs/{checkout.service-160f3a9c.js → checkout.service-aae1996c.js} +2 -2
- package/dist/cjs/checkouts-list-core.cjs.entry.js +7 -8
- package/dist/cjs/{checkouts-table-24c065ff.js → checkouts-table-00b6482f.js} +7 -7
- package/dist/cjs/custom-popper_4.cjs.entry.js +3 -3
- package/dist/cjs/form-control-checkbox_9.cjs.entry.js +5 -5
- package/dist/cjs/form-control-date.cjs.entry.js +6 -37
- package/dist/cjs/form-control-file.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +1 -1
- package/dist/cjs/form-control-number.cjs.entry.js +1 -1
- package/dist/cjs/form-control-radio.cjs.entry.js +1 -1
- package/dist/cjs/form-control-textarea.cjs.entry.js +1 -1
- package/dist/cjs/{get-payout-csv-12dc9540.js → get-payout-csv-1eed32ee.js} +17 -8
- package/dist/cjs/{get-subaccounts-8f7a930f.js → get-subaccounts-1d2fb201.js} +2 -2
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +3 -3
- package/dist/cjs/justifi-additional-statement_11.cjs.entry.js +6 -6
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-business-form.cjs.entry.js +8 -8
- package/dist/cjs/justifi-card-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -3
- package/dist/cjs/justifi-new-payment-method_5.cjs.entry.js +2 -2
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payment-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +11 -7
- package/dist/cjs/justifi-payout-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +42 -20
- package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +9 -9
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-e25f61a8.js → package-6d1daab8.js} +2 -2
- package/dist/cjs/{pagination-menu.cjs.entry.js → pagination-menu_2.cjs.entry.js} +29 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +2 -2
- package/dist/cjs/{payment.service-83da752a.js → payment.service-86871f43.js} +2 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +18 -52
- package/dist/cjs/payments-list-filters.cjs.entry.js +6 -1
- package/dist/cjs/{payments-status-58e45b2e.js → payments-status-68ac449d.js} +2 -2
- package/dist/cjs/payments-table-7087e771.js +31 -0
- package/dist/cjs/payout-details-core.cjs.entry.js +2 -2
- package/dist/cjs/payouts-list-core.cjs.entry.js +66 -59
- package/dist/cjs/payouts-list-filters.cjs.entry.js +24 -0
- package/dist/cjs/payouts-table-4858eb84.js +37 -0
- package/dist/cjs/{schema-validations-7a9afa7c.js → schema-validations-f0363047.js} +1 -13
- package/dist/cjs/{table-loading-state-8b406852.js → table-ec9ce9f7.js} +21 -0
- package/dist/cjs/terminals-list-core.cjs.entry.js +6 -7
- package/dist/cjs/terminals-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/{terminals-table-99a7b87b.js → terminals-table-12410159.js} +4 -4
- package/dist/cjs/{utils-f8a6962c.js → utils-ba79e868.js} +12 -0
- package/dist/cjs/{utils-3d84442d.js → utils-e88fbc94.js} +49 -32
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Payment.js +7 -1
- package/dist/collection/api/Payout.js +4 -0
- package/dist/collection/api/services/payout.service.js +15 -6
- package/dist/collection/api/services/terminal.service.js +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +1 -1
- package/dist/collection/components/business-forms/schemas/schema-validations.js +2 -11
- package/dist/collection/components/checkouts-list/checkouts-list.js +2 -2
- package/dist/collection/components/checkouts-list/checkouts-table.js +6 -6
- package/dist/collection/components/dispute-management/counter-dispute/counter-dispute.js +4 -4
- package/dist/collection/components/dispute-management/dispute-management-core.js +3 -3
- package/dist/collection/components/dispute-management/dispute-notification.js +4 -4
- package/dist/collection/components/payment-method-form/payment-method-form.js +2 -2
- package/dist/collection/components/payments-list/payments-list-core.js +32 -47
- package/dist/collection/components/payments-list/payments-list-filters.js +6 -1
- package/dist/collection/components/payments-list/payments-list.js +22 -3
- package/dist/collection/components/payments-list/payments-status.js +2 -2
- package/dist/collection/components/payments-list/payments-table.js +22 -0
- package/dist/collection/components/payout-details/payout-details-core.js +1 -1
- package/dist/collection/components/payouts-list/get-payouts.js +3 -4
- package/dist/collection/components/payouts-list/payouts-list-core.js +102 -51
- package/dist/collection/components/payouts-list/payouts-list-filters.js +72 -0
- package/dist/collection/components/payouts-list/payouts-list.js +71 -12
- package/dist/collection/components/payouts-list/payouts-table.js +26 -0
- package/dist/collection/components/refund-form/refund-form.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 +2 -2
- package/dist/collection/components/terminals-list/terminals-table.js +4 -4
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/filters/utils.js +11 -0
- package/dist/collection/ui-components/form/form-control-checkbox.js +1 -1
- package/dist/collection/ui-components/form/form-control-date.js +6 -55
- package/dist/collection/ui-components/form/form-control-file.js +1 -1
- package/dist/collection/ui-components/form/form-control-monetary.js +1 -1
- package/dist/collection/ui-components/form/form-control-number-masked.js +1 -1
- package/dist/collection/ui-components/form/form-control-number.js +1 -1
- package/dist/collection/ui-components/form/form-control-radio.js +1 -1
- package/dist/collection/ui-components/form/form-control-text.js +1 -1
- package/dist/collection/ui-components/form/form-control-textarea.js +1 -1
- package/dist/collection/utils/table.js +2 -2
- package/dist/collection/utils/utils.js +49 -52
- package/dist/docs.json +276 -49
- package/dist/esm/{Analytics-f4e959b2.js → Analytics-77dc80f3.js} +1 -1
- package/dist/esm/{Payment-30790721.js → Payment-2a868d0c.js} +7 -1
- package/dist/esm/{SubAccount-7f7e4c56.js → SubAccount-99a00594.js} +3 -0
- package/dist/esm/additional-questions-details_5.entry.js +1 -1
- package/dist/esm/{business-additional-questions-schema-a5072d2b.js → business-additional-questions-schema-d94f8975.js} +2 -2
- package/dist/esm/{business-identity-schema-b31178a1.js → business-identity-schema-2756dbc6.js} +1 -1
- package/dist/esm/{check-pkg-version-5e658940.js → check-pkg-version-fbf01ce7.js} +1 -1
- package/dist/esm/{checkout.service-ef1549c6.js → checkout.service-c1e44e0c.js} +2 -2
- package/dist/esm/checkouts-list-core.entry.js +6 -7
- package/dist/esm/{checkouts-table-62c44909.js → checkouts-table-cd33b57c.js} +7 -7
- package/dist/esm/custom-popper_4.entry.js +3 -3
- package/dist/esm/form-control-checkbox_9.entry.js +5 -5
- package/dist/esm/form-control-date.entry.js +6 -37
- package/dist/esm/form-control-file.entry.js +1 -1
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/form-control-number-masked_2.entry.js +1 -1
- package/dist/esm/form-control-number.entry.js +1 -1
- package/dist/esm/form-control-radio.entry.js +1 -1
- package/dist/esm/form-control-textarea.entry.js +1 -1
- package/dist/esm/{get-payout-csv-70974763.js → get-payout-csv-3b83b088.js} +17 -8
- package/dist/esm/{get-subaccounts-16c8ce40.js → get-subaccounts-dd20cfa4.js} +2 -2
- package/dist/esm/gross-payment-chart-core.entry.js +1 -1
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +3 -3
- package/dist/esm/justifi-additional-statement_11.entry.js +6 -6
- package/dist/esm/justifi-bank-account-form.entry.js +2 -2
- package/dist/esm/justifi-billing-form_2.entry.js +4 -4
- package/dist/esm/justifi-business-details.entry.js +3 -3
- package/dist/esm/justifi-business-form.entry.js +8 -8
- package/dist/esm/justifi-card-form.entry.js +2 -2
- package/dist/esm/justifi-checkout-core.entry.js +1 -1
- package/dist/esm/justifi-checkout.entry.js +6 -6
- package/dist/esm/justifi-checkouts-list.entry.js +10 -10
- package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
- package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
- package/dist/esm/justifi-new-payment-method_5.entry.js +2 -2
- package/dist/esm/justifi-owner-form_3.entry.js +2 -2
- package/dist/esm/justifi-payment-details.entry.js +6 -6
- package/dist/esm/justifi-payment-form.entry.js +6 -6
- package/dist/esm/justifi-payment-method-selector.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +11 -7
- package/dist/esm/justifi-payout-details.entry.js +6 -6
- package/dist/esm/justifi-payouts-list.entry.js +42 -20
- package/dist/esm/justifi-refund-form.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
- package/dist/esm/justifi-terminals-list.entry.js +9 -9
- package/dist/esm/justifi-tokenize-payment-method.entry.js +4 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-95aca142.js → package-627f73c1.js} +2 -2
- package/dist/esm/{pagination-menu.entry.js → pagination-menu_2.entry.js} +29 -1
- package/dist/esm/payment-details-core.entry.js +2 -2
- package/dist/esm/{payment.service-2f67410b.js → payment.service-ca6b5bc5.js} +2 -2
- package/dist/esm/payments-list-core.entry.js +18 -52
- package/dist/esm/payments-list-filters.entry.js +6 -1
- package/dist/esm/{payments-status-4937a170.js → payments-status-a7c18f2a.js} +2 -2
- package/dist/esm/payments-table-bba91324.js +27 -0
- package/dist/esm/payout-details-core.entry.js +2 -2
- package/dist/esm/payouts-list-core.entry.js +67 -60
- package/dist/esm/payouts-list-filters.entry.js +20 -0
- package/dist/esm/payouts-table-edff9bbe.js +33 -0
- package/dist/esm/{schema-validations-cd8c5f69.js → schema-validations-93a9d504.js} +1 -13
- package/dist/esm/{table-loading-state-356c7215.js → table-44e3d1e7.js} +21 -1
- package/dist/esm/terminals-list-core.entry.js +6 -7
- package/dist/esm/terminals-list-filters.entry.js +1 -1
- package/dist/esm/{terminals-table-059c473e.js → terminals-table-dc787616.js} +4 -4
- package/dist/esm/{utils-3daada24.js → utils-1df1e55a.js} +48 -32
- package/dist/esm/{utils-3a4d8f3a.js → utils-4006c425.js} +12 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Payment.js +7 -1
- package/dist/module/SubAccount.js +3 -0
- package/dist/module/billing-form.js +1 -1
- package/dist/module/business-bank-account-form-step.js +1 -1
- package/dist/module/business-core-info-form-step-core.js +1 -1
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-document-upload-input-group.js +1 -1
- package/dist/module/business-documents-on-file.js +1 -1
- package/dist/module/checkouts-list-core2.js +9 -9
- package/dist/module/counter-dispute.js +3 -3
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/dispute-management-core.js +2 -2
- package/dist/module/dispute-notification.js +3 -3
- package/dist/module/form-control-checkbox2.js +1 -1
- package/dist/module/form-control-date2.js +6 -38
- package/dist/module/form-control-file2.js +1 -1
- package/dist/module/form-control-monetary2.js +1 -1
- package/dist/module/form-control-number-masked2.js +1 -1
- package/dist/module/form-control-number.js +1 -1
- package/dist/module/form-control-radio2.js +1 -1
- package/dist/module/form-control-text2.js +1 -1
- package/dist/module/form-control-textarea2.js +1 -1
- package/dist/module/get-payout-csv.js +16 -7
- package/dist/module/get-subaccounts.js +1 -1
- package/dist/module/identity-address-form.js +1 -1
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-checkout.js +1 -1
- package/dist/module/justifi-checkouts-list.js +2 -2
- package/dist/module/justifi-gross-payment-chart.js +1 -1
- package/dist/module/justifi-payment-details.js +1 -1
- package/dist/module/justifi-payment-form.js +1 -1
- package/dist/module/justifi-payments-list.js +5 -3
- package/dist/module/justifi-payout-details.js +1 -1
- package/dist/module/justifi-payouts-list.js +63 -28
- package/dist/module/justifi-refund-form.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +1 -1
- package/dist/module/justifi-terminals-list.js +3 -3
- package/dist/module/justifi-tokenize-payment-method.js +1 -1
- package/dist/module/legal-address-form-step-core.js +1 -1
- package/dist/module/legal-address-form.js +1 -1
- package/dist/module/package.js +2 -2
- package/dist/module/payment-method-form.js +2 -2
- package/dist/module/payment-provisioning-actions.js +1 -1
- package/dist/module/payments-list-core2.js +43 -52
- package/dist/module/payments-list-filters2.js +6 -1
- package/dist/module/payments-status.js +2 -2
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +118 -67
- package/dist/module/payouts-list-filters.d.ts +11 -0
- package/dist/module/payouts-list-filters.js +6 -0
- package/dist/module/payouts-list-filters2.js +69 -0
- package/dist/module/saved-payment-method.js +1 -1
- package/dist/module/schema-validations.js +1 -13
- package/dist/module/table-filters-menu2.js +2 -22
- package/dist/module/table.js +36 -3
- package/dist/module/terminals-list-core2.js +8 -8
- package/dist/module/terminals-list-filters2.js +1 -1
- package/dist/module/utils2.js +48 -32
- package/dist/module/utils3.js +30 -25
- package/dist/module/utils4.js +24 -23
- package/dist/module/utils5.js +27 -0
- package/dist/types/api/Payment.d.ts +3 -1
- package/dist/types/api/Payout.d.ts +8 -0
- package/dist/types/api/services/payout.service.d.ts +5 -5
- package/dist/types/components/checkouts-list/checkouts-list.d.ts +1 -1
- package/dist/types/components/dispute-management/counter-dispute/counter-dispute.d.ts +1 -1
- package/dist/types/components/dispute-management/dispute-management-core.d.ts +1 -1
- package/dist/types/components/dispute-management/dispute-notification.d.ts +1 -1
- package/dist/types/components/payments-list/payments-list-core.d.ts +4 -6
- package/dist/types/components/payments-list/payments-list-filters.d.ts +1 -0
- package/dist/types/components/payments-list/payments-list.d.ts +1 -0
- package/dist/types/components/payments-list/payments-status.d.ts +1 -1
- package/dist/types/components/payments-list/payments-table.d.ts +19 -0
- package/dist/types/components/payouts-list/get-payouts.d.ts +2 -1
- package/dist/types/components/payouts-list/payouts-list-core.d.ts +15 -7
- package/dist/types/components/payouts-list/payouts-list-filters.d.ts +8 -0
- package/dist/types/components/payouts-list/payouts-list.d.ts +8 -3
- package/dist/types/components/payouts-list/payouts-table.d.ts +23 -0
- package/dist/types/components/terminals-list/terminals-list.d.ts +1 -1
- package/dist/types/components.d.ts +41 -12
- package/dist/types/ui-components/filters/utils.d.ts +1 -0
- package/dist/types/ui-components/form/form-control-date.d.ts +0 -3
- package/dist/types/utils/utils.d.ts +15 -16
- package/dist/webcomponents/p-0a963f7e.entry.js +1 -0
- package/dist/webcomponents/{p-8e228e5a.js → p-0d6ddff2.js} +1 -1
- package/dist/webcomponents/p-0fbab710.entry.js +1 -0
- package/dist/webcomponents/{p-22e38d5b.js → p-25d2ed4c.js} +1 -1
- package/dist/webcomponents/p-286b87ab.js +1 -0
- package/dist/webcomponents/p-28bd6dcd.js +1 -0
- package/dist/webcomponents/{p-90b8acc6.js → p-297faf3d.js} +1 -1
- package/dist/webcomponents/{p-5fd72c29.entry.js → p-29c8fa3d.entry.js} +1 -1
- package/dist/webcomponents/p-2f422aad.entry.js +1 -0
- package/dist/webcomponents/{p-869ae0c7.entry.js → p-3186d1fb.entry.js} +1 -1
- package/dist/webcomponents/p-3bfb4f80.entry.js +1 -0
- package/dist/webcomponents/p-3db8b3c7.js +1 -0
- package/dist/webcomponents/{p-927a147c.entry.js → p-3ed7fc42.entry.js} +1 -1
- package/dist/webcomponents/{p-eed325b7.entry.js → p-404a847c.entry.js} +1 -1
- package/dist/webcomponents/{p-a91a2152.entry.js → p-41c1c1f7.entry.js} +1 -1
- package/dist/webcomponents/{p-c458fc48.entry.js → p-41c7ee13.entry.js} +1 -1
- package/dist/webcomponents/p-420adedb.entry.js +1 -0
- package/dist/webcomponents/{p-83b01812.entry.js → p-431d7a9e.entry.js} +1 -1
- package/dist/webcomponents/p-448826a7.entry.js +1 -0
- package/dist/webcomponents/{p-6caf6f09.entry.js → p-469804a9.entry.js} +1 -1
- package/dist/webcomponents/{p-0de9e97b.entry.js → p-486da67e.entry.js} +1 -1
- package/dist/webcomponents/{p-a3143d62.entry.js → p-4a5e5574.entry.js} +1 -1
- package/dist/webcomponents/p-4cf7f4ae.js +1 -0
- package/dist/webcomponents/{p-09fb7dd6.entry.js → p-52f9d8a0.entry.js} +1 -1
- package/dist/webcomponents/p-54145a37.entry.js +1 -0
- package/dist/webcomponents/p-544a4e7a.js +1 -0
- package/dist/webcomponents/{p-b459d0b0.js → p-57125bd1.js} +1 -1
- package/dist/webcomponents/p-5ec82df8.entry.js +1 -0
- package/dist/webcomponents/{p-286a4e72.entry.js → p-628693c1.entry.js} +1 -1
- package/dist/webcomponents/{p-02cf5e6f.js → p-673cf8c4.js} +1 -1
- package/dist/webcomponents/{p-c30c8f39.entry.js → p-69527219.entry.js} +1 -1
- package/dist/webcomponents/p-6d51aed8.entry.js +1 -0
- package/dist/webcomponents/{p-9e7204b5.js → p-8037704c.js} +1 -1
- package/dist/webcomponents/p-89f6691e.js +1 -0
- package/dist/webcomponents/p-91de21cc.js +1 -0
- package/dist/webcomponents/{p-55f78fcc.entry.js → p-942be28b.entry.js} +1 -1
- package/dist/webcomponents/p-95ec39f6.entry.js +1 -0
- package/dist/webcomponents/p-9690eca9.entry.js +1 -0
- package/dist/webcomponents/{p-efb56234.entry.js → p-a7830e98.entry.js} +1 -1
- package/dist/webcomponents/p-abe513e6.entry.js +1 -0
- package/dist/webcomponents/p-ada9ac19.entry.js +1 -0
- package/dist/webcomponents/p-b0311e88.js +1 -0
- package/dist/webcomponents/{p-91711083.entry.js → p-b0dc68b3.entry.js} +1 -1
- package/dist/webcomponents/p-b3cac576.entry.js +1 -0
- package/dist/webcomponents/{p-0c03a971.entry.js → p-b97233cc.entry.js} +1 -1
- package/dist/webcomponents/p-bb71cef3.js +1 -0
- package/dist/webcomponents/{p-2a9f48f0.entry.js → p-bc1984ec.entry.js} +1 -1
- package/dist/webcomponents/{p-c5c6e61d.js → p-bc8205ec.js} +1 -1
- package/dist/webcomponents/{p-a8f22d4d.js → p-c13a7d10.js} +1 -1
- package/dist/webcomponents/p-c3fb5d3a.entry.js +1 -0
- package/dist/webcomponents/p-c420cb7d.entry.js +1 -0
- package/dist/webcomponents/p-c8243721.js +1 -0
- package/dist/webcomponents/p-cd19c597.entry.js +1 -0
- package/dist/webcomponents/{p-7fec2bcb.js → p-d1f75fa6.js} +1 -1
- package/dist/webcomponents/{p-2dc7751f.entry.js → p-d291dc4c.entry.js} +1 -1
- package/dist/webcomponents/{p-7a8c13ba.entry.js → p-da176d01.entry.js} +1 -1
- package/dist/webcomponents/{p-2c8c214f.entry.js → p-dcb288a3.entry.js} +1 -1
- package/dist/webcomponents/p-df3ca87f.entry.js +1 -0
- package/dist/webcomponents/p-df5a1202.entry.js +1 -0
- package/dist/webcomponents/p-e2ce097c.js +1 -0
- package/dist/webcomponents/{p-eeb70281.entry.js → p-e5790011.entry.js} +1 -1
- package/dist/webcomponents/{p-8e2e24d8.entry.js → p-e8be1b55.entry.js} +1 -1
- package/dist/webcomponents/p-e99957ff.entry.js +1 -0
- package/dist/webcomponents/p-ed95feec.entry.js +1 -0
- package/dist/webcomponents/{p-92a766d8.entry.js → p-f28a4c03.entry.js} +1 -1
- package/dist/webcomponents/{p-8f212554.entry.js → p-f698d6d9.entry.js} +1 -1
- package/dist/webcomponents/{p-9ef4d294.entry.js → p-fc6f697d.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/table-20e9a053.js +0 -23
- package/dist/cjs/table-filters-menu.cjs.entry.js +0 -35
- package/dist/esm/table-5da154e7.js +0 -21
- package/dist/esm/table-filters-menu.entry.js +0 -31
- package/dist/module/table-loading-state.js +0 -34
- package/dist/webcomponents/p-0ec27543.entry.js +0 -1
- package/dist/webcomponents/p-0f7b9555.entry.js +0 -1
- package/dist/webcomponents/p-1251a3f5.entry.js +0 -1
- package/dist/webcomponents/p-1ab798f4.entry.js +0 -1
- package/dist/webcomponents/p-269ba6fe.entry.js +0 -1
- package/dist/webcomponents/p-2c2b57b3.js +0 -1
- package/dist/webcomponents/p-2c51d29f.js +0 -1
- package/dist/webcomponents/p-3f82f724.entry.js +0 -1
- package/dist/webcomponents/p-44f7f729.entry.js +0 -1
- package/dist/webcomponents/p-47dbe17d.js +0 -1
- package/dist/webcomponents/p-4b14abbf.entry.js +0 -1
- package/dist/webcomponents/p-638c6285.entry.js +0 -1
- package/dist/webcomponents/p-7285c687.js +0 -1
- package/dist/webcomponents/p-8480e3ab.entry.js +0 -1
- package/dist/webcomponents/p-88efdd31.js +0 -1
- package/dist/webcomponents/p-8ec550d7.entry.js +0 -1
- package/dist/webcomponents/p-919e6e67.entry.js +0 -1
- package/dist/webcomponents/p-935188c8.entry.js +0 -1
- package/dist/webcomponents/p-9f56ad71.js +0 -1
- package/dist/webcomponents/p-ad443df5.entry.js +0 -1
- package/dist/webcomponents/p-b16269d7.js +0 -1
- package/dist/webcomponents/p-bba131f9.entry.js +0 -1
- package/dist/webcomponents/p-c717646f.entry.js +0 -1
- package/dist/webcomponents/p-cd4eaeb7.js +0 -1
- package/dist/webcomponents/p-cd7e866c.entry.js +0 -1
- package/dist/webcomponents/p-e333620e.js +0 -1
- package/dist/webcomponents/p-e412a713.entry.js +0 -1
- package/dist/webcomponents/p-e6be8845.entry.js +0 -1
- package/dist/webcomponents/p-e8797be0.entry.js +0 -1
- package/dist/webcomponents/p-f45197b9.entry.js +0 -1
- package/dist/webcomponents/p-fc4de0d2.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { pagingDefaults } from "../../api";
|
|
3
|
-
import { formatCurrency, formatDate, formatTime } from "../../utils/utils";
|
|
4
3
|
import { TableEmptyState, TableErrorState, TableLoadingState } from "../../ui-components";
|
|
5
4
|
import { onFilterChange } from "../../ui-components/filters/utils";
|
|
6
|
-
import {
|
|
5
|
+
import { paymentTableCells, paymentTableColumns } from "./payments-table";
|
|
6
|
+
import { Table } from "../../utils/table";
|
|
7
7
|
export class PaymentsListCore {
|
|
8
8
|
constructor() {
|
|
9
9
|
this.handleClickPrevious = (beforeCursor) => {
|
|
@@ -27,19 +27,23 @@ export class PaymentsListCore {
|
|
|
27
27
|
this.params = onFilterChange(newParams, this.params);
|
|
28
28
|
};
|
|
29
29
|
this.clearParams = () => {
|
|
30
|
+
this.errorMessage = '';
|
|
30
31
|
this.params = {};
|
|
31
32
|
};
|
|
33
|
+
this.getPayments = undefined;
|
|
34
|
+
this.columns = undefined;
|
|
32
35
|
this.payments = [];
|
|
36
|
+
this.paymentsTable = undefined;
|
|
33
37
|
this.loading = true;
|
|
34
38
|
this.errorMessage = undefined;
|
|
35
39
|
this.paging = pagingDefaults;
|
|
36
40
|
this.params = {};
|
|
37
|
-
this.getPayments = undefined;
|
|
38
41
|
}
|
|
39
42
|
updateOnPropChange() {
|
|
40
43
|
this.fetchData();
|
|
41
44
|
}
|
|
42
45
|
componentWillLoad() {
|
|
46
|
+
this.paymentsTable = new Table(this.payments, this.columns, paymentTableColumns, paymentTableCells);
|
|
43
47
|
if (this.getPayments) {
|
|
44
48
|
this.fetchData();
|
|
45
49
|
}
|
|
@@ -51,6 +55,7 @@ export class PaymentsListCore {
|
|
|
51
55
|
onSuccess: ({ payments, pagingInfo }) => {
|
|
52
56
|
this.payments = payments;
|
|
53
57
|
this.paging = pagingInfo;
|
|
58
|
+
this.paymentsTable.collectionData = this.payments;
|
|
54
59
|
this.loading = false;
|
|
55
60
|
},
|
|
56
61
|
onError: ({ error, code, severity }) => {
|
|
@@ -67,58 +72,17 @@ export class PaymentsListCore {
|
|
|
67
72
|
get entityId() {
|
|
68
73
|
return this.payments.map((payment) => payment.id);
|
|
69
74
|
}
|
|
70
|
-
get columnData() {
|
|
71
|
-
return [
|
|
72
|
-
['Date', 'The date and time each payment was made'],
|
|
73
|
-
['Amount', 'The dollar amount of each payment'],
|
|
74
|
-
['Status', 'The current status of each payment'],
|
|
75
|
-
['Type', 'The type of each payment'],
|
|
76
|
-
['Description', 'The payment description, if you provided one'],
|
|
77
|
-
['Account Holder', 'The name associated with the payment method'],
|
|
78
|
-
['Payment Method', 'The brand and last 4 digits of the payment method'],
|
|
79
|
-
];
|
|
80
|
-
}
|
|
81
|
-
get rowData() {
|
|
82
|
-
return this.payments.map((payment) => [
|
|
83
|
-
{
|
|
84
|
-
type: 'head',
|
|
85
|
-
value: `
|
|
86
|
-
<div class="fw-bold">${formatDate(payment.created_at)}</div>
|
|
87
|
-
<div class="fw-bold">${formatTime(payment.created_at)}</div>
|
|
88
|
-
`,
|
|
89
|
-
},
|
|
90
|
-
formatCurrency(payment.amount, true, true),
|
|
91
|
-
{
|
|
92
|
-
type: 'inner',
|
|
93
|
-
value: MapPaymentStatusToBadge(payment.status),
|
|
94
|
-
},
|
|
95
|
-
payment.paymentType,
|
|
96
|
-
payment.description,
|
|
97
|
-
payment.payment_method.payersName,
|
|
98
|
-
payment.payment_method.lastFourDigits,
|
|
99
|
-
]);
|
|
100
|
-
}
|
|
101
75
|
get showEmptyState() {
|
|
102
|
-
return !this.loading && !this.errorMessage && this.rowData.length < 1;
|
|
76
|
+
return !this.loading && !this.errorMessage && this.paymentsTable.rowData.length < 1;
|
|
103
77
|
}
|
|
104
78
|
get showErrorState() {
|
|
105
79
|
return !this.loading && !!this.errorMessage;
|
|
106
80
|
}
|
|
107
81
|
get showRowData() {
|
|
108
|
-
return !this.showEmptyState && !this.showErrorState;
|
|
82
|
+
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
109
83
|
}
|
|
110
84
|
render() {
|
|
111
|
-
|
|
112
|
-
return (h("div", { key: 'e51632f2cff6529131bf09250374f5609b8bbbd2' }, h("payments-list-filters", { key: '335944968281577a826fe2aa2a3866b282c6528c', params: this.params, setParamsOnChange: this.setParamsOnChange, clearParams: this.clearParams }), h("div", { key: 'ebff773b76f1a4b68a00675fa3499b8de71b1fe2', class: "table-wrapper" }, h("table", { key: '88e00cb3e4a98aa456b8bfb8d2d444d407aadb55', class: "table table-hover" }, h("thead", { key: '8c0bda771073274164ab4299bfdee85d70b0ccd8', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '1d3774f8ecfa33cd68bd299d5d6f5f9364f557c4', class: "table-light text-nowrap", part: "table-head-row" }, (_a = this.columnData) === null || _a === void 0 ? void 0 : _a.map((column) => (h("th", { part: "table-head-cell", scope: "col", title: Array.isArray(column) ? column[1] : "" }, !Array.isArray(column) ? column : column[0]))))), h("tbody", { key: '9ef8a6b5e19edf824ca91c58ce901a83b12e5d86', class: "table-body", part: "table-body" }, h(TableLoadingState, { key: '6f41adae546948d437b09c73611df813160be2d1', columnSpan: this.columnData.length, isLoading: this.loading }), h(TableEmptyState, { key: 'd359e393f80cdf45d9746a5e4ee979079a11b870', isEmpty: this.showEmptyState, columnSpan: this.columnData.length }), h(TableErrorState, { key: 'd2d81ee9b5abcf732972afa56e6e2abc3c7c2e98', columnSpan: this.columnData.length, errorMessage: this.errorMessage }), this.showRowData &&
|
|
113
|
-
this.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler, part: `table-row ${index % 2 ? "table-row-even" : "table-row-odd"}` }, data.map((dataEntry) => {
|
|
114
|
-
let nestedHtml = dataEntry === null || dataEntry === void 0 ? void 0 : dataEntry.type;
|
|
115
|
-
if (nestedHtml) {
|
|
116
|
-
return h("td", { part: "table-cell", innerHTML: dataEntry.value });
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
return h("td", { part: "table-cell" }, dataEntry);
|
|
120
|
-
}
|
|
121
|
-
}))))), this.paging && (h("tfoot", { key: '556eb5c90bf12c3d1b577fc74911e3318a95b87c', class: "sticky-bottom" }, h("tr", { key: 'e69f4f7a9510131a737460568a2e398908315848', class: "table-light align-middle" }, h("td", { key: '518a89afe7e7aaf02857ef9e7f0bad0fc0220eeb', part: "pagination-bar", colSpan: (_b = this.columnData) === null || _b === void 0 ? void 0 : _b.length }, h("pagination-menu", { key: '4510a747b96502d86615c90f8ba0d051b3f1cec8', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
|
|
85
|
+
return (h("div", { key: 'f9ad62dd7a3b3112af2b9d9ca3165a68730ad838' }, h("payments-list-filters", { key: '25453b8b93c43d6f9629688771bba820306cef5c', params: this.params, setParamsOnChange: this.setParamsOnChange, clearParams: this.clearParams }), h("div", { key: 'ec2b2799972ae5baeaed5c8f9547f1445295965b', class: "table-wrapper" }, h("table", { key: '323a3de363600940aecd8234b9d4e801bd0f0b70', class: "table table-hover" }, h("thead", { key: '9505ebb231fdb87c6be5a1e4313d8fee2afb1a0b', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '995bd6b6f7ab40891cf4a9aa63cfb9adc92d596e', class: "table-light text-nowrap", part: "table-head-row" }, this.paymentsTable.columnData.map((column) => column))), h("tbody", { key: 'e85cd3ca47511afb2afdaf4cca9547b62d9ecb9e', class: "table-body", part: "table-body" }, h(TableLoadingState, { key: 'a1f20762b14b9cf0f03f0b36ce6cdae8bdb8f3c9', columnSpan: this.paymentsTable.columnData.length, isLoading: this.loading }), h(TableEmptyState, { key: '1e1e89ec8a2cbf6abe7d2183f5e1499374a9f33f', isEmpty: this.showEmptyState, columnSpan: this.paymentsTable.columnData.length }), h(TableErrorState, { key: 'bfdd4bf25ab283f015cecf72603ea1d7f8921ee3', columnSpan: this.paymentsTable.columnData.length, errorMessage: this.errorMessage }), this.showRowData && this.paymentsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler, part: `table-row ${index % 2 ? "table-row-even" : "table-row-odd"}` }, data)))), this.paging && (h("tfoot", { key: '0832e67b126a1cd7d8d936df635dc87023a683b0', class: "sticky-bottom" }, h("tr", { key: '2536f710f027d8fb0865c88b86a30111f012977e', class: "table-light align-middle" }, h("td", { key: '5f0c707ed1d855db83531297af9ace5d1212d35d', part: "pagination-bar", colSpan: this.paymentsTable.columnData.length }, h("pagination-menu", { key: '01f751294ff54854be1434e15369153a5527414a', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
|
|
122
86
|
}
|
|
123
87
|
static get is() { return "payments-list-core"; }
|
|
124
88
|
static get properties() {
|
|
@@ -142,12 +106,30 @@ export class PaymentsListCore {
|
|
|
142
106
|
"tags": [],
|
|
143
107
|
"text": ""
|
|
144
108
|
}
|
|
109
|
+
},
|
|
110
|
+
"columns": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"mutable": false,
|
|
113
|
+
"complexType": {
|
|
114
|
+
"original": "string",
|
|
115
|
+
"resolved": "string",
|
|
116
|
+
"references": {}
|
|
117
|
+
},
|
|
118
|
+
"required": false,
|
|
119
|
+
"optional": false,
|
|
120
|
+
"docs": {
|
|
121
|
+
"tags": [],
|
|
122
|
+
"text": ""
|
|
123
|
+
},
|
|
124
|
+
"attribute": "columns",
|
|
125
|
+
"reflect": false
|
|
145
126
|
}
|
|
146
127
|
};
|
|
147
128
|
}
|
|
148
129
|
static get states() {
|
|
149
130
|
return {
|
|
150
131
|
"payments": {},
|
|
132
|
+
"paymentsTable": {},
|
|
151
133
|
"loading": {},
|
|
152
134
|
"errorMessage": {},
|
|
153
135
|
"paging": {},
|
|
@@ -206,6 +188,9 @@ export class PaymentsListCore {
|
|
|
206
188
|
}, {
|
|
207
189
|
"propName": "getPayments",
|
|
208
190
|
"methodName": "updateOnPropChange"
|
|
191
|
+
}, {
|
|
192
|
+
"propName": "columns",
|
|
193
|
+
"methodName": "updateOnPropChange"
|
|
209
194
|
}];
|
|
210
195
|
}
|
|
211
196
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { debounce } from "lodash";
|
|
3
|
+
import { convertToLocal, convertToUTC } from "../../utils/utils";
|
|
3
4
|
export class PaymentsListFilters {
|
|
4
5
|
constructor() {
|
|
6
|
+
this.handleDateInput = (name, value) => {
|
|
7
|
+
const utcDate = convertToUTC(value, { setExactTime: true });
|
|
8
|
+
this.setParamsOnChange(name, utcDate);
|
|
9
|
+
};
|
|
5
10
|
this.params = {};
|
|
6
11
|
this.setParamsOnChange = undefined;
|
|
7
12
|
this.clearParams = undefined;
|
|
@@ -22,7 +27,7 @@ export class PaymentsListFilters {
|
|
|
22
27
|
];
|
|
23
28
|
}
|
|
24
29
|
render() {
|
|
25
|
-
return (h("table-filters-menu", { key: '
|
|
30
|
+
return (h("table-filters-menu", { key: '64b3b8cc77a08a6aa58c89b99248380bf8d9ad0f', params: this.params, clearParams: this.clearParams }, h("div", { key: 'ce5c017776a3b066d688ee25b9c7ef567df66695', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '8cf5d22905c448b3ddb4496483e6b6788b0d19db', class: "p-2" }, h("form-control-text", { key: '7156ecff36896b91d5cd600488a0739ff8ed4d96', name: "payment_id", label: "Payment ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.params.payment_id })), h("div", { key: 'e04ca45af970a4d0e4725b8e7a0ba63ef7a5f5e9', class: "p-2" }, h("form-control-text", { key: '006191433fd479f95539dcdb2f2d6de3ac6d9828', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.params.terminal_id })), h("div", { key: 'fb5b1dfe7964ed7b95b349285e6df6bd0d83746b', class: "p-2" }, h("form-control-select", { key: '9832248a99214d5121f6420879fe596dbe3bd3e9', name: "payment_status", label: "Status", options: this.paymentStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.params.payment_status || '' })), h("div", { key: '138911f0f97f91910cda968208da26b3c9fd8303', class: "p-2" }, h("form-control-date", { key: 'd6a7a2ef2df3740af32edd6f454bbda154d5c3ef', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.params.created_after, { showInputDateTime: true }) || '', showTime: true })), h("div", { key: 'b4a808a46fd88c21e5e6f01381c1aaedc5ec9e39', class: "p-2" }, h("form-control-date", { key: 'a23eab0b41cb51786eaaecec6c91898ab70121ea', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.params.created_before, { showInputDateTime: true }) || '', showTime: true })))));
|
|
26
31
|
}
|
|
27
32
|
static get is() { return "payments-list-filters"; }
|
|
28
33
|
static get properties() {
|
|
@@ -5,8 +5,8 @@ import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/Component
|
|
|
5
5
|
import JustifiAnalytics from "../../api/Analytics";
|
|
6
6
|
import { checkPkgVersion } from "../../utils/check-pkg-version";
|
|
7
7
|
import { config } from "../../../config";
|
|
8
|
-
import { StyledHost } from "../../ui-components
|
|
9
|
-
import {
|
|
8
|
+
import { StyledHost, tableExportedParts } from "../../ui-components";
|
|
9
|
+
import { defaultColumnsKeys } from "./payments-table";
|
|
10
10
|
/**
|
|
11
11
|
* @exportedPart label: Label for inputs
|
|
12
12
|
* @exportedPart input: The input fields
|
|
@@ -40,6 +40,7 @@ export class PaymentsList {
|
|
|
40
40
|
this.accountId = undefined;
|
|
41
41
|
this.authToken = undefined;
|
|
42
42
|
this.apiOrigin = config.proxyApiOrigin;
|
|
43
|
+
this.columns = defaultColumnsKeys;
|
|
43
44
|
}
|
|
44
45
|
componentWillLoad() {
|
|
45
46
|
checkPkgVersion();
|
|
@@ -71,7 +72,7 @@ export class PaymentsList {
|
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
render() {
|
|
74
|
-
return (h(StyledHost, { key: '
|
|
75
|
+
return (h(StyledHost, { key: '78b8e22426135db19223ca0ddc62aaf6f42a1080', exportparts: tableExportedParts }, h("payments-list-core", { key: '23c5aeeb9a6766de2ddb42f62a2163fa8f14ac81', getPayments: this.getPayments, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
75
76
|
}
|
|
76
77
|
static get is() { return "justifi-payments-list"; }
|
|
77
78
|
static get encapsulation() { return "shadow"; }
|
|
@@ -128,6 +129,24 @@ export class PaymentsList {
|
|
|
128
129
|
"attribute": "api-origin",
|
|
129
130
|
"reflect": false,
|
|
130
131
|
"defaultValue": "config.proxyApiOrigin"
|
|
132
|
+
},
|
|
133
|
+
"columns": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"mutable": false,
|
|
136
|
+
"complexType": {
|
|
137
|
+
"original": "string",
|
|
138
|
+
"resolved": "string",
|
|
139
|
+
"references": {}
|
|
140
|
+
},
|
|
141
|
+
"required": false,
|
|
142
|
+
"optional": true,
|
|
143
|
+
"docs": {
|
|
144
|
+
"tags": [],
|
|
145
|
+
"text": ""
|
|
146
|
+
},
|
|
147
|
+
"attribute": "columns",
|
|
148
|
+
"reflect": false,
|
|
149
|
+
"defaultValue": "defaultColumnsKeys"
|
|
131
150
|
}
|
|
132
151
|
};
|
|
133
152
|
}
|
|
@@ -5,11 +5,11 @@ export const MapPaymentStatusToBadge = (status) => {
|
|
|
5
5
|
case 'authorized':
|
|
6
6
|
return "<span class='badge bg-primary' title='This card payment was authorized, but not captured. It could still succeed or fail.'>Authorized</span>";
|
|
7
7
|
case 'pending':
|
|
8
|
-
return "<span class='badge bg-primary' title='This ACH payment was processed, but the funds
|
|
8
|
+
return "<span class='badge bg-primary' title='This ACH payment was processed, but the funds have not settled. It could still succeed or fail.'>Pending</span>";
|
|
9
9
|
case 'achFailed':
|
|
10
10
|
return "<span class='badge bg-danger' title='The funds couldn't be collected for this ACH payment (in addition to the original payment, an ACH return and fee will appear in a payout)'>Failed</span>";
|
|
11
11
|
case 'failed':
|
|
12
|
-
return "<span class='badge bg-danger' title='This card payment
|
|
12
|
+
return "<span class='badge bg-danger' title='This card payment did not go through (it will not appear in a payout)'>Failed</span>";
|
|
13
13
|
case 'canceled':
|
|
14
14
|
return "<span class='badge bg-danger' title='This payment was canceled'>Canceled</span>";
|
|
15
15
|
case 'disputed':
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { MapPaymentStatusToBadge } from "./payments-status";
|
|
3
|
+
import { formatCurrency, convertToLocal } from "../../utils/utils";
|
|
4
|
+
export const defaultColumnsKeys = 'created_at,amount,status,payment_type,description,payers_name,last_four_digits';
|
|
5
|
+
export const paymentTableColumns = {
|
|
6
|
+
created_at: () => (h("th", { part: "table-head-cell", scope: "col", title: "The date and time each payment was made" }, "Date")),
|
|
7
|
+
amount: () => (h("th", { part: "table-head-cell", scope: "col", title: "The dollar amount of each payment" }, "Amount")),
|
|
8
|
+
status: () => (h("th", { part: "table-head-cell", scope: "col", title: "The current status of each payment" }, "Status")),
|
|
9
|
+
payment_type: () => (h("th", { part: "table-head-cell", scope: "col", title: "The type of each payment" }, "Type")),
|
|
10
|
+
description: () => (h("th", { part: "table-head-cell", scope: "col", title: "The payment description, if you provided one" }, "Description")),
|
|
11
|
+
payers_name: () => (h("th", { part: "table-head-cell", scope: "col", title: "The name associated with the payment method" }, "Account Holder")),
|
|
12
|
+
last_four_digits: () => (h("th", { part: "table-head-cell", scope: "col", title: "The brand and last 4 digits of the payment method" }, "Payment Method")),
|
|
13
|
+
};
|
|
14
|
+
export const paymentTableCells = {
|
|
15
|
+
created_at: (value) => (h("td", { part: "table-cell" }, h("div", { class: "fw-bold" }, convertToLocal(value, { showDisplayDate: true })), h("div", { class: "fw-bold" }, convertToLocal(value, { showTime: true })))),
|
|
16
|
+
amount: (value) => (h("td", { part: "table-cell" }, formatCurrency(value, true, true))),
|
|
17
|
+
status: (value) => (h("td", { part: "table-cell", innerHTML: MapPaymentStatusToBadge(value) })),
|
|
18
|
+
payment_type: (value) => (h("td", { part: "table-cell" }, value)),
|
|
19
|
+
description: (value) => (h("td", { part: "table-cell" }, value)),
|
|
20
|
+
payers_name: (value) => (h("td", { part: "table-cell" }, value)),
|
|
21
|
+
last_four_digits: (value) => (h("td", { part: "table-cell" }, value))
|
|
22
|
+
};
|
|
@@ -53,7 +53,7 @@ export class PayoutDetailsCore {
|
|
|
53
53
|
}
|
|
54
54
|
render() {
|
|
55
55
|
var _a;
|
|
56
|
-
return (h(StyledHost, { key: '
|
|
56
|
+
return (h(StyledHost, { key: '5bbb9c0cacc3bf2efe7a1e935e586944578f735f' }, this.loading && LoadingState(), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.payout && (h("justifi-details", { key: '93b7b7abde3b10e4e4d79526b02b8db0713c8fc6', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: 'ac86860de5b1861971b0a9b7e3b9c5d6240ccc2a', slot: "head-info", badge: h("span", { slot: 'badge', innerHTML: MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status) }), title: `${formatCurrency(this.payout.amount)} ${this.payout.currency.toUpperCase()}` }, h(EntityHeadInfoItem, { key: '537d48671755958de63c4c5c9e8b9272bc507e6b', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payout.updated_at)} ${formatTime(this.payout.updated_at)}` }), h(EntityHeadInfoItem, { key: 'cdac6a8d733ad1bd45b923f10350601b72b22e8f', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payout.created_at)} ${formatTime(this.payout.created_at)}` }), h(EntityHeadInfoItem, { key: 'a11a7d54baefaadd46be03d983f78754a3b4e7a2', title: "ID", value: this.payout.id }), h("div", { key: '71f41756d098d1863344f298549d32a3c0235e2c', class: "m-4" }, h("button", { key: '0bc57fc73b3e64da59e357d8882df4d9e1806af1', class: "btn btn-outline-secondary d-flex align-items-center", onClick: this.downloadCSV }, "Export CSV"))), h("div", { key: 'f1be7616f853affa6a32c1ce598c46efb34497cc', slot: 'detail-sections' }, h(DetailSectionTitle, { key: 'b483ced9513bb46fe249ab50192663de025fa3f7', sectionTitle: "Details" }), h("div", { key: '510a10f8730d3b0afd2422d349f5ac656d1059e1', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '0564098e173c62fa3b73bcb112b3b1e516bcb094', title: "Date paid", value: formatDate(this.payout.deposits_at) }), h(DetailItem, { key: '91900371ae342a2ff8c79952786e5f0a999113da', title: "Statement Description", value: this.payout.description }), h(DetailItem, { key: 'c0a216b12b91c56d2b3c2c7b678c2bd893fefe02', title: "Payout Method", value: this.payout.delivery_method }), h(DetailItem, { key: 'afaafd44d645f458cd4299f9c8f504388ff1df53', title: "Amount", value: formatCurrency(this.payout.amount) }), h(DetailItem, { key: 'dbe4a06db4e8736c520db79cc45a37637ed02962', title: "Fee", value: formatCurrency(this.payout.fees_total) })), h(DetailSectionTitle, { key: '605964367e17fdbbd72763c818ba4dd42043f96f', sectionTitle: "Account" }), h("div", { key: '662a14b06e2fca1c305b9c8cbc3e724589117602', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '6b195d37ffb700b8ce2c7a095d196af52d92eb00', title: "ID", value: this.payout.account_id }), h(DetailItem, { key: '011fb64b10627221ef1495da127f929bc63dbab6', title: "Account Type", value: this.payout.bank_account.account_type }), h(DetailItem, { key: '4130703cb2a6b567392819f997dd574a9e087df4', title: "Institution", value: this.payout.bank_account.account_type }), h(DetailItem, { key: '541d23f1645541e461280a0ddd449530df79aa76', title: "Routing Number", value: this.payout.bank_account.routing_number }), h(DetailItem, { key: 'b544a37bae800ce24bbf11cc9654ab6b4aabc0da', title: "Account Number", value: this.payout.bank_account.account_number_last4 })), h(DetailSectionTitle, { key: '40d9206806dfba438fbf700b7767a03c449ee1a9', sectionTitle: 'Metadata' }), h("div", { key: '435aff888f41675e1a2bf8729fc1c859cafaa20b', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: '1c9f32bf899914aa052375e4be2e8f92134da196', metadata: this.payout.metadata })))))));
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "payout-details-core"; }
|
|
59
59
|
static get properties() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Payout } from "../../api";
|
|
2
2
|
import { ComponentErrorSeverity } from "../../api/ComponentError";
|
|
3
3
|
import { getErrorCode, getErrorMessage } from "../../api/services/utils";
|
|
4
|
-
export const makeGetPayouts = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
|
|
4
|
+
export const makeGetPayouts = ({ id, authToken, service, apiOrigin }) => async ({ params, onSuccess, onError }) => {
|
|
5
5
|
var _a, _b;
|
|
6
6
|
try {
|
|
7
|
-
const response = await service.fetchPayouts(id, authToken, params);
|
|
7
|
+
const response = await service.fetchPayouts(id, authToken, params, apiOrigin);
|
|
8
8
|
if (!response.error) {
|
|
9
9
|
const pagingInfo = Object.assign({}, response.page_info);
|
|
10
10
|
const payouts = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.map((dataItem) => new Payout(dataItem))) || [];
|
|
@@ -21,10 +21,9 @@ export const makeGetPayouts = ({ id, authToken, service }) => async ({ params, o
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
catch (error) {
|
|
24
|
-
const message = getErrorMessage(error);
|
|
25
24
|
const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
|
|
26
25
|
return onError({
|
|
27
|
-
error: message,
|
|
26
|
+
error: error.message || error,
|
|
28
27
|
code,
|
|
29
28
|
severity: ComponentErrorSeverity.ERROR,
|
|
30
29
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { pagingDefaults } from "../../api";
|
|
3
|
-
import { formatCurrency, formatDate, formatTime } from "../../utils/utils";
|
|
4
3
|
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
|
|
5
|
-
import { DownloadIcon } from "../../assets/download-icon";
|
|
6
4
|
import { TableEmptyState, TableErrorState, TableLoadingState } from "../../ui-components";
|
|
7
|
-
import {
|
|
5
|
+
import { onFilterChange } from "../../ui-components/filters/utils";
|
|
6
|
+
import { payoutTableCells, payoutTableColumns } from "./payouts-table";
|
|
7
|
+
import { Table } from "../../utils/table";
|
|
8
8
|
export class PayoutsListCore {
|
|
9
9
|
constructor() {
|
|
10
10
|
this.downloadCSV = (payoutId) => {
|
|
@@ -19,9 +19,6 @@ export class PayoutsListCore {
|
|
|
19
19
|
},
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
|
-
this.handleDateChange = (name, value) => {
|
|
23
|
-
this.params = Object.assign(Object.assign({}, this.params), { [name]: value });
|
|
24
|
-
};
|
|
25
22
|
this.handleClickPrevious = (beforeCursor) => {
|
|
26
23
|
const newParams = Object.assign({}, this.params);
|
|
27
24
|
delete newParams.after_cursor;
|
|
@@ -38,29 +35,72 @@ export class PayoutsListCore {
|
|
|
38
35
|
return;
|
|
39
36
|
this.rowClicked.emit(this.payouts.find((payout) => payout.id === clickedPayoutID));
|
|
40
37
|
};
|
|
38
|
+
this.setParamsOnChange = (name, value) => {
|
|
39
|
+
let newParams = { [name]: value };
|
|
40
|
+
this.params = onFilterChange(newParams, this.params);
|
|
41
|
+
};
|
|
42
|
+
this.clearParams = () => {
|
|
43
|
+
this.errorMessage = '';
|
|
44
|
+
this.params = {};
|
|
45
|
+
};
|
|
41
46
|
this.getPayouts = undefined;
|
|
47
|
+
this.getSubAccounts = undefined;
|
|
42
48
|
this.getPayoutCSV = undefined;
|
|
49
|
+
this.columns = undefined;
|
|
43
50
|
this.payouts = [];
|
|
51
|
+
this.payoutsTable = undefined;
|
|
52
|
+
this.subAccounts = [];
|
|
44
53
|
this.loading = true;
|
|
45
54
|
this.errorMessage = undefined;
|
|
46
55
|
this.paging = pagingDefaults;
|
|
47
|
-
this.params =
|
|
56
|
+
this.params = {};
|
|
48
57
|
}
|
|
49
58
|
updateOnPropChange() {
|
|
50
|
-
this.
|
|
59
|
+
this.fetchPayouts();
|
|
51
60
|
}
|
|
52
61
|
componentWillLoad() {
|
|
53
|
-
|
|
54
|
-
|
|
62
|
+
this.payoutsTable = new Table(this.payouts, this.columns, payoutTableColumns, payoutTableCells(this.downloadCSV));
|
|
63
|
+
if (this.getPayouts && this.getSubAccounts) {
|
|
64
|
+
this.fetchPayouts();
|
|
55
65
|
}
|
|
56
66
|
}
|
|
57
|
-
|
|
67
|
+
fetchPayouts() {
|
|
58
68
|
this.loading = true;
|
|
59
69
|
this.getPayouts({
|
|
60
70
|
params: this.params,
|
|
61
71
|
onSuccess: ({ payouts, pagingInfo }) => {
|
|
62
72
|
this.payouts = payouts;
|
|
63
73
|
this.paging = pagingInfo;
|
|
74
|
+
this.payoutsTable.collectionData = this.payouts;
|
|
75
|
+
const shouldFetchSubAccounts = this.payoutsTable.columnKeys.includes('sub_account_name');
|
|
76
|
+
if (shouldFetchSubAccounts) {
|
|
77
|
+
this.fetchSubAccounts();
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
this.loading = false;
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
onError: ({ error, code, severity }) => {
|
|
84
|
+
this.errorMessage = error;
|
|
85
|
+
this.errorEvent.emit({
|
|
86
|
+
errorCode: code,
|
|
87
|
+
message: error,
|
|
88
|
+
severity,
|
|
89
|
+
});
|
|
90
|
+
this.loading = false;
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
async fetchSubAccounts() {
|
|
95
|
+
this.getSubAccounts({
|
|
96
|
+
params: this.subAccountParams,
|
|
97
|
+
onSuccess: ({ subAccounts }) => {
|
|
98
|
+
this.subAccounts = subAccounts;
|
|
99
|
+
this.payouts = this.payouts.map((payout) => {
|
|
100
|
+
var _a;
|
|
101
|
+
payout.sub_account_name = (_a = this.subAccounts.find((subAccount) => subAccount.id === payout.account_id)) === null || _a === void 0 ? void 0 : _a.name;
|
|
102
|
+
return payout;
|
|
103
|
+
});
|
|
64
104
|
this.loading = false;
|
|
65
105
|
},
|
|
66
106
|
onError: ({ error, code, severity }) => {
|
|
@@ -74,57 +114,26 @@ export class PayoutsListCore {
|
|
|
74
114
|
},
|
|
75
115
|
});
|
|
76
116
|
}
|
|
117
|
+
get subAccountParams() {
|
|
118
|
+
let accountIdNumbers = this.payouts.map((payout) => payout.account_id);
|
|
119
|
+
let uniqueAccountIds = [...new Set(accountIdNumbers)];
|
|
120
|
+
let accountIdString = uniqueAccountIds.join(',');
|
|
121
|
+
return { sub_account_id: accountIdString };
|
|
122
|
+
}
|
|
77
123
|
get entityId() {
|
|
78
124
|
return this.payouts.map((payout) => payout.id);
|
|
79
125
|
}
|
|
80
|
-
get columnData() {
|
|
81
|
-
return [
|
|
82
|
-
['Paid Out On', 'The date each transaction occurred'],
|
|
83
|
-
['Type', 'The type of each transaction'],
|
|
84
|
-
['Account', 'The ID of the account associated with each payout'],
|
|
85
|
-
['Paid Out To', 'The bank account to which each payout was transferred'],
|
|
86
|
-
['Payments', 'Sum of payments in each payout'],
|
|
87
|
-
['Refunds', 'Sum of refunds in each payout'],
|
|
88
|
-
['Fees', 'Sum of fees in each payout'],
|
|
89
|
-
['Other', 'Sum of less common transactions in each payout'],
|
|
90
|
-
['Payout Amount', 'The net sum of all transactions in each payout'],
|
|
91
|
-
['Status', 'The real-time status of each payout'],
|
|
92
|
-
['Actions', ''],
|
|
93
|
-
];
|
|
94
|
-
}
|
|
95
|
-
get rowData() {
|
|
96
|
-
return this.payouts.map((payout) => [
|
|
97
|
-
{
|
|
98
|
-
type: 'head',
|
|
99
|
-
value: `
|
|
100
|
-
<div class='fw-bold'>${formatDate(payout.created_at)}</div>
|
|
101
|
-
<div class='fw-bold'>${formatTime(payout.created_at)}</div>
|
|
102
|
-
`,
|
|
103
|
-
},
|
|
104
|
-
payout.payout_type,
|
|
105
|
-
payout.account_id,
|
|
106
|
-
`${payout.bank_account.full_name} ${payout.bank_account.account_number_last4}`,
|
|
107
|
-
formatCurrency(payout.payments_total),
|
|
108
|
-
formatCurrency(payout.refunds_total),
|
|
109
|
-
formatCurrency(payout.fees_total),
|
|
110
|
-
formatCurrency(payout.other_total),
|
|
111
|
-
formatCurrency(payout.amount),
|
|
112
|
-
{ type: 'inner', value: MapPayoutStatusToBadge(payout.status) },
|
|
113
|
-
(h(DownloadIcon, { title: "Export CSV", onClick: () => this.downloadCSV(payout.id), style: { height: '24px', width: '24px', cursor: 'pointer' } })),
|
|
114
|
-
]);
|
|
115
|
-
}
|
|
116
126
|
get showEmptyState() {
|
|
117
|
-
return !this.loading && !this.errorMessage && this.rowData.length < 1;
|
|
127
|
+
return !this.loading && !this.errorMessage && this.payoutsTable.rowData.length < 1;
|
|
118
128
|
}
|
|
119
129
|
get showErrorState() {
|
|
120
130
|
return !this.loading && !!this.errorMessage;
|
|
121
131
|
}
|
|
122
132
|
get showRowData() {
|
|
123
|
-
return !this.showEmptyState && !this.showErrorState;
|
|
133
|
+
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
124
134
|
}
|
|
125
135
|
render() {
|
|
126
|
-
return (h("div", { key: '
|
|
127
|
-
this.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler, part: `table-row ${index % 2 ? 'table-row-even' : 'table-row-odd'}` }, data.map((dataEntry) => ((dataEntry === null || dataEntry === void 0 ? void 0 : dataEntry.type) ? (h("td", { part: "table-cell", innerHTML: dataEntry.value })) : (h("td", { part: "table-cell" }, dataEntry)))))))), this.paging && (h("tfoot", { key: 'd2a1b0dd2340cf64816ad05c1c03f136b21df0a6', class: "sticky-bottom" }, h("tr", { key: 'abb87b7c026475da175a6bec772887bf3ac08933', class: "table-light align-middle" }, h("td", { key: '32070f512aebc77a42693a93e717d31ef9ed4509', part: "pagination-bar", colSpan: this.columnData.length }, h("pagination-menu", { key: '57ee656553f4afee96f5dbdac5866f103cde97eb', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
|
|
136
|
+
return (h("div", { key: '3768192e14155536f0fb53d2abc5f1e92b04cc01' }, h("payouts-list-filters", { key: '3fec8cfc6b9d68798148e9eea0725079d32e3406', params: this.params, setParamsOnChange: this.setParamsOnChange, clearParams: this.clearParams }), h("div", { key: '291b7a53bb5657c87568169ebccc1dead39d10c9', class: "table-wrapper" }, h("table", { key: '624389fddf8b00dcaf70a75693b542b2f4af4982', class: "table table-hover" }, h("thead", { key: '1e28a2a6988eac106c40b8f029d9fa2118cbdb6d', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '1f05dd4c54fb350545cf6b1b3e86b80d96932585', class: "table-light text-nowrap", part: "table-head-row" }, this.payoutsTable.columnData.map((column) => column))), h("tbody", { key: '3af09dc61461f31f61c2cfdf7896b7dfe9441450', class: "table-body", part: "table-body" }, h(TableLoadingState, { key: '715a3d0732e45810bdfdcbe5c7db8f29934a1a62', columnSpan: this.payoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '3aac2554828eac0c6b0645da5df811b5e5463235', isEmpty: this.showEmptyState, columnSpan: this.payoutsTable.columnKeys.length }), h(TableErrorState, { key: 'cf2b312830b9f59550346085f00bc519e496b2b2', columnSpan: this.payoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.payoutsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler, part: `table-row ${index % 2 ? "table-row-even" : "table-row-odd"}` }, data)))), this.paging && (h("tfoot", { key: '3d7389fb825a7eafcd456b3ae95b115a4218fea3', class: "sticky-bottom" }, h("tr", { key: '4c10aa64144a281d8303b04f013bfcc2390f4d04', class: "table-light align-middle" }, h("td", { key: '63614e636203a5f15beb26b4d19eed393b6ea481', part: "pagination-bar", colSpan: this.payoutsTable.columnData.length }, h("pagination-menu", { key: '7708ac8b21d2db0ec9ade773dd46cd944374ede5', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
|
|
128
137
|
}
|
|
129
138
|
static get is() { return "payouts-list-core"; }
|
|
130
139
|
static get properties() {
|
|
@@ -149,6 +158,26 @@ export class PayoutsListCore {
|
|
|
149
158
|
"text": ""
|
|
150
159
|
}
|
|
151
160
|
},
|
|
161
|
+
"getSubAccounts": {
|
|
162
|
+
"type": "unknown",
|
|
163
|
+
"mutable": false,
|
|
164
|
+
"complexType": {
|
|
165
|
+
"original": "Function",
|
|
166
|
+
"resolved": "Function",
|
|
167
|
+
"references": {
|
|
168
|
+
"Function": {
|
|
169
|
+
"location": "global",
|
|
170
|
+
"id": "global::Function"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"required": false,
|
|
175
|
+
"optional": false,
|
|
176
|
+
"docs": {
|
|
177
|
+
"tags": [],
|
|
178
|
+
"text": ""
|
|
179
|
+
}
|
|
180
|
+
},
|
|
152
181
|
"getPayoutCSV": {
|
|
153
182
|
"type": "unknown",
|
|
154
183
|
"mutable": false,
|
|
@@ -168,12 +197,31 @@ export class PayoutsListCore {
|
|
|
168
197
|
"tags": [],
|
|
169
198
|
"text": ""
|
|
170
199
|
}
|
|
200
|
+
},
|
|
201
|
+
"columns": {
|
|
202
|
+
"type": "string",
|
|
203
|
+
"mutable": false,
|
|
204
|
+
"complexType": {
|
|
205
|
+
"original": "string",
|
|
206
|
+
"resolved": "string",
|
|
207
|
+
"references": {}
|
|
208
|
+
},
|
|
209
|
+
"required": false,
|
|
210
|
+
"optional": false,
|
|
211
|
+
"docs": {
|
|
212
|
+
"tags": [],
|
|
213
|
+
"text": ""
|
|
214
|
+
},
|
|
215
|
+
"attribute": "columns",
|
|
216
|
+
"reflect": false
|
|
171
217
|
}
|
|
172
218
|
};
|
|
173
219
|
}
|
|
174
220
|
static get states() {
|
|
175
221
|
return {
|
|
176
222
|
"payouts": {},
|
|
223
|
+
"payoutsTable": {},
|
|
224
|
+
"subAccounts": {},
|
|
177
225
|
"loading": {},
|
|
178
226
|
"errorMessage": {},
|
|
179
227
|
"paging": {},
|
|
@@ -232,6 +280,9 @@ export class PayoutsListCore {
|
|
|
232
280
|
}, {
|
|
233
281
|
"propName": "getPayouts",
|
|
234
282
|
"methodName": "updateOnPropChange"
|
|
283
|
+
}, {
|
|
284
|
+
"propName": "getSubAccounts",
|
|
285
|
+
"methodName": "updateOnPropChange"
|
|
235
286
|
}];
|
|
236
287
|
}
|
|
237
288
|
}
|