@justifi/webcomponents 4.16.0 → 4.18.0
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-423b2bb5.js → Analytics-d4aa8c07.js} +1 -1
- package/dist/cjs/{SubAccount-4f4fac22.js → SubAccount-135ff8c8.js} +1 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +13 -13
- package/dist/cjs/{business-additional-questions-schema-606d1292.js → business-additional-questions-schema-cf545610.js} +2 -2
- package/dist/cjs/business-details-core.cjs.entry.js +6 -9
- package/dist/cjs/form-alert_5.cjs.entry.js +3 -3
- package/dist/cjs/form-control-checkbox_5.cjs.entry.js +10 -13
- package/dist/cjs/form-control-date.cjs.entry.js +43 -0
- package/dist/cjs/form-control-error-text_2.cjs.entry.js +36 -0
- package/dist/cjs/form-control-file.cjs.entry.js +2 -2
- package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
- package/dist/cjs/{form-control-date_3.cjs.entry.js → form-control-number-masked_2.cjs.entry.js} +3 -40
- package/dist/cjs/form-control-number.cjs.entry.js +2 -2
- package/dist/cjs/{form-control-error-text_4.cjs.entry.js → form-control-select_2.cjs.entry.js} +3 -33
- package/dist/cjs/get-payout-csv-e4e4771a.js +48 -0
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -5
- package/dist/cjs/{index-b4498996.js → index-fb499e95.js} +15 -3
- package/dist/cjs/{insurance-state-3f044af7.js → insurance-state-80e24caf.js} +1 -1
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +9 -12
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +16 -1680
- package/dist/cjs/justifi-business-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-form.cjs.entry.js +9 -8
- package/dist/cjs/justifi-business-list.cjs.entry.js +4 -7
- package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +21 -9
- package/dist/cjs/justifi-checkout.cjs.entry.js +12 -4
- package/dist/cjs/justifi-details.cjs.entry.js +4 -7
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -4
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +73 -28
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +4 -7
- package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js +9 -8
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1688 -0
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +7 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +4 -8
- package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payout-details.cjs.entry.js +15 -10
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +15 -12
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +4 -7
- package/dist/cjs/justifi-refund-form.cjs.entry.js +4 -3
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +14 -9
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -3
- package/dist/cjs/justifi-skeleton.cjs.entry.js +3 -3
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +6 -9
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-table_2.cjs.entry.js +8 -12
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-b40227dd.js → package-5fee1ffb.js} +1 -1
- package/dist/cjs/{payload-parsers-6e4cf5d7.js → payload-parsers-1cbc3b57.js} +3 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +11 -14
- package/dist/cjs/payments-list-core.cjs.entry.js +7 -7
- package/dist/cjs/payout-details-core.cjs.entry.js +19 -8
- package/dist/cjs/payouts-list-core.cjs.entry.js +29 -8
- package/dist/cjs/{schema-validations-9668fd79.js → schema-validations-2733de42.js} +3 -4
- package/dist/cjs/styled-host-b8bed12a.js +14 -0
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +7 -23
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +3 -7
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +3 -7
- package/dist/cjs/{utils-17869710.js → utils-80191fbe.js} +6 -0
- package/dist/cjs/{utils-fd644316.js → utils-8c3bf659.js} +13 -4
- package/dist/cjs/{utils-0c3168ef.js → utils-c1d2e426.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +2 -2
- package/dist/collection/api/Checkout.js +0 -1
- package/dist/collection/api/services/payout.service.js +5 -0
- package/dist/collection/assets/download-icon.js +2 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/billing-form/billing-form.css +2 -8162
- package/dist/collection/components/billing-form/billing-form.js +5 -4
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +2 -3
- package/dist/collection/components/business-details/business-details-core.js +5 -14
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +2 -3
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +2 -3
- package/dist/collection/components/business-details/owner-details/owner-details.js +2 -3
- package/dist/collection/components/business-details/representative-details/representative-details.js +2 -3
- package/dist/collection/components/business-details/shared-business-details.css +3 -0
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-form.css +5 -8768
- package/dist/collection/components/business-forms/business-form/business-form.js +4 -3
- package/dist/collection/components/business-forms/owner-form/owner-form.js +2 -5
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +3 -2
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -4
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +14 -2
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.css +4 -9155
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -12
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.css +5 -763
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +2 -2
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +1 -1
- package/dist/collection/components/business-forms/schemas/schema-helpers.js +0 -1
- package/dist/collection/components/business-forms/schemas/schema-validations.js +4 -4
- package/dist/collection/components/business-forms/utils/payload-parsers.js +2 -0
- package/dist/collection/components/business-list/business-list.js +3 -12
- package/dist/collection/components/checkout/checkout-core.css +3 -8147
- package/dist/collection/components/checkout/checkout-core.js +68 -8
- package/dist/collection/components/checkout/checkout.js +59 -1
- package/dist/collection/components/checkout/form-check-input.css +20 -0
- package/dist/collection/components/checkout/header.css +4 -0
- package/dist/collection/components/checkout/new-payment-method.js +95 -15
- package/dist/collection/components/checkout/payment-method-option-utils.js +2 -0
- package/dist/collection/components/checkout/payment-method-options.css +1 -7080
- package/dist/collection/components/checkout/payment-method-options.js +101 -17
- package/dist/collection/components/checkout/save-new-payment-method.js +38 -0
- package/dist/collection/components/checkout/saved-payment-method.js +12 -5
- package/dist/collection/components/checkout/sezzle-payment-method.js +12 -5
- package/dist/collection/components/details/details.js +3 -12
- package/dist/collection/components/form/form-control-checkbox.js +1 -1
- package/dist/collection/components/form/form-control-date.js +1 -1
- package/dist/collection/components/form/form-control-file.js +1 -1
- package/dist/collection/components/form/form-control-monetary.js +1 -1
- package/dist/collection/components/form/form-control-number-masked.js +1 -1
- package/dist/collection/components/form/form-control-number.js +1 -1
- package/dist/collection/components/form/form-control-select.js +1 -1
- package/dist/collection/components/form/form-control-text.js +1 -1
- package/dist/collection/components/form/utils.js +12 -3
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +2 -2
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.css +1 -573
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.css +6 -8183
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +6 -7
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -2
- package/dist/collection/components/pagination-menu/pagination-menu.js +3 -14
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +3 -13
- package/dist/collection/components/payment-details/payment-details-core.js +9 -18
- package/dist/collection/components/payment-form/payment-form.css +3 -2513
- package/dist/collection/components/payment-form/payment-form.js +6 -5
- package/dist/collection/components/payment-form/payment-method-selector.css +5 -1881
- package/dist/collection/components/payment-form/payment-method-selector.js +2 -3
- package/dist/collection/components/payments-list/payments-list-core.js +6 -12
- package/dist/collection/components/payments-list/payments-list.js +3 -0
- package/dist/collection/components/payout-details/get-payout-csv.js +19 -0
- package/dist/collection/components/payout-details/payout-details-core.js +37 -12
- package/dist/collection/components/payout-details/payout-details.js +11 -4
- package/dist/collection/components/payouts-list/payouts-list-core.js +45 -14
- package/dist/collection/components/payouts-list/payouts-list.js +14 -6
- package/dist/collection/components/proceeds-list/proceeds-list.js +3 -12
- package/dist/collection/components/refund-form/refund-form.css +1 -7737
- package/dist/collection/components/refund-form/refund-form.js +4 -3
- package/dist/collection/components/skeleton/skeleton.css +1 -573
- package/dist/collection/components/skeleton/skeleton.js +2 -2
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +1 -12
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +1 -12
- package/dist/collection/components/subaccount-details/subaccount-details.js +3 -12
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +1 -12
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +1 -12
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +1 -12
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +1 -12
- package/dist/collection/components/subaccounts-list/subaccounts-list.js +1 -1
- package/dist/collection/components/table/table.css +0 -8085
- package/dist/collection/components/table/table.js +3 -4
- package/dist/collection/utils/styled-host/styled-host.js +6 -0
- package/dist/collection/utils/utils.js +5 -0
- package/dist/docs.json +546 -64
- package/dist/esm/{Analytics-17c33e9e.js → Analytics-29fac206.js} +1 -1
- package/dist/esm/{SubAccount-8bf9cb0c.js → SubAccount-7fcb1450.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +13 -13
- package/dist/esm/{business-additional-questions-schema-b00a73ba.js → business-additional-questions-schema-956e3caf.js} +2 -2
- package/dist/esm/business-details-core.entry.js +6 -9
- package/dist/esm/form-alert_5.entry.js +3 -3
- package/dist/esm/form-control-checkbox_5.entry.js +10 -13
- package/dist/esm/form-control-date.entry.js +39 -0
- package/dist/esm/form-control-error-text_2.entry.js +31 -0
- package/dist/esm/form-control-file.entry.js +2 -2
- package/dist/esm/form-control-monetary.entry.js +2 -2
- package/dist/esm/{form-control-date_3.entry.js → form-control-number-masked_2.entry.js} +4 -40
- package/dist/esm/form-control-number.entry.js +2 -2
- package/dist/esm/{form-control-error-text_4.entry.js → form-control-select_2.entry.js} +4 -32
- package/dist/esm/get-payout-csv-9b4aaada.js +45 -0
- package/dist/esm/gross-payment-chart-core.entry.js +5 -5
- package/dist/esm/{index-4bd1eae9.js → index-57431c24.js} +15 -3
- package/dist/esm/{insurance-state-09754ab9.js → insurance-state-8ce01e59.js} +1 -1
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +10 -13
- package/dist/esm/justifi-bank-account-form.entry.js +3 -3
- package/dist/esm/justifi-billing-form_2.entry.js +16 -1680
- package/dist/esm/justifi-business-details.entry.js +4 -4
- package/dist/esm/justifi-business-form.entry.js +9 -8
- package/dist/esm/justifi-business-list.entry.js +4 -7
- package/dist/esm/justifi-card-form.entry.js +3 -3
- package/dist/esm/justifi-checkout-core.entry.js +21 -9
- package/dist/esm/justifi-checkout.entry.js +12 -4
- package/dist/esm/justifi-details.entry.js +4 -7
- package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
- package/dist/esm/justifi-new-payment-method_4.entry.js +73 -28
- package/dist/esm/justifi-payment-balance-transactions.entry.js +4 -7
- package/dist/esm/justifi-payment-details.entry.js +4 -4
- package/dist/esm/justifi-payment-form.entry.js +9 -8
- package/dist/esm/justifi-payment-method-form.entry.js +1684 -0
- package/dist/esm/justifi-payment-method-selector.entry.js +3 -3
- package/dist/esm/justifi-payment-provisioning-core.entry.js +7 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +4 -8
- package/dist/esm/justifi-payments-list.entry.js +4 -4
- package/dist/esm/justifi-payout-details.entry.js +14 -9
- package/dist/esm/justifi-payouts-list.entry.js +14 -11
- package/dist/esm/justifi-proceeds-list.entry.js +4 -7
- package/dist/esm/justifi-refund-form.entry.js +4 -3
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +14 -9
- package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -3
- package/dist/esm/justifi-skeleton.entry.js +3 -3
- package/dist/esm/justifi-subaccount-details.entry.js +6 -9
- package/dist/esm/justifi-subaccounts-list.entry.js +4 -4
- package/dist/esm/justifi-table_2.entry.js +8 -12
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-02a6e473.js → package-1123f528.js} +1 -1
- package/dist/esm/{payload-parsers-a9e8f8cc.js → payload-parsers-acb719d1.js} +3 -1
- package/dist/esm/payment-details-core.entry.js +11 -14
- package/dist/esm/payments-list-core.entry.js +7 -7
- package/dist/esm/payout-details-core.entry.js +19 -8
- package/dist/esm/payouts-list-core.entry.js +29 -8
- package/dist/esm/{schema-validations-770bdf3e.js → schema-validations-a83ff220.js} +3 -4
- package/dist/esm/styled-host-57aae7fa.js +12 -0
- package/dist/esm/subaccount-account-details_4.entry.js +7 -23
- package/dist/esm/subaccount-bank-details.entry.js +3 -7
- package/dist/esm/subaccount-terms-details.entry.js +3 -7
- package/dist/esm/{utils-1e583166.js → utils-56719d07.js} +1 -1
- package/dist/esm/{utils-61a21dea.js → utils-5f4c4faa.js} +6 -1
- package/dist/esm/{utils-8de964da.js → utils-f4c4ba7d.js} +13 -4
- package/dist/esm/webcomponents.js +3 -3
- package/dist/module/SubAccount.js +1 -1
- package/dist/module/additional-questions-details2.js +3 -4
- package/dist/module/additional-questions.js +1 -1
- package/dist/module/billing-form.js +5 -4
- package/dist/module/business-additional-questions-form-step.js +1 -1
- package/dist/module/business-core-info-form-step.js +3 -2
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-details-core2.js +5 -8
- package/dist/module/business-representative-form-step.js +1 -4
- package/dist/module/business-terms-conditions-text.js +2 -2
- package/dist/module/checkout-core.js +44 -24
- package/dist/module/details.js +3 -6
- package/dist/module/form-control-checkbox2.js +1 -1
- package/dist/module/form-control-date2.js +1 -1
- 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-select2.js +1 -1
- package/dist/module/form-control-text2.js +1 -1
- package/dist/module/generic-info-details2.js +3 -4
- package/dist/module/get-payout-csv.js +45 -0
- package/dist/module/gross-payment-chart-core2.js +2 -2
- package/dist/module/justifi-business-form.js +4 -3
- package/dist/module/justifi-business-list.js +3 -6
- package/dist/module/justifi-checkout.js +35 -20
- package/dist/module/justifi-payment-balance-transactions.js +5 -9
- package/dist/module/justifi-payment-form.js +6 -5
- package/dist/module/justifi-payment-provisioning.js +2 -7
- package/dist/module/justifi-payments-list.js +19 -1
- package/dist/module/justifi-payout-details.js +11 -5
- package/dist/module/justifi-payouts-list.js +30 -8
- package/dist/module/justifi-proceeds-list.js +3 -6
- package/dist/module/justifi-refund-form.js +4 -3
- package/dist/module/justifi-save-new-payment-method.d.ts +11 -0
- package/dist/module/justifi-save-new-payment-method.js +6 -0
- package/dist/module/justifi-season-interruption-insurance.js +1 -2
- package/dist/module/justifi-subaccount-details.js +4 -7
- package/dist/module/justifi-subaccounts-list.js +2 -2
- package/dist/module/legal-address-details2.js +3 -4
- package/dist/module/new-payment-method.js +52 -24
- package/dist/module/owner-details2.js +3 -4
- package/dist/module/owner-form.js +2 -5
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +4 -9
- package/dist/module/payload-parsers.js +2 -0
- package/dist/module/payment-details-core2.js +10 -13
- package/dist/module/payment-method-options.js +56 -28
- package/dist/module/payment-method-selector.js +3 -4
- package/dist/module/payment-provisioning-core.js +9 -3
- package/dist/module/payments-list-core2.js +26 -8
- package/dist/module/payout-details-core2.js +19 -7
- package/dist/module/payouts-list-core2.js +49 -9
- package/dist/module/representative-details2.js +3 -4
- package/dist/module/save-new-payment-method.js +36 -0
- package/dist/module/saved-payment-method.js +7 -2
- package/dist/module/schema-validations.js +3 -4
- package/dist/module/season-interruption-insurance-core.js +12 -7
- package/dist/module/sezzle-payment-method.js +5 -2
- package/dist/module/skeleton.js +2 -2
- package/dist/module/styled-host.js +12 -0
- package/dist/module/subaccount-account-details2.js +2 -7
- package/dist/module/subaccount-bank-details.js +2 -7
- package/dist/module/subaccount-merchant-details2.js +3 -8
- package/dist/module/subaccount-owners-details2.js +2 -7
- package/dist/module/subaccount-representative-details2.js +2 -7
- package/dist/module/subaccount-terms-details.js +2 -7
- package/dist/module/table.js +4 -5
- package/dist/module/utils2.js +6 -1
- package/dist/module/utils3.js +12 -3
- package/dist/types/api/Checkout.d.ts +6 -0
- package/dist/types/api/services/payout.service.d.ts +2 -0
- package/dist/types/assets/download-icon.d.ts +1 -0
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +0 -1
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +0 -1
- package/dist/types/components/business-forms/schemas/schema-helpers.d.ts +0 -1
- package/dist/types/components/checkout/checkout-core.d.ts +5 -1
- package/dist/types/components/checkout/checkout.d.ts +5 -0
- package/dist/types/components/checkout/new-payment-method.d.ts +8 -2
- package/dist/types/components/checkout/payment-method-option-utils.d.ts +1 -0
- package/dist/types/components/checkout/payment-method-options.d.ts +6 -2
- package/dist/types/components/checkout/payment-method-payload.d.ts +1 -0
- package/dist/types/components/checkout/save-new-payment-method.d.ts +7 -0
- package/dist/types/components/checkout/saved-payment-method.d.ts +1 -1
- package/dist/types/components/checkout/sezzle-payment-method.d.ts +1 -1
- package/dist/types/components/form/utils.d.ts +1 -1
- package/dist/types/components/payment-method-form/payment-method-responses.d.ts +6 -4
- package/dist/types/components/payments-list/payments-list-core.d.ts +1 -0
- package/dist/types/components/payments-list/payments-list.d.ts +3 -0
- package/dist/types/components/payout-details/get-payout-csv.d.ts +7 -0
- package/dist/types/components/payout-details/payout-details-core.d.ts +2 -0
- package/dist/types/components/payout-details/payout-details.d.ts +2 -1
- package/dist/types/components/payouts-list/payouts-list-core.d.ts +3 -0
- package/dist/types/components/payouts-list/payouts-list.d.ts +5 -1
- package/dist/types/components.d.ts +83 -12
- package/dist/types/utils/styled-host/styled-host.d.ts +3 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/webcomponents/{p-851e57f4.js → p-092e080c.js} +1 -1
- package/dist/webcomponents/p-09affce4.entry.js +1 -0
- package/dist/webcomponents/p-0a4a9ccd.entry.js +1 -0
- package/dist/webcomponents/{p-7c28a80d.entry.js → p-0dca0770.entry.js} +1 -1
- package/dist/webcomponents/p-0e4a54c8.entry.js +1 -0
- package/dist/webcomponents/p-0ed3c1d2.entry.js +1 -0
- package/dist/webcomponents/p-10b57ac6.entry.js +1 -0
- package/dist/webcomponents/p-1737f6bf.entry.js +1 -0
- package/dist/webcomponents/{p-ebce7b2f.entry.js → p-2244e679.entry.js} +1 -1
- package/dist/webcomponents/p-2306d44d.entry.js +1 -0
- package/dist/webcomponents/{p-f7b6dcc4.js → p-2338affa.js} +1 -1
- package/dist/webcomponents/p-2af3672b.entry.js +1 -0
- package/dist/webcomponents/p-3294856b.entry.js +1 -0
- package/dist/webcomponents/p-3514b616.entry.js +1 -0
- package/dist/webcomponents/p-390157c9.entry.js +1 -0
- package/dist/webcomponents/p-3fd13ca3.js +1 -0
- package/dist/webcomponents/p-412c7a22.entry.js +1 -0
- package/dist/webcomponents/p-464e4dfe.entry.js +1 -0
- package/dist/webcomponents/p-49b8e112.js +1 -0
- package/dist/webcomponents/{p-808c8988.entry.js → p-4b9587ec.entry.js} +1 -1
- package/dist/webcomponents/p-531d873a.entry.js +1 -0
- package/dist/webcomponents/p-54287db6.entry.js +1 -0
- package/dist/webcomponents/p-547a2cd0.entry.js +1 -0
- package/dist/webcomponents/p-571d7f1a.entry.js +1 -0
- package/dist/webcomponents/p-5963bcdc.entry.js +1 -0
- package/dist/webcomponents/p-5b1451e7.entry.js +1 -0
- package/dist/webcomponents/p-66758365.entry.js +1 -0
- package/dist/webcomponents/{p-3394ff6c.js → p-667a5aa8.js} +1 -1
- package/dist/webcomponents/p-67e497aa.entry.js +1 -0
- package/dist/webcomponents/p-68fd8283.js +1 -0
- package/dist/webcomponents/p-6bcf621a.entry.js +1 -0
- package/dist/webcomponents/p-6bd5d569.entry.js +1 -0
- package/dist/webcomponents/p-76180bb4.entry.js +1 -0
- package/dist/webcomponents/p-77dc159c.entry.js +1 -0
- package/dist/webcomponents/{p-3a7e0753.entry.js → p-7a346c0b.entry.js} +1 -1
- package/dist/webcomponents/p-7d6aba64.entry.js +1 -0
- package/dist/webcomponents/p-81d3eda6.entry.js +1 -0
- package/dist/webcomponents/p-85fc69e5.js +1 -0
- package/dist/webcomponents/p-87932e16.js +1 -0
- package/dist/webcomponents/p-88c7ef46.entry.js +1 -0
- package/dist/webcomponents/p-89887332.js +1 -0
- package/dist/webcomponents/p-8cc7a418.entry.js +1 -0
- package/dist/webcomponents/p-8dd22c8d.entry.js +1 -0
- package/dist/webcomponents/p-959b478a.entry.js +19 -0
- package/dist/webcomponents/{p-3f06ce2f.entry.js → p-9631b768.entry.js} +1 -1
- package/dist/webcomponents/p-9e7c3231.entry.js +1 -0
- package/dist/webcomponents/{p-9601cf9d.entry.js → p-bb32b91c.entry.js} +1 -1
- package/dist/webcomponents/p-bbc18b9f.entry.js +1 -0
- package/dist/webcomponents/{p-4b4fc43d.js → p-c4264aaf.js} +1 -1
- package/dist/webcomponents/p-cb9ee476.entry.js +1 -0
- package/dist/webcomponents/p-d083a342.entry.js +1 -0
- package/dist/webcomponents/{p-288c95b3.entry.js → p-d5612f35.entry.js} +1 -1
- package/dist/webcomponents/p-debeefbb.entry.js +1 -0
- package/dist/webcomponents/{p-e3a31451.entry.js → p-df38dd21.entry.js} +1 -1
- package/dist/webcomponents/p-e0bcfdb5.entry.js +1 -0
- package/dist/webcomponents/{p-cb68e8fa.js → p-e1651130.js} +1 -1
- package/dist/webcomponents/p-e46929a1.entry.js +1 -0
- package/dist/webcomponents/{p-fee616cf.entry.js → p-e85ef4af.entry.js} +1 -1
- package/dist/webcomponents/{p-fb53112b.js → p-e8c651b8.js} +1 -1
- package/dist/webcomponents/p-ea7c77a3.entry.js +1 -0
- package/dist/webcomponents/{p-2451611d.entry.js → p-f3555f0b.entry.js} +1 -1
- package/dist/webcomponents/p-fad19d75.js +2 -0
- package/dist/webcomponents/webcomponents.css +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/payout.service-eec372aa.js +0 -22
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.css +0 -7348
- package/dist/collection/components/business-details/business-details.css +0 -6446
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.css +0 -7348
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.css +0 -7348
- package/dist/collection/components/business-details/owner-details/owner-details.css +0 -7348
- package/dist/collection/components/business-details/representative-details/representative-details.css +0 -7348
- package/dist/collection/components/business-list/business-list.css +0 -579
- package/dist/collection/components/details/details.css +0 -7993
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.css +0 -0
- package/dist/collection/components/payment-details/payment-details.css +0 -7993
- package/dist/collection/components/payments-list/payments-list.css +0 -579
- package/dist/collection/components/payout-details/payout-details.css +0 -7993
- package/dist/collection/components/payouts-list/payouts-list.css +0 -579
- package/dist/collection/components/proceeds-list/proceeds-list.css +0 -579
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.css +0 -7352
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.css +0 -7352
- package/dist/collection/components/subaccount-details/subaccount-details.css +0 -7993
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.css +0 -7352
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.css +0 -7352
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.css +0 -7352
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.css +0 -7352
- package/dist/esm/payout.service-28b9594f.js +0 -20
- package/dist/module/payout.service.js +0 -20
- package/dist/webcomponents/p-023fe908.entry.js +0 -1
- package/dist/webcomponents/p-038fb958.entry.js +0 -1
- package/dist/webcomponents/p-06baf263.entry.js +0 -1
- package/dist/webcomponents/p-0f10316f.entry.js +0 -1
- package/dist/webcomponents/p-144e4bda.js +0 -1
- package/dist/webcomponents/p-1e53021d.entry.js +0 -1
- package/dist/webcomponents/p-1feebf9c.entry.js +0 -1
- package/dist/webcomponents/p-26779944.entry.js +0 -1
- package/dist/webcomponents/p-306aea52.entry.js +0 -1
- package/dist/webcomponents/p-31031d15.entry.js +0 -1
- package/dist/webcomponents/p-4791c1f2.entry.js +0 -1
- package/dist/webcomponents/p-4b260a52.entry.js +0 -1
- package/dist/webcomponents/p-56275f64.entry.js +0 -1
- package/dist/webcomponents/p-64d1aeb8.entry.js +0 -1
- package/dist/webcomponents/p-65969627.entry.js +0 -19
- package/dist/webcomponents/p-68f3a7b0.entry.js +0 -1
- package/dist/webcomponents/p-6b05f357.entry.js +0 -1
- package/dist/webcomponents/p-6ce586e0.entry.js +0 -1
- package/dist/webcomponents/p-71800e4c.js +0 -1
- package/dist/webcomponents/p-7ae2d26f.entry.js +0 -1
- package/dist/webcomponents/p-88d68804.entry.js +0 -1
- package/dist/webcomponents/p-8a6049ed.js +0 -1
- package/dist/webcomponents/p-8e8f5033.entry.js +0 -1
- package/dist/webcomponents/p-9228912b.entry.js +0 -1
- package/dist/webcomponents/p-923c37a2.entry.js +0 -1
- package/dist/webcomponents/p-9b1e7f5e.entry.js +0 -1
- package/dist/webcomponents/p-9c00adf1.entry.js +0 -1
- package/dist/webcomponents/p-9e5d765c.js +0 -1
- package/dist/webcomponents/p-a33c3e1c.entry.js +0 -1
- package/dist/webcomponents/p-a63a6fb9.js +0 -2
- package/dist/webcomponents/p-b01c0120.entry.js +0 -1
- package/dist/webcomponents/p-b94bf537.entry.js +0 -1
- package/dist/webcomponents/p-bacd9d6e.entry.js +0 -1
- package/dist/webcomponents/p-c85fb952.entry.js +0 -1
- package/dist/webcomponents/p-ca39c89f.js +0 -1
- package/dist/webcomponents/p-d42e284d.entry.js +0 -1
- package/dist/webcomponents/p-e673e681.entry.js +0 -1
- package/dist/webcomponents/p-eefe2f29.entry.js +0 -1
- package/dist/webcomponents/p-f14db665.entry.js +0 -1
- package/dist/webcomponents/p-f18e63c3.entry.js +0 -1
- package/dist/webcomponents/p-f3ae3cb6.entry.js +0 -1
- package/dist/webcomponents/p-fa9773c0.entry.js +0 -1
|
@@ -13,13 +13,12 @@ export class PaymentMethodSelector {
|
|
|
13
13
|
this.paymentMethodSelected.emit(event.target.value);
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h("div", { key: '
|
|
16
|
+
return (h("div", { key: '1076a0e9d658245823ace79acde858bdaec85e65', class: "btn-group jfi-btn-radio-group", role: "group", "aria-label": "Radio toggle group for payment method" }, this.paymentMethodTypes.map((paymentMethodType) => (h(Fragment, null, h("input", { id: paymentMethodType, type: "radio", name: "paymentMethodType", value: paymentMethodType, onChange: (event) => this.onChangeHandler(event), checked: this.selectedPaymentMethodType === paymentMethodType, class: "btn-check jfi-btn-radio" }), h("label", { htmlFor: paymentMethodType, class: "btn btn-outline-primary jfi-btn-radio-label" }, PaymentMethodLabels[paymentMethodType]))))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "justifi-payment-method-selector"; }
|
|
19
|
-
static get encapsulation() { return "shadow"; }
|
|
20
19
|
static get originalStyleUrls() {
|
|
21
20
|
return {
|
|
22
|
-
"$": ["payment-method-selector.
|
|
21
|
+
"$": ["payment-method-selector.css"]
|
|
23
22
|
};
|
|
24
23
|
}
|
|
25
24
|
static get styleUrls() {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
import { pagingDefaults } from "../../api";
|
|
3
3
|
import { MapPaymentStatusToBadge, formatCurrency, formatDate, formatTime } from "../../utils/utils";
|
|
4
|
+
import StyledHost from "../../utils/styled-host/styled-host";
|
|
4
5
|
export class PaymentsListCore {
|
|
5
6
|
constructor() {
|
|
6
7
|
this.handleClickPrevious = (beforeCursor) => {
|
|
@@ -13,6 +14,9 @@ export class PaymentsListCore {
|
|
|
13
14
|
delete newParams.before_cursor;
|
|
14
15
|
this.params = (Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor }));
|
|
15
16
|
};
|
|
17
|
+
this.handleDateChange = (name, value) => {
|
|
18
|
+
this.params = Object.assign(Object.assign({}, this.params), { [name]: value });
|
|
19
|
+
};
|
|
16
20
|
this.getPayments = undefined;
|
|
17
21
|
this.payments = [];
|
|
18
22
|
this.loading = true;
|
|
@@ -50,7 +54,7 @@ export class PaymentsListCore {
|
|
|
50
54
|
}
|
|
51
55
|
;
|
|
52
56
|
render() {
|
|
53
|
-
return (h(
|
|
57
|
+
return (h(StyledHost, { key: '84fde18eaf36e21f2b9107bc0527d3ca48d0bf49' }, h("div", { key: '57a7084b5b9fa143209131534119407ed22a6df9', class: "row gy-3 mb-4" }, h("div", { key: 'af0f206b7b2d330614e3c70dc32425a66637b47e', class: "col-2" }, h("form-control-date", { key: '277748b548069199308c2263dffb57bf5327cc1f', name: "created_after", label: "Start Date", inputHandler: this.handleDateChange })), h("div", { key: '8ec2b609f01fe8ab57572cfcefc2842e191579bc', class: "col-2" }, h("form-control-date", { key: 'b646dab8c653b31b2810083335f3e581e86e0344', name: "created_before", label: "End Date", inputHandler: this.handleDateChange }))), h("justifi-table", { key: '1f79a0d94391cdf9a86af65aeeccd9bf7d832af3', rowClickHandler: e => {
|
|
54
58
|
const clickedPaymentID = e.target.closest('tr').dataset.rowEntityId;
|
|
55
59
|
if (!clickedPaymentID) {
|
|
56
60
|
return;
|
|
@@ -84,16 +88,6 @@ export class PaymentsListCore {
|
|
|
84
88
|
])), loading: this.loading, "error-message": this.errorMessage, params: this.params, paging: Object.assign(Object.assign({}, this.paging), { handleClickNext: this.handleClickNext, handleClickPrevious: this.handleClickPrevious }) })));
|
|
85
89
|
}
|
|
86
90
|
static get is() { return "payments-list-core"; }
|
|
87
|
-
static get originalStyleUrls() {
|
|
88
|
-
return {
|
|
89
|
-
"$": ["payments-list.scss"]
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
static get styleUrls() {
|
|
93
|
-
return {
|
|
94
|
-
"$": ["payments-list.css"]
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
91
|
static get properties() {
|
|
98
92
|
return {
|
|
99
93
|
"getPayments": {
|
|
@@ -5,6 +5,9 @@ import { ErrorState } from "../details/utils";
|
|
|
5
5
|
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
|
|
6
6
|
import JustifiAnalytics from "../../api/Analytics";
|
|
7
7
|
/**
|
|
8
|
+
* @exportedPart label: Label for inputs
|
|
9
|
+
* @exportedPart input: The input fields
|
|
10
|
+
* @exportedPart input-invalid: Invalid state for inputs
|
|
8
11
|
* @exportedPart table-head: Table head
|
|
9
12
|
* @exportedPart table-head-row: Head row
|
|
10
13
|
* @exportedPart table-head-cell: Individual head cell
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ComponentErrorSeverity } from "../../api/ComponentError";
|
|
2
|
+
import { getErrorCode, getErrorMessage } from "../../api/services/utils";
|
|
3
|
+
export const makeGetPayoutCSV = ({ authToken, service }) => async ({ payoutId, onError }) => {
|
|
4
|
+
try {
|
|
5
|
+
const { data } = await service.fetchCSV(payoutId, authToken);
|
|
6
|
+
const a = document.createElement('a');
|
|
7
|
+
a.href = data.csv_url;
|
|
8
|
+
a.click();
|
|
9
|
+
}
|
|
10
|
+
catch (error) {
|
|
11
|
+
const errorMessage = getErrorMessage(error);
|
|
12
|
+
const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
|
|
13
|
+
onError({
|
|
14
|
+
error: errorMessage,
|
|
15
|
+
code,
|
|
16
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
};
|
|
@@ -1,9 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
import { MapPayoutStatusToBadge, formatCurrency, formatDate, formatTime } from "../../utils/utils";
|
|
3
3
|
import { CodeBlock, DetailItem, DetailSectionTitle, EntityHeadInfo, EntityHeadInfoItem, ErrorState, LoadingState } from "../details/utils";
|
|
4
|
+
import StyledHost from "../../utils/styled-host/styled-host";
|
|
4
5
|
export class PayoutDetailsCore {
|
|
5
6
|
constructor() {
|
|
7
|
+
this.downloadCSV = () => {
|
|
8
|
+
this.getPayoutCSV({
|
|
9
|
+
payoutId: this.payout.id,
|
|
10
|
+
onError: ({ error, code, severity }) => {
|
|
11
|
+
this.errorMessage = error;
|
|
12
|
+
this.errorEvent.emit({
|
|
13
|
+
message: error,
|
|
14
|
+
errorCode: code,
|
|
15
|
+
severity,
|
|
16
|
+
});
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
};
|
|
6
20
|
this.getPayout = undefined;
|
|
21
|
+
this.getPayoutCSV = undefined;
|
|
7
22
|
this.payout = undefined;
|
|
8
23
|
this.loading = true;
|
|
9
24
|
this.errorMessage = null;
|
|
@@ -37,19 +52,9 @@ export class PayoutDetailsCore {
|
|
|
37
52
|
}
|
|
38
53
|
render() {
|
|
39
54
|
var _a;
|
|
40
|
-
return (h(
|
|
55
|
+
return (h(StyledHost, { key: 'da7690d5e4b21e8cb32651080ef2c8df29440c1b' }, this.loading && LoadingState(), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.payout && (h("justifi-details", { key: '4d9a7636e345bc5dd88b910add3a340e22589c52', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: '91d6eb90ec40052d858f4736a9c60d9c9a96d40d', 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: 'be9f9b43c294b76326f1ce63af79217b8abf5b0d', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payout.updated_at)} ${formatTime(this.payout.updated_at)}` }), h(EntityHeadInfoItem, { key: '2c8fb8d4a4b8f1517028acc410bdb4adbafe67a4', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payout.created_at)} ${formatTime(this.payout.created_at)}` }), h(EntityHeadInfoItem, { key: '4ca663f7bbfa9bdf8fa01fe0b40fc5f6dc65dfbb', title: "ID", value: this.payout.id }), h("div", { key: '44b484491b5ec470270b469de15076d6d55e61d0', class: "m-4" }, h("button", { key: 'ca8b6cb61b56caebbec1eeb01e6de638865219bd', class: "btn btn-outline-secondary d-flex align-items-center", onClick: this.downloadCSV }, "Export CSV"))), h("div", { key: '2f959d7c549dc1f8e4df2e8d12ab9988255aba03', slot: 'detail-sections' }, h(DetailSectionTitle, { key: '741717a3e056163ee88452998f2d6e5b7dc0ccc1', sectionTitle: "Details" }), h("div", { key: 'd456b3a372525a0eff6c724e507ff325951fa430', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'a27cf5fbc2851f74bb4813d0bd49718dfe2f7d8d', title: "Date paid", value: formatDate(this.payout.deposits_at) }), h(DetailItem, { key: '90f49509ff399a9c164a7aeaf7307077b59e8559', title: "Statement Description", value: this.payout.description }), h(DetailItem, { key: '52ef8b50065db1a111b003e9ceadfa1cc4076b74', title: "Payout Method", value: this.payout.delivery_method }), h(DetailItem, { key: 'ee73a34d15af0cc677fc6d903706df3f10249bdf', title: "Amount", value: formatCurrency(this.payout.amount) }), h(DetailItem, { key: '229827b98fd76bd1dec1beeac0d99517d09dc677', title: "Fee", value: formatCurrency(this.payout.fees_total) })), h(DetailSectionTitle, { key: '1f4bb886e4a07b5054107aa00c2b98644e87859b', sectionTitle: "Account" }), h("div", { key: '78181a7ae216bf3b0013eee0494b4b149a2ec9c3', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '273cabd55194c104d1d421db53030601f5efa83c', title: "ID", value: this.payout.account_id }), h(DetailItem, { key: '1751e4b9d5453bc41fd3b29cf7e5d3955e375bb7', title: "Account Type", value: this.payout.bank_account.account_type }), h(DetailItem, { key: '1d5489f81d96025bdf7d7391623ddcc1ff3a7978', title: "Institution", value: this.payout.bank_account.account_type }), h(DetailItem, { key: 'f17d8096799b7eeba7c550ad828f2ffa97b65f56', title: "Routing Number", value: this.payout.bank_account.routing_number }), h(DetailItem, { key: 'cf3c83de7f119738940951a9481253ed855c768e', title: "Account Number", value: this.payout.bank_account.account_number_last4 })), h(DetailSectionTitle, { key: '458186b5bd7fb0aa954c283dee08e5090b164b27', sectionTitle: 'Metadata' }), h("div", { key: '90866a28028af6c7e46ab89c221016cd698299f2', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: 'ed25523342b6a751e48d2d7c11cef7e541b6ed3b', metadata: this.payout.metadata })))))));
|
|
41
56
|
}
|
|
42
57
|
static get is() { return "payout-details-core"; }
|
|
43
|
-
static get originalStyleUrls() {
|
|
44
|
-
return {
|
|
45
|
-
"$": ["payout-details.scss"]
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
static get styleUrls() {
|
|
49
|
-
return {
|
|
50
|
-
"$": ["payout-details.css"]
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
58
|
static get properties() {
|
|
54
59
|
return {
|
|
55
60
|
"getPayout": {
|
|
@@ -71,6 +76,26 @@ export class PayoutDetailsCore {
|
|
|
71
76
|
"tags": [],
|
|
72
77
|
"text": ""
|
|
73
78
|
}
|
|
79
|
+
},
|
|
80
|
+
"getPayoutCSV": {
|
|
81
|
+
"type": "unknown",
|
|
82
|
+
"mutable": false,
|
|
83
|
+
"complexType": {
|
|
84
|
+
"original": "Function",
|
|
85
|
+
"resolved": "Function",
|
|
86
|
+
"references": {
|
|
87
|
+
"Function": {
|
|
88
|
+
"location": "global",
|
|
89
|
+
"id": "global::Function"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"required": false,
|
|
94
|
+
"optional": false,
|
|
95
|
+
"docs": {
|
|
96
|
+
"tags": [],
|
|
97
|
+
"text": ""
|
|
98
|
+
}
|
|
74
99
|
}
|
|
75
100
|
};
|
|
76
101
|
}
|
|
@@ -4,6 +4,7 @@ import { makeGetPayoutDetails } from "./get-payout-details";
|
|
|
4
4
|
import { ErrorState } from "../details/utils";
|
|
5
5
|
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
|
|
6
6
|
import JustifiAnalytics from "../../api/Analytics";
|
|
7
|
+
import { makeGetPayoutCSV } from "./get-payout-csv";
|
|
7
8
|
export class PayoutDetails {
|
|
8
9
|
constructor() {
|
|
9
10
|
this.handleErrorEvent = (event) => {
|
|
@@ -13,25 +14,30 @@ export class PayoutDetails {
|
|
|
13
14
|
this.payoutId = undefined;
|
|
14
15
|
this.authToken = undefined;
|
|
15
16
|
this.getPayout = undefined;
|
|
17
|
+
this.getPayoutCSV = undefined;
|
|
16
18
|
this.errorMessage = null;
|
|
17
19
|
}
|
|
18
20
|
componentWillLoad() {
|
|
19
21
|
this.analytics = new JustifiAnalytics(this);
|
|
20
|
-
this.
|
|
22
|
+
this.initializeServices();
|
|
21
23
|
}
|
|
22
24
|
disconnectedCallback() {
|
|
23
25
|
this.analytics.cleanup();
|
|
24
26
|
}
|
|
25
27
|
propChanged() {
|
|
26
|
-
this.
|
|
28
|
+
this.initializeServices();
|
|
27
29
|
}
|
|
28
|
-
|
|
30
|
+
initializeServices() {
|
|
29
31
|
if (this.payoutId && this.authToken) {
|
|
30
32
|
this.getPayout = makeGetPayoutDetails({
|
|
31
33
|
id: this.payoutId,
|
|
32
34
|
authToken: this.authToken,
|
|
33
35
|
service: new PayoutService()
|
|
34
36
|
});
|
|
37
|
+
this.getPayoutCSV = makeGetPayoutCSV({
|
|
38
|
+
authToken: this.authToken,
|
|
39
|
+
service: new PayoutService()
|
|
40
|
+
});
|
|
35
41
|
}
|
|
36
42
|
else {
|
|
37
43
|
this.errorMessage = 'Failed to load payout details. payoutId or authToken is not provided.';
|
|
@@ -46,7 +52,7 @@ export class PayoutDetails {
|
|
|
46
52
|
if (this.errorMessage) {
|
|
47
53
|
return ErrorState(this.errorMessage);
|
|
48
54
|
}
|
|
49
|
-
return (h("payout-details-core", { getPayout: this.getPayout, "onError-event": this.handleErrorEvent }));
|
|
55
|
+
return (h("payout-details-core", { getPayout: this.getPayout, getPayoutCSV: this.getPayoutCSV, "onError-event": this.handleErrorEvent }));
|
|
50
56
|
}
|
|
51
57
|
static get is() { return "justifi-payout-details"; }
|
|
52
58
|
static get encapsulation() { return "shadow"; }
|
|
@@ -91,6 +97,7 @@ export class PayoutDetails {
|
|
|
91
97
|
static get states() {
|
|
92
98
|
return {
|
|
93
99
|
"getPayout": {},
|
|
100
|
+
"getPayoutCSV": {},
|
|
94
101
|
"errorMessage": {}
|
|
95
102
|
};
|
|
96
103
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
import { PayoutStatuses, PayoutStatusesSafeNames, pagingDefaults } from "../../api";
|
|
3
3
|
import { formatCurrency, formatDate, formatTime } from "../../utils/utils";
|
|
4
4
|
import { tableExportedParts } from "../table/exported-parts";
|
|
5
|
+
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
|
|
6
|
+
import StyledHost from "../../utils/styled-host/styled-host";
|
|
7
|
+
import { DownloadIcon } from "../../assets/download-icon";
|
|
5
8
|
export class PayoutsListCore {
|
|
6
9
|
constructor() {
|
|
7
10
|
this.mapStatusToBadge = (status) => {
|
|
@@ -30,7 +33,23 @@ export class PayoutsListCore {
|
|
|
30
33
|
delete newParams.before_cursor;
|
|
31
34
|
this.params = (Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor }));
|
|
32
35
|
};
|
|
36
|
+
this.downloadCSV = (payoutId) => {
|
|
37
|
+
this.getPayoutCSV({
|
|
38
|
+
payoutId,
|
|
39
|
+
onError: () => {
|
|
40
|
+
this.errorEvent.emit({
|
|
41
|
+
errorCode: ComponentErrorCodes.FETCH_ERROR,
|
|
42
|
+
message: 'Failed to download CSV',
|
|
43
|
+
severity: ComponentErrorSeverity.ERROR
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
this.handleDateChange = (name, value) => {
|
|
49
|
+
this.params = Object.assign(Object.assign({}, this.params), { [name]: value });
|
|
50
|
+
};
|
|
33
51
|
this.getPayouts = undefined;
|
|
52
|
+
this.getPayoutCSV = undefined;
|
|
34
53
|
this.payouts = [];
|
|
35
54
|
this.loading = true;
|
|
36
55
|
this.errorMessage = undefined;
|
|
@@ -67,7 +86,7 @@ export class PayoutsListCore {
|
|
|
67
86
|
}
|
|
68
87
|
;
|
|
69
88
|
render() {
|
|
70
|
-
return (h(
|
|
89
|
+
return (h(StyledHost, { key: '469e4d0a5fcb7370d0d076e9f27cf5102235324e', exportedparts: tableExportedParts }, h("div", { key: '883f193b2da3cdd3da3f31422def69d206ead983', class: "row gy-3 mb-4" }, h("div", { key: '585684441aeded4619f9a0f03151b5e8dd2219d8', class: "col-2" }, h("form-control-date", { key: 'bc69d932f1d32074b3f0fdd2c9dba6f9601db891', name: "created_after", label: "Date from:", inputHandler: this.handleDateChange })), h("div", { key: 'd026150a6a09ad49f549ea2b5174a1ed311987dc', class: "col-2" }, h("form-control-date", { key: '2621b14359b8159270d67e53f9ad2f6464cbb467', name: "created_before", label: "Date to:", inputHandler: this.handleDateChange }))), h("justifi-table", { key: '757c9bbee39356ee23819f0e7e4d3b096bdf38f6', rowClickHandler: (e) => {
|
|
71
90
|
const clickedPayoutID = e.target.closest('tr').dataset.rowEntityId;
|
|
72
91
|
if (!clickedPayoutID) {
|
|
73
92
|
return;
|
|
@@ -83,7 +102,8 @@ export class PayoutsListCore {
|
|
|
83
102
|
['Fees', 'Sum of fees in each payout'],
|
|
84
103
|
['Other', 'Sum of less common transactions in each payout (disputes, ACH returns, fee refunds, and forwarded balances due to failed payouts)'],
|
|
85
104
|
['Payout Amount', 'The net sum of all transactions in each payout. This is the amount you\'ll see reflected on your bank statement'],
|
|
86
|
-
['Status', 'The real-time status of each payout']
|
|
105
|
+
['Status', 'The real-time status of each payout'],
|
|
106
|
+
['Actions', '']
|
|
87
107
|
], entityId: this.payouts.map((payout) => payout.id), rowData: this.payouts.map((payout) => ([
|
|
88
108
|
{
|
|
89
109
|
type: 'head',
|
|
@@ -103,20 +123,11 @@ export class PayoutsListCore {
|
|
|
103
123
|
{
|
|
104
124
|
type: 'inner',
|
|
105
125
|
value: this.mapStatusToBadge(payout.status)
|
|
106
|
-
}
|
|
126
|
+
},
|
|
127
|
+
(h(DownloadIcon, { title: "Export CSV", onClick: () => this.downloadCSV(payout.id), style: { height: '24px', width: '24px', cursor: 'pointer' } }))
|
|
107
128
|
])), loading: this.loading, "error-message": this.errorMessage, params: this.params, paging: Object.assign(Object.assign({}, this.paging), { handleClickNext: this.handleClickNext, handleClickPrevious: this.handleClickPrevious }) })));
|
|
108
129
|
}
|
|
109
130
|
static get is() { return "payouts-list-core"; }
|
|
110
|
-
static get originalStyleUrls() {
|
|
111
|
-
return {
|
|
112
|
-
"$": ["payouts-list.scss"]
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
static get styleUrls() {
|
|
116
|
-
return {
|
|
117
|
-
"$": ["payouts-list.css"]
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
131
|
static get properties() {
|
|
121
132
|
return {
|
|
122
133
|
"getPayouts": {
|
|
@@ -138,6 +149,26 @@ export class PayoutsListCore {
|
|
|
138
149
|
"tags": [],
|
|
139
150
|
"text": ""
|
|
140
151
|
}
|
|
152
|
+
},
|
|
153
|
+
"getPayoutCSV": {
|
|
154
|
+
"type": "unknown",
|
|
155
|
+
"mutable": false,
|
|
156
|
+
"complexType": {
|
|
157
|
+
"original": "Function",
|
|
158
|
+
"resolved": "Function",
|
|
159
|
+
"references": {
|
|
160
|
+
"Function": {
|
|
161
|
+
"location": "global",
|
|
162
|
+
"id": "global::Function"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"required": false,
|
|
167
|
+
"optional": false,
|
|
168
|
+
"docs": {
|
|
169
|
+
"tags": [],
|
|
170
|
+
"text": ""
|
|
171
|
+
}
|
|
141
172
|
}
|
|
142
173
|
};
|
|
143
174
|
}
|
|
@@ -5,7 +5,11 @@ import { makeGetPayouts } from "./get-payouts";
|
|
|
5
5
|
import { ErrorState } from "../details/utils";
|
|
6
6
|
import { ComponentErrorCodes } from "../../api/ComponentError";
|
|
7
7
|
import JustifiAnalytics from "../../api/Analytics";
|
|
8
|
+
import { makeGetPayoutCSV } from "../payout-details/get-payout-csv";
|
|
8
9
|
/**
|
|
10
|
+
* @exportedPart label: Label for inputs
|
|
11
|
+
* @exportedPart input: The input fields
|
|
12
|
+
* @exportedPart input-invalid: Invalid state for inputs
|
|
9
13
|
* @exportedPart table-head: Table head
|
|
10
14
|
* @exportedPart table-head-row: Head row
|
|
11
15
|
* @exportedPart table-head-cell: Individual head cell
|
|
@@ -33,25 +37,28 @@ export class PayoutsList {
|
|
|
33
37
|
this.accountId = undefined;
|
|
34
38
|
this.authToken = undefined;
|
|
35
39
|
this.getPayouts = undefined;
|
|
40
|
+
this.getPayoutCSV = undefined;
|
|
36
41
|
this.errorMessage = null;
|
|
37
42
|
}
|
|
38
43
|
componentWillLoad() {
|
|
39
44
|
this.analytics = new JustifiAnalytics(this);
|
|
40
|
-
this.
|
|
45
|
+
this.initializeServices();
|
|
41
46
|
}
|
|
42
47
|
disconnectedCallback() {
|
|
43
48
|
this.analytics.cleanup();
|
|
44
49
|
}
|
|
45
50
|
propChanged() {
|
|
46
|
-
this.
|
|
51
|
+
this.initializeServices();
|
|
47
52
|
}
|
|
48
|
-
|
|
53
|
+
initializeServices() {
|
|
49
54
|
if (this.accountId && this.authToken) {
|
|
50
|
-
|
|
55
|
+
const serviceParams = {
|
|
51
56
|
id: this.accountId,
|
|
52
57
|
authToken: this.authToken,
|
|
53
58
|
service: new PayoutService(),
|
|
54
|
-
}
|
|
59
|
+
};
|
|
60
|
+
this.getPayouts = makeGetPayouts(serviceParams);
|
|
61
|
+
this.getPayoutCSV = makeGetPayoutCSV(serviceParams);
|
|
55
62
|
}
|
|
56
63
|
else {
|
|
57
64
|
this.errorMessage = 'Account ID and Auth Token are required';
|
|
@@ -65,7 +72,7 @@ export class PayoutsList {
|
|
|
65
72
|
if (this.errorMessage) {
|
|
66
73
|
return ErrorState(this.errorMessage);
|
|
67
74
|
}
|
|
68
|
-
return (h(Host, { exportedparts: tableExportedParts }, h("payouts-list-core", { getPayouts: this.getPayouts, "onError-event": this.handleOnError })));
|
|
75
|
+
return (h(Host, { exportedparts: tableExportedParts }, h("payouts-list-core", { getPayouts: this.getPayouts, getPayoutCSV: this.getPayoutCSV, "onError-event": this.handleOnError })));
|
|
69
76
|
}
|
|
70
77
|
static get is() { return "justifi-payouts-list"; }
|
|
71
78
|
static get encapsulation() { return "shadow"; }
|
|
@@ -110,6 +117,7 @@ export class PayoutsList {
|
|
|
110
117
|
static get states() {
|
|
111
118
|
return {
|
|
112
119
|
"getPayouts": {},
|
|
120
|
+
"getPayoutCSV": {},
|
|
113
121
|
"errorMessage": {}
|
|
114
122
|
};
|
|
115
123
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
import { Api, pagingDefaults } from "../../api";
|
|
3
3
|
import { formatCurrency, formatDate } from "../../utils/utils";
|
|
4
4
|
import { Proceed, ProceedStatuses, ProceedStatusesSafeNames } from "../../api/Proceed";
|
|
5
5
|
import { config } from "../../../config";
|
|
6
|
+
import StyledHost from "../../utils/styled-host/styled-host";
|
|
6
7
|
/**
|
|
7
8
|
* @exportedPart table-head: Table head
|
|
8
9
|
* @exportedPart table-head-row: Head row
|
|
@@ -86,7 +87,7 @@ export class ProceedsList {
|
|
|
86
87
|
this.loading = false;
|
|
87
88
|
}
|
|
88
89
|
render() {
|
|
89
|
-
return (h(
|
|
90
|
+
return (h(StyledHost, { key: 'ea9ee482e1b439490ed258c37e75c47e5dc5f3bf' }, h("justifi-table", { key: 'a26da8b6e884e00bc0a8eac24025397fdc925d14', rowClickHandler: (e) => {
|
|
90
91
|
const clickedProceedID = e.target.closest('tr').dataset.rowEntityId;
|
|
91
92
|
if (!clickedProceedID) {
|
|
92
93
|
return;
|
|
@@ -118,16 +119,6 @@ export class ProceedsList {
|
|
|
118
119
|
}
|
|
119
120
|
static get is() { return "justifi-proceeds-list"; }
|
|
120
121
|
static get encapsulation() { return "shadow"; }
|
|
121
|
-
static get originalStyleUrls() {
|
|
122
|
-
return {
|
|
123
|
-
"$": ["proceeds-list.scss"]
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
static get styleUrls() {
|
|
127
|
-
return {
|
|
128
|
-
"$": ["proceeds-list.css"]
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
122
|
static get properties() {
|
|
132
123
|
return {
|
|
133
124
|
"accountId": {
|