@justifi/webcomponents 4.18.0 → 4.19.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-d4aa8c07.js → Analytics-ff013cbc.js} +1 -1
- package/dist/cjs/{Payment-24f22eca.js → Payment-1a8a8ca6.js} +0 -21
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
- package/dist/cjs/business-details-core.cjs.entry.js +1 -1
- package/dist/cjs/{business-form-types-11130bab.js → business-form-types-6e1fcda3.js} +4 -7
- package/dist/cjs/business.service-f63650f5.js +32 -0
- package/dist/cjs/button-3f400a66.js +26 -0
- package/dist/cjs/form-alert_5.cjs.entry.js +5 -5
- package/dist/cjs/{form-control-checkbox_5.cjs.entry.js → form-control-checkbox_9.cjs.entry.js} +434 -169
- package/dist/cjs/{form-control-number-masked_2.cjs.entry.js → form-control-date_3.cjs.entry.js} +50 -7
- package/dist/cjs/{form-control-select_2.cjs.entry.js → form-control-error-text_4.cjs.entry.js} +32 -2
- package/dist/cjs/form-control-file.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/form-control-number.cjs.entry.js +1 -1
- package/dist/cjs/{get-payout-csv-e4e4771a.js → get-payout-csv-f3aee6d0.js} +1 -1
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +2 -2
- package/dist/cjs/input-handlers-cff032bb.js +20 -0
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +196 -481
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +30 -0
- package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +7 -6
- package/dist/cjs/justifi-checkout.cjs.entry.js +5 -5
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +6 -6
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +268 -0
- package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js +9 -10
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +8 -12
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +8 -60
- package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +8 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-5fee1ffb.js → package-cb0f8cb1.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +25 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +9 -9
- package/dist/cjs/payment-provisioning-actions-06466dda.js +185 -0
- package/dist/cjs/{payment.service-35298e95.js → payment.service-0a64f9cd.js} +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +69 -40
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +90 -74
- package/dist/cjs/skeleton-748c5dde.js +43 -0
- package/dist/cjs/styled-host-cc053016.js +14 -0
- package/dist/cjs/table-loading-state-8b406852.js +38 -0
- package/dist/cjs/{utils-80191fbe.js → utils-89d86e29.js} +0 -33
- package/dist/cjs/{utils-8c3bf659.js → utils-ddacfc44.js} +0 -5
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Payment.js +0 -20
- package/dist/collection/api/services/business.service.js +18 -0
- package/dist/collection/collection-manifest.json +9 -14
- package/dist/collection/components/bank-account-form/bank-account-form.js +1 -1
- package/dist/collection/components/billing-form/billing-form.js +2 -2
- package/dist/collection/components/business-details/business-details-core.js +1 -1
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
- 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 +1 -1
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +520 -0
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +80 -0
- package/dist/collection/components/business-forms/owner-form/owner-form.js +55 -225
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +235 -0
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +41 -121
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +255 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +42 -131
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +342 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +34 -189
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +81 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +229 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +42 -133
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +23 -18
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-input-group.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-documents-on-file.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +238 -0
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +41 -124
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-actions.js +122 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +17 -18
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +6 -6
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +1 -1
- package/dist/collection/components/business-forms/utils/business-form-types.js +4 -7
- package/dist/collection/components/business-forms/utils/input-handlers.js +13 -0
- package/dist/collection/components/card-form/card-form.js +1 -1
- package/dist/collection/components/checkout/checkout-core.js +4 -5
- package/dist/collection/components/checkout/checkout.js +2 -2
- package/dist/collection/components/checkout/new-payment-method.js +1 -1
- package/dist/collection/components/checkout/payment-method-options.js +1 -1
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/checkout/sezzle-payment-method.js +1 -1
- package/dist/collection/components/details/details.js +2 -2
- 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 +11 -5
- 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 +0 -2
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +3 -3
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +6 -1
- package/dist/collection/components/pagination-menu/pagination-menu.js +3 -3
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-form/payment-form.js +4 -6
- package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js +2 -2
- package/dist/collection/components/payments-list/payments-list-core.js +66 -38
- package/dist/collection/components/payout-details/payout-details-core.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list-core.js +88 -73
- package/dist/collection/components/refund-form/refund-form.js +2 -2
- package/dist/collection/ui-components/button-spinner.js +2 -0
- package/dist/collection/ui-components/button.js +19 -0
- package/dist/collection/ui-components/index.js +7 -0
- package/dist/collection/ui-components/skeleton.js +39 -0
- package/dist/collection/ui-components/styled-host/styled-host.js +5 -0
- package/dist/collection/ui-components/table-empty-state.js +8 -0
- package/dist/collection/ui-components/table-error-state.js +8 -0
- package/dist/collection/ui-components/table-loading-state.js +8 -0
- package/dist/collection/utils/utils.js +0 -21
- package/dist/docs.json +2080 -1746
- package/dist/esm/{Analytics-29fac206.js → Analytics-33b8fa8d.js} +1 -1
- package/dist/esm/{Payment-3e94da9c.js → Payment-6bf26fe2.js} +1 -21
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/business-details-core.entry.js +2 -2
- package/dist/esm/{business-form-types-60f50b98.js → business-form-types-1bc5fe08.js} +5 -8
- package/dist/esm/business.service-74bd1212.js +29 -0
- package/dist/esm/button-34e75e0f.js +24 -0
- package/dist/esm/form-alert_5.entry.js +5 -5
- package/dist/esm/{form-control-checkbox_5.entry.js → form-control-checkbox_9.entry.js} +432 -171
- package/dist/esm/form-control-date_3.entry.js +130 -0
- package/dist/esm/{form-control-select_2.entry.js → form-control-error-text_4.entry.js} +32 -4
- package/dist/esm/form-control-file.entry.js +1 -1
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/form-control-number.entry.js +1 -1
- package/dist/esm/{get-payout-csv-9b4aaada.js → get-payout-csv-b494abfe.js} +1 -1
- package/dist/esm/gross-payment-chart-core.entry.js +3 -3
- package/dist/esm/input-handlers-270ac806.js +16 -0
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +197 -482
- package/dist/esm/justifi-bank-account-form.entry.js +3 -3
- package/dist/esm/justifi-billing-form_2.entry.js +4 -4
- package/dist/esm/justifi-business-details.entry.js +4 -4
- package/dist/esm/justifi-business-form.entry.js +6 -6
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +26 -0
- package/dist/esm/justifi-card-form.entry.js +3 -3
- package/dist/esm/justifi-checkout-core.entry.js +7 -6
- package/dist/esm/justifi-checkout.entry.js +5 -5
- package/dist/esm/justifi-details.entry.js +3 -3
- package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
- package/dist/esm/justifi-new-payment-method_4.entry.js +6 -6
- package/dist/esm/justifi-owner-form_3.entry.js +262 -0
- package/dist/esm/justifi-payment-details.entry.js +5 -5
- package/dist/esm/justifi-payment-form.entry.js +9 -10
- package/dist/esm/justifi-payment-method-form.entry.js +4 -4
- package/dist/esm/justifi-payment-method-selector.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning-core.entry.js +8 -12
- package/dist/esm/justifi-payment-provisioning.entry.js +7 -59
- package/dist/esm/justifi-payments-list.entry.js +5 -5
- package/dist/esm/justifi-payout-details.entry.js +5 -5
- package/dist/esm/justifi-payouts-list.entry.js +5 -5
- package/dist/esm/justifi-refund-form.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
- package/dist/esm/justifi-season-interruption-insurance.entry.js +8 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-1123f528.js → package-3e407c6d.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +21 -0
- package/dist/esm/payment-details-core.entry.js +10 -10
- package/dist/esm/payment-provisioning-actions-0635eff7.js +178 -0
- package/dist/esm/{payment.service-c62d82d3.js → payment.service-3ca4a492.js} +1 -1
- package/dist/esm/payments-list-core.entry.js +69 -40
- package/dist/esm/payout-details-core.entry.js +4 -4
- package/dist/esm/payouts-list-core.entry.js +90 -74
- package/dist/esm/skeleton-145a80d4.js +41 -0
- package/dist/esm/styled-host-ab9da520.js +12 -0
- package/dist/esm/table-loading-state-356c7215.js +34 -0
- package/dist/esm/{utils-56719d07.js → utils-01413a95.js} +1 -1
- package/dist/esm/{utils-f4c4ba7d.js → utils-3bb6347a.js} +1 -5
- package/dist/esm/{utils-5f4c4faa.js → utils-3c1dd2fa.js} +1 -31
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Payment.js +1 -21
- package/dist/module/additional-questions.js +1 -1
- package/dist/module/billing-form.js +3 -3
- package/dist/module/business-additional-questions-form-step-core.js +141 -0
- package/dist/module/business-additional-questions-form-step.js +55 -100
- package/dist/module/business-additional-questions-schema.js +1 -1
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-bank-account-form-step.js +4 -4
- package/dist/module/business-core-info-form-step-core.js +151 -0
- package/dist/module/business-core-info-form-step.js +57 -106
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-core-info.js +1 -1
- package/dist/module/business-document-upload-form-step.js +34 -35
- package/dist/module/business-document-upload-input-group.js +2 -2
- package/dist/module/business-documents-on-file.js +1 -1
- package/dist/module/business-form-types.js +5 -8
- package/dist/module/business-identity-schema.js +1 -1
- package/dist/module/business-owners-form-step-core.js +216 -0
- package/dist/module/business-owners-form-step.js +67 -154
- package/dist/module/business-representative-form-inputs.js +85 -0
- package/dist/module/business-representative-form-step-core.js +152 -0
- package/dist/module/business-representative-form-step.js +63 -111
- package/dist/module/business-representative.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +3 -3
- package/dist/module/business-terms-conditions-text.js +1 -1
- package/dist/module/business.service.js +19 -1
- package/dist/module/button.js +24 -0
- package/dist/module/checkout-core.js +27 -32
- package/dist/module/details.js +1 -1
- package/dist/module/exported-parts.js +40 -0
- 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 +11 -5
- 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/get-payout-csv.js +1 -1
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/identity-address-form.js +2 -2
- package/dist/module/input-handlers.js +16 -0
- package/dist/module/justifi-additional-questions-form-step-core.d.ts +11 -0
- package/dist/module/justifi-additional-questions-form-step-core.js +6 -0
- package/dist/module/justifi-bank-account-form.js +1 -1
- package/dist/module/justifi-business-core-info-form-step-core.d.ts +11 -0
- package/dist/module/justifi-business-core-info-form-step-core.js +6 -0
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +2 -2
- package/dist/module/justifi-business-owners-form-step-core.d.ts +11 -0
- package/dist/module/justifi-business-owners-form-step-core.js +6 -0
- package/dist/module/justifi-business-representative-form-inputs.d.ts +11 -0
- package/dist/module/justifi-business-representative-form-inputs.js +6 -0
- package/dist/module/justifi-business-representative-form-step-core.d.ts +11 -0
- package/dist/module/justifi-business-representative-form-step-core.js +6 -0
- package/dist/module/justifi-card-form.js +1 -1
- package/dist/module/justifi-checkout.js +27 -33
- package/dist/module/justifi-gross-payment-chart.js +1 -1
- package/dist/module/justifi-legal-address-form-step-core.d.ts +11 -0
- package/dist/module/justifi-legal-address-form-step-core.js +6 -0
- package/dist/module/justifi-payment-details.js +2 -2
- package/dist/module/justifi-payment-form.js +5 -6
- package/dist/module/justifi-payment-provisioning.js +97 -108
- package/dist/module/justifi-payments-list.js +8 -14
- package/dist/module/justifi-payout-details.js +1 -1
- package/dist/module/justifi-payouts-list.js +8 -13
- package/dist/module/justifi-refund-form.js +2 -2
- package/dist/module/justifi-season-interruption-insurance.js +7 -2
- package/dist/module/legal-address-form-step-core.js +138 -0
- package/dist/module/legal-address-form-step.js +53 -98
- package/dist/module/legal-address-form.js +2 -2
- package/dist/module/new-payment-method.js +1 -1
- package/dist/module/{justifi-table.d.ts → owner-form-core.d.ts} +4 -4
- package/dist/module/owner-form-core.js +6 -0
- package/dist/module/owner-form-core2.js +264 -0
- package/dist/module/{justifi-skeleton.d.ts → owner-form-inputs.d.ts} +4 -4
- package/dist/module/owner-form-inputs.js +6 -0
- package/dist/module/owner-form-inputs2.js +85 -0
- package/dist/module/owner-form.js +62 -188
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +3 -3
- package/dist/module/payment-details-core2.js +7 -7
- package/dist/module/payment-method-form.js +2 -2
- package/dist/module/payment-method-options.js +1 -1
- package/dist/module/payment-method-selector.js +1 -1
- package/dist/module/payment-provisioning-actions.js +178 -0
- package/dist/module/payment-provisioning-core.js +100 -62
- package/dist/module/payment-provisioning-form-buttons.js +2 -2
- package/dist/module/payment-provisioning-form-steps.js +94 -52
- package/dist/module/payments-list-core2.js +71 -49
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +92 -82
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/saved-payment-method.js +1 -1
- package/dist/module/schema-validations.js +1 -1
- package/dist/module/season-interruption-insurance-core.js +2 -2
- package/dist/module/sezzle-payment-method.js +1 -1
- package/dist/module/skeleton.js +18 -50
- package/dist/module/styled-host.js +4 -4
- package/dist/module/utils2.js +1 -31
- package/dist/module/utils3.js +23 -26
- package/dist/module/utils4.js +23 -24
- package/dist/types/api/Payment.d.ts +0 -28
- package/dist/types/api/services/business.service.d.ts +10 -0
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +43 -0
- package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +9 -0
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +9 -28
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +26 -0
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.d.ts +5 -15
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +27 -0
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +6 -21
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +35 -0
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +5 -21
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +9 -0
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +25 -0
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +5 -17
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +26 -0
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +5 -15
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-actions.d.ts +40 -1
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +2 -2
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +1 -1
- package/dist/types/components/business-forms/utils/business-form-types.d.ts +6 -11
- package/dist/types/components/business-forms/utils/input-handlers.d.ts +4 -0
- package/dist/types/components/checkout/checkout-core.d.ts +0 -1
- package/dist/types/components/form/utils.d.ts +0 -1
- package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +3 -0
- package/dist/types/components/payments-list/payments-list-core.d.ts +12 -2
- package/dist/types/components/payouts-list/payouts-list-core.d.ts +11 -4
- package/dist/types/components.d.ts +309 -482
- package/dist/types/ui-components/button-spinner.d.ts +1 -0
- package/dist/types/ui-components/button.d.ts +10 -0
- package/dist/types/ui-components/index.d.ts +7 -0
- package/dist/types/ui-components/skeleton.d.ts +13 -0
- package/dist/types/ui-components/styled-host/styled-host.d.ts +2 -0
- package/dist/types/ui-components/table-empty-state.d.ts +6 -0
- package/dist/types/ui-components/table-error-state.d.ts +6 -0
- package/dist/types/ui-components/table-loading-state.d.ts +6 -0
- package/dist/types/utils/utils.d.ts +0 -3
- package/dist/webcomponents/p-07109641.entry.js +1 -0
- package/dist/webcomponents/p-08b0fb31.js +1 -0
- package/dist/webcomponents/p-0f7b9555.entry.js +1 -0
- package/dist/webcomponents/p-17e4246f.entry.js +1 -0
- package/dist/webcomponents/{p-e85ef4af.entry.js → p-195f92e9.entry.js} +1 -1
- package/dist/webcomponents/{p-959b478a.entry.js → p-1a43e355.entry.js} +2 -2
- package/dist/webcomponents/p-23014988.entry.js +1 -0
- package/dist/webcomponents/p-25dba252.entry.js +1 -0
- package/dist/webcomponents/{p-0dca0770.entry.js → p-27981600.entry.js} +1 -1
- package/dist/webcomponents/{p-66758365.entry.js → p-301e0493.entry.js} +1 -1
- package/dist/webcomponents/p-304dd644.entry.js +1 -0
- package/dist/webcomponents/p-30a493cd.entry.js +1 -0
- package/dist/webcomponents/p-462dc522.entry.js +1 -0
- package/dist/webcomponents/{p-09affce4.entry.js → p-487b72a8.entry.js} +1 -1
- package/dist/webcomponents/{p-571d7f1a.entry.js → p-4abc17f0.entry.js} +1 -1
- package/dist/webcomponents/{p-667a5aa8.js → p-4b4580dd.js} +1 -1
- package/dist/webcomponents/p-52021fa1.entry.js +1 -0
- package/dist/webcomponents/p-53e64f15.entry.js +1 -0
- package/dist/webcomponents/p-5968ff8a.js +1 -0
- package/dist/webcomponents/p-60a370fc.entry.js +1 -0
- package/dist/webcomponents/{p-e0bcfdb5.entry.js → p-623a4479.entry.js} +1 -1
- package/dist/webcomponents/{p-3294856b.entry.js → p-62b32c4c.entry.js} +1 -1
- package/dist/webcomponents/{p-092e080c.js → p-63acf322.js} +1 -1
- package/dist/webcomponents/p-6f03b35a.entry.js +1 -0
- package/dist/webcomponents/p-75b4daef.js +1 -0
- package/dist/webcomponents/p-7d85af5c.js +1 -0
- package/dist/webcomponents/{p-e8c651b8.js → p-83125497.js} +1 -1
- package/dist/webcomponents/{p-49b8e112.js → p-8603348a.js} +1 -1
- package/dist/webcomponents/{p-7a346c0b.entry.js → p-8c1e981b.entry.js} +1 -1
- package/dist/webcomponents/p-8df7bde8.js +1 -0
- package/dist/webcomponents/{p-f3555f0b.entry.js → p-8e541a32.entry.js} +1 -1
- package/dist/webcomponents/p-9279aa49.entry.js +1 -0
- package/dist/webcomponents/{p-0e4a54c8.entry.js → p-96b42e7d.entry.js} +1 -1
- package/dist/webcomponents/{p-9631b768.entry.js → p-99022846.entry.js} +1 -1
- package/dist/webcomponents/p-9c9c7dac.js +1 -0
- package/dist/webcomponents/p-b16dfd5d.entry.js +1 -0
- package/dist/webcomponents/p-ba4bae6f.js +1 -0
- package/dist/webcomponents/p-bbed6107.entry.js +1 -0
- package/dist/webcomponents/{p-67e497aa.entry.js → p-bc92235c.entry.js} +1 -1
- package/dist/webcomponents/p-be39c802.entry.js +1 -0
- package/dist/webcomponents/{p-3514b616.entry.js → p-c4b87db2.entry.js} +1 -1
- package/dist/webcomponents/p-c9f8f7ec.entry.js +1 -0
- package/dist/webcomponents/{p-bb32b91c.entry.js → p-cd7105dd.entry.js} +1 -1
- package/dist/webcomponents/p-d101c5db.js +1 -0
- package/dist/webcomponents/{p-d5612f35.entry.js → p-d1fbeae5.entry.js} +1 -1
- package/dist/webcomponents/p-d8355f91.entry.js +1 -0
- package/dist/webcomponents/p-d89bad72.js +1 -0
- package/dist/webcomponents/{p-e1651130.js → p-dce846bf.js} +1 -1
- package/dist/webcomponents/{p-e8706cc4.js → p-df21aaad.js} +1 -1
- package/dist/webcomponents/{p-531d873a.entry.js → p-e2c88817.entry.js} +1 -1
- package/dist/webcomponents/{p-df38dd21.entry.js → p-e31f0f3e.entry.js} +1 -1
- package/dist/webcomponents/p-e333620e.js +1 -0
- package/dist/webcomponents/{p-464e4dfe.entry.js → p-e7067ef2.entry.js} +1 -1
- package/dist/webcomponents/{p-2244e679.entry.js → p-f0866375.entry.js} +1 -1
- package/dist/webcomponents/{p-debeefbb.entry.js → p-fb58feb5.entry.js} +1 -1
- package/dist/webcomponents/p-fe33151d.entry.js +1 -0
- package/dist/webcomponents/webcomponents.css +6 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/SubAccount-135ff8c8.js +0 -107
- package/dist/cjs/business.service-9214509a.js +0 -13
- package/dist/cjs/form-control-date.cjs.entry.js +0 -43
- package/dist/cjs/form-control-error-text_2.cjs.entry.js +0 -36
- package/dist/cjs/justifi-business-list.cjs.entry.js +0 -110
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +0 -86
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +0 -159
- package/dist/cjs/justifi-skeleton.cjs.entry.js +0 -54
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +0 -77
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +0 -105
- package/dist/cjs/justifi-table_2.cjs.entry.js +0 -80
- package/dist/cjs/styled-host-b8bed12a.js +0 -14
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +0 -58
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +0 -19
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +0 -19
- package/dist/collection/api/Proceed.js +0 -41
- package/dist/collection/api/SubAccount.js +0 -103
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.css +0 -60
- package/dist/collection/components/business-list/business-list.js +0 -185
- package/dist/collection/components/business-list/business-list.stories.js +0 -68
- package/dist/collection/components/business-list/example.js +0 -12
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +0 -143
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js +0 -32
- package/dist/collection/components/proceeds-list/example.js +0 -12
- package/dist/collection/components/proceeds-list/proceeds-list.js +0 -205
- package/dist/collection/components/proceeds-list/proceeds-list.stories.js +0 -69
- package/dist/collection/components/skeleton/skeleton.css +0 -11
- package/dist/collection/components/skeleton/skeleton.js +0 -160
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +0 -59
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +0 -37
- package/dist/collection/components/subaccount-details/subaccount-details.js +0 -136
- package/dist/collection/components/subaccount-details/subaccount-details.stories.js +0 -25
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +0 -38
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +0 -38
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +0 -38
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +0 -37
- package/dist/collection/components/subaccounts-list/subaccounts-list.css +0 -3
- package/dist/collection/components/subaccounts-list/subaccounts-list.js +0 -179
- package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js +0 -69
- package/dist/collection/components/table/table.css +0 -7
- package/dist/collection/components/table/table.js +0 -222
- package/dist/collection/components/table/utils.js +0 -4
- package/dist/collection/utils/styled-host/styled-host.js +0 -6
- package/dist/esm/SubAccount-7fcb1450.js +0 -105
- package/dist/esm/business.service-19a0c8d3.js +0 -11
- package/dist/esm/form-control-date.entry.js +0 -39
- package/dist/esm/form-control-error-text_2.entry.js +0 -31
- package/dist/esm/form-control-number-masked_2.entry.js +0 -88
- package/dist/esm/justifi-business-list.entry.js +0 -106
- package/dist/esm/justifi-payment-balance-transactions.entry.js +0 -82
- package/dist/esm/justifi-proceeds-list.entry.js +0 -155
- package/dist/esm/justifi-skeleton.entry.js +0 -50
- package/dist/esm/justifi-subaccount-details.entry.js +0 -73
- package/dist/esm/justifi-subaccounts-list.entry.js +0 -101
- package/dist/esm/justifi-table_2.entry.js +0 -75
- package/dist/esm/styled-host-57aae7fa.js +0 -12
- package/dist/esm/subaccount-account-details_4.entry.js +0 -51
- package/dist/esm/subaccount-bank-details.entry.js +0 -15
- package/dist/esm/subaccount-terms-details.entry.js +0 -15
- package/dist/module/SubAccount.js +0 -105
- package/dist/module/justifi-business-list.d.ts +0 -11
- package/dist/module/justifi-business-list.js +0 -147
- package/dist/module/justifi-payment-balance-transactions.d.ts +0 -11
- package/dist/module/justifi-payment-balance-transactions.js +0 -123
- package/dist/module/justifi-proceeds-list.d.ts +0 -11
- package/dist/module/justifi-proceeds-list.js +0 -198
- package/dist/module/justifi-skeleton.js +0 -6
- package/dist/module/justifi-subaccount-details.d.ts +0 -11
- package/dist/module/justifi-subaccount-details.js +0 -133
- package/dist/module/justifi-subaccounts-list.d.ts +0 -11
- package/dist/module/justifi-subaccounts-list.js +0 -144
- package/dist/module/justifi-table.js +0 -6
- package/dist/module/subaccount-account-details.d.ts +0 -11
- package/dist/module/subaccount-account-details.js +0 -6
- package/dist/module/subaccount-account-details2.js +0 -34
- package/dist/module/subaccount-bank-details.d.ts +0 -11
- package/dist/module/subaccount-bank-details.js +0 -35
- package/dist/module/subaccount-merchant-details.d.ts +0 -11
- package/dist/module/subaccount-merchant-details.js +0 -6
- package/dist/module/subaccount-merchant-details2.js +0 -33
- package/dist/module/subaccount-owners-details.d.ts +0 -11
- package/dist/module/subaccount-owners-details.js +0 -6
- package/dist/module/subaccount-owners-details2.js +0 -33
- package/dist/module/subaccount-representative-details.d.ts +0 -11
- package/dist/module/subaccount-representative-details.js +0 -6
- package/dist/module/subaccount-representative-details2.js +0 -33
- package/dist/module/subaccount-terms-details.d.ts +0 -11
- package/dist/module/subaccount-terms-details.js +0 -35
- package/dist/module/table.js +0 -93
- package/dist/types/api/Proceed.d.ts +0 -60
- package/dist/types/api/SubAccount.d.ts +0 -163
- package/dist/types/components/business-list/business-list.d.ts +0 -48
- package/dist/types/components/business-list/business-list.stories.d.ts +0 -9
- package/dist/types/components/payment-balance-transactions/payment-balance-transactions.d.ts +0 -17
- package/dist/types/components/payment-balance-transactions/payment-balance-transactions.stories.d.ts +0 -8
- package/dist/types/components/proceeds-list/proceeds-list.d.ts +0 -39
- package/dist/types/components/proceeds-list/proceeds-list.stories.d.ts +0 -9
- package/dist/types/components/skeleton/skeleton.d.ts +0 -12
- package/dist/types/components/subaccount-details/subaccount-account-details/subaccount-account-details.d.ts +0 -6
- package/dist/types/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.d.ts +0 -5
- package/dist/types/components/subaccount-details/subaccount-details.d.ts +0 -16
- package/dist/types/components/subaccount-details/subaccount-details.stories.d.ts +0 -7
- package/dist/types/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.d.ts +0 -5
- package/dist/types/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.d.ts +0 -5
- package/dist/types/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.d.ts +0 -5
- package/dist/types/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.d.ts +0 -5
- package/dist/types/components/subaccounts-list/subaccounts-list.d.ts +0 -19
- package/dist/types/components/subaccounts-list/subaccounts-list.stories.d.ts +0 -9
- package/dist/types/components/table/table.d.ts +0 -23
- package/dist/types/components/table/utils.d.ts +0 -3
- package/dist/types/utils/styled-host/styled-host.d.ts +0 -3
- package/dist/webcomponents/p-0a4a9ccd.entry.js +0 -1
- package/dist/webcomponents/p-0ed3c1d2.entry.js +0 -1
- package/dist/webcomponents/p-10b57ac6.entry.js +0 -1
- package/dist/webcomponents/p-1737f6bf.entry.js +0 -1
- package/dist/webcomponents/p-2306d44d.entry.js +0 -1
- package/dist/webcomponents/p-2af3672b.entry.js +0 -1
- package/dist/webcomponents/p-390157c9.entry.js +0 -1
- package/dist/webcomponents/p-412c7a22.entry.js +0 -1
- package/dist/webcomponents/p-4b9587ec.entry.js +0 -1
- package/dist/webcomponents/p-54287db6.entry.js +0 -1
- package/dist/webcomponents/p-547a2cd0.entry.js +0 -1
- package/dist/webcomponents/p-5963bcdc.entry.js +0 -1
- package/dist/webcomponents/p-5b1451e7.entry.js +0 -1
- package/dist/webcomponents/p-6700ac49.js +0 -1
- package/dist/webcomponents/p-68fd8283.js +0 -1
- package/dist/webcomponents/p-6bcf621a.entry.js +0 -1
- package/dist/webcomponents/p-6bd5d569.entry.js +0 -1
- package/dist/webcomponents/p-76180bb4.entry.js +0 -1
- package/dist/webcomponents/p-77dc159c.entry.js +0 -1
- package/dist/webcomponents/p-7d6aba64.entry.js +0 -1
- package/dist/webcomponents/p-81d3eda6.entry.js +0 -1
- package/dist/webcomponents/p-87932e16.js +0 -1
- package/dist/webcomponents/p-88c7ef46.entry.js +0 -1
- package/dist/webcomponents/p-8cc7a418.entry.js +0 -1
- package/dist/webcomponents/p-8dd22c8d.entry.js +0 -1
- package/dist/webcomponents/p-9e7c3231.entry.js +0 -1
- package/dist/webcomponents/p-b53d7b7f.js +0 -1
- package/dist/webcomponents/p-bbc18b9f.entry.js +0 -1
- package/dist/webcomponents/p-c4264aaf.js +0 -1
- package/dist/webcomponents/p-cb9ee476.entry.js +0 -1
- package/dist/webcomponents/p-d083a342.entry.js +0 -1
- package/dist/webcomponents/p-e46929a1.entry.js +0 -1
- package/dist/webcomponents/p-ea7c77a3.entry.js +0 -1
- package/dist/webcomponents/p-ed844504.js +0 -1
- package/dist/module/{index.esm.js → form.js} +2733 -2733
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
import { DetailItem, DetailSectionTitle } from "../../details/utils";
|
|
3
|
-
export class SubaccountAccountDetails {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.subaccount = undefined;
|
|
6
|
-
this.onboardingData = undefined;
|
|
7
|
-
}
|
|
8
|
-
render() {
|
|
9
|
-
var _a, _b, _c;
|
|
10
|
-
return (h(Host, { key: 'e1fb5d12ceaebcdf9645bb87d737140cf91284ef' }, h("div", { key: '8af4015b074993367606a1e2ac529c8550bbc417', class: 'p-2' }, h(DetailSectionTitle, { key: 'ef64ecc4fa8950199f79a278825ba8e637d0ae2f', sectionTitle: 'Account Details' }), h("div", { key: '75135c47d475634b1531813cf001996ca049827f', class: "d-table gap-2 w-100" }, h("div", { key: '244e128a9faf2efe03137491683fcec13b19b11c', class: "row gy-3" }, h("div", { key: '6e2cc578f6c88482612d10ecb237d50c95a5f8b2', class: "col-12 col-md-6" }, h(DetailItem, { key: '91e1203a0f54c0f6a031973639cc0b7ee067b616', title: 'Name', value: (_a = this.subaccount) === null || _a === void 0 ? void 0 : _a.name }), h(DetailItem, { key: '97294360161d70802588bf6b4ce551b9e9a38fda', title: 'Terms of Service Accepted', value: (_c = (_b = this.onboardingData) === null || _b === void 0 ? void 0 : _b.payload) === null || _c === void 0 ? void 0 : _c.terms_and_conditions.accepted.toString() }), h(DetailItem, { key: '0e81cf82f9e8c4bf12f816866775199a3b3f9ebd', title: 'Business Entity', value: 'something here' })))))));
|
|
11
|
-
}
|
|
12
|
-
static get is() { return "subaccount-account-details"; }
|
|
13
|
-
static get properties() {
|
|
14
|
-
return {
|
|
15
|
-
"subaccount": {
|
|
16
|
-
"type": "unknown",
|
|
17
|
-
"mutable": false,
|
|
18
|
-
"complexType": {
|
|
19
|
-
"original": "SubAccount",
|
|
20
|
-
"resolved": "SubAccount",
|
|
21
|
-
"references": {
|
|
22
|
-
"SubAccount": {
|
|
23
|
-
"location": "import",
|
|
24
|
-
"path": "../../../api/SubAccount",
|
|
25
|
-
"id": "src/api/SubAccount.ts::SubAccount"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"required": false,
|
|
30
|
-
"optional": false,
|
|
31
|
-
"docs": {
|
|
32
|
-
"tags": [],
|
|
33
|
-
"text": ""
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"onboardingData": {
|
|
37
|
-
"type": "unknown",
|
|
38
|
-
"mutable": false,
|
|
39
|
-
"complexType": {
|
|
40
|
-
"original": "IOnboardingData",
|
|
41
|
-
"resolved": "IOnboardingData",
|
|
42
|
-
"references": {
|
|
43
|
-
"IOnboardingData": {
|
|
44
|
-
"location": "import",
|
|
45
|
-
"path": "../../../api/SubAccount",
|
|
46
|
-
"id": "src/api/SubAccount.ts::IOnboardingData"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
"required": false,
|
|
51
|
-
"optional": false,
|
|
52
|
-
"docs": {
|
|
53
|
-
"tags": [],
|
|
54
|
-
"text": ""
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
import { DetailItem, DetailSectionTitle } from "../../details/utils";
|
|
3
|
-
export class SubaccountBankDetails {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.data = undefined;
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
var _a, _b, _c, _d, _e;
|
|
9
|
-
return (h(Host, { key: 'acff32b2be7082d822aa91b10866bf8dec0b2c0b' }, h(DetailSectionTitle, { key: 'a292e06e625d2c4feb816b16ef59b7d35d619499', sectionTitle: 'Bank Account Details' }), h("div", { key: '58849047be2730d62dbfa66f00d7a941a54bcae2', class: "d-table gap-2 w-100" }, h("div", { key: '8ffc6377b1853f1502af07bfe0000d1431712fed', class: "row gy-3" }, h("div", { key: 'ac6c67db8beeefe14ae0f40e07b9bf01cb27228a', class: "col-12 col-md-6" }, h(DetailItem, { key: 'c2f63fa39c723ad3843b9cd49988f917a43f8420', title: "Bank Name", value: (_a = this.data) === null || _a === void 0 ? void 0 : _a.bank_name }), h(DetailItem, { key: 'ff0a37c2439f78a7c582ed885f7f17df0ac22a9e', title: "Account Type", value: (_b = this.data) === null || _b === void 0 ? void 0 : _b.account_type }), h(DetailItem, { key: '18ce387aa03aa4b41e9676a4829ebb6f13adc024', title: "Account Number", value: (_c = this.data) === null || _c === void 0 ? void 0 : _c.account_number }), h(DetailItem, { key: 'ae8d33a05902d2f3a0ab0d711efe6832959897a4', title: "Routing Number", value: (_d = this.data) === null || _d === void 0 ? void 0 : _d.routing_number }), h(DetailItem, { key: '2829eece60a0956d8cba442e717b5f3cc3cfd5be', title: "Account Nickname", value: (_e = this.data) === null || _e === void 0 ? void 0 : _e.account_nickname }))))));
|
|
10
|
-
}
|
|
11
|
-
static get is() { return "subaccount-bank-details"; }
|
|
12
|
-
static get properties() {
|
|
13
|
-
return {
|
|
14
|
-
"data": {
|
|
15
|
-
"type": "unknown",
|
|
16
|
-
"mutable": false,
|
|
17
|
-
"complexType": {
|
|
18
|
-
"original": "SubaccountBankAccount",
|
|
19
|
-
"resolved": "SubaccountBankAccount",
|
|
20
|
-
"references": {
|
|
21
|
-
"SubaccountBankAccount": {
|
|
22
|
-
"location": "import",
|
|
23
|
-
"path": "../../../api/SubAccount",
|
|
24
|
-
"id": "src/api/SubAccount.ts::SubaccountBankAccount"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"required": false,
|
|
29
|
-
"optional": false,
|
|
30
|
-
"docs": {
|
|
31
|
-
"tags": [],
|
|
32
|
-
"text": ""
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { Api } from "../../api";
|
|
3
|
-
import { SubAccount } from "../../api/SubAccount";
|
|
4
|
-
import { EntityHeadInfo, EntityHeadInfoItem, ErrorState, LoadingState } from "../details/utils";
|
|
5
|
-
import { MapSubAccountStatusToBadge, formatDate, formatTime } from "../../utils/utils";
|
|
6
|
-
import { config } from "../../../config";
|
|
7
|
-
import StyledHost from "../../utils/styled-host/styled-host";
|
|
8
|
-
export class SubaccountDetails {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.accountId = undefined;
|
|
11
|
-
this.subaccountId = undefined;
|
|
12
|
-
this.authToken = undefined;
|
|
13
|
-
this.onboardingData = undefined;
|
|
14
|
-
this.subaccount = undefined;
|
|
15
|
-
this.loading = true;
|
|
16
|
-
this.errorMessage = undefined;
|
|
17
|
-
}
|
|
18
|
-
updateOnPropChange() {
|
|
19
|
-
this.fetchData();
|
|
20
|
-
}
|
|
21
|
-
connectedCallback() {
|
|
22
|
-
this.fetchData();
|
|
23
|
-
}
|
|
24
|
-
async fetchOnboardingData() {
|
|
25
|
-
const api = Api({ authToken: this.authToken, apiOrigin: '' });
|
|
26
|
-
const endpoint = `onboarding/${this.subaccountId}`;
|
|
27
|
-
const response = await api.get(endpoint);
|
|
28
|
-
if (!response.error) {
|
|
29
|
-
this.onboardingData = response.data;
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
this.errorMessage = typeof response.error === 'string' ? response.error : response.error.message;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
async fetchSubAccountData() {
|
|
36
|
-
const api = Api({ authToken: this.authToken, apiOrigin: config.privateApiOrigin });
|
|
37
|
-
const endpoint = `account/${this.accountId}/seller_accounts/${this.subaccountId}`;
|
|
38
|
-
const response = await api.get(endpoint);
|
|
39
|
-
if (!response.error) {
|
|
40
|
-
const data = new SubAccount(response.data);
|
|
41
|
-
this.subaccount = data;
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
this.errorMessage = typeof response.error === 'string' ? response.error : response.error.message;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
async fetchData() {
|
|
48
|
-
this.loading = true;
|
|
49
|
-
if (!this.accountId || !this.authToken) {
|
|
50
|
-
this.errorMessage = "Can not fetch any data without an AccountID and an AuthToken";
|
|
51
|
-
this.loading = false;
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
this.fetchSubAccountData();
|
|
55
|
-
this.fetchOnboardingData();
|
|
56
|
-
this.loading = false;
|
|
57
|
-
}
|
|
58
|
-
render() {
|
|
59
|
-
var _a, _b;
|
|
60
|
-
return (h(StyledHost, { key: 'c32b7102406ae9d7f937c3cd9c2e6f213f06aa20' }, this.loading && LoadingState, !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.subaccount && this.onboardingData && (h("justifi-details", { key: '47332420860cecc98cee20a35125834b694306ed' }, h(EntityHeadInfo, { key: '681379f90251d911b8728b79614fd756b4c29d95', slot: 'head-info', badge: h("span", { slot: 'badge', innerHTML: MapSubAccountStatusToBadge(this.subaccount.status) }), title: this.subaccount.name }, h(EntityHeadInfoItem, { key: '9fb12b0fef139e18003e4e7bbdb31c8b3bfce5d3', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.subaccount.created_at)} ${formatTime(this.subaccount.created_at)}` }), h(EntityHeadInfoItem, { key: 'eaa99f0f68d768d47ad3df05452d23b6311c6d93', classes: "border-1 border-end", title: "Last Updated", value: `${formatDate(this.subaccount.updated_at)} ${formatTime(this.subaccount.updated_at)}` }), h(EntityHeadInfoItem, { key: 'a819a2a46408cbe283b02c816765092ff502e85c', title: "ID", value: this.subaccount.id })), h("div", { key: '24c3c113b1a06f3f44a777aa69c622f6a5fc2655', slot: 'detail-sections' }, h("subaccount-account-details", { key: 'a953676a158a40a417285cab08ccfcdc7e3c7119', subaccount: this.subaccount, onboardingData: this.onboardingData }), h("subaccount-merchant-details", { key: '0a970cd5b4b29389becd1547cca981f50dc99210', onboardingData: this.onboardingData }), h("subaccount-representative-details", { key: 'f2d5286019bb1cad941282143b646bcbb6a7766b', data: (_a = this.onboardingData.payload) === null || _a === void 0 ? void 0 : _a.representative }), h("subaccount-owners-details", { key: '189ff0cb2fe761921c0e2001cf4eebea33072a73', data: (_b = this.onboardingData.payload) === null || _b === void 0 ? void 0 : _b.owners }))))));
|
|
61
|
-
}
|
|
62
|
-
static get is() { return "justifi-subaccount-details"; }
|
|
63
|
-
static get encapsulation() { return "shadow"; }
|
|
64
|
-
static get properties() {
|
|
65
|
-
return {
|
|
66
|
-
"accountId": {
|
|
67
|
-
"type": "string",
|
|
68
|
-
"mutable": false,
|
|
69
|
-
"complexType": {
|
|
70
|
-
"original": "string",
|
|
71
|
-
"resolved": "string",
|
|
72
|
-
"references": {}
|
|
73
|
-
},
|
|
74
|
-
"required": false,
|
|
75
|
-
"optional": false,
|
|
76
|
-
"docs": {
|
|
77
|
-
"tags": [],
|
|
78
|
-
"text": ""
|
|
79
|
-
},
|
|
80
|
-
"attribute": "account-id",
|
|
81
|
-
"reflect": false
|
|
82
|
-
},
|
|
83
|
-
"subaccountId": {
|
|
84
|
-
"type": "string",
|
|
85
|
-
"mutable": false,
|
|
86
|
-
"complexType": {
|
|
87
|
-
"original": "string",
|
|
88
|
-
"resolved": "string",
|
|
89
|
-
"references": {}
|
|
90
|
-
},
|
|
91
|
-
"required": false,
|
|
92
|
-
"optional": false,
|
|
93
|
-
"docs": {
|
|
94
|
-
"tags": [],
|
|
95
|
-
"text": ""
|
|
96
|
-
},
|
|
97
|
-
"attribute": "subaccount-id",
|
|
98
|
-
"reflect": false
|
|
99
|
-
},
|
|
100
|
-
"authToken": {
|
|
101
|
-
"type": "string",
|
|
102
|
-
"mutable": false,
|
|
103
|
-
"complexType": {
|
|
104
|
-
"original": "string",
|
|
105
|
-
"resolved": "string",
|
|
106
|
-
"references": {}
|
|
107
|
-
},
|
|
108
|
-
"required": false,
|
|
109
|
-
"optional": false,
|
|
110
|
-
"docs": {
|
|
111
|
-
"tags": [],
|
|
112
|
-
"text": ""
|
|
113
|
-
},
|
|
114
|
-
"attribute": "auth-token",
|
|
115
|
-
"reflect": false
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
static get states() {
|
|
120
|
-
return {
|
|
121
|
-
"onboardingData": {},
|
|
122
|
-
"subaccount": {},
|
|
123
|
-
"loading": {},
|
|
124
|
-
"errorMessage": {}
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
static get watchers() {
|
|
128
|
-
return [{
|
|
129
|
-
"propName": "subaccountId",
|
|
130
|
-
"methodName": "updateOnPropChange"
|
|
131
|
-
}, {
|
|
132
|
-
"propName": "authToken",
|
|
133
|
-
"methodName": "updateOnPropChange"
|
|
134
|
-
}];
|
|
135
|
-
}
|
|
136
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { config } from "../../../config";
|
|
2
|
-
export default {
|
|
3
|
-
title: 'dev/Components/SubaccountDetails',
|
|
4
|
-
component: 'justifi-subaccount-details',
|
|
5
|
-
parameters: {},
|
|
6
|
-
};
|
|
7
|
-
class SubaccountDetailsArgs {
|
|
8
|
-
constructor(args) {
|
|
9
|
-
this['auth-token'] = args['auth-token'] || config.privateAuthToken;
|
|
10
|
-
this['account-id'] = args['account-id'] || '';
|
|
11
|
-
this['subaccount-id'] = args['subaccount-id'] || 'subaccount-id';
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
const Template = (args) => {
|
|
15
|
-
return `
|
|
16
|
-
<justifi-subaccount-details
|
|
17
|
-
data-testid="justifi-subaccounts-details"
|
|
18
|
-
auth-token="${args['auth-token']}"
|
|
19
|
-
account-id="${args['account-id']}"
|
|
20
|
-
subaccount-id="${args['subaccount-id']}"
|
|
21
|
-
/>
|
|
22
|
-
`;
|
|
23
|
-
};
|
|
24
|
-
export const Example = Template.bind({});
|
|
25
|
-
Example.args = new SubaccountDetailsArgs({});
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
import { DetailItem, DetailSectionTitle } from "../../details/utils";
|
|
3
|
-
import { formatLegalAddress } from "../../../utils/utils";
|
|
4
|
-
export class SubaccountMerchantDetails {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.onboardingData = undefined;
|
|
7
|
-
}
|
|
8
|
-
render() {
|
|
9
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
10
|
-
return (h(Host, { key: '0ed798876d8ad71afb988c4b72d8b4caaf42f785' }, h("div", { key: 'c2f6c29e9af4c9f1d60284210f0b95266ce9c0c9', class: 'p-2' }, h(DetailSectionTitle, { key: '8108ae1179ffb31e76a21d1f7404b8df6e967b0f', sectionTitle: 'Merchant Details' }), h("div", { key: '9330cdf4c5aa8d0507b429d2c90a2387b5e622ab', class: "d-table gap-2 w-100" }, h("div", { key: '7530daf31b14ea9b3d71cdf9f5461feb09763234', class: "row gy-3" }, h("div", { key: '21971fdc415eea1373efa2f0bd1c4921cfb3ca6f', class: "col-12 col-md-6" }, h(DetailItem, { key: '672ce809a0758ed6b6956e18deb789663cc3a91d', title: 'Doing Business As', value: (_d = (_c = (_b = (_a = this.onboardingData) === null || _a === void 0 ? void 0 : _a.payload) === null || _b === void 0 ? void 0 : _b.business_details) === null || _c === void 0 ? void 0 : _c.doing_business_as) === null || _d === void 0 ? void 0 : _d.name }), h(DetailItem, { key: '2ce335f1f22de14e184c902cc1cf9e745596fa0c', title: 'Website', value: (_g = (_f = (_e = this.onboardingData) === null || _e === void 0 ? void 0 : _e.payload) === null || _f === void 0 ? void 0 : _f.business_details) === null || _g === void 0 ? void 0 : _g.url }), h(DetailItem, { key: 'c2d4d2ea0947ab54653f3840ab163ba6e11267b9', title: 'Business Email', value: (_k = (_j = (_h = this.onboardingData) === null || _h === void 0 ? void 0 : _h.payload) === null || _j === void 0 ? void 0 : _j.business_details) === null || _k === void 0 ? void 0 : _k.email }), h(DetailItem, { key: '802c3538727e990a915dc47781dce9641f4ed438', title: 'Phone Number', value: (_o = (_m = (_l = this.onboardingData) === null || _l === void 0 ? void 0 : _l.payload) === null || _m === void 0 ? void 0 : _m.business_details) === null || _o === void 0 ? void 0 : _o.phone }), h(DetailItem, { key: '527942346c408ec1716d408598024ef745d5b077', title: 'Address', value: ((_r = (_q = (_p = this.onboardingData) === null || _p === void 0 ? void 0 : _p.payload) === null || _q === void 0 ? void 0 : _q.business_details) === null || _r === void 0 ? void 0 : _r.legal) ? `${formatLegalAddress((_u = (_t = (_s = this.onboardingData) === null || _s === void 0 ? void 0 : _s.payload) === null || _t === void 0 ? void 0 : _t.business_details) === null || _u === void 0 ? void 0 : _u.legal)}` : '' })), h("div", { key: 'a65137886ea0d46a2f47c601fb6c940001c7f9fe', class: "col-12 col-md-6" }, h(DetailItem, { key: '54856424c068760d8e031ee3481c31cefb6ecba0', title: 'Business Type', value: (_x = (_w = (_v = this.onboardingData) === null || _v === void 0 ? void 0 : _v.payload) === null || _w === void 0 ? void 0 : _w.business_details) === null || _x === void 0 ? void 0 : _x.type })))))));
|
|
11
|
-
}
|
|
12
|
-
static get is() { return "subaccount-merchant-details"; }
|
|
13
|
-
static get properties() {
|
|
14
|
-
return {
|
|
15
|
-
"onboardingData": {
|
|
16
|
-
"type": "unknown",
|
|
17
|
-
"mutable": false,
|
|
18
|
-
"complexType": {
|
|
19
|
-
"original": "IOnboardingData",
|
|
20
|
-
"resolved": "IOnboardingData",
|
|
21
|
-
"references": {
|
|
22
|
-
"IOnboardingData": {
|
|
23
|
-
"location": "import",
|
|
24
|
-
"path": "../../../components",
|
|
25
|
-
"id": "src/components.d.ts::IOnboardingData"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"required": false,
|
|
30
|
-
"optional": false,
|
|
31
|
-
"docs": {
|
|
32
|
-
"tags": [],
|
|
33
|
-
"text": ""
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
import { DetailItem, DetailSectionTitle } from "../../details/utils";
|
|
3
|
-
export class SubaccountOwnersDetails {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.data = undefined;
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
return (h(Host, { key: '48465384d0e04a934511b135fa04bafcc9c69548' }, h("div", { key: '55999527f2fce4d46c762c3c4afc6350d4339266', class: 'p-2' }, h(DetailSectionTitle, { key: '6667c8dde51522572470d836003aeaebc1629e62', sectionTitle: 'Owners' }), h("div", { key: 'e2ff8aff9ee553405ebd207a57688d25c02a60bd', class: "d-table gap-2 w-100" }, h("div", { key: '679d193a098de29a34bab9d4d49d47764e85982b', class: "row gy-3" }, this.data && this.data.map((owner) => {
|
|
9
|
-
return (h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: 'Owner Name', value: owner.name }), h(DetailItem, { title: 'Owner Title', value: owner.title }), h(DetailItem, { title: 'Owner Email', value: owner.email }), h(DetailItem, { title: 'Owner Phone', value: owner.phone })));
|
|
10
|
-
}))))));
|
|
11
|
-
}
|
|
12
|
-
static get is() { return "subaccount-owners-details"; }
|
|
13
|
-
static get properties() {
|
|
14
|
-
return {
|
|
15
|
-
"data": {
|
|
16
|
-
"type": "unknown",
|
|
17
|
-
"mutable": false,
|
|
18
|
-
"complexType": {
|
|
19
|
-
"original": "SubAccountIdentity[]",
|
|
20
|
-
"resolved": "SubAccountIdentity[]",
|
|
21
|
-
"references": {
|
|
22
|
-
"SubAccountIdentity": {
|
|
23
|
-
"location": "import",
|
|
24
|
-
"path": "../../../components",
|
|
25
|
-
"id": "src/components.d.ts::SubAccountIdentity"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"required": false,
|
|
30
|
-
"optional": false,
|
|
31
|
-
"docs": {
|
|
32
|
-
"tags": [],
|
|
33
|
-
"text": ""
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
import { DetailItem, DetailSectionTitle } from "../../details/utils";
|
|
3
|
-
import { formatMediumDate } from "../../../utils/utils";
|
|
4
|
-
export class SubaccountRepresentativeDetails {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.data = undefined;
|
|
7
|
-
}
|
|
8
|
-
render() {
|
|
9
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
10
|
-
return (h(Host, { key: 'd93c6212dd229d62dbde9ddb735a25e1f1ee635c' }, h("div", { key: '965ef03cdf5c5d8f8fa0c8e7731edc50cdc06827', class: 'p-2' }, h(DetailSectionTitle, { key: '055830d555366b13796f832aaaf91ae586ecc2d7', sectionTitle: 'Representative' }), h("div", { key: '3575856f9ad54c9e210440a8ade920a0e0c3448d', class: "d-table gap-2 w-100" }, h("div", { key: '4c95cff1e152ce508b5dda0f63442c341f6b97b8', class: "row gy-3" }, h("div", { key: '1fa260e3e03572ebd139eeec8f0aa503be1a5f3e', class: "col-12 col-md-6" }, h(DetailItem, { key: '0d53d0c6fca3b2d67372ee8bbccd32350daf5955', title: "Name", value: (_a = this.data) === null || _a === void 0 ? void 0 : _a.name }), h(DetailItem, { key: '837898d37a06423a634a0429b402516a3923a416', title: "Date of Birth", value: formatMediumDate(new Date(Number((_b = this.data) === null || _b === void 0 ? void 0 : _b.dob_year), Number((_c = this.data) === null || _c === void 0 ? void 0 : _c.dob_month) - 1, Number((_d = this.data) === null || _d === void 0 ? void 0 : _d.dob_day))) }), h(DetailItem, { key: 'a776337dc1bf1a79b6447be601f830f80f492def', title: "Email", value: (_e = this.data) === null || _e === void 0 ? void 0 : _e.email }), h(DetailItem, { key: 'd2e1f5099926c0e61397b107e504ae0579dccb50', title: "Last 4 SSN Digits", value: (_f = this.data) === null || _f === void 0 ? void 0 : _f.ssn_last4 })), h("div", { key: 'd02f30b5b74bc76116d83641b7b5eb9fdd2c2070', class: "col-12 col-md-6" }, h(DetailItem, { key: 'dbee1dce09c05b7565d9d0c0a1d7e057839edea4', title: "Title", value: (_g = this.data) === null || _g === void 0 ? void 0 : _g.title }), h(DetailItem, { key: 'f82eb007f742d56c028431103863ef221e654494', title: "Phone", value: (_h = this.data) === null || _h === void 0 ? void 0 : _h.phone }), h(DetailItem, { key: '386417d8002fb31ff2dc94affbc12b60919d2310', title: "Representative Address", value: (_j = this.data) === null || _j === void 0 ? void 0 : _j.address_line1 })))))));
|
|
11
|
-
}
|
|
12
|
-
static get is() { return "subaccount-representative-details"; }
|
|
13
|
-
static get properties() {
|
|
14
|
-
return {
|
|
15
|
-
"data": {
|
|
16
|
-
"type": "unknown",
|
|
17
|
-
"mutable": false,
|
|
18
|
-
"complexType": {
|
|
19
|
-
"original": "SubAccountIdentity",
|
|
20
|
-
"resolved": "SubAccountIdentity",
|
|
21
|
-
"references": {
|
|
22
|
-
"SubAccountIdentity": {
|
|
23
|
-
"location": "import",
|
|
24
|
-
"path": "../../../api/SubAccount",
|
|
25
|
-
"id": "src/api/SubAccount.ts::SubAccountIdentity"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"required": false,
|
|
30
|
-
"optional": false,
|
|
31
|
-
"docs": {
|
|
32
|
-
"tags": [],
|
|
33
|
-
"text": ""
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
import { DetailItem, DetailSectionTitle } from "../../details/utils";
|
|
3
|
-
export class SubaccountTermsDetails {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.data = undefined;
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
var _a, _b, _c, _d;
|
|
9
|
-
return (h(Host, { key: 'aa7ffada2ee18ba7d62be5795c5cef560dd26184' }, h(DetailSectionTitle, { key: '122081285aefa52f40251c81529148af59d84175', sectionTitle: 'Terms and Conditions' }), h("div", { key: '74d0817d94cf1f08a58f5b03b28b97ec953fe661', class: "d-table gap-2 w-100" }, h("div", { key: 'ef5f8f0017ce75ea326cb9d9f6b73cc10071be69', class: "row gy-3" }, h("div", { key: '915af12c352ac4ec62fded7b49f897e30bb40b1d', class: "col-12 col-md-6" }, h(DetailItem, { key: 'c7541087fb9e724a679408af37f449749295ac13', title: "IP", value: (_a = this.data) === null || _a === void 0 ? void 0 : _a.ip }), h(DetailItem, { key: 'e6eadb4c1f58a4fbbc56cae87114cb2271305fe9', title: "Accepted?", value: (_c = (_b = this.data) === null || _b === void 0 ? void 0 : _b.accepted) === null || _c === void 0 ? void 0 : _c.toString() }), h(DetailItem, { key: '375dc86a8af2095ac977c45e13ac1a026a30b2b1', title: "User Agent", value: (_d = this.data) === null || _d === void 0 ? void 0 : _d.user_agent }))))));
|
|
10
|
-
}
|
|
11
|
-
static get is() { return "subaccount-terms-details"; }
|
|
12
|
-
static get properties() {
|
|
13
|
-
return {
|
|
14
|
-
"data": {
|
|
15
|
-
"type": "unknown",
|
|
16
|
-
"mutable": false,
|
|
17
|
-
"complexType": {
|
|
18
|
-
"original": "Terms",
|
|
19
|
-
"resolved": "Terms",
|
|
20
|
-
"references": {
|
|
21
|
-
"Terms": {
|
|
22
|
-
"location": "import",
|
|
23
|
-
"path": "../../../api/SubAccount",
|
|
24
|
-
"id": "src/api/SubAccount.ts::Terms"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"required": false,
|
|
29
|
-
"optional": false,
|
|
30
|
-
"docs": {
|
|
31
|
-
"tags": [],
|
|
32
|
-
"text": ""
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
import { SubAccount } from "../../api/SubAccount";
|
|
3
|
-
import { MapSubAccountStatusToBadge } from "../../utils/utils";
|
|
4
|
-
import { Api, pagingDefaults } from "../../api";
|
|
5
|
-
import { config } from "../../../config";
|
|
6
|
-
export class SubaccountsList {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.handleClickPrevious = (beforeCursor) => {
|
|
9
|
-
const newParams = Object.assign({}, this.params);
|
|
10
|
-
delete newParams.after_cursor;
|
|
11
|
-
this.params = (Object.assign(Object.assign({}, newParams), { before_cursor: beforeCursor }));
|
|
12
|
-
};
|
|
13
|
-
this.handleClickNext = (afterCursor) => {
|
|
14
|
-
const newParams = Object.assign({}, this.params);
|
|
15
|
-
delete newParams.before_cursor;
|
|
16
|
-
this.params = (Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor }));
|
|
17
|
-
};
|
|
18
|
-
this.accountId = undefined;
|
|
19
|
-
this.authToken = undefined;
|
|
20
|
-
this.subaccounts = [];
|
|
21
|
-
this.loading = true;
|
|
22
|
-
this.errorMessage = undefined;
|
|
23
|
-
this.paging = pagingDefaults;
|
|
24
|
-
this.params = undefined;
|
|
25
|
-
}
|
|
26
|
-
updateOnPropChange() {
|
|
27
|
-
this.fetchData();
|
|
28
|
-
}
|
|
29
|
-
connectedCallback() {
|
|
30
|
-
this.fetchData();
|
|
31
|
-
}
|
|
32
|
-
async fetchData() {
|
|
33
|
-
if (!this.accountId || !this.authToken) {
|
|
34
|
-
this.errorMessage = "Can not fetch any data without an AccountID and an AuthToken";
|
|
35
|
-
this.loading = false;
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
this.loading = true;
|
|
39
|
-
const api = Api({ authToken: this.authToken, apiOrigin: config.privateApiOrigin });
|
|
40
|
-
const endpoint = `account/${this.accountId}/seller_accounts`;
|
|
41
|
-
const response = await api.get(endpoint, this.params);
|
|
42
|
-
if (!response.error) {
|
|
43
|
-
this.paging = Object.assign(Object.assign({}, this.paging), response.page_info);
|
|
44
|
-
const data = response === null || response === void 0 ? void 0 : response.data.map(dataItem => new SubAccount(dataItem));
|
|
45
|
-
this.subaccounts = data;
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
this.errorMessage = typeof response.error === 'string' ? response.error : response.error.message;
|
|
49
|
-
}
|
|
50
|
-
this.loading = false;
|
|
51
|
-
}
|
|
52
|
-
render() {
|
|
53
|
-
return (h(Host, { key: '6e2998b090853a420c34facb9b9de8631964c5f3' }, h("justifi-table", { key: '10c02a8d0911b316d96c128dcfb2d488d75e7808', rowClickHandler: e => {
|
|
54
|
-
const clickSubAccountId = e.target.closest('tr').dataset.rowEntityId;
|
|
55
|
-
if (!clickSubAccountId) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
this.rowClicked.emit(this.subaccounts.find((subaccount) => subaccount.id === clickSubAccountId));
|
|
59
|
-
}, entityId: this.subaccounts.map((subaccount) => subaccount.id), columnData: [
|
|
60
|
-
['Created On', 'The date and time each sub account was created'],
|
|
61
|
-
['Name', 'The name provided for each sub account'],
|
|
62
|
-
['Account ', 'The unique live or test account ID for each sub account'],
|
|
63
|
-
['Card Rate ', 'The rate that determines the fees charged per payment, when paid by card'],
|
|
64
|
-
['ACH Rate ', 'The rate that determines the fees charged per payment, when paid by eCheck'],
|
|
65
|
-
['Status', 'The onboarding status of each sub account']
|
|
66
|
-
], rowData: this.subaccounts.map((subaccount) => ([
|
|
67
|
-
{
|
|
68
|
-
type: 'head',
|
|
69
|
-
value: `
|
|
70
|
-
<div class='fw-bold'>${subaccount.dateString}</div>
|
|
71
|
-
<div class='fw-bold'>${subaccount.timeString}</div>
|
|
72
|
-
`,
|
|
73
|
-
},
|
|
74
|
-
subaccount.name,
|
|
75
|
-
subaccount.id,
|
|
76
|
-
subaccount.cardRate,
|
|
77
|
-
subaccount.achRate,
|
|
78
|
-
{
|
|
79
|
-
type: 'inner',
|
|
80
|
-
value: MapSubAccountStatusToBadge(subaccount.status)
|
|
81
|
-
}
|
|
82
|
-
])), loading: this.loading, "error-message": this.errorMessage, params: this.params, paging: Object.assign(Object.assign({}, this.paging), { handleClickNext: this.handleClickNext, handleClickPrevious: this.handleClickPrevious }) })));
|
|
83
|
-
}
|
|
84
|
-
static get is() { return "justifi-subaccounts-list"; }
|
|
85
|
-
static get encapsulation() { return "shadow"; }
|
|
86
|
-
static get originalStyleUrls() {
|
|
87
|
-
return {
|
|
88
|
-
"$": ["subaccounts-list.css"]
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
static get styleUrls() {
|
|
92
|
-
return {
|
|
93
|
-
"$": ["subaccounts-list.css"]
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
static get properties() {
|
|
97
|
-
return {
|
|
98
|
-
"accountId": {
|
|
99
|
-
"type": "string",
|
|
100
|
-
"mutable": false,
|
|
101
|
-
"complexType": {
|
|
102
|
-
"original": "string",
|
|
103
|
-
"resolved": "string",
|
|
104
|
-
"references": {}
|
|
105
|
-
},
|
|
106
|
-
"required": false,
|
|
107
|
-
"optional": false,
|
|
108
|
-
"docs": {
|
|
109
|
-
"tags": [],
|
|
110
|
-
"text": ""
|
|
111
|
-
},
|
|
112
|
-
"attribute": "account-id",
|
|
113
|
-
"reflect": false
|
|
114
|
-
},
|
|
115
|
-
"authToken": {
|
|
116
|
-
"type": "string",
|
|
117
|
-
"mutable": false,
|
|
118
|
-
"complexType": {
|
|
119
|
-
"original": "string",
|
|
120
|
-
"resolved": "string",
|
|
121
|
-
"references": {}
|
|
122
|
-
},
|
|
123
|
-
"required": false,
|
|
124
|
-
"optional": false,
|
|
125
|
-
"docs": {
|
|
126
|
-
"tags": [],
|
|
127
|
-
"text": ""
|
|
128
|
-
},
|
|
129
|
-
"attribute": "auth-token",
|
|
130
|
-
"reflect": false
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
static get states() {
|
|
135
|
-
return {
|
|
136
|
-
"subaccounts": {},
|
|
137
|
-
"loading": {},
|
|
138
|
-
"errorMessage": {},
|
|
139
|
-
"paging": {},
|
|
140
|
-
"params": {}
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
static get events() {
|
|
144
|
-
return [{
|
|
145
|
-
"method": "rowClicked",
|
|
146
|
-
"name": "subaccount-row-clicked",
|
|
147
|
-
"bubbles": true,
|
|
148
|
-
"cancelable": true,
|
|
149
|
-
"composed": true,
|
|
150
|
-
"docs": {
|
|
151
|
-
"tags": [],
|
|
152
|
-
"text": ""
|
|
153
|
-
},
|
|
154
|
-
"complexType": {
|
|
155
|
-
"original": "SubAccount",
|
|
156
|
-
"resolved": "SubAccount",
|
|
157
|
-
"references": {
|
|
158
|
-
"SubAccount": {
|
|
159
|
-
"location": "import",
|
|
160
|
-
"path": "../../api/SubAccount",
|
|
161
|
-
"id": "src/api/SubAccount.ts::SubAccount"
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}];
|
|
166
|
-
}
|
|
167
|
-
static get watchers() {
|
|
168
|
-
return [{
|
|
169
|
-
"propName": "accountId",
|
|
170
|
-
"methodName": "updateOnPropChange"
|
|
171
|
-
}, {
|
|
172
|
-
"propName": "authToken",
|
|
173
|
-
"methodName": "updateOnPropChange"
|
|
174
|
-
}, {
|
|
175
|
-
"propName": "params",
|
|
176
|
-
"methodName": "updateOnPropChange"
|
|
177
|
-
}];
|
|
178
|
-
}
|
|
179
|
-
}
|