@justifi/webcomponents 4.21.0 → 4.22.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-880f5152.js → Analytics-9db96975.js} +2 -2
- package/dist/cjs/{Api-b98b256f.js → Api-f5280a80.js} +6 -4
- package/dist/cjs/Checkout-a528241d.js +85 -0
- package/dist/cjs/SubAccount-cc95a4a0.js +106 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{business-additional-questions-schema-26b0eecb.js → business-additional-questions-schema-19f08938.js} +2 -2
- package/dist/cjs/business-details-core.cjs.entry.js +1 -1
- package/dist/cjs/{business-identity-schema-503ecb77.js → business-identity-schema-a8bb2276.js} +2 -2
- package/dist/cjs/{business.service-031c0084.js → business.service-7faffa0b.js} +1 -1
- package/dist/cjs/{check-pkg-version-54f7dfda.js → check-pkg-version-23a1cabd.js} +1 -1
- package/dist/cjs/checkout.service-160f3a9c.js +36 -0
- package/dist/cjs/checkouts-list-core.cjs.entry.js +181 -0
- package/dist/cjs/checkouts-list-filters.cjs.entry.js +35 -0
- package/dist/cjs/{custom-popper_5.cjs.entry.js → custom-popper_4.cjs.entry.js} +4 -19
- package/dist/cjs/dispute-30c806f6.js +10 -0
- package/dist/cjs/form-alert_5.cjs.entry.js +3 -3
- package/dist/cjs/form-control-checkbox_9.cjs.entry.js +11 -11
- package/dist/cjs/form-control-date.cjs.entry.js +83 -0
- package/dist/cjs/form-control-error-text.cjs.entry.js +21 -0
- package/dist/cjs/form-control-file.cjs.entry.js +1 -1
- package/dist/cjs/form-control-help-text.cjs.entry.js +21 -0
- package/dist/cjs/{form-control-help-text_2.cjs.entry.js → form-control-monetary.cjs.entry.js} +1 -16
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +99 -0
- package/dist/cjs/form-control-number.cjs.entry.js +1 -1
- package/dist/cjs/form-control-radio.cjs.entry.js +44 -0
- package/dist/cjs/form-control-textarea.cjs.entry.js +49 -0
- package/dist/cjs/{get-payout-csv-a82b2c1c.js → get-payout-csv-12dc9540.js} +3 -2
- package/dist/cjs/get-subaccounts-8f7a930f.js +54 -0
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +10 -9
- package/dist/cjs/justifi-additional-statement_11.cjs.entry.js +173 -0
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +1678 -13
- package/dist/cjs/justifi-business-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-business-form.cjs.entry.js +11 -10
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +3 -8
- package/dist/cjs/justifi-checkout.cjs.entry.js +10 -25
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +119 -0
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +28 -0
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +16 -0
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
- package/dist/cjs/{justifi-new-payment-method_4.cjs.entry.js → justifi-new-payment-method_5.cjs.entry.js} +18 -1
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -7
- package/dist/cjs/justifi-payment-form.cjs.entry.js +10 -9
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +3 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -8
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +11 -13
- package/dist/cjs/justifi-refund-form.cjs.entry.js +5 -4
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +7 -6
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +137 -0
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +59 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/{esm/payments-list-filters_2.entry.js → cjs/lodash-dbf6a6a4.js} +2 -57
- package/dist/cjs/{package-cb1b1015.js → package-41c8f38c.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +10 -9
- package/dist/cjs/{payment.service-6f79aad2.js → payment.service-83da752a.js} +3 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +7 -7
- package/dist/cjs/payments-list-filters.cjs.entry.js +35 -0
- package/dist/cjs/payments-status-58e45b2e.js +26 -0
- package/dist/cjs/payout-details-core.cjs.entry.js +4 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +7 -23
- package/dist/cjs/payouts-status-2f7be07d.js +24 -0
- package/dist/cjs/{schema-validations-0a7e46a3.js → schema-validations-184a4356.js} +1 -1
- package/dist/cjs/table-bb114e2f.js +20 -0
- package/dist/cjs/table-filters-menu.cjs.entry.js +35 -0
- package/dist/cjs/terminals-list-core.cjs.entry.js +166 -0
- package/dist/cjs/terminals-list-filters.cjs.entry.js +32 -0
- package/dist/cjs/{utils-52fb7fa1.js → utils-3d84442d.js} +0 -44
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Api.js +6 -4
- package/dist/collection/api/Checkout.js +77 -1
- package/dist/collection/api/SubAccount.js +33 -0
- package/dist/collection/api/Terminal.js +25 -0
- package/dist/collection/api/get-subaccounts.js +31 -0
- package/dist/collection/api/index.js +2 -0
- package/dist/collection/api/services/checkout.service.js +10 -1
- package/dist/collection/api/services/subaccounts.service.js +13 -0
- package/dist/collection/api/services/terminal.service.js +20 -0
- package/dist/collection/collection-manifest.json +37 -15
- package/dist/collection/components/billing-form/billing-form.js +3 -3
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +1 -1
- package/dist/collection/components/business-details/business-details-core.js +1 -1
- package/dist/collection/components/business-details/business-details.js +1 -1
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +1 -1
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +1 -1
- package/dist/collection/components/business-details/owner-details/owner-details.js +1 -1
- package/dist/collection/components/business-details/representative-details/representative-details.js +1 -1
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +3 -3
- package/dist/collection/components/business-forms/business-form/business-form.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +2 -2
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +4 -4
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +2 -2
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +2 -2
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
- package/dist/collection/components/checkout/checkout-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +257 -0
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +84 -0
- package/dist/collection/components/checkouts-list/checkouts-list.js +208 -0
- package/dist/collection/components/checkouts-list/checkouts-status.js +13 -0
- package/dist/collection/components/checkouts-list/checkouts-table.js +20 -0
- package/dist/collection/components/checkouts-list/get-checkouts.js +31 -0
- package/dist/collection/components/dispute-management/counter-dispute/additional-statement.js +8 -0
- package/dist/collection/components/dispute-management/counter-dispute/cancellation-policy.js +8 -0
- package/dist/collection/components/dispute-management/counter-dispute/counter-dispute.js +90 -0
- package/dist/collection/components/dispute-management/counter-dispute/customer-details.js +8 -0
- package/dist/collection/components/dispute-management/counter-dispute/dispute-reason.js +8 -0
- package/dist/collection/components/dispute-management/counter-dispute/duplicate-charge.js +8 -0
- package/dist/collection/components/dispute-management/counter-dispute/electronic-evidence.js +8 -0
- package/dist/collection/components/dispute-management/counter-dispute/product-or-service.js +16 -0
- package/dist/collection/components/dispute-management/counter-dispute/refund-policy.js +8 -0
- package/dist/collection/components/dispute-management/counter-dispute/shipping-details.js +12 -0
- package/dist/collection/components/dispute-management/dispute-management-core.js +53 -0
- package/dist/collection/components/dispute-management/dispute-management.js +8 -0
- package/dist/collection/components/dispute-management/dispute-notification.js +48 -0
- package/dist/collection/components/dispute-management/dispute.js +8 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +2 -2
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +2 -2
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +10 -9
- package/dist/collection/components/payment-details/payment-details.js +1 -1
- package/dist/collection/components/payment-form/payment-form.js +3 -3
- package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +5 -5
- package/dist/collection/components/payments-list/payments-list-filters.js +1 -1
- package/dist/collection/components/payments-list/payments-list.js +3 -5
- package/dist/collection/components/payments-list/payments-status.js +23 -0
- package/dist/collection/components/payout-details/payout-details-core.js +4 -3
- package/dist/collection/components/payout-details/payout-details.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +6 -22
- package/dist/collection/components/payouts-list/payouts-list.js +4 -7
- package/dist/collection/components/payouts-list/payouts-status.js +21 -0
- package/dist/collection/components/refund-form/refund-form.js +2 -2
- package/dist/collection/components/terminals-list/get-terminal-detail.js +29 -0
- package/dist/collection/components/terminals-list/get-terminals.js +31 -0
- package/dist/collection/components/terminals-list/terminals-list-core.js +257 -0
- package/dist/collection/components/terminals-list/terminals-list-filters.js +81 -0
- package/dist/collection/components/terminals-list/terminals-list.js +209 -0
- package/dist/collection/components/terminals-list/terminals-status.js +11 -0
- package/dist/collection/components/terminals-list/terminals-table.js +15 -0
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.css +9 -0
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +276 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/{components → ui-components}/details/details.js +1 -1
- package/dist/collection/ui-components/filters/table-filters-menu.js +1 -1
- package/dist/collection/{components → ui-components}/form/form-control-checkbox.js +1 -1
- package/dist/collection/{components → ui-components}/form/form-control-date.js +21 -2
- package/dist/collection/{components → ui-components}/form/form-control-file.js +1 -1
- package/dist/collection/{components → ui-components}/form/form-control-monetary.js +1 -1
- package/dist/collection/{components → ui-components}/form/form-control-number-masked.js +1 -1
- package/dist/collection/{components → ui-components}/form/form-control-number.js +1 -1
- package/dist/collection/ui-components/form/form-control-radio.js +209 -0
- package/dist/collection/{components → ui-components}/form/form-control-select.js +1 -1
- package/dist/collection/{components → ui-components}/form/form-control-text.js +1 -1
- package/dist/collection/ui-components/form/form-control-textarea.js +229 -0
- package/dist/collection/ui-components/index.js +1 -0
- package/dist/collection/utils/table.js +16 -0
- package/dist/collection/utils/utils.js +0 -42
- package/dist/docs.json +9587 -6724
- package/dist/esm/{Analytics-3dde5a98.js → Analytics-777962a4.js} +2 -2
- package/dist/esm/{Api-c8abc2e0.js → Api-391d00e2.js} +6 -4
- package/dist/esm/Checkout-0b4086f8.js +83 -0
- package/dist/esm/SubAccount-7f7e4c56.js +102 -0
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{business-additional-questions-schema-a5583cf8.js → business-additional-questions-schema-97f52255.js} +2 -2
- package/dist/esm/business-details-core.entry.js +1 -1
- package/dist/esm/{business-identity-schema-9e3269fb.js → business-identity-schema-434e16bc.js} +2 -2
- package/dist/esm/{business.service-1f589b6e.js → business.service-97a3da69.js} +1 -1
- package/dist/esm/{check-pkg-version-4d144b72.js → check-pkg-version-bac8fac0.js} +1 -1
- package/dist/esm/checkout.service-ef1549c6.js +34 -0
- package/dist/esm/checkouts-list-core.entry.js +177 -0
- package/dist/esm/checkouts-list-filters.entry.js +31 -0
- package/dist/esm/{custom-popper_5.entry.js → custom-popper_4.entry.js} +5 -19
- package/dist/esm/dispute-4d2e0a04.js +10 -0
- package/dist/esm/form-alert_5.entry.js +3 -3
- package/dist/esm/form-control-checkbox_9.entry.js +11 -11
- package/dist/esm/form-control-date.entry.js +79 -0
- package/dist/esm/form-control-error-text.entry.js +17 -0
- package/dist/esm/form-control-file.entry.js +1 -1
- package/dist/esm/form-control-help-text.entry.js +17 -0
- package/dist/esm/{form-control-help-text_2.entry.js → form-control-monetary.entry.js} +3 -17
- package/dist/esm/form-control-number-masked_2.entry.js +94 -0
- package/dist/esm/form-control-number.entry.js +1 -1
- package/dist/esm/form-control-radio.entry.js +40 -0
- package/dist/esm/form-control-textarea.entry.js +45 -0
- package/dist/esm/{get-payout-csv-d29146ee.js → get-payout-csv-70974763.js} +3 -2
- package/dist/esm/get-subaccounts-16c8ce40.js +51 -0
- package/dist/esm/gross-payment-chart-core.entry.js +3 -3
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +10 -9
- package/dist/esm/justifi-additional-statement_11.entry.js +159 -0
- package/dist/esm/justifi-bank-account-form.entry.js +3 -3
- package/dist/esm/justifi-billing-form_2.entry.js +1679 -14
- package/dist/esm/justifi-business-details.entry.js +6 -6
- package/dist/esm/justifi-business-form.entry.js +11 -10
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
- package/dist/esm/justifi-card-form.entry.js +3 -3
- package/dist/esm/justifi-checkout-core.entry.js +2 -7
- package/dist/esm/justifi-checkout.entry.js +8 -23
- package/dist/esm/justifi-checkouts-list.entry.js +115 -0
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management-core.entry.js +24 -0
- package/dist/esm/justifi-dispute-management.entry.js +12 -0
- package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
- package/dist/esm/{justifi-new-payment-method_4.entry.js → justifi-new-payment-method_5.entry.js} +18 -2
- package/dist/esm/justifi-owner-form_3.entry.js +7 -7
- package/dist/esm/justifi-payment-details.entry.js +8 -7
- package/dist/esm/justifi-payment-form.entry.js +10 -9
- package/dist/esm/justifi-payment-method-selector.entry.js +3 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +5 -5
- package/dist/esm/justifi-payments-list.entry.js +10 -11
- package/dist/esm/justifi-payout-details.entry.js +8 -7
- package/dist/esm/justifi-payouts-list.entry.js +11 -13
- package/dist/esm/justifi-refund-form.entry.js +5 -4
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance.entry.js +7 -6
- package/dist/esm/justifi-terminals-list.entry.js +133 -0
- package/dist/esm/justifi-tokenize-payment-method.entry.js +55 -0
- package/dist/esm/loader.js +1 -1
- package/dist/{cjs/payments-list-filters_2.cjs.entry.js → esm/lodash-faeb5a52.js} +1 -63
- package/dist/esm/{package-4ab64620.js → package-5144835c.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +10 -9
- package/dist/esm/{payment.service-f9c3e9d7.js → payment.service-2f67410b.js} +3 -2
- package/dist/esm/payments-list-core.entry.js +6 -6
- package/dist/esm/payments-list-filters.entry.js +31 -0
- package/dist/esm/payments-status-4937a170.js +24 -0
- package/dist/esm/payout-details-core.entry.js +4 -3
- package/dist/esm/payouts-list-core.entry.js +7 -23
- package/dist/esm/payouts-status-cd58e525.js +22 -0
- package/dist/esm/{schema-validations-e725d701.js → schema-validations-c1728516.js} +1 -1
- package/dist/esm/table-75364107.js +18 -0
- package/dist/esm/table-filters-menu.entry.js +31 -0
- package/dist/esm/terminals-list-core.entry.js +162 -0
- package/dist/esm/terminals-list-filters.entry.js +28 -0
- package/dist/esm/{utils-620f2d78.js → utils-3daada24.js} +1 -43
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Api.js +6 -4
- package/dist/module/Checkout.js +83 -0
- package/dist/module/SubAccount.js +102 -0
- package/dist/module/additional-statement.js +63 -0
- package/dist/module/billing-form.js +1 -1
- package/dist/module/business-additional-questions-form-step-core.js +1 -1
- package/dist/module/business-bank-account-form-step.js +3 -2
- package/dist/module/business-core-info-form-step-core.js +1 -1
- package/dist/module/business-core-info.js +1 -1
- package/dist/module/business-document-upload-form-step.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/business-representative-form-inputs.js +1 -1
- package/dist/module/business-representative-form-step-core.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +3 -2
- package/dist/module/cancellation-policy.js +63 -0
- package/dist/module/checkout-core.js +2 -7
- package/dist/module/checkout.service.js +34 -0
- package/dist/module/checkouts-list-core.d.ts +11 -0
- package/dist/module/checkouts-list-core.js +6 -0
- package/dist/module/checkouts-list-core2.js +249 -0
- package/dist/module/checkouts-list-filters.d.ts +11 -0
- package/dist/module/checkouts-list-filters.js +6 -0
- package/dist/module/checkouts-list-filters2.js +80 -0
- package/dist/module/counter-dispute.js +189 -0
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +69 -0
- package/dist/module/details.js +1 -1
- package/dist/module/dispute-management-core.js +160 -0
- package/dist/module/dispute-notification.js +36 -0
- package/dist/module/dispute-reason.js +45 -0
- package/dist/module/duplicate-charge.js +69 -0
- package/dist/module/electronic-evidence.js +63 -0
- package/dist/module/exported-parts.js +1 -34
- package/dist/module/form-control-checkbox2.js +1 -1
- package/dist/module/form-control-date2.js +5 -3
- 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-radio.d.ts +11 -0
- package/dist/module/form-control-radio.js +6 -0
- package/dist/module/form-control-radio2.js +78 -0
- package/dist/module/form-control-select2.js +1 -1
- package/dist/module/form-control-text2.js +1 -1
- package/dist/module/form-control-textarea.d.ts +11 -0
- package/dist/module/form-control-textarea.js +6 -0
- package/dist/module/form-control-textarea2.js +84 -0
- package/dist/module/get-payout-csv.js +2 -1
- package/dist/module/get-subaccounts.js +51 -0
- package/dist/module/gross-payment-chart-core2.js +2 -2
- package/dist/module/identity-address-form.js +1 -1
- package/dist/module/justifi-additional-statement.d.ts +11 -0
- package/dist/module/justifi-additional-statement.js +6 -0
- package/dist/module/justifi-business-form.js +3 -2
- package/dist/module/justifi-cancellation-policy.d.ts +11 -0
- package/dist/module/justifi-cancellation-policy.js +6 -0
- package/dist/module/justifi-checkout.js +1 -22
- package/dist/module/justifi-checkouts-list.d.ts +11 -0
- package/dist/module/justifi-checkouts-list.js +191 -0
- package/dist/module/justifi-counter-dispute.d.ts +11 -0
- package/dist/module/justifi-counter-dispute.js +6 -0
- package/dist/module/justifi-customer-details.d.ts +11 -0
- package/dist/module/justifi-customer-details.js +6 -0
- package/dist/module/justifi-dispute-management-core.d.ts +11 -0
- package/dist/module/justifi-dispute-management-core.js +6 -0
- package/dist/module/justifi-dispute-management.d.ts +11 -0
- package/dist/module/justifi-dispute-management.js +157 -0
- package/dist/module/justifi-dispute-notification.d.ts +11 -0
- package/dist/module/justifi-dispute-notification.js +6 -0
- package/dist/module/justifi-dispute-reason.d.ts +11 -0
- package/dist/module/justifi-dispute-reason.js +6 -0
- package/dist/module/justifi-duplicate-charge.d.ts +11 -0
- package/dist/module/justifi-duplicate-charge.js +6 -0
- package/dist/module/justifi-electronic-evidence.d.ts +11 -0
- package/dist/module/justifi-electronic-evidence.js +6 -0
- package/dist/module/justifi-payment-details.js +2 -1
- package/dist/module/justifi-payment-form.js +5 -4
- package/dist/module/justifi-payments-list.js +5 -6
- package/dist/module/justifi-payout-details.js +2 -1
- package/dist/module/justifi-payouts-list.js +5 -7
- package/dist/module/justifi-product-or-service.d.ts +11 -0
- package/dist/module/justifi-product-or-service.js +6 -0
- package/dist/module/justifi-refund-form.js +3 -2
- package/dist/module/justifi-refund-policy.d.ts +11 -0
- package/dist/module/justifi-refund-policy.js +6 -0
- package/dist/module/justifi-season-interruption-insurance.js +3 -2
- package/dist/module/justifi-shipping-details.d.ts +11 -0
- package/dist/module/justifi-shipping-details.js +6 -0
- package/dist/module/justifi-terminals-list.d.ts +11 -0
- package/dist/module/justifi-terminals-list.js +216 -0
- package/dist/module/justifi-tokenize-payment-method.d.ts +11 -0
- package/dist/module/justifi-tokenize-payment-method.js +153 -0
- package/dist/module/legal-address-form-step-core.js +1 -1
- package/dist/module/legal-address-form.js +1 -1
- package/dist/module/lodash.js +17204 -0
- package/dist/module/owner-form-core2.js +1 -1
- package/dist/module/owner-form-inputs2.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/payment-details-core2.js +9 -8
- package/dist/module/payment-method-form.js +1 -1
- package/dist/module/payment-method-selector.js +3 -2
- package/dist/module/payment.service.js +2 -1
- package/dist/module/payments-list-core2.js +7 -6
- package/dist/module/payments-list-filters2.js +2 -17204
- package/dist/module/payments-status.js +24 -0
- package/dist/module/payout-details-core2.js +3 -2
- package/dist/module/payouts-list-core2.js +8 -23
- package/dist/module/payouts-status.js +22 -0
- package/dist/module/product-or-service.js +60 -0
- package/dist/module/refund-policy.js +63 -0
- package/dist/module/saved-payment-method.js +1 -1
- package/dist/module/season-interruption-insurance-core.js +3 -3
- package/dist/module/sezzle-payment-method.js +1 -1
- package/dist/module/shipping-details.js +79 -0
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/table-loading-state.js +34 -0
- package/dist/module/table.js +18 -0
- package/dist/module/terminals-list-core.d.ts +11 -0
- package/dist/module/terminals-list-core.js +6 -0
- package/dist/module/terminals-list-core2.js +240 -0
- package/dist/module/terminals-list-filters.d.ts +11 -0
- package/dist/module/terminals-list-filters.js +6 -0
- package/dist/module/terminals-list-filters2.js +83 -0
- package/dist/module/utils2.js +1 -43
- package/dist/types/api/Api.d.ts +1 -1
- package/dist/types/api/Checkout.d.ts +74 -2
- package/dist/types/api/SubAccount.d.ts +51 -0
- package/dist/types/api/Terminal.d.ts +48 -0
- package/dist/types/api/get-subaccounts.d.ts +10 -0
- package/dist/types/api/index.d.ts +2 -0
- package/dist/types/api/services/checkout.service.d.ts +3 -1
- package/dist/types/api/services/subaccounts.service.d.ts +7 -0
- package/dist/types/api/services/terminal.service.d.ts +9 -0
- package/dist/types/components/billing-form/billing-form.d.ts +1 -1
- package/dist/types/components/business-forms/business-form/additional-questions/additional-questions.d.ts +1 -1
- package/dist/types/components/business-forms/business-form/business-core-info/business-core-info.d.ts +1 -1
- package/dist/types/components/business-forms/business-form/business-representative/business-representative.d.ts +1 -1
- package/dist/types/components/business-forms/business-form/legal-address-form/legal-address-form.d.ts +1 -1
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +1 -1
- package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +1 -1
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +1 -1
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +1 -1
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +1 -1
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +1 -1
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +1 -1
- package/dist/types/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.d.ts +1 -1
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +1 -1
- package/dist/types/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.d.ts +1 -1
- package/dist/types/components/business-forms/utils/input-handlers.d.ts +1 -1
- package/dist/types/components/checkouts-list/checkouts-list-core.d.ts +35 -0
- package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +15 -0
- package/dist/types/components/checkouts-list/checkouts-list.d.ts +44 -0
- package/dist/types/components/checkouts-list/checkouts-status.d.ts +1 -0
- package/dist/types/components/checkouts-list/checkouts-table.d.ts +17 -0
- package/dist/types/components/checkouts-list/get-checkouts.d.ts +10 -0
- package/dist/types/components/dispute-management/counter-dispute/additional-statement.d.ts +3 -0
- package/dist/types/components/dispute-management/counter-dispute/cancellation-policy.d.ts +3 -0
- package/dist/types/components/dispute-management/counter-dispute/counter-dispute.d.ts +14 -0
- package/dist/types/components/dispute-management/counter-dispute/customer-details.d.ts +3 -0
- package/dist/types/components/dispute-management/counter-dispute/dispute-reason.d.ts +3 -0
- package/dist/types/components/dispute-management/counter-dispute/duplicate-charge.d.ts +3 -0
- package/dist/types/components/dispute-management/counter-dispute/electronic-evidence.d.ts +3 -0
- package/dist/types/components/dispute-management/counter-dispute/product-or-service.d.ts +4 -0
- package/dist/types/components/dispute-management/counter-dispute/refund-policy.d.ts +3 -0
- package/dist/types/components/dispute-management/counter-dispute/shipping-details.d.ts +3 -0
- package/dist/types/components/dispute-management/dispute-management-core.d.ts +7 -0
- package/dist/types/components/dispute-management/dispute-management.d.ts +3 -0
- package/dist/types/components/dispute-management/dispute-notification.d.ts +8 -0
- package/dist/types/components/dispute-management/dispute.d.ts +7 -0
- package/dist/types/components/payments-list/payments-status.d.ts +1 -0
- package/dist/types/components/payouts-list/payouts-list-core.d.ts +1 -2
- package/dist/types/components/payouts-list/payouts-status.d.ts +1 -0
- package/dist/types/components/terminals-list/get-terminal-detail.d.ts +8 -0
- package/dist/types/components/terminals-list/get-terminals.d.ts +10 -0
- package/dist/types/components/terminals-list/terminals-list-core.d.ts +35 -0
- package/dist/types/components/terminals-list/terminals-list-filters.d.ts +13 -0
- package/dist/types/components/terminals-list/terminals-list.d.ts +44 -0
- package/dist/types/components/terminals-list/terminals-status.d.ts +1 -0
- package/dist/types/components/terminals-list/terminals-table.d.ts +13 -0
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +22 -0
- package/dist/types/components.d.ts +740 -12
- package/dist/types/{components → ui-components}/form/form-control-date.d.ts +2 -1
- package/dist/types/ui-components/form/form-control-radio.d.ts +19 -0
- package/dist/types/ui-components/form/form-control-textarea.d.ts +20 -0
- package/dist/types/ui-components/index.d.ts +1 -0
- package/dist/types/utils/table.d.ts +13 -0
- package/dist/types/utils/utils.d.ts +0 -2
- package/dist/webcomponents/p-037e3545.entry.js +1 -0
- package/dist/webcomponents/{p-08d88fd2.entry.js → p-04d12939.entry.js} +1 -1
- package/dist/webcomponents/p-0ac35b39.entry.js +1 -0
- package/dist/webcomponents/p-0b686ada.entry.js +1 -0
- package/dist/webcomponents/p-0c79e368.entry.js +1 -0
- package/dist/webcomponents/p-0de9e97b.entry.js +1 -0
- package/dist/webcomponents/{p-7d3be485.js → p-0e180654.js} +1 -1
- package/dist/webcomponents/{p-a3265844.entry.js → p-11ff46df.entry.js} +1 -1
- package/dist/webcomponents/p-16d2932d.js +1 -0
- package/dist/webcomponents/p-206fde40.js +1 -0
- package/dist/webcomponents/p-24392a86.entry.js +1 -0
- package/dist/webcomponents/p-269ba6fe.entry.js +1 -0
- package/dist/webcomponents/{p-1e178dd1.entry.js → p-286a4e72.entry.js} +2 -2
- package/dist/webcomponents/p-2c2b57b3.js +1 -0
- package/dist/webcomponents/{p-61514f78.entry.js → p-2c8c214f.entry.js} +1 -1
- package/dist/webcomponents/p-2de65000.entry.js +1 -0
- package/dist/webcomponents/{p-277aee05.js → p-3d3468a8.js} +1 -1
- package/dist/webcomponents/p-47dbe17d.js +1 -0
- package/dist/webcomponents/p-4b14abbf.entry.js +1 -0
- package/dist/webcomponents/p-4c0c88e4.entry.js +1 -0
- package/dist/webcomponents/p-52ca72cd.entry.js +1 -0
- package/dist/webcomponents/{p-bc9ae56f.js → p-56bda985.js} +1 -1
- package/dist/webcomponents/p-56d84fb3.entry.js +1 -0
- package/dist/webcomponents/p-638c6285.entry.js +1 -0
- package/dist/webcomponents/{p-122c2a11.entry.js → p-69ea7334.entry.js} +1 -1
- package/dist/webcomponents/p-6caf6f09.entry.js +1 -0
- package/dist/webcomponents/{p-da1d174d.entry.js → p-72819173.entry.js} +1 -1
- package/dist/webcomponents/p-8480e3ab.entry.js +1 -0
- package/dist/webcomponents/p-869ae0c7.entry.js +1 -0
- package/dist/webcomponents/p-8ec550d7.entry.js +1 -0
- package/dist/webcomponents/p-8f212554.entry.js +1 -0
- package/dist/webcomponents/p-907ba963.js +1 -0
- package/dist/webcomponents/p-919e6e67.entry.js +1 -0
- package/dist/webcomponents/p-927a147c.entry.js +1 -0
- package/dist/webcomponents/p-935188c8.entry.js +1 -0
- package/dist/webcomponents/p-9bd13e22.js +1 -0
- package/dist/webcomponents/p-9f56ad71.js +1 -0
- package/dist/webcomponents/p-a2be972d.entry.js +1 -0
- package/dist/webcomponents/p-a3143d62.entry.js +1 -0
- package/dist/webcomponents/{p-ca8e126f.js → p-a8f22d4d.js} +1 -1
- package/dist/webcomponents/p-ad443df5.entry.js +1 -0
- package/dist/webcomponents/p-b0686897.entry.js +1 -0
- package/dist/webcomponents/p-b1aacd6b.entry.js +1 -0
- package/dist/webcomponents/p-b4a7307b.entry.js +1 -0
- package/dist/webcomponents/p-bfb990fc.entry.js +1 -0
- package/dist/webcomponents/p-c1bf9285.entry.js +1 -0
- package/dist/webcomponents/{p-6d4b585d.js → p-c1cf7d5b.js} +1 -1
- package/dist/webcomponents/p-c30c8f39.entry.js +1 -0
- package/dist/webcomponents/p-c5c6e61d.js +1 -0
- package/dist/webcomponents/{p-5df26e65.entry.js → p-c63825d8.entry.js} +1 -1
- package/dist/webcomponents/{p-5022f21c.js → p-c65b78cf.js} +1 -1
- package/dist/webcomponents/p-c6be72b0.js +10 -0
- package/dist/webcomponents/p-c717646f.entry.js +1 -0
- package/dist/webcomponents/{p-a1d037cb.entry.js → p-cb79f06c.entry.js} +1 -1
- package/dist/webcomponents/p-ccbff4fa.entry.js +1 -0
- package/dist/webcomponents/p-cd4eaeb7.js +1 -0
- package/dist/webcomponents/p-cd7e866c.entry.js +1 -0
- package/dist/webcomponents/p-d1248039.entry.js +1 -0
- package/dist/webcomponents/{p-8f447993.entry.js → p-d2eb61e6.entry.js} +1 -1
- package/dist/webcomponents/p-d516e700.js +1 -0
- package/dist/webcomponents/p-dae9b10e.entry.js +1 -0
- package/dist/webcomponents/p-e412a713.entry.js +1 -0
- package/dist/webcomponents/p-e69b2ff8.entry.js +1 -0
- package/dist/webcomponents/p-e6be8845.entry.js +1 -0
- package/dist/webcomponents/{p-799ee8c3.js → p-e7d6609d.js} +1 -1
- package/dist/webcomponents/p-e8797be0.entry.js +1 -0
- package/dist/webcomponents/p-eb9ba917.entry.js +1 -0
- package/dist/webcomponents/p-ec7e69eb.entry.js +1 -0
- package/dist/webcomponents/{p-1eb60948.entry.js → p-eeb70281.entry.js} +1 -1
- package/dist/webcomponents/{p-cd74be05.entry.js → p-efb56234.entry.js} +1 -1
- package/dist/webcomponents/p-f4a8215b.entry.js +1 -0
- package/dist/webcomponents/{p-401d6607.js → p-f6f8dabc.js} +1 -1
- package/dist/webcomponents/{p-1d29488a.entry.js → p-f7077f93.entry.js} +1 -1
- package/dist/webcomponents/p-fc4de0d2.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/Payout-a2dd7b01.js +0 -45
- package/dist/cjs/form-control-date_3.cjs.entry.js +0 -175
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +0 -1688
- package/dist/esm/Payout-dfe15b00.js +0 -43
- package/dist/esm/form-control-date_3.entry.js +0 -169
- package/dist/esm/justifi-payment-method-form.entry.js +0 -1684
- package/dist/module/Payout.js +0 -43
- package/dist/webcomponents/p-0c2d91a2.entry.js +0 -1
- package/dist/webcomponents/p-11f01df5.entry.js +0 -1
- package/dist/webcomponents/p-23f95a19.entry.js +0 -1
- package/dist/webcomponents/p-2874d4b2.entry.js +0 -10
- package/dist/webcomponents/p-43dfda70.entry.js +0 -1
- package/dist/webcomponents/p-55182a59.js +0 -1
- package/dist/webcomponents/p-55fe2cf2.entry.js +0 -1
- package/dist/webcomponents/p-5e5e8a85.js +0 -1
- package/dist/webcomponents/p-605614f2.entry.js +0 -1
- package/dist/webcomponents/p-6962044f.entry.js +0 -1
- package/dist/webcomponents/p-6a9e908b.entry.js +0 -1
- package/dist/webcomponents/p-6ba660f2.entry.js +0 -1
- package/dist/webcomponents/p-6e258b5f.entry.js +0 -1
- package/dist/webcomponents/p-770f60f9.entry.js +0 -1
- package/dist/webcomponents/p-7cb3854c.entry.js +0 -1
- package/dist/webcomponents/p-80730b71.entry.js +0 -1
- package/dist/webcomponents/p-8f04747b.entry.js +0 -1
- package/dist/webcomponents/p-9a37eee5.entry.js +0 -1
- package/dist/webcomponents/p-a680c982.entry.js +0 -1
- package/dist/webcomponents/p-a765230f.entry.js +0 -1
- package/dist/webcomponents/p-b7b18954.entry.js +0 -1
- package/dist/webcomponents/p-c241cc62.entry.js +0 -1
- package/dist/webcomponents/p-d0ffb01c.entry.js +0 -1
- package/dist/webcomponents/p-da316a74.entry.js +0 -1
- package/dist/webcomponents/p-db3d1d7d.entry.js +0 -1
- package/dist/webcomponents/p-dee2a3f8.entry.js +0 -1
- package/dist/webcomponents/p-e3fab0e2.js +0 -1
- package/dist/webcomponents/p-e56ade55.js +0 -1
- package/dist/webcomponents/p-e927fd5c.entry.js +0 -1
- package/dist/webcomponents/p-f3e00572.entry.js +0 -1
- package/dist/webcomponents/p-f71a5975.entry.js +0 -1
- /package/dist/cjs/{exported-parts-b18c68c2.js → exported-parts-a994d693.js} +0 -0
- /package/dist/cjs/{index.esm-52757963.js → index.esm-97cf6825.js} +0 -0
- /package/dist/cjs/{utils-c1d2e426.js → utils-189dc30d.js} +0 -0
- /package/dist/cjs/{utils-ddacfc44.js → utils-bc03ca40.js} +0 -0
- /package/dist/collection/{components → ui-components}/details/utils.js +0 -0
- /package/dist/collection/{components → ui-components}/form/form-helpers/form-alert/form-alert.js +0 -0
- /package/dist/collection/{components → ui-components}/form/form-helpers/form-control-error-text/form-control-error-text.js +0 -0
- /package/dist/collection/{components → ui-components}/form/form-helpers/form-control-help-text/form-control-help-text.js +0 -0
- /package/dist/collection/{components → ui-components}/form/form-helpers/form-control-tooltip/form-control-tooltip.js +0 -0
- /package/dist/collection/{components → ui-components}/form/form.js +0 -0
- /package/dist/collection/{components → ui-components}/form/utils.js +0 -0
- /package/dist/collection/{components → ui-components}/table/exported-parts.js +0 -0
- /package/dist/esm/{exported-parts-abd4c027.js → exported-parts-70e7a12b.js} +0 -0
- /package/dist/esm/{index.esm-fc4f5c0c.js → index.esm-ed37201b.js} +0 -0
- /package/dist/esm/{utils-3bb6347a.js → utils-20cdf321.js} +0 -0
- /package/dist/esm/{utils-01413a95.js → utils-218275b7.js} +0 -0
- /package/dist/types/{components → ui-components}/details/details.d.ts +0 -0
- /package/dist/types/{components → ui-components}/details/utils.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-control-checkbox.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-control-file.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-control-monetary.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-control-number-masked.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-control-number.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-control-select.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-control-text.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-helpers/form-alert/form-alert.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-helpers/form-control-error-text/form-control-error-text.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-helpers/form-control-help-text/form-control-help-text.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form-helpers/form-control-tooltip/form-control-tooltip.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/form.d.ts +0 -0
- /package/dist/types/{components → ui-components}/form/utils.d.ts +0 -0
- /package/dist/types/{components → ui-components}/table/exported-parts.d.ts +0 -0
- /package/dist/webcomponents/{p-2eab3c90.js → p-3c654c07.js} +0 -0
- /package/dist/webcomponents/{p-2b6c9c4f.js → p-6cc30da2.js} +0 -0
- /package/dist/webcomponents/{p-dce846bf.js → p-a8b4f429.js} +0 -0
- /package/dist/webcomponents/{p-8df7bde8.js → p-e3c22aa9.js} +0 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { makeGetCheckouts } from "./get-checkouts";
|
|
3
|
+
import { checkPkgVersion } from "../../utils/check-pkg-version";
|
|
4
|
+
import { config } from "../../../config";
|
|
5
|
+
import JustifiAnalytics from "../../api/Analytics";
|
|
6
|
+
import { CheckoutService } from "../../api/services/checkout.service";
|
|
7
|
+
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
|
|
8
|
+
import { SubAccountService } from "../../api/services/subaccounts.service";
|
|
9
|
+
import { makeGetSubAccounts } from "../../api/get-subaccounts";
|
|
10
|
+
import { StyledHost, tableExportedParts } from "../../ui-components";
|
|
11
|
+
/**
|
|
12
|
+
* @exportedPart label: Label for inputs
|
|
13
|
+
* @exportedPart input: The input fields
|
|
14
|
+
* @exportedPart input-invalid: Invalid state for inputs
|
|
15
|
+
* @exportedPart table-head: Table head
|
|
16
|
+
* @exportedPart table-head-row: Head row
|
|
17
|
+
* @exportedPart table-head-cell: Individual head cell
|
|
18
|
+
* @exportedPart table-body: Body of the table
|
|
19
|
+
* @exportedPart table-row: Row of the table
|
|
20
|
+
* @exportedPart table-cell: Individual cell of the table
|
|
21
|
+
* @exportedPart loading-state-cell: Row for loading state
|
|
22
|
+
* @exportedPart loading-state-spinner: Spinner element for loading state
|
|
23
|
+
* @exportedPart error-state: Row for Error state
|
|
24
|
+
* @exportedPart empty-state: Row for Emtpy state
|
|
25
|
+
* @exportedPart pagination-bar: Pagination bar
|
|
26
|
+
* @exportedPart arrow: Both paging buttons
|
|
27
|
+
* @exportedPart arrow-left: Previous page button
|
|
28
|
+
* @exportedPart arrow-right: Next page button
|
|
29
|
+
* @exportedPart button-disabled: Disabled state for paging buttons
|
|
30
|
+
* @exportedPart previous-button-text: Text for Previous button
|
|
31
|
+
* @exportedPart next-button-text: Text for Next button
|
|
32
|
+
*/
|
|
33
|
+
export class CheckoutsList {
|
|
34
|
+
constructor() {
|
|
35
|
+
this.handleErrorEvent = (event) => {
|
|
36
|
+
this.errorMessage = event.detail.message;
|
|
37
|
+
this.errorEvent.emit(event.detail);
|
|
38
|
+
};
|
|
39
|
+
this.getCheckouts = undefined;
|
|
40
|
+
this.getSubAccounts = undefined;
|
|
41
|
+
this.errorMessage = null;
|
|
42
|
+
this.accountId = undefined;
|
|
43
|
+
this.authToken = undefined;
|
|
44
|
+
this.apiOrigin = config.proxyApiOrigin;
|
|
45
|
+
this.columns = undefined;
|
|
46
|
+
}
|
|
47
|
+
componentWillLoad() {
|
|
48
|
+
checkPkgVersion();
|
|
49
|
+
this.analytics = new JustifiAnalytics(this);
|
|
50
|
+
this.initializeGetData();
|
|
51
|
+
}
|
|
52
|
+
disconnectedCallback() {
|
|
53
|
+
this.analytics.cleanup();
|
|
54
|
+
}
|
|
55
|
+
propChanged() {
|
|
56
|
+
this.initializeGetData();
|
|
57
|
+
}
|
|
58
|
+
initializeGetData() {
|
|
59
|
+
this.initializeGetCheckouts();
|
|
60
|
+
this.initializeGetSubAccounts();
|
|
61
|
+
}
|
|
62
|
+
initializeGetCheckouts() {
|
|
63
|
+
if (this.accountId && this.authToken) {
|
|
64
|
+
this.getCheckouts = makeGetCheckouts({
|
|
65
|
+
accountId: this.accountId,
|
|
66
|
+
authToken: this.authToken,
|
|
67
|
+
service: new CheckoutService(),
|
|
68
|
+
apiOrigin: this.apiOrigin,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
this.errorMessage = 'Account ID and Auth Token are required';
|
|
73
|
+
this.errorEvent.emit({
|
|
74
|
+
errorCode: ComponentErrorCodes.MISSING_PROPS,
|
|
75
|
+
message: this.errorMessage,
|
|
76
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
initializeGetSubAccounts() {
|
|
81
|
+
if (this.accountId && this.authToken) {
|
|
82
|
+
this.getSubAccounts = makeGetSubAccounts({
|
|
83
|
+
accountId: this.accountId,
|
|
84
|
+
authToken: this.authToken,
|
|
85
|
+
service: new SubAccountService(),
|
|
86
|
+
apiOrigin: this.apiOrigin
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
render() {
|
|
91
|
+
return (h(StyledHost, { key: '42ff5c1cff57b185200aa0c31f4fdb44b3401c91', exportparts: tableExportedParts }, h("checkouts-list-core", { key: '55565a5f61c671bae9554c7d9ecab044c7bb987c', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
92
|
+
}
|
|
93
|
+
static get is() { return "justifi-checkouts-list"; }
|
|
94
|
+
static get encapsulation() { return "shadow"; }
|
|
95
|
+
static get properties() {
|
|
96
|
+
return {
|
|
97
|
+
"accountId": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"mutable": false,
|
|
100
|
+
"complexType": {
|
|
101
|
+
"original": "string",
|
|
102
|
+
"resolved": "string",
|
|
103
|
+
"references": {}
|
|
104
|
+
},
|
|
105
|
+
"required": false,
|
|
106
|
+
"optional": false,
|
|
107
|
+
"docs": {
|
|
108
|
+
"tags": [],
|
|
109
|
+
"text": ""
|
|
110
|
+
},
|
|
111
|
+
"attribute": "account-id",
|
|
112
|
+
"reflect": false
|
|
113
|
+
},
|
|
114
|
+
"authToken": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"mutable": false,
|
|
117
|
+
"complexType": {
|
|
118
|
+
"original": "string",
|
|
119
|
+
"resolved": "string",
|
|
120
|
+
"references": {}
|
|
121
|
+
},
|
|
122
|
+
"required": false,
|
|
123
|
+
"optional": false,
|
|
124
|
+
"docs": {
|
|
125
|
+
"tags": [],
|
|
126
|
+
"text": ""
|
|
127
|
+
},
|
|
128
|
+
"attribute": "auth-token",
|
|
129
|
+
"reflect": false
|
|
130
|
+
},
|
|
131
|
+
"apiOrigin": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"mutable": false,
|
|
134
|
+
"complexType": {
|
|
135
|
+
"original": "string",
|
|
136
|
+
"resolved": "string",
|
|
137
|
+
"references": {}
|
|
138
|
+
},
|
|
139
|
+
"required": false,
|
|
140
|
+
"optional": true,
|
|
141
|
+
"docs": {
|
|
142
|
+
"tags": [],
|
|
143
|
+
"text": ""
|
|
144
|
+
},
|
|
145
|
+
"attribute": "api-origin",
|
|
146
|
+
"reflect": false,
|
|
147
|
+
"defaultValue": "config.proxyApiOrigin"
|
|
148
|
+
},
|
|
149
|
+
"columns": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"mutable": false,
|
|
152
|
+
"complexType": {
|
|
153
|
+
"original": "string",
|
|
154
|
+
"resolved": "string",
|
|
155
|
+
"references": {}
|
|
156
|
+
},
|
|
157
|
+
"required": false,
|
|
158
|
+
"optional": false,
|
|
159
|
+
"docs": {
|
|
160
|
+
"tags": [],
|
|
161
|
+
"text": ""
|
|
162
|
+
},
|
|
163
|
+
"attribute": "columns",
|
|
164
|
+
"reflect": false
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
static get states() {
|
|
169
|
+
return {
|
|
170
|
+
"getCheckouts": {},
|
|
171
|
+
"getSubAccounts": {},
|
|
172
|
+
"errorMessage": {}
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
static get events() {
|
|
176
|
+
return [{
|
|
177
|
+
"method": "errorEvent",
|
|
178
|
+
"name": "error-event",
|
|
179
|
+
"bubbles": true,
|
|
180
|
+
"cancelable": true,
|
|
181
|
+
"composed": true,
|
|
182
|
+
"docs": {
|
|
183
|
+
"tags": [],
|
|
184
|
+
"text": ""
|
|
185
|
+
},
|
|
186
|
+
"complexType": {
|
|
187
|
+
"original": "ComponentError",
|
|
188
|
+
"resolved": "ComponentError",
|
|
189
|
+
"references": {
|
|
190
|
+
"ComponentError": {
|
|
191
|
+
"location": "import",
|
|
192
|
+
"path": "../../api/ComponentError",
|
|
193
|
+
"id": "src/api/ComponentError.ts::ComponentError"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}];
|
|
198
|
+
}
|
|
199
|
+
static get watchers() {
|
|
200
|
+
return [{
|
|
201
|
+
"propName": "accountId",
|
|
202
|
+
"methodName": "propChanged"
|
|
203
|
+
}, {
|
|
204
|
+
"propName": "authToken",
|
|
205
|
+
"methodName": "propChanged"
|
|
206
|
+
}];
|
|
207
|
+
}
|
|
208
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const MapCheckoutStatusToBadge = (status) => {
|
|
2
|
+
switch (status) {
|
|
3
|
+
case 'created':
|
|
4
|
+
return "<span class='badge bg-primary' title='The checkout has been created'>Created</span>";
|
|
5
|
+
case 'completed':
|
|
6
|
+
return "<span class='badge bg-success' title='The checkout has been completed'>Completed</span>";
|
|
7
|
+
case 'attempted':
|
|
8
|
+
return "<span class='badge bg-secondary' title='The checkout has been attempted'>Attempted</span>";
|
|
9
|
+
case 'expired':
|
|
10
|
+
return "<span class='badge bg-danger' title='The checkout has expired'>Expired</span>";
|
|
11
|
+
}
|
|
12
|
+
;
|
|
13
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { formatCurrency, formatDate, formatTime } from "../../utils/utils";
|
|
3
|
+
import { MapCheckoutStatusToBadge } from "./checkouts-status";
|
|
4
|
+
export const defaultColumnsKeys = 'created_at,payment_amount,payment_description,payment_mode,status';
|
|
5
|
+
export const checkoutTableColumns = {
|
|
6
|
+
created_at: () => (h("th", { part: "table-head-cell", scope: "col", title: "The date each checkout occurred" }, "Processed On")),
|
|
7
|
+
payment_amount: () => (h("th", { part: "table-head-cell", scope: "col", title: "The dollar amount of each checkout" }, "Payment Amount")),
|
|
8
|
+
payment_description: () => (h("th", { part: "table-head-cell", scope: "col", title: "The description of each checkout" }, "Payment Description")),
|
|
9
|
+
sub_account_name: () => (h("th", { part: "table-head-cell", scope: "col", title: "The sub account associated with the checkout" }, "Sub Account")),
|
|
10
|
+
payment_mode: () => (h("th", { part: "table-head-cell", scope: "col", title: "The payment mode of each checkout" }, "Payment Mode")),
|
|
11
|
+
status: () => (h("th", { part: "table-head-cell", scope: "col", title: "The current status of each checkout" }, "Status")),
|
|
12
|
+
};
|
|
13
|
+
export const checkoutTableCells = {
|
|
14
|
+
created_at: (value) => (h("th", null, h("div", { class: "fw-bold" }, formatDate(value), " "), h("div", { class: "fw-bold" }, formatTime(value), " "))),
|
|
15
|
+
payment_amount: (value) => (h("td", null, formatCurrency(value, true, true), " ")),
|
|
16
|
+
payment_description: (value) => (h("td", null, value)),
|
|
17
|
+
sub_account_name: (value) => (h("td", null, value)),
|
|
18
|
+
payment_mode: (value) => (h("td", null, value)),
|
|
19
|
+
status: (value) => (h("td", { innerHTML: MapCheckoutStatusToBadge(value) })),
|
|
20
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Checkout } from "../../api";
|
|
2
|
+
import { ComponentErrorSeverity } from "../../api/ComponentError";
|
|
3
|
+
import { getErrorCode, getErrorMessage } from "../../api/services/utils";
|
|
4
|
+
export const makeGetCheckouts = ({ accountId, authToken, service, apiOrigin }) => async ({ params, onSuccess, onError }) => {
|
|
5
|
+
var _a, _b;
|
|
6
|
+
try {
|
|
7
|
+
const response = await service.fetchCheckouts(accountId, authToken, params, apiOrigin);
|
|
8
|
+
if (!response.error) {
|
|
9
|
+
const pagingInfo = Object.assign({}, response.page_info);
|
|
10
|
+
const checkouts = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.map((dataItem) => new Checkout(dataItem))) || [];
|
|
11
|
+
onSuccess({ checkouts, pagingInfo });
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
const responseError = getErrorMessage(response.error);
|
|
15
|
+
const code = getErrorCode((_b = response.error) === null || _b === void 0 ? void 0 : _b.code);
|
|
16
|
+
return onError({
|
|
17
|
+
error: responseError,
|
|
18
|
+
code,
|
|
19
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
catch (error) {
|
|
24
|
+
const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
|
|
25
|
+
return onError({
|
|
26
|
+
error: error.message || error,
|
|
27
|
+
code,
|
|
28
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class AdditionalStatement {
|
|
3
|
+
render() {
|
|
4
|
+
return (h("div", { key: '21cee41c41fa70a5cc6b82f14ea49ee01086fa71' }, h("div", { key: '90d9a279089ce3d5e6861aaab2175ded06a5b8b3', class: "row gy-3" }, h("div", { key: '15a2cdde695c98c47bae644964457c7275e0933f', class: "col-12" }, h("h2", { key: '515f18bc0215936f6dc28cefbabbdbdb12c6ba61', class: "h5" }, "Additional Evidence")), h("div", { key: 'e1ee3b76fb7455c4feeaef6bb9368b4b07ed361b', class: "col-12" }, h("form-control-textarea", { key: '3d4ce8f83f457dd28f08dc5f973a76f9a9d4e362', label: "Is there anything else you would like to say about this dispute?", name: "additional_statement" })), h("div", { key: '46445fa4158cd16fb3e2e26111c4a62fe386bbc0', class: "col-12" }, h("form-control-file", { key: '025ada3f8f2c0a2c185f9be0bfbb9816a560371e', label: "Additional files", name: "uncategorized_file", multiple: true, helpText: "Upload any additional pieces of evidence that have not already been provided." })))));
|
|
5
|
+
}
|
|
6
|
+
static get is() { return "justifi-additional-statement"; }
|
|
7
|
+
}
|
|
8
|
+
;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class CancellationPolicy {
|
|
3
|
+
render() {
|
|
4
|
+
return (h("div", { key: 'a35e9980fbad9752a00473711fadc0e69c16a909' }, h("div", { key: '024a9bee273b6a1d470e218b2bbd541b299c0f24', class: "row gy-3" }, h("div", { key: '394ba5a5fa8bf4726ca4c96cc4f1d75454f6b563', class: "col-12" }, h("h2", { key: '0cb7dddab83455d8c11d888ce9638bb93d8e00c9', class: "h5" }, "Cancellation Policy")), h("div", { key: '02c70eaf5b9d9876c3aa31edb070006cd6b67b98', class: "col-12" }, h("form-control-textarea", { key: '266a114845ca7e793e0a8a5b98e506a867a7a98f', label: "Cancellation Policy Disclosure", name: "cancellation_policy_disclosure" })), h("div", { key: '943b51f7849ae1fcac7320f8532d15371f064db8', class: "col-12" }, h("form-control-textarea", { key: '89de507fbed48afb4733b87f5e249bdafecea3af', label: "Cancellation Rebuttal", name: "cancellation_rebuttal" })), h("div", { key: '078a0874b5d203d1de4e2f2e5ae9a2eb95f28015', class: "col-12" }, h("form-control-file", { key: '7f2003888aaf189a8d86ab010a54e0bd511cb198', label: "Upload Cancellation Policy", name: "cancellation_policy_file" })))));
|
|
5
|
+
}
|
|
6
|
+
static get is() { return "justifi-cancellation-policy"; }
|
|
7
|
+
}
|
|
8
|
+
;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { DisputeManagementClickEvents } from "../dispute";
|
|
3
|
+
export class CounterDispute {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.componentStepMapping = [
|
|
6
|
+
() => h("justifi-dispute-reason", { ref: (el) => this.refs['disputeReason'] = el }),
|
|
7
|
+
() => h("justifi-product-or-service", { ref: (el) => this.refs['productOrService'] = el }),
|
|
8
|
+
() => h("justifi-customer-details", { ref: (el) => this.refs['customerDetails'] = el }),
|
|
9
|
+
() => h("justifi-cancellation-policy", { ref: (el) => this.refs['cancellationPolicy'] = el }),
|
|
10
|
+
() => h("justifi-refund-policy", { ref: (el) => this.refs['refundPolicy'] = el }),
|
|
11
|
+
() => h("justifi-duplicate-charge", { ref: (el) => this.refs['duplicateCharge'] = el }),
|
|
12
|
+
() => h("justifi-electronic-evidence", { ref: (el) => this.refs['electronicEvidence'] = el }),
|
|
13
|
+
() => h("justifi-shipping-details", { ref: (el) => this.refs['shippingDetails'] = el }),
|
|
14
|
+
() => h("justifi-additional-statement", { ref: (el) => this.refs['additionalStatement'] = el }),
|
|
15
|
+
];
|
|
16
|
+
this.currentStep = 0;
|
|
17
|
+
this.refs = [];
|
|
18
|
+
}
|
|
19
|
+
get currentStepComponent() {
|
|
20
|
+
return this.componentStepMapping[this.currentStep]();
|
|
21
|
+
}
|
|
22
|
+
get isLastStep() {
|
|
23
|
+
return this.currentStep === this.componentStepMapping.length - 1;
|
|
24
|
+
}
|
|
25
|
+
get isFirstStep() {
|
|
26
|
+
return this.currentStep === 0;
|
|
27
|
+
}
|
|
28
|
+
onNext() {
|
|
29
|
+
if (this.isLastStep) {
|
|
30
|
+
this.submit.emit();
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
this.currentStep++;
|
|
34
|
+
this.clickEvent.emit({ name: DisputeManagementClickEvents.nextStep });
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
onBack() {
|
|
38
|
+
if (this.isFirstStep) {
|
|
39
|
+
this.clickEvent.emit({ name: DisputeManagementClickEvents.cancelDispute });
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
this.currentStep--;
|
|
43
|
+
this.clickEvent.emit({ name: DisputeManagementClickEvents.previousStep });
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
render() {
|
|
47
|
+
return (h("div", { key: 'cd8ced72339631d8f2f9439ee26f1187b7b8ab21', class: "row gy-3" }, h("div", { key: '6ae94b1ce9d12b12044c4baa3c3eb9966b4b176e', class: "col-12" }, h("h1", { key: '6893f2dacb6e8932e67d67095076cd2d1bc12b38', class: "h4" }, "Counter dispute")), h("div", { key: '6d34423a06c634824a8b2f2ad5538e4c0b6fbf5c', class: "col-12" }, this.currentStepComponent), h("div", { key: 'fdfc725f0dacae3abb56dfe7300399f57300ffd5', class: "col-12" }, h("div", { key: 'b590b19dda4fbe8d8245dedbb66c421866b2b8f3', class: "d-flex gap-2 mt-4 justify-content-end" }, h("button", { key: '4d91e8db6f5c2ef26ac938c57f7dca33cf9a33ee', class: "btn btn-secondary", onClick: () => this.onBack() }, this.isFirstStep ? 'Cancel' : 'Back'), h("button", { key: 'f56fa57dd1aef4bd5b537d9e67c3aaaa784ccba2', class: "btn btn-primary", onClick: () => this.onNext() }, this.isLastStep ? 'Submit Counter Dispute' : 'Next')))));
|
|
48
|
+
}
|
|
49
|
+
static get is() { return "justifi-counter-dispute"; }
|
|
50
|
+
static get states() {
|
|
51
|
+
return {
|
|
52
|
+
"currentStep": {},
|
|
53
|
+
"refs": {}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
static get events() {
|
|
57
|
+
return [{
|
|
58
|
+
"method": "submit",
|
|
59
|
+
"name": "submit",
|
|
60
|
+
"bubbles": true,
|
|
61
|
+
"cancelable": true,
|
|
62
|
+
"composed": true,
|
|
63
|
+
"docs": {
|
|
64
|
+
"tags": [],
|
|
65
|
+
"text": ""
|
|
66
|
+
},
|
|
67
|
+
"complexType": {
|
|
68
|
+
"original": "any",
|
|
69
|
+
"resolved": "any",
|
|
70
|
+
"references": {}
|
|
71
|
+
}
|
|
72
|
+
}, {
|
|
73
|
+
"method": "clickEvent",
|
|
74
|
+
"name": "clickEvent",
|
|
75
|
+
"bubbles": true,
|
|
76
|
+
"cancelable": true,
|
|
77
|
+
"composed": true,
|
|
78
|
+
"docs": {
|
|
79
|
+
"tags": [],
|
|
80
|
+
"text": ""
|
|
81
|
+
},
|
|
82
|
+
"complexType": {
|
|
83
|
+
"original": "any",
|
|
84
|
+
"resolved": "any",
|
|
85
|
+
"references": {}
|
|
86
|
+
}
|
|
87
|
+
}];
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class CustomerDetails {
|
|
3
|
+
render() {
|
|
4
|
+
return (h("div", { key: '4511521cc0b5d152847fe47515a932bc25632b69' }, h("div", { key: 'ccc20447c74727d926159c4bbd78d7aa81f406fb', class: "row gy-3" }, h("div", { key: '09d693c977d9f55978df56fd94f37e65fcf42548', class: "col-12" }, h("h2", { key: 'ef47704c5d35b7b18e49603e050a1128728219b4', class: "h5" }, "Customer Details")), h("div", { key: '0f6ee829c192d15b22208d207ab34d7c433b1c8d', class: "col-12" }, h("form-control-text", { key: '8f64ca680c0dcd4b41d93523a62e0b3bbf1daf3e', label: "Full Name", name: "customer_name" })), h("div", { key: '8789d52f77c2cb673260fa12382c31725e2a7ffa', class: "col-12" }, h("form-control-text", { key: 'af48dedd7c9ce318a7d1009c1227cceda2d799b0', label: "Email", name: "customer_email_address" })), h("div", { key: '17fdeea69f9eab82e55d63cd55af079532696d57', class: "col-12" }, h("form-control-textarea", { key: '05d930b272e0162100412bc81a05df8cd2817e21', label: "Billing Address", name: "customer_billing_address" })), h("div", { key: 'abd6e1f661bfb2b5ac54460d97283b7a1092ac79', class: "col-12" }, h("form-control-file", { key: '4ee87cf74482c31a297bcd108ddd0ad69f3d7366', label: "Customer Signature", name: "customer_signature" })), h("div", { key: 'f33ec1c7c4791828d456e27ee1dcbc665220821d', class: "col-12" }, h("form-control-file", { key: 'c2bb6a3c58eb20652566d9cb1c524b4390bbab33', label: "Customer Communication", name: "customer_communication" })))));
|
|
5
|
+
}
|
|
6
|
+
static get is() { return "justifi-customer-details"; }
|
|
7
|
+
}
|
|
8
|
+
;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class DisputeReason {
|
|
3
|
+
render() {
|
|
4
|
+
return (h("div", { key: '012cc41aff83527468bbd2aa375c436876bc95ab', class: "row gy-3" }, h("div", { key: 'b52a68e86969e7f581e07b2d30b536a764778a7e', class: "col-12" }, h("h2", { key: '0c03884aef100c47a4b178b2da84a7c0c6ac7609', class: "h5" }, "Why are you countering this dispute?"), h("div", { key: 'f538c9bb9134bc57e69e9edce4087cef376634fa', class: "row gy-3" }, h("div", { key: '9c1f5e09e19d8d4830526bd2cf14c02c7b56d1f9', class: "col-12" }, h("form-control-radio", { key: 'f0498d4524db28040f460632165213b7756263b4', name: "disputeReason", label: "The cardholder withdrew the dispute", value: "reason1" }), h("form-control-radio", { key: 'c62c544f6099c3dccf5b34cb8a0db003496b370d', name: "disputeReason", label: "The cardholder received the product or service", value: "reason2" }), h("form-control-radio", { key: 'c3ea107bddf2a740612100bd67b99010fb2a345e', name: "disputeReason", label: "The cardholder was refunded", value: "reason3" }), h("form-control-radio", { key: 'd31e6a36cb3adc470809bfc92f48a7a13f0f8b03', name: "disputeReason", label: "The product, service, event or booking was cancelled or delayed due to a government order or other circumstances beyond your control", value: "reason4" }), h("form-control-radio", { key: '4dd304a181be479f7a1db6eb8e6882ce801915fb', name: "disputeReason", label: "Other", value: "reason5" }))))));
|
|
5
|
+
}
|
|
6
|
+
static get is() { return "justifi-dispute-reason"; }
|
|
7
|
+
}
|
|
8
|
+
;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class DuplicateCharge {
|
|
3
|
+
render() {
|
|
4
|
+
return (h("div", { key: 'b02f7b5b70969b8bf441266b368e8ddff43dd1e0' }, h("div", { key: 'f6fd012b8b477f4e2130872d0b43b85adad25fdd', class: "row gy-3" }, h("div", { key: '22f93a10a461f4e6e746b019861380c08bee9715', class: "col-12" }, h("h2", { key: 'fdcc6a3b8120bb3efa124e6bb79e96f5b444578a', class: "h5" }, "Duplicate Charge")), h("div", { key: '750890417b504f0477cf3359384c589f835847e5', class: "col-12" }, h("form-control-text", { key: 'e3d5f7886d8c6adea82f05a29ed45b41cd7db60e', label: "Original Payment ID", name: "duplicate_charge_original_payment_id" })), h("div", { key: 'd7c96b14fc113f70b88c24127edac5311323eb0a', class: "col-12" }, h("form-control-textarea", { key: '26fcb96b35087c948cbfd6a469a92ca7cdb86330', label: "Duplicate Charge Explanation", name: "duplicate_charge_explanation" })), h("div", { key: 'eadcc0457689882a1c19d18dd2898059d87547b0', class: "col-12" }, h("form-control-file", { key: 'f7aea8d759f94876bca6213de22cff28f8db8783', label: "Duplicate Charge Documentation", name: "duplicate_charge_documentation" })))));
|
|
5
|
+
}
|
|
6
|
+
static get is() { return "justifi-duplicate-charge"; }
|
|
7
|
+
}
|
|
8
|
+
;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class ElectronicEvidence {
|
|
3
|
+
render() {
|
|
4
|
+
return (h("div", { key: '9db83df31da31c0f2506636c3626bd7edfce8ee4' }, h("div", { key: '5d7ddc3e3a54efe160240d1996f405e4d3038ed6', class: "row gy-3" }, h("div", { key: 'ea60427980d5b149ab8df1490334fda670c1af42', class: "col-12" }, h("h2", { key: 'b50cbc7b5d48d62dc88c4c27c568f67d46ea212f', class: "h5" }, "Electronic Evidence")), h("div", { key: '523b2a97794e2772c74633bbda2926f339ad7797', class: "col-12" }, h("form-control-text", { key: 'f4769f6d1f3e175963fe7e8b547ae005866ba758', label: "Purchase IP Address", name: "customer_purchase_ip_address", helpText: "The IP address used by the customer during the purchase." })), h("div", { key: 'eb86f2c489bfaa93daa12fb126cff980249a16de', class: "col-12" }, h("form-control-textarea", { key: '7d5090db5478ec0ac38a68113a8786eca7e63549', label: "Activity Logs", name: "access_activity_log", helpText: "Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity." })))));
|
|
5
|
+
}
|
|
6
|
+
static get is() { return "justifi-electronic-evidence"; }
|
|
7
|
+
}
|
|
8
|
+
;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class ProductOrService {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.productOrService = undefined;
|
|
5
|
+
}
|
|
6
|
+
render() {
|
|
7
|
+
return (h("div", { key: '1093c8d9b1fe6875c3cd0fc8422f46d6ed5b8aae' }, h("div", { key: '6d6df2f3a1c3567bac929adde53dd91d8aee98a3', class: "row gy-3" }, h("div", { key: '0111ec6b367ab5728afba391fb62c034c68f75f4', class: "col-12" }, h("h2", { key: '850b6360c847ad3da0c16e275acd07a70dcec0c2', class: "h5" }, "Product & Service Details")), h("div", { key: 'b00fe2787f21032de5203660f6d467d2d3bbecdc', class: "col-12" }, h("form-control-text", { key: 'd7ac38a0efc9f36894227f85fbee2e2886e96757', label: "Product Description", name: "product_description" })), h("div", { key: '6cda4e7ac36e124043078b3d47513d5a4ec5cac4', class: "col-12" }, h("form-control-text", { key: '585744cbc9775643779ecb59752d1f883c4cdea0', label: "Service Date", name: "service_date" })), h("div", { key: '07e96df94d2c40fc9e0e2868cf5b8d4a519d1895', class: "col-12" }, h("form-control-file", { key: 'e98020135a597563248a5dac713d87715c11752c', label: "Service Documentation", name: "service_documentation" })))));
|
|
8
|
+
}
|
|
9
|
+
static get is() { return "justifi-product-or-service"; }
|
|
10
|
+
static get states() {
|
|
11
|
+
return {
|
|
12
|
+
"productOrService": {}
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class RefundPolicy {
|
|
3
|
+
render() {
|
|
4
|
+
return (h("div", { key: '7f9095e25e7fce0b5277d332f304f99d81693a72' }, h("div", { key: '9c81d685961f496f680c795d25f1d33da8693a98', class: "row gy-3" }, h("div", { key: '983622ce45a875c01b6d4479e84ce5bfe079e0d6', class: "col-12" }, h("h2", { key: '33e426cd1aabf66e97eaf2292c2e79e0f27a82c8', class: "h5" }, "Refund Policy and Receipt")), h("div", { key: '6968a33fef60038777e4b34a528c07361486262e', class: "col-12" }, h("form-control-textarea", { key: 'dcded5a84ef9104045fe228f5a498b42b7c4bc72', label: "Refund Policy Disclosure", name: "refund_policy_disclosure" })), h("div", { key: '5cf7d7017f4a43f3dbf592e2191b8ac5a53f9695', class: "col-12" }, h("form-control-textarea", { key: '81c95385cb04ef82fb23b95bc084c118a153280a', label: "Refund Refund Explanation", name: "refund_refusal_explanation" })), h("div", { key: '8ff60b9d1a1159073314905b56ecf46eb35a321e', class: "col-12" }, h("form-control-file", { key: 'f308750940e7fd12972584281169c265c28834d6', label: "Upload Refund Policy", name: "refund_policy" })), h("div", { key: '802abe379ac422c927022be29effecee97dd1694', class: "col-12" }, h("form-control-file", { key: '2d166d7768de62e5f6efb3cd466b856296ce4929', label: "Upload Receipt", name: "receipt" })))));
|
|
5
|
+
}
|
|
6
|
+
static get is() { return "justifi-refund-policy"; }
|
|
7
|
+
}
|
|
8
|
+
;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class ShippingDetails {
|
|
3
|
+
// "shipping_address": "...",
|
|
4
|
+
// "shipping_carrier": "...",
|
|
5
|
+
// "shipping_date": "...",
|
|
6
|
+
// "shipping_tracking_number": "...",
|
|
7
|
+
render() {
|
|
8
|
+
return (h("div", { key: 'b751c099794fd1e199fc33c5d09899dfd112983b' }, h("div", { key: '199584570dafdf9d7592b58c786c40eab29a9e2d', class: "row gy-3" }, h("div", { key: 'aa22d4ccaa52177f51584faf433208d55de363af', class: "col-12" }, h("h2", { key: '43b90ea2ccca89595bc9edd44e6b6c7231f6a417', class: "h5" }, "Shipping Details")), h("div", { key: '337e087f6a073ce3e5add78813e127578599009f', class: "col-12" }, h("form-control-text", { key: '6b451a1c2e730adb7672a7d31e2a329ddddb9801', label: "Shipping Carrier Name", name: "shipping_carrier" })), h("div", { key: 'ff49c1efb33231b0c81a1b03062031eabcc8b2b5', class: "col-12" }, h("form-control-text", { key: '54b17aba899f77e7c988a367fa3405fbed62b7ed', label: "Tracking Number", name: "shipping_tracking_number" })), h("div", { key: 'cc9a4441663f35a49d119ffdd71562fec327d6da', class: "col-12" }, h("form-control-date", { key: '3e8a41b5a6247a11e11311dcb93e5e567a2bf647', label: "Date Shipped", name: "shipping_date" })), h("div", { key: '0d76ef386013035480f2c1041ddaf4f0a7e88522', class: "col-12" }, h("form-control-textarea", { key: '2c587c5c24127aac5c60c20cf6717060a5fbb35f', label: "Shipping Address", name: "shipping_address" })), h("div", { key: '783465b60c9529abfae87c0c92915c3a79e4a3e8', class: "col-12" }, h("form-control-file", { key: 'ab665466efa871edacc58e60ba572db7f570a83f', label: "Shipping Documentation", name: "shipping_documentation" })))));
|
|
9
|
+
}
|
|
10
|
+
static get is() { return "justifi-shipping-details"; }
|
|
11
|
+
}
|
|
12
|
+
;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { StyledHost } from "../../ui-components";
|
|
3
|
+
import { DisputeManagementClickEvents } from "./dispute";
|
|
4
|
+
export class DisputeManagementCore {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.showCounterDispute = false;
|
|
7
|
+
}
|
|
8
|
+
counterDisputeHandler(event) {
|
|
9
|
+
if (event.detail.name === DisputeManagementClickEvents.counterDispute) {
|
|
10
|
+
this.showCounterDispute = true;
|
|
11
|
+
}
|
|
12
|
+
if (event.detail.name === DisputeManagementClickEvents.cancelDispute) {
|
|
13
|
+
this.showCounterDispute = false;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
return (h(StyledHost, { key: 'cb4d87f38d2e577efaf8dfc088f272e05a158dcb' }, this.showCounterDispute ? h("justifi-counter-dispute", null) : h("justifi-dispute-notification", null)));
|
|
18
|
+
}
|
|
19
|
+
static get is() { return "justifi-dispute-management-core"; }
|
|
20
|
+
static get states() {
|
|
21
|
+
return {
|
|
22
|
+
"showCounterDispute": {}
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
static get events() {
|
|
26
|
+
return [{
|
|
27
|
+
"method": "submit",
|
|
28
|
+
"name": "submit",
|
|
29
|
+
"bubbles": true,
|
|
30
|
+
"cancelable": true,
|
|
31
|
+
"composed": true,
|
|
32
|
+
"docs": {
|
|
33
|
+
"tags": [],
|
|
34
|
+
"text": ""
|
|
35
|
+
},
|
|
36
|
+
"complexType": {
|
|
37
|
+
"original": "any",
|
|
38
|
+
"resolved": "any",
|
|
39
|
+
"references": {}
|
|
40
|
+
}
|
|
41
|
+
}];
|
|
42
|
+
}
|
|
43
|
+
static get listeners() {
|
|
44
|
+
return [{
|
|
45
|
+
"name": "clickEvent",
|
|
46
|
+
"method": "counterDisputeHandler",
|
|
47
|
+
"target": undefined,
|
|
48
|
+
"capture": false,
|
|
49
|
+
"passive": false
|
|
50
|
+
}];
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class DisputeManagement {
|
|
3
|
+
render() {
|
|
4
|
+
return (h("justifi-dispute-management-core", { key: 'ed28c52d4621058967a53f79c1f00db1d453f5a9' }));
|
|
5
|
+
}
|
|
6
|
+
static get is() { return "justifi-dispute-management"; }
|
|
7
|
+
static get encapsulation() { return "shadow"; }
|
|
8
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class DisputeNotification {
|
|
3
|
+
acceptDispute() {
|
|
4
|
+
// submit the dispute as forfeited, then emit submit event
|
|
5
|
+
this.submit.emit();
|
|
6
|
+
}
|
|
7
|
+
initiateCounterDispute() {
|
|
8
|
+
this.clickEvent.emit({ name: 'counterDispute' });
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return (h("div", { key: 'e4d4de3446f6cd1b21fceb5b51bbbb912e2becbd' }, h("h1", { key: '4f6c5d36c498c4828f9234c02910f68f1563f683', class: "h4" }, "This payment was disputed"), h("p", { key: 'dd69d64f749dbd7ef3dee0c02121f7a4d5c43935' }, "The cardholder for this payment claims that the product was not received."), h("p", { key: '012671e73722cf571e2ffe9ec7268fc5a68211b8' }, "You can either counter the dispute by presenting proof of the product's delivery to or use by the cardholder, or you can choose to accept the dispute right away, refund the cardholder, and resolve the matter."), h("h2", { key: 'a305a609445a42ed31486089ee50fb6e826333e3', class: "h5" }, "Dispute details"), h("div", { key: 'c383e914b7f80d4899c9f9a161ede6ab19b0bb20', class: "d-table gap-2" }, h("div", { key: '3a17b05d7608bd3e85462e225829e540073a58c3', class: "d-table-row gap-2" }, h("span", { key: '26410fd189aede2ce647d80c17c5b1de81ae1e33', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Amount"), h("span", { key: 'cf978f0256bca203c8ffba95b7d207f10354b154', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, "$50.00")), h("div", { key: '2a84d71d53c8cd8fd55bd788dd8cf5f4390876fa', class: "d-table-row gap-2" }, h("span", { key: '196bc7ca8a74bcb63f72f979b1f219adedb1f19e', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Reason"), h("span", { key: '46b8a0867cae071a1d929beb684930f59b7b6bfa', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, "Product not received")), h("div", { key: '491e7f02249c12159a8488943659ba6bf2e27d71', class: "d-table-row gap-2" }, h("span", { key: '04af38ed973f99c2b1e7a82c64fc27ff87a01a15', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Dispute ID"), h("span", { key: '8929ec9b7bb528d9b47851df29bd75e816018e70', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, "dis_1234567890"))), h("div", { key: '2693379df3be7315ee7acf751af6c2eaeca56dcc', class: "d-flex gap-2 mt-4 justify-content-end" }, h("button", { key: '738f868f185f9bbf98d41306e8b260959b2295bd', class: "btn btn-secondary", onClick: () => this.acceptDispute() }, "Accept dispute"), h("button", { key: '83712ad248a0f8784b8b176c5620b531b21df50e', class: "btn btn-primary", onClick: () => this.initiateCounterDispute() }, "Counter dispute"))));
|
|
12
|
+
}
|
|
13
|
+
static get is() { return "justifi-dispute-notification"; }
|
|
14
|
+
static get events() {
|
|
15
|
+
return [{
|
|
16
|
+
"method": "submit",
|
|
17
|
+
"name": "submit",
|
|
18
|
+
"bubbles": true,
|
|
19
|
+
"cancelable": true,
|
|
20
|
+
"composed": true,
|
|
21
|
+
"docs": {
|
|
22
|
+
"tags": [],
|
|
23
|
+
"text": ""
|
|
24
|
+
},
|
|
25
|
+
"complexType": {
|
|
26
|
+
"original": "any",
|
|
27
|
+
"resolved": "any",
|
|
28
|
+
"references": {}
|
|
29
|
+
}
|
|
30
|
+
}, {
|
|
31
|
+
"method": "clickEvent",
|
|
32
|
+
"name": "clickEvent",
|
|
33
|
+
"bubbles": true,
|
|
34
|
+
"cancelable": true,
|
|
35
|
+
"composed": true,
|
|
36
|
+
"docs": {
|
|
37
|
+
"tags": [],
|
|
38
|
+
"text": ""
|
|
39
|
+
},
|
|
40
|
+
"complexType": {
|
|
41
|
+
"original": "any",
|
|
42
|
+
"resolved": "any",
|
|
43
|
+
"references": {}
|
|
44
|
+
}
|
|
45
|
+
}];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export var DisputeManagementClickEvents;
|
|
2
|
+
(function (DisputeManagementClickEvents) {
|
|
3
|
+
DisputeManagementClickEvents["nextStep"] = "nextStep";
|
|
4
|
+
DisputeManagementClickEvents["previousStep"] = "previousStep";
|
|
5
|
+
DisputeManagementClickEvents["cancelDispute"] = "cancelDispute";
|
|
6
|
+
DisputeManagementClickEvents["counterDispute"] = "counterDispute";
|
|
7
|
+
DisputeManagementClickEvents["submit"] = "submit";
|
|
8
|
+
})(DisputeManagementClickEvents || (DisputeManagementClickEvents = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import { Chart, BarController, Colors, BarElement, CategoryScale, LinearScale, Legend, Tooltip, Title } from "chart.js";
|
|
3
3
|
import { generateChartOptions } from "./chart-utils";
|
|
4
|
-
import { ErrorState, LoadingState } from "
|
|
4
|
+
import { ErrorState, LoadingState } from "../../ui-components/details/utils";
|
|
5
5
|
Chart.register(Colors, BarController, BarElement, CategoryScale, LinearScale, Legend, Tooltip, Title);
|
|
6
6
|
export class GrossPaymentChartCore {
|
|
7
7
|
constructor() {
|
|
@@ -68,7 +68,7 @@ export class GrossPaymentChartCore {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
render() {
|
|
71
|
-
return (h(Host, { key: '
|
|
71
|
+
return (h(Host, { key: '80dfc1ae805ac7e1d34222037de6f492feabf619' }, this.loading && LoadingState(), !this.errorMessage ? h("canvas", { id: "chart", ref: (elem) => this.chartRef = elem }) : ErrorState(this.errorMessage)));
|
|
72
72
|
}
|
|
73
73
|
static get is() { return "gross-payment-chart-core"; }
|
|
74
74
|
static get originalStyleUrls() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { ReportsService } from "../../api/services/reports.service";
|
|
3
3
|
import { makeGetGrossPaymentChartData } from "./get-gross-payment-chart-data";
|
|
4
|
-
import { ErrorState } from "
|
|
4
|
+
import { ErrorState } from "../../ui-components/details/utils";
|
|
5
5
|
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
|
|
6
6
|
import JustifiAnalytics from "../../api/Analytics";
|
|
7
7
|
import { checkPkgVersion } from "../../utils/check-pkg-version";
|