@justifi/webcomponents 4.7.5 → 4.8.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/Business-540a6feb.js +67 -0
- package/dist/cjs/BusinessFormEventTypes-863f48e9.js +42 -0
- package/dist/cjs/{Payout-7821eb61.js → Payout-44b49b2d.js} +2 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +5 -5
- package/dist/cjs/{business-form-schema-a2b87e77.js → business-form-schema-37e5381d.js} +17 -17
- package/dist/cjs/{form-control-datepart_2.cjs.entry.js → form-control-datepart_3.cjs.entry.js} +46 -3
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/{form-control-number_3.cjs.entry.js → form-control-select_2.cjs.entry.js} +1 -44
- package/dist/cjs/form-input-masks-e3bf2614.js +9 -0
- package/dist/cjs/{index-4286ac32.js → index-55950669.js} +31 -1
- package/dist/cjs/{index.esm-c08c2adc.js → index.esm-d25bd7bf.js} +0 -259
- package/dist/cjs/{justifi-additional-questions_6.cjs.entry.js → justifi-additional-questions_5.cjs.entry.js} +10 -280
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-business-form-stepped.cjs.entry.js +56 -49
- package/dist/cjs/justifi-business-form.cjs.entry.js +43 -36
- package/dist/cjs/justifi-business-list.cjs.entry.js +4 -51
- package/dist/cjs/justifi-business-owners.cjs.entry.js +78 -0
- package/dist/cjs/justifi-card-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +44 -43
- package/dist/cjs/justifi-payment-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +7 -5
- package/dist/cjs/justifi-payments-list.cjs.entry.js +47 -91
- package/dist/cjs/justifi-payout-details.cjs.entry.js +48 -46
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +47 -113
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-table_2.cjs.entry.js +33 -30
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/payment-details-core.cjs.entry.js +52 -0
- package/dist/cjs/payment.service-605896dc.js +20 -0
- package/dist/cjs/payments-list-core.cjs.entry.js +98 -0
- package/dist/cjs/payout-details-core.cjs.entry.js +52 -0
- package/dist/cjs/payout.service-b39f2739.js +21 -0
- package/dist/cjs/payouts-list-core.cjs.entry.js +121 -0
- package/dist/cjs/select-input_2.cjs.entry.js +1 -1
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +2 -2
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +2 -2
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +2 -2
- package/dist/cjs/{utils-a2ee48ca.js → utils-d126d17c.js} +5 -5
- package/dist/cjs/utils-f5d82f21.js +10 -0
- package/dist/cjs/webcomponents.cjs.js +2 -2
- package/dist/collection/api/Business.js +18 -3
- package/dist/collection/api/Payment.js +2 -1
- package/dist/collection/api/mockData/MockPayments.js +25 -0
- package/dist/collection/api/services/payment.service.js +13 -0
- package/dist/collection/api/services/payout.service.js +14 -0
- package/dist/collection/api/services/utils.js +6 -0
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +8 -8
- package/dist/collection/components/business-details/business-details.js +3 -3
- package/dist/collection/components/business-form/BusinessFormEventTypes.js +6 -0
- package/dist/collection/components/business-form/business-address/business-address-form-schema.js +1 -1
- package/dist/collection/components/business-form/business-form-schema.js +16 -16
- package/dist/collection/components/business-form/business-form-stepped.js +99 -57
- package/dist/collection/components/business-form/business-form.css +95 -0
- package/dist/collection/components/business-form/business-form.js +92 -32
- package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +7 -3
- package/dist/collection/components/business-form/business-owners/business-owners.js +6 -21
- package/dist/collection/components/business-form/business-representative/business-representative.js +1 -1
- package/dist/collection/components/business-form/helpers.js +21 -20
- package/dist/collection/components/business-form/legal-address-form/legal-address-form-schema.js +1 -1
- package/dist/collection/components/business-form/legal-address-form/legal-address-form.js +1 -2
- package/dist/collection/components/business-form/test/business-form.spec.js +5 -14
- package/dist/collection/components/details/utils.js +2 -2
- package/dist/collection/components/form/utils.js +2 -0
- package/dist/collection/components/pagination-menu/test/pagination-menu.spec.js +87 -0
- package/dist/collection/components/payment-details/get-payment-details.js +17 -0
- package/dist/collection/components/payment-details/payment-details-core.js +86 -0
- package/dist/collection/components/payment-details/payment-details.js +27 -52
- package/dist/collection/components/payment-details/test/get-payment-details.spec.js +64 -0
- package/dist/collection/components/payment-details/test/payment-details-core.spec.js +47 -0
- package/dist/collection/components/payment-details/test/payment-details.spec.js +31 -0
- package/dist/collection/components/payments-list/get-payments.js +20 -0
- package/dist/collection/components/payments-list/payments-list-core.js +158 -0
- package/dist/collection/components/payments-list/payments-list.js +27 -127
- package/dist/collection/components/payments-list/test/get-payments.spec.js +70 -0
- package/dist/collection/components/payments-list/test/payments-list-core.spec.js +100 -0
- package/dist/collection/components/payments-list/test/payments-list.spec.js +17 -21
- package/dist/collection/components/payout-details/get-payout-details.js +20 -0
- package/dist/collection/components/payout-details/payout-details-core.js +86 -0
- package/dist/collection/components/payout-details/payout-details.js +27 -78
- package/dist/collection/components/payout-details/test/get-payout-details.spec.js +55 -0
- package/dist/collection/components/payout-details/test/payout-details-core.spec.js +72 -0
- package/dist/collection/components/payout-details/test/payout-details.spec.js +13 -0
- package/dist/collection/components/payouts-list/get-payouts.js +20 -0
- package/dist/collection/components/payouts-list/payouts-list-core.js +181 -0
- package/dist/collection/components/payouts-list/payouts-list.js +26 -148
- package/dist/collection/components/payouts-list/test/get-payouts.spec.js +64 -0
- package/dist/collection/components/payouts-list/test/payouts-list-core.spec.js +105 -0
- package/dist/collection/components/payouts-list/test/payouts-list.spec.js +29 -0
- package/dist/collection/components/subaccounts-list/subaccounts-list.js +2 -2
- package/dist/collection/components/table/table.js +22 -29
- package/dist/collection/components/table/test/table.spec.js +47 -13
- package/dist/collection/components/table/utils.js +4 -0
- package/dist/collection/utils/{phone-masks.js → form-input-masks.js} +1 -0
- package/dist/docs.json +486 -317
- package/dist/esm/Business-1f5e9f6b.js +64 -0
- package/dist/esm/BusinessFormEventTypes-989960ba.js +39 -0
- package/dist/esm/{Payout-c42e3877.js → Payout-dc5f009c.js} +2 -1
- package/dist/esm/{SubAccount-b3ce8720.js → SubAccount-bd59f646.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +6 -6
- package/dist/esm/{business-form-schema-997c585c.js → business-form-schema-f8f554d1.js} +17 -17
- package/dist/esm/{form-control-datepart_2.entry.js → form-control-datepart_3.entry.js} +46 -4
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/{form-control-number_3.entry.js → form-control-select_2.entry.js} +2 -44
- package/dist/esm/form-input-masks-a8187c77.js +6 -0
- package/dist/esm/{index-ff8194f9.js → index-62b8aa8a.js} +31 -1
- package/dist/esm/{index.esm-8ae36d07.js → index.esm-22b47398.js} +1 -258
- package/dist/esm/{justifi-additional-questions_6.entry.js → justifi-additional-questions_5.entry.js} +10 -279
- package/dist/esm/justifi-bank-account-form.entry.js +1 -1
- package/dist/esm/justifi-billing-form_2.entry.js +2 -2
- package/dist/esm/justifi-business-details.entry.js +6 -6
- package/dist/esm/justifi-business-form-stepped.entry.js +56 -49
- package/dist/esm/justifi-business-form.entry.js +43 -36
- package/dist/esm/justifi-business-list.entry.js +4 -51
- package/dist/{module/business-owners.js → esm/justifi-business-owners.entry.js} +13 -55
- package/dist/esm/justifi-card-form.entry.js +1 -1
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
- package/dist/esm/justifi-payment-balance-transactions.entry.js +3 -3
- package/dist/esm/justifi-payment-details.entry.js +44 -43
- package/dist/esm/justifi-payment-form.entry.js +3 -3
- package/dist/esm/justifi-payment-method-form.entry.js +7 -5
- package/dist/esm/justifi-payments-list.entry.js +47 -91
- package/dist/esm/justifi-payout-details.entry.js +48 -46
- package/dist/esm/justifi-payouts-list.entry.js +47 -113
- package/dist/esm/justifi-proceeds-list.entry.js +3 -3
- package/dist/esm/justifi-refund-form.entry.js +3 -3
- package/dist/esm/justifi-subaccount-details.entry.js +5 -5
- package/dist/esm/justifi-subaccounts-list.entry.js +6 -6
- package/dist/esm/justifi-table_2.entry.js +33 -30
- package/dist/esm/loader.js +3 -3
- package/dist/esm/payment-details-core.entry.js +48 -0
- package/dist/esm/payment.service-bea02ccf.js +18 -0
- package/dist/esm/payments-list-core.entry.js +94 -0
- package/dist/{webcomponents/p-b2dc938f.entry.js → esm/payout-details-core.entry.js} +48 -1
- package/dist/esm/payout.service-92e56814.js +19 -0
- package/dist/esm/payouts-list-core.entry.js +117 -0
- package/dist/esm/select-input_2.entry.js +1 -1
- package/dist/esm/subaccount-account-details_4.entry.js +3 -3
- package/dist/esm/subaccount-bank-details.entry.js +2 -2
- package/dist/esm/subaccount-terms-details.entry.js +2 -2
- package/dist/esm/utils-546ca6aa.js +8 -0
- package/dist/esm/{utils-7c6bd149.js → utils-576874df.js} +5 -5
- package/dist/esm/{utils-26c7dd12.js → utils-dd428dba.js} +1 -1
- package/dist/esm/webcomponents.js +3 -3
- package/dist/module/Business.js +64 -0
- package/dist/module/BusinessFormEventTypes.js +39 -0
- package/dist/module/Payout.js +2 -1
- package/dist/module/additional-questions-details2.js +4 -4
- package/dist/module/business-generic-info.js +25 -27
- package/dist/module/business-representative.js +1 -1
- package/dist/module/form-input-masks.js +6 -0
- package/dist/module/index.esm.js +1 -258
- package/dist/module/justifi-business-details.js +3 -3
- package/dist/module/justifi-business-form-stepped.js +74 -72
- package/dist/module/justifi-business-form.js +62 -58
- package/dist/module/justifi-business-list.js +1 -48
- package/dist/module/justifi-business-owners.js +115 -1
- package/dist/module/justifi-payment-details.js +52 -48
- package/dist/module/justifi-payments-list.js +58 -102
- package/dist/module/justifi-payout-details.js +57 -52
- package/dist/module/justifi-payouts-list.js +59 -125
- package/dist/module/justifi-refund-form.js +1 -1
- package/dist/module/justifi-subaccounts-list.js +2 -2
- package/dist/module/legal-address-form.js +1 -202
- package/dist/module/payment-details-core.d.ts +11 -0
- package/dist/module/payment-details-core.js +6 -0
- package/dist/module/payment-details-core2.js +76 -0
- package/dist/module/payment-method-form.js +6 -4
- package/dist/module/payment.service.js +18 -0
- package/dist/module/payments-list-core.d.ts +11 -0
- package/dist/module/payments-list-core.js +6 -0
- package/dist/module/payments-list-core2.js +131 -0
- package/dist/module/payout-details-core.d.ts +11 -0
- package/dist/module/payout-details-core.js +6 -0
- package/dist/module/payout-details-core2.js +76 -0
- package/dist/module/payout.service.js +19 -0
- package/dist/module/payouts-list-core.d.ts +11 -0
- package/dist/module/payouts-list-core.js +6 -0
- package/dist/module/payouts-list-core2.js +153 -0
- package/dist/module/table.js +33 -30
- package/dist/module/utils.js +4 -4
- package/dist/module/utils3.js +8 -0
- package/dist/types/api/Business.d.ts +60 -37
- package/dist/types/api/Payment.d.ts +33 -1
- package/dist/types/api/services/payment.service.d.ts +9 -0
- package/dist/types/api/services/payout.service.d.ts +9 -0
- package/dist/types/api/services/utils.d.ts +1 -0
- package/dist/types/components/business-details/additional-questions-details/additional-questions-details.d.ts +2 -2
- package/dist/types/components/business-details/business-details.d.ts +2 -2
- package/dist/types/components/business-form/BusinessFormEventTypes.d.ts +5 -0
- package/dist/types/components/business-form/business-form-schema.d.ts +1 -19
- package/dist/types/components/business-form/business-form-stepped.d.ts +22 -4
- package/dist/types/components/business-form/business-form.d.ts +15 -1
- package/dist/types/components/business-form/business-generic-info/business-generic-info.d.ts +2 -0
- package/dist/types/components/business-form/business-owners/business-owners.d.ts +1 -1
- package/dist/types/components/business-form/helpers.d.ts +1 -1
- package/dist/types/components/details/utils.d.ts +4 -3
- package/dist/types/components/form/utils.d.ts +1 -0
- package/dist/types/components/payment-details/get-payment-details.d.ts +8 -0
- package/dist/types/components/payment-details/payment-details-core.d.ts +11 -0
- package/dist/types/components/payment-details/payment-details.d.ts +6 -6
- package/dist/types/components/payment-method-form/payment-method-responses.d.ts +10 -2
- package/dist/types/components/payments-list/get-payments.d.ts +9 -0
- package/dist/types/components/payments-list/payments-list-core.d.ts +17 -0
- package/dist/types/components/payments-list/payments-list.d.ts +4 -12
- package/dist/types/components/payout-details/get-payout-details.d.ts +8 -0
- package/dist/types/components/payout-details/payout-details-core.d.ts +11 -0
- package/dist/types/components/payout-details/payout-details.d.ts +5 -31
- package/dist/types/components/payouts-list/get-payouts.d.ts +9 -0
- package/dist/types/components/payouts-list/payouts-list-core.d.ts +18 -0
- package/dist/types/components/payouts-list/payouts-list.d.ts +4 -13
- package/dist/types/components/table/table.d.ts +3 -4
- package/dist/types/components/table/utils.d.ts +3 -0
- package/dist/types/components.d.ts +138 -138
- package/dist/types/utils/form-input-masks.d.ts +6 -0
- package/dist/webcomponents/p-081cf5f6.entry.js +1 -0
- package/dist/webcomponents/{p-04817850.entry.js → p-0a0cf2e6.entry.js} +1 -1
- package/dist/webcomponents/p-0b9146cd.entry.js +1 -0
- package/dist/webcomponents/p-112acd3c.entry.js +1 -0
- package/dist/webcomponents/p-1555e6b1.js +1 -0
- package/dist/webcomponents/{p-377303af.entry.js → p-16f41fd0.entry.js} +1 -1
- package/dist/webcomponents/p-17715325.js +1 -0
- package/dist/webcomponents/p-19c5ddf1.entry.js +1 -0
- package/dist/webcomponents/p-1b6ff0d3.entry.js +1 -0
- package/dist/webcomponents/p-1cb65d15.entry.js +1 -0
- package/dist/webcomponents/{p-8302a5e2.entry.js → p-2e318b6a.entry.js} +1 -1
- package/dist/webcomponents/p-34de1c5d.entry.js +1 -0
- package/dist/webcomponents/p-36618b59.entry.js +1 -0
- package/dist/webcomponents/p-3a4d4869.entry.js +1 -0
- package/dist/webcomponents/p-3cb0b96d.js +1 -0
- package/dist/webcomponents/p-4ba2c711.entry.js +1 -0
- package/dist/webcomponents/p-4c01df65.entry.js +1 -0
- package/dist/webcomponents/p-4f14df36.js +2 -0
- package/dist/webcomponents/p-4fa27a28.entry.js +1 -0
- package/dist/webcomponents/{p-3bef762a.js → p-50730e69.js} +1 -1
- package/dist/webcomponents/{p-d84cd3a5.entry.js → p-57aab065.entry.js} +1 -1
- package/dist/webcomponents/p-57e592ac.entry.js +1 -0
- package/dist/webcomponents/p-5e142186.entry.js +1 -0
- package/dist/webcomponents/{p-57efe345.entry.js → p-5f8b9f64.entry.js} +1 -1
- package/dist/webcomponents/p-663bfe87.js +1 -0
- package/dist/webcomponents/p-6ab67031.entry.js +1 -0
- package/dist/webcomponents/p-6ed680e9.js +1 -0
- package/dist/webcomponents/{p-cf656598.entry.js → p-731cb109.entry.js} +1 -1
- package/dist/webcomponents/{p-c8916484.entry.js → p-7c0f91fa.entry.js} +1 -1
- package/dist/webcomponents/{p-0f5206f0.entry.js → p-7dd83492.entry.js} +1 -1
- package/dist/webcomponents/p-810b72b5.js +1 -0
- package/dist/webcomponents/p-876c7257.entry.js +1 -0
- package/dist/webcomponents/p-88027949.js +1 -0
- package/dist/webcomponents/{p-dd4e8fa1.entry.js → p-896a9ddb.entry.js} +1 -1
- package/dist/webcomponents/{p-22c2a11e.entry.js → p-8a90b976.entry.js} +1 -1
- package/dist/webcomponents/p-9b99370e.js +1 -0
- package/dist/webcomponents/p-9cb3ff78.entry.js +1 -0
- package/dist/webcomponents/p-ade12f56.js +1 -0
- package/dist/webcomponents/{p-0a351e24.entry.js → p-b5aba473.entry.js} +1 -1
- package/dist/webcomponents/p-b8a8b551.js +1 -0
- package/dist/webcomponents/{p-439a79c7.entry.js → p-bd099662.entry.js} +1 -1
- package/dist/webcomponents/{p-cb5352a3.entry.js → p-c0f882ce.entry.js} +1 -1
- package/dist/webcomponents/p-d66a6057.entry.js +1 -0
- package/dist/webcomponents/{p-650eb614.entry.js → p-d71ce1cd.entry.js} +1 -1
- package/dist/webcomponents/{p-33e74da7.entry.js → p-ec4f27e7.entry.js} +1 -1
- package/dist/webcomponents/{p-9a6e4749.js → p-f0c535ed.js} +1 -1
- package/dist/webcomponents/{p-0ad353cc.entry.js → p-f7a3fd12.entry.js} +1 -1
- package/dist/webcomponents/{p-68427454.entry.js → p-f9183f12.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +6 -4
- package/readme.md +1 -1
- package/dist/cjs/helpers-b254d050.js +0 -26
- package/dist/esm/helpers-d8a6a0f1.js +0 -24
- package/dist/module/helpers.js +0 -24
- package/dist/module/phone-masks.js +0 -5
- package/dist/types/utils/phone-masks.d.ts +0 -3
- package/dist/webcomponents/p-173fb8ef.entry.js +0 -1
- package/dist/webcomponents/p-1e2a98bf.js +0 -1
- package/dist/webcomponents/p-210677e3.js +0 -1
- package/dist/webcomponents/p-2cab231e.entry.js +0 -1
- package/dist/webcomponents/p-2ea68b03.entry.js +0 -1
- package/dist/webcomponents/p-34430db2.entry.js +0 -1
- package/dist/webcomponents/p-42bc8e53.entry.js +0 -1
- package/dist/webcomponents/p-59ecc2d7.entry.js +0 -1
- package/dist/webcomponents/p-71679a41.js +0 -1
- package/dist/webcomponents/p-78baff54.js +0 -1
- package/dist/webcomponents/p-7d922421.entry.js +0 -1
- package/dist/webcomponents/p-862f38cc.entry.js +0 -1
- package/dist/webcomponents/p-bedada09.js +0 -1
- package/dist/webcomponents/p-c8099443.entry.js +0 -1
- package/dist/webcomponents/p-da00d9bf.js +0 -2
- package/dist/webcomponents/p-df8f6a0f.entry.js +0 -1
- package/dist/webcomponents/p-e8f41c84.entry.js +0 -1
- package/dist/webcomponents/p-e9589e45.entry.js +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-55950669.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
8
|
Stencil Client Patch Browser v4.10.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -17,7 +17,7 @@ const patchBrowser = () => {
|
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
patchBrowser().then(options => {
|
|
20
|
-
return index.bootstrapLazy([["justifi-business-form.cjs",[[0,"justifi-business-form",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"isLoading":[32]}]]],["justifi-business-form-stepped.cjs",[[0,"justifi-business-form-stepped",{"authToken":[1,"auth-token"],"
|
|
20
|
+
return index.bootstrapLazy([["justifi-business-form.cjs",[[0,"justifi-business-form",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"hideErrors":[4,"hide-errors"],"isLoading":[32],"serverError":[32],"errorMessage":[32]}]]],["justifi-business-form-stepped.cjs",[[0,"justifi-business-form-stepped",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"testMode":[4,"test-mode"],"hideErrors":[4,"hide-errors"],"isLoading":[32],"currentStep":[32],"totalSteps":[32],"serverError":[32],"errorMessage":[32]}]]],["justifi-business-details.cjs",[[1,"justifi-business-details",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"business":[32],"renderState":[32],"errorMessage":[32]}]]],["justifi-payment-form.cjs",[[1,"justifi-payment-form",{"bankAccount":[4,"bank-account"],"card":[4],"email":[1],"iframeOrigin":[1,"iframe-origin"],"clientId":[1,"client-id"],"accountId":[1,"account-id"],"submitButtonText":[1,"submit-button-text"],"submitButtonEnabled":[32],"hasLoadedFonts":[32],"isLoading":[32],"selectedPaymentMethodType":[32],"allowedPaymentMethodTypes":[32],"fillBillingForm":[64],"enableSubmitButton":[64],"loadFontsOnParent":[64]},[[0,"paymentMethodSelected","paymentMethodSelectedHandler"]]]]],["justifi-subaccount-details.cjs",[[1,"justifi-subaccount-details",{"accountId":[1,"account-id"],"subaccountId":[1,"subaccount-id"],"authToken":[1,"auth-token"],"onboardingData":[32],"subaccount":[32],"loading":[32],"errorMessage":[32]},null,{"subaccountId":["updateOnPropChange"],"authToken":["updateOnPropChange"]}]]],["justifi-business-owners.cjs",[[0,"justifi-business-owners",{"formController":[16],"errors":[32],"owners":[32]}]]],["justifi-payments-list.cjs",[[1,"justifi-payments-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"getPayments":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["justifi-payouts-list.cjs",[[1,"justifi-payouts-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"getPayouts":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["justifi-business-list.cjs",[[1,"justifi-business-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"businesses":[32],"loading":[32],"errorMessage":[32],"paging":[32],"params":[32]},null,{"accountId":["updateOnPropChange"],"authToken":["updateOnPropChange"],"params":["updateOnPropChange"]}]]],["justifi-payment-balance-transactions.cjs",[[1,"justifi-payment-balance-transactions",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"paymentId":[1,"payment-id"],"balanceTransactions":[32],"loading":[32],"errorMessage":[32],"paging":[32],"params":[32]},null,{"params":["updateOnPropChange"]}]]],["justifi-payment-details.cjs",[[1,"justifi-payment-details",{"paymentId":[1,"payment-id"],"authToken":[1,"auth-token"],"getPaymentDetails":[32],"errorMessage":[32]},null,{"paymentId":["propChanged"],"authToken":["propChanged"]}]]],["justifi-payout-details.cjs",[[1,"justifi-payout-details",{"payoutId":[1,"payout-id"],"authToken":[1,"auth-token"],"getPayout":[32],"errorMessage":[32]},null,{"payoutId":["propChanged"],"authToken":["propChanged"]}]]],["justifi-proceeds-list.cjs",[[1,"justifi-proceeds-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"proceeds":[32],"loading":[32],"errorMessage":[32],"paging":[32],"params":[32]},null,{"accountId":["updateOnPropChange"],"authToken":["updateOnPropChange"],"params":["updateOnPropChange"]}]]],["justifi-refund-form.cjs",[[1,"justifi-refund-form",{"authToken":[1,"auth-token"],"paymentId":[1,"payment-id"],"amount":[2],"submitButtonText":[1,"submit-button-text"],"withButton":[4,"with-button"],"refundInfoText":[1,"refund-info-text"],"errors":[32],"isSubmitting":[32]}]]],["justifi-subaccounts-list.cjs",[[1,"justifi-subaccounts-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"subaccounts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"params":[32]},null,{"accountId":["updateOnPropChange"],"authToken":["updateOnPropChange"],"params":["updateOnPropChange"]}]]],["justifi-bank-account-form.cjs",[[0,"justifi-bank-account-form",{"validationMode":[1025,"validation-mode"],"iframeOrigin":[1025,"iframe-origin"],"internalStyleOverrides":[32],"tokenize":[64],"validate":[64],"resize":[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormTokenized","tokenizeHandler"],[0,"paymentMethodFormValidated","validateHandler"]]]]],["justifi-card-form.cjs",[[0,"justifi-card-form",{"validationMode":[1025,"validation-mode"],"iframeOrigin":[1025,"iframe-origin"],"singleLine":[4,"single-line"],"internalStyleOverrides":[32],"tokenize":[64],"validate":[64],"resize":[64]},[[0,"paymentMethodFormReady","readyHandler"],[0,"paymentMethodFormTokenized","tokenizeHandler"],[0,"paymentMethodFormValidated","validateHandler"]]]]],["justifi-gross-payment-chart.cjs",[[1,"justifi-gross-payment-chart",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"data":[32],"total":[32],"dates":[32],"endDate":[32],"loading":[32],"errorMessage":[32]},null,{"accountId":["updateOnPropChange"],"authToken":["updateOnPropChange"]}]]],["subaccount-bank-details.cjs",[[1,"subaccount-bank-details",{"data":[16]}]]],["subaccount-terms-details.cjs",[[1,"subaccount-terms-details",{"data":[16]}]]],["payments-list-core.cjs",[[0,"payments-list-core",{"getPayments":[16],"payments":[32],"loading":[32],"errorMessage":[32],"paging":[32],"params":[32]},null,{"params":["updateOnPropChange"],"getPayments":["updateOnPropChange"]}]]],["payouts-list-core.cjs",[[0,"payouts-list-core",{"getPayouts":[16],"payouts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"params":[32]},null,{"params":["updateOnPropChange"],"getPayouts":["updateOnPropChange"]}]]],["payment-details-core.cjs",[[0,"payment-details-core",{"getPaymentDetails":[16],"payment":[32],"loading":[32],"errorMessage":[32]},null,{"getPaymentDetails":["updateOnPropChange"]}]]],["payout-details-core.cjs",[[0,"payout-details-core",{"getPayout":[16],"payout":[32],"loading":[32],"errorMessage":[32]},null,{"getPayout":["getPayoutWatcher"]}]]],["justifi-billing-form_2.cjs",[[1,"justifi-billing-form",{"legend":[1025],"billingFields":[32],"billingFieldsErrors":[32],"fill":[64],"validate":[64],"getValues":[64]},[[0,"fieldReceivedInput","setFormValue"]]],[1,"justifi-payment-method-selector",{"paymentMethodTypes":[16],"selectedPaymentMethodType":[1,"selected-payment-method-type"]}]]],["justifi-payment-method-form.cjs",[[0,"justifi-payment-method-form",{"paymentMethodFormType":[1,"payment-method-form-type"],"paymentMethodFormValidationMode":[1025,"payment-method-form-validation-mode"],"iframeOrigin":[1,"iframe-origin"],"singleLine":[4,"single-line"],"resize":[64],"tokenize":[64],"validate":[64]}]]],["subaccount-account-details_4.cjs",[[1,"subaccount-account-details",{"subaccount":[16],"onboardingData":[16]}],[1,"subaccount-merchant-details",{"onboardingData":[16]}],[1,"subaccount-owners-details",{"data":[16]}],[1,"subaccount-representative-details",{"data":[16]}]]],["select-input_2.cjs",[[1,"select-input",{"name":[1],"label":[1],"defaultValue":[1,"default-value"],"error":[1],"options":[16],"internalValue":[32]}],[1,"text-input",{"name":[1],"label":[1],"defaultValue":[1,"default-value"],"error":[1],"internalValue":[32]}]]],["form-control-monetary.cjs",[[1,"form-control-monetary",{"label":[1],"name":[8],"error":[1],"defaultValue":[1,"default-value"],"inputHandler":[16]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["additional-questions-details_5.cjs",[[1,"additional-questions-details",{"additionalQuestions":[16]}],[1,"generic-info-details",{"business":[16]}],[1,"legal-address-details",{"legalAddress":[16]}],[1,"owner-details",{"owners":[16]}],[1,"representative-details",{"representative":[16]}]]],["justifi-details.cjs",[[1,"justifi-details",{"errorMessage":[1,"error-message"]}]]],["form-control-select_2.cjs",[[1,"form-control-select",{"label":[1],"name":[8],"error":[1],"defaultValue":[1,"default-value"],"inputHandler":[16],"options":[16],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}],[1,"form-control-text",{"label":[1],"name":[8],"error":[1],"defaultValue":[1,"default-value"],"disabled":[4],"inputHandler":[16],"input":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["form-control-datepart_3.cjs",[[1,"form-control-datepart",{"label":[1],"name":[1],"error":[1],"defaultValue":[1,"default-value"],"type":[1],"inputHandler":[16],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}],[1,"form-control-number-masked",{"label":[1],"name":[8],"error":[1],"defaultValue":[1,"default-value"],"inputHandler":[16],"mask":[1],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}],[1,"form-control-number",{"label":[1],"name":[8],"error":[1],"defaultValue":[1,"default-value"],"inputHandler":[16],"disabled":[4],"input":[32]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["justifi-additional-questions_5.cjs",[[0,"justifi-business-representative",{"formController":[16],"errors":[32],"representative":[32]}],[0,"justifi-business-generic-info",{"formController":[16],"errors":[32],"genericInfo":[32]}],[0,"justifi-legal-address-form",{"formController":[16],"errors":[32],"legal_address":[32]}],[0,"justifi-additional-questions",{"formController":[16],"errors":[32],"additional_questions":[32]}],[1,"justifi-business-address-form",{"onFormUpdate":[16],"errors":[8],"defaultValues":[8,"default-values"],"address":[32]},null,{"address":["handleAddressChange"]}]]],["justifi-table_2.cjs",[[1,"justifi-table",{"loading":[4],"errorMessage":[1,"error-message"],"rowData":[16],"columnData":[16],"paging":[16],"params":[8],"entityId":[16],"rowClickHandler":[16]}],[1,"pagination-menu",{"paging":[16],"params":[16]}]]]], options);
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
exports.setNonce = index.setNonce;
|
|
@@ -21,6 +21,19 @@ export var BusinessType;
|
|
|
21
21
|
BusinessType["non_profit"] = "non_profit";
|
|
22
22
|
BusinessType["government_entity"] = "government_entity";
|
|
23
23
|
})(BusinessType || (BusinessType = {}));
|
|
24
|
+
export class CoreBusinessInfo {
|
|
25
|
+
constructor(coreBusinessInfo) {
|
|
26
|
+
this.business_structure = coreBusinessInfo.business_structure;
|
|
27
|
+
this.business_type = coreBusinessInfo.business_type;
|
|
28
|
+
this.legal_name = coreBusinessInfo.legal_name;
|
|
29
|
+
this.doing_business_as = coreBusinessInfo.doing_business_as;
|
|
30
|
+
this.industry = coreBusinessInfo.industry;
|
|
31
|
+
this.tax_id = coreBusinessInfo.tax_id;
|
|
32
|
+
this.website_url = coreBusinessInfo.website_url;
|
|
33
|
+
this.email = coreBusinessInfo.email;
|
|
34
|
+
this.phone = coreBusinessInfo.phone;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
24
37
|
export class Business {
|
|
25
38
|
constructor(business) {
|
|
26
39
|
this.business_structure = business.business_structure;
|
|
@@ -32,16 +45,18 @@ export class Business {
|
|
|
32
45
|
this.email = business.email;
|
|
33
46
|
this.id = business.id;
|
|
34
47
|
this.industry = business.industry;
|
|
35
|
-
this.legal_address = business.legal_address;
|
|
36
48
|
this.legal_name = business.legal_name;
|
|
37
49
|
this.metadata = business.metadata;
|
|
38
|
-
this.owners = business.owners;
|
|
39
50
|
this.phone = business.phone;
|
|
40
51
|
this.platform_account_id = business.platform_account_id;
|
|
41
|
-
this.representative = business.representative;
|
|
42
52
|
this.tax_id = business.tax_id;
|
|
43
53
|
this.updated_at = business.updated_at;
|
|
44
54
|
this.website_url = business.website_url;
|
|
45
55
|
this.product_categories = business.product_categories;
|
|
56
|
+
// Form sections
|
|
57
|
+
this.legal_address = business.legal_address || { country: 'USA' };
|
|
58
|
+
this.representative = business.representative || {};
|
|
59
|
+
this.additional_questions = business.additional_questions || {};
|
|
60
|
+
this.owners = business.owners;
|
|
46
61
|
}
|
|
47
62
|
}
|
|
@@ -11,6 +11,7 @@ export var PaymentMethodTypes;
|
|
|
11
11
|
export var PaymentStatuses;
|
|
12
12
|
(function (PaymentStatuses) {
|
|
13
13
|
PaymentStatuses["pending"] = "pending";
|
|
14
|
+
PaymentStatuses["automatic"] = "automatic";
|
|
14
15
|
PaymentStatuses["authorized"] = "authorized";
|
|
15
16
|
PaymentStatuses["succeeded"] = "succeeded";
|
|
16
17
|
PaymentStatuses["failed"] = "failed";
|
|
@@ -100,7 +101,7 @@ export class Payment {
|
|
|
100
101
|
this.updated_at = payment.updated_at;
|
|
101
102
|
}
|
|
102
103
|
get disputedStatus() {
|
|
103
|
-
const lost = this.disputes.some(dispute => dispute.status === PaymentDisputedStatuses.lost);
|
|
104
|
+
const lost = this.disputes.some((dispute) => dispute.status === PaymentDisputedStatuses.lost);
|
|
104
105
|
// if a dispute is 'won', we don't show a dispute status, just general status
|
|
105
106
|
if (!this.disputed) {
|
|
106
107
|
return null;
|
|
@@ -53,6 +53,11 @@ const mockPayments = [
|
|
|
53
53
|
refunded: false,
|
|
54
54
|
status: PaymentStatuses.succeeded,
|
|
55
55
|
updated_at: '2022-01-10T15:29:58.940Z',
|
|
56
|
+
financial_transaction_id: null,
|
|
57
|
+
returned: null,
|
|
58
|
+
application_fee: null,
|
|
59
|
+
refunds: [],
|
|
60
|
+
transaction_hold: null,
|
|
56
61
|
}),
|
|
57
62
|
// payment 1: fully refunded
|
|
58
63
|
new Payment({
|
|
@@ -90,6 +95,11 @@ const mockPayments = [
|
|
|
90
95
|
refunded: true,
|
|
91
96
|
status: PaymentStatuses.fully_refunded,
|
|
92
97
|
updated_at: '2021-01-10T15:29:58.940Z',
|
|
98
|
+
financial_transaction_id: null,
|
|
99
|
+
returned: null,
|
|
100
|
+
application_fee: null,
|
|
101
|
+
refunds: [],
|
|
102
|
+
transaction_hold: null,
|
|
93
103
|
}),
|
|
94
104
|
// payment 2: partially refunded
|
|
95
105
|
new Payment({
|
|
@@ -127,6 +137,11 @@ const mockPayments = [
|
|
|
127
137
|
refunded: true,
|
|
128
138
|
status: PaymentStatuses.partially_refunded,
|
|
129
139
|
updated_at: '2022-01-10T15:29:58.940Z',
|
|
140
|
+
financial_transaction_id: null,
|
|
141
|
+
returned: null,
|
|
142
|
+
application_fee: null,
|
|
143
|
+
refunds: [],
|
|
144
|
+
transaction_hold: null,
|
|
130
145
|
}),
|
|
131
146
|
// payment 3: disputed
|
|
132
147
|
new Payment({
|
|
@@ -176,6 +191,11 @@ const mockPayments = [
|
|
|
176
191
|
refunded: false,
|
|
177
192
|
status: PaymentStatuses.disputed,
|
|
178
193
|
updated_at: '2021-09-10T15:29:58.940Z',
|
|
194
|
+
financial_transaction_id: null,
|
|
195
|
+
returned: null,
|
|
196
|
+
application_fee: null,
|
|
197
|
+
refunds: [],
|
|
198
|
+
transaction_hold: null,
|
|
179
199
|
}),
|
|
180
200
|
// payment 4: failed
|
|
181
201
|
new Payment({
|
|
@@ -213,6 +233,11 @@ const mockPayments = [
|
|
|
213
233
|
refunded: false,
|
|
214
234
|
status: PaymentStatuses.failed,
|
|
215
235
|
updated_at: '2022-01-18T12:54:44.822Z',
|
|
236
|
+
financial_transaction_id: null,
|
|
237
|
+
returned: null,
|
|
238
|
+
application_fee: null,
|
|
239
|
+
refunds: [],
|
|
240
|
+
transaction_hold: null,
|
|
216
241
|
}),
|
|
217
242
|
];
|
|
218
243
|
export default mockPayments;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Api } from "..";
|
|
2
|
+
import { config } from "../../../config";
|
|
3
|
+
export class PaymentService {
|
|
4
|
+
async fetchPayments(accountId, authToken, params) {
|
|
5
|
+
const api = Api(authToken, config.proxyApiOrigin);
|
|
6
|
+
const endpoint = `account/${accountId}/payments`;
|
|
7
|
+
return api.get(endpoint, params);
|
|
8
|
+
}
|
|
9
|
+
async fetchPayment(paymentId, authToken) {
|
|
10
|
+
const endpoint = `payments/${paymentId}`;
|
|
11
|
+
return Api(authToken, config.proxyApiOrigin).get(endpoint);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Api } from "..";
|
|
2
|
+
import { config } from "../../../config";
|
|
3
|
+
export class PayoutService {
|
|
4
|
+
async fetchPayouts(accountId, authToken, params) {
|
|
5
|
+
const api = Api(authToken, config.proxyApiOrigin);
|
|
6
|
+
const endpoint = `account/${accountId}/payouts`;
|
|
7
|
+
return api.get(endpoint, params);
|
|
8
|
+
}
|
|
9
|
+
async fetchPayout(payoutId, authToken) {
|
|
10
|
+
const api = Api(authToken, config.proxyApiOrigin);
|
|
11
|
+
const endpoint = `payouts/${payoutId}`;
|
|
12
|
+
return api.get(endpoint);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -30,11 +30,15 @@
|
|
|
30
30
|
"components/form/form-control-text.js",
|
|
31
31
|
"components/gross-payment-chart/gross-payment-chart.js",
|
|
32
32
|
"components/payment-balance-transactions/payment-balance-transactions.js",
|
|
33
|
+
"components/payment-details/payment-details-core.js",
|
|
33
34
|
"components/payment-details/payment-details.js",
|
|
34
35
|
"components/payment-form/payment-form.js",
|
|
35
36
|
"components/payment-form/payment-method-selector.js",
|
|
37
|
+
"components/payments-list/payments-list-core.js",
|
|
36
38
|
"components/payments-list/payments-list.js",
|
|
39
|
+
"components/payout-details/payout-details-core.js",
|
|
37
40
|
"components/payout-details/payout-details.js",
|
|
41
|
+
"components/payouts-list/payouts-list-core.js",
|
|
38
42
|
"components/payouts-list/payouts-list.js",
|
|
39
43
|
"components/proceeds-list/proceeds-list.js",
|
|
40
44
|
"components/refund-form/refund-form.js",
|
|
@@ -10,11 +10,11 @@ import { DetailSection, DetailItem } from "../../details/utils";
|
|
|
10
10
|
*/
|
|
11
11
|
export class AdditionalQuestionsDetails {
|
|
12
12
|
constructor() {
|
|
13
|
-
this.
|
|
13
|
+
this.additionalQuestions = undefined;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
var _a, _b, _c, _d
|
|
17
|
-
return (h(Host, null, h(DetailSection, { sectionTitle: "Additional Questions" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Business Revenue", value: (
|
|
16
|
+
var _a, _b, _c, _d;
|
|
17
|
+
return (h(Host, null, h(DetailSection, { sectionTitle: "Additional Questions" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Business Revenue", value: (_a = this.additionalQuestions.business_revenue) === null || _a === void 0 ? void 0 : _a.toString() }), h(DetailItem, { title: "Business Payment Volume", value: (_b = this.additionalQuestions.business_payment_volume) === null || _b === void 0 ? void 0 : _b.toString() })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Business Dispute Volume", value: (_c = this.additionalQuestions.business_dispute_volume) === null || _c === void 0 ? void 0 : _c.toString() }), h(DetailItem, { title: "Business Receivable Volume", value: (_d = this.additionalQuestions.business_receivable_volume) === null || _d === void 0 ? void 0 : _d.toString() }))))));
|
|
18
18
|
}
|
|
19
19
|
static get is() { return "additional-questions-details"; }
|
|
20
20
|
static get encapsulation() { return "shadow"; }
|
|
@@ -30,17 +30,17 @@ export class AdditionalQuestionsDetails {
|
|
|
30
30
|
}
|
|
31
31
|
static get properties() {
|
|
32
32
|
return {
|
|
33
|
-
"
|
|
33
|
+
"additionalQuestions": {
|
|
34
34
|
"type": "unknown",
|
|
35
35
|
"mutable": false,
|
|
36
36
|
"complexType": {
|
|
37
|
-
"original": "
|
|
38
|
-
"resolved": "
|
|
37
|
+
"original": "AdditionalQuestions",
|
|
38
|
+
"resolved": "AdditionalQuestions",
|
|
39
39
|
"references": {
|
|
40
|
-
"
|
|
40
|
+
"AdditionalQuestions": {
|
|
41
41
|
"location": "import",
|
|
42
42
|
"path": "../../../api/Business",
|
|
43
|
-
"id": "src/api/Business.ts::
|
|
43
|
+
"id": "src/api/Business.ts::AdditionalQuestions"
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
},
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { Business } from "../../api/Business";
|
|
2
3
|
import { Api } from "../../api";
|
|
3
4
|
import { ErrorState, LoadingState } from "../details/utils";
|
|
4
5
|
import { config } from "../../../config";
|
|
@@ -49,7 +50,7 @@ export class BusinessDetails {
|
|
|
49
50
|
this.renderState = RENDER_STATES.ERROR;
|
|
50
51
|
return;
|
|
51
52
|
}
|
|
52
|
-
this.business = response.data;
|
|
53
|
+
this.business = new Business(response.data);
|
|
53
54
|
this.renderState = RENDER_STATES.READY;
|
|
54
55
|
}
|
|
55
56
|
catch (error) {
|
|
@@ -62,14 +63,13 @@ export class BusinessDetails {
|
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
65
|
render() {
|
|
65
|
-
var _a, _b, _c;
|
|
66
66
|
if (this.renderState === RENDER_STATES.LOADING) {
|
|
67
67
|
return h(Host, null, LoadingState);
|
|
68
68
|
}
|
|
69
69
|
if (this.renderState === RENDER_STATES.ERROR) {
|
|
70
70
|
return h(Host, null, ErrorState(this.errorMessage));
|
|
71
71
|
}
|
|
72
|
-
return (h(Host, null, h("generic-info-details", { business: this.business }), h("legal-address-details", { legalAddress:
|
|
72
|
+
return (h(Host, null, h("generic-info-details", { business: this.business }), h("legal-address-details", { legalAddress: this.business.legal_address }), h("representative-details", { representative: this.business.representative }), h("owner-details", { owners: this.business.owners }), h("additional-questions-details", { additionalQuestions: this.business.additional_questions })));
|
|
73
73
|
}
|
|
74
74
|
static get is() { return "justifi-business-details"; }
|
|
75
75
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/business-form/business-address/business-address-form-schema.js
CHANGED
|
@@ -2,7 +2,7 @@ import { object, string } from "yup";
|
|
|
2
2
|
export const RegExZip = /^\d{5}/;
|
|
3
3
|
const BusinessAddressFormSchema = object({
|
|
4
4
|
line1: string().required('Enter street address'),
|
|
5
|
-
line2: string(),
|
|
5
|
+
line2: string().nullable(),
|
|
6
6
|
city: string().required('Enter city'),
|
|
7
7
|
state: string().required('Choose state'),
|
|
8
8
|
postal_code: string()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { object, string } from "yup";
|
|
2
2
|
import legalAddressSchema from "./legal-address-form/legal-address-form-schema";
|
|
3
3
|
export const RegExZip = /^\d{5}/;
|
|
4
4
|
export class Business {
|
|
@@ -135,25 +135,25 @@ const representativeSchema = object({
|
|
|
135
135
|
identification_number: string(),
|
|
136
136
|
address: addressSchema,
|
|
137
137
|
});
|
|
138
|
-
const ownerSchema = object({
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
});
|
|
138
|
+
// const ownerSchema = object({
|
|
139
|
+
// name: string().required('Enter owner name'),
|
|
140
|
+
// title: string().required('Enter owner title'),
|
|
141
|
+
// email: string()
|
|
142
|
+
// .email('Enter valid owner email')
|
|
143
|
+
// .required('Enter owner email'),
|
|
144
|
+
// phone: string().required('Enter owner phone number'),
|
|
145
|
+
// dob_day: string().required('Enter owner birth day'),
|
|
146
|
+
// dob_month: string().required('Enter owner birth month'),
|
|
147
|
+
// dob_year: string().required('Enter owner birth year'),
|
|
148
|
+
// identification_number: string(),
|
|
149
|
+
// is_owner: boolean(),
|
|
150
|
+
// address: addressSchema,
|
|
151
|
+
// });
|
|
152
152
|
const additionQuestionsSchema = object({
|
|
153
153
|
business_revenue: string().required('Enter business revenue'),
|
|
154
154
|
business_payment_volume: string().required('Enter business payment volume'),
|
|
155
155
|
business_dispute_volume: string().required('Enter business dispute volume'),
|
|
156
156
|
business_receivable_volume: string().required('Enter business receivable volume'),
|
|
157
157
|
});
|
|
158
|
-
const businessFormSchema = object(Object.assign(Object.assign({}, businessGenericInfoSchema.fields), { legal_address: legalAddressSchema
|
|
158
|
+
const businessFormSchema = object(Object.assign(Object.assign({}, businessGenericInfoSchema.fields), { legal_address: legalAddressSchema, additional_questions: additionQuestionsSchema, representative: representativeSchema }));
|
|
159
159
|
export default businessFormSchema;
|