@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
|
@@ -8,6 +8,7 @@ export declare enum PaymentMethodTypes {
|
|
|
8
8
|
}
|
|
9
9
|
export declare enum PaymentStatuses {
|
|
10
10
|
pending = "pending",
|
|
11
|
+
automatic = "automatic",
|
|
11
12
|
authorized = "authorized",
|
|
12
13
|
succeeded = "succeeded",
|
|
13
14
|
failed = "failed",
|
|
@@ -87,6 +88,7 @@ export interface IPayment {
|
|
|
87
88
|
amount_disputed: number;
|
|
88
89
|
amount_refundable: number;
|
|
89
90
|
amount_refunded: number;
|
|
91
|
+
amount_returned?: number;
|
|
90
92
|
balance: number;
|
|
91
93
|
captured: boolean;
|
|
92
94
|
capture_strategy: CaptureStrategy;
|
|
@@ -100,11 +102,18 @@ export interface IPayment {
|
|
|
100
102
|
is_test: boolean;
|
|
101
103
|
metadata: Object | null;
|
|
102
104
|
payment_method: IPaymentMethod;
|
|
103
|
-
payment_intent_id
|
|
105
|
+
payment_intent_id?: string | null;
|
|
104
106
|
refunded: boolean;
|
|
105
107
|
status: PaymentStatuses;
|
|
106
108
|
created_at: string;
|
|
107
109
|
updated_at: string;
|
|
110
|
+
financial_transaction_id: string;
|
|
111
|
+
returned: boolean;
|
|
112
|
+
application_fee: IApplicationFee;
|
|
113
|
+
application_fee_rate_id?: string;
|
|
114
|
+
refunds: IRefund[];
|
|
115
|
+
transaction_hold?: null;
|
|
116
|
+
statement_descriptor?: string;
|
|
108
117
|
}
|
|
109
118
|
export declare class Payment implements IPayment {
|
|
110
119
|
id: string;
|
|
@@ -132,6 +141,11 @@ export declare class Payment implements IPayment {
|
|
|
132
141
|
created_at: string;
|
|
133
142
|
updated_at: string;
|
|
134
143
|
statement_descriptor?: string;
|
|
144
|
+
financial_transaction_id: string;
|
|
145
|
+
returned: boolean;
|
|
146
|
+
application_fee: IApplicationFee;
|
|
147
|
+
refunds: IRefund[];
|
|
148
|
+
transaction_hold: null;
|
|
135
149
|
constructor(payment: IPayment);
|
|
136
150
|
get disputedStatus(): PaymentDisputedStatuses | null;
|
|
137
151
|
}
|
|
@@ -163,3 +177,21 @@ export declare class PaymentBalanceTransaction implements IPaymentBalanceTransac
|
|
|
163
177
|
constructor(balanceTransaction: IPaymentBalanceTransaction);
|
|
164
178
|
get displayTransactionId(): string;
|
|
165
179
|
}
|
|
180
|
+
export interface IRefund {
|
|
181
|
+
id: string;
|
|
182
|
+
payment_id: string;
|
|
183
|
+
amount: number;
|
|
184
|
+
description: string | null;
|
|
185
|
+
reason: string | null;
|
|
186
|
+
status: string;
|
|
187
|
+
metadata: null;
|
|
188
|
+
created_at: string;
|
|
189
|
+
updated_at: string;
|
|
190
|
+
}
|
|
191
|
+
export interface IApplicationFee {
|
|
192
|
+
id: string;
|
|
193
|
+
amount: number;
|
|
194
|
+
currency: string;
|
|
195
|
+
created_at: string;
|
|
196
|
+
updated_at: string;
|
|
197
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IApiResponseCollection, IApiResponse, IPayment } from '..';
|
|
2
|
+
export interface IPaymentService {
|
|
3
|
+
fetchPayments(accountId: string, authToken: string, params: any): Promise<IApiResponseCollection<IPayment[]>>;
|
|
4
|
+
fetchPayment(paymentId: string, authToken: string): Promise<IApiResponse<IPayment>>;
|
|
5
|
+
}
|
|
6
|
+
export declare class PaymentService implements IPaymentService {
|
|
7
|
+
fetchPayments(accountId: string, authToken: string, params: any): Promise<IApiResponseCollection<IPayment[]>>;
|
|
8
|
+
fetchPayment(paymentId: string, authToken: string): Promise<IApiResponse<IPayment>>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IApiResponse, IApiResponseCollection, IPayout } from '..';
|
|
2
|
+
export interface IPayoutService {
|
|
3
|
+
fetchPayouts(accountId: string, authToken: string, params: any): Promise<IApiResponseCollection<IPayout[]>>;
|
|
4
|
+
fetchPayout(payoutId: string, authToken: string): Promise<IApiResponse<IPayout>>;
|
|
5
|
+
}
|
|
6
|
+
export declare class PayoutService implements IPayoutService {
|
|
7
|
+
fetchPayouts(accountId: string, authToken: string, params: any): Promise<IApiResponseCollection<IPayout[]>>;
|
|
8
|
+
fetchPayout(payoutId: string, authToken: string): Promise<IApiResponse<IPayout>>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getErrorMessage: (error: any) => any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdditionalQuestions } from '../../../api/Business';
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
* @exportedPart detail-section
|
|
@@ -8,6 +8,6 @@ import { IBusiness } from '../../../api/Business';
|
|
|
8
8
|
* @exportedPart detail-empty-state
|
|
9
9
|
*/
|
|
10
10
|
export declare class AdditionalQuestionsDetails {
|
|
11
|
-
|
|
11
|
+
additionalQuestions: AdditionalQuestions;
|
|
12
12
|
render(): any;
|
|
13
13
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Business } from '../../api/Business';
|
|
2
2
|
declare enum RENDER_STATES {
|
|
3
3
|
LOADING = "loading",
|
|
4
4
|
READY = "ready",
|
|
@@ -15,7 +15,7 @@ declare enum RENDER_STATES {
|
|
|
15
15
|
export declare class BusinessDetails {
|
|
16
16
|
businessId: string;
|
|
17
17
|
authToken: string;
|
|
18
|
-
business:
|
|
18
|
+
business: Business;
|
|
19
19
|
renderState: RENDER_STATES;
|
|
20
20
|
errorMessage: string;
|
|
21
21
|
private api;
|
|
@@ -23,12 +23,12 @@ export declare const BusinessStructureOptions: {
|
|
|
23
23
|
}[];
|
|
24
24
|
declare const businessFormSchema: import("yup").ObjectSchema<{
|
|
25
25
|
legal_address: {
|
|
26
|
+
country?: string;
|
|
26
27
|
city?: string;
|
|
27
28
|
state?: string;
|
|
28
29
|
line1?: string;
|
|
29
30
|
line2?: string;
|
|
30
31
|
postal_code?: string;
|
|
31
|
-
country?: string;
|
|
32
32
|
};
|
|
33
33
|
additional_questions: {
|
|
34
34
|
business_revenue?: string;
|
|
@@ -51,23 +51,6 @@ declare const businessFormSchema: import("yup").ObjectSchema<{
|
|
|
51
51
|
dob_year?: string;
|
|
52
52
|
identification_number?: string;
|
|
53
53
|
};
|
|
54
|
-
owners: {
|
|
55
|
-
name?: string;
|
|
56
|
-
title?: string;
|
|
57
|
-
address?: {
|
|
58
|
-
city?: string;
|
|
59
|
-
state?: string;
|
|
60
|
-
line1?: string;
|
|
61
|
-
postal_code?: string;
|
|
62
|
-
};
|
|
63
|
-
email?: string;
|
|
64
|
-
phone?: string;
|
|
65
|
-
dob_day?: string;
|
|
66
|
-
dob_month?: string;
|
|
67
|
-
dob_year?: string;
|
|
68
|
-
identification_number?: string;
|
|
69
|
-
is_owner?: boolean;
|
|
70
|
-
}[];
|
|
71
54
|
legal_name: unknown;
|
|
72
55
|
website_url: unknown;
|
|
73
56
|
email: unknown;
|
|
@@ -106,7 +89,6 @@ declare const businessFormSchema: import("yup").ObjectSchema<{
|
|
|
106
89
|
postal_code: undefined;
|
|
107
90
|
};
|
|
108
91
|
};
|
|
109
|
-
owners: "";
|
|
110
92
|
legal_name: undefined;
|
|
111
93
|
website_url: undefined;
|
|
112
94
|
email: undefined;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
1
2
|
/**
|
|
2
3
|
* @exportedPart label: Label for inputs
|
|
3
4
|
* @exportedPart input: The input fields
|
|
@@ -5,16 +6,33 @@
|
|
|
5
6
|
*/
|
|
6
7
|
export declare class BusinessFormStepped {
|
|
7
8
|
authToken: string;
|
|
8
|
-
|
|
9
|
-
businessId?: string;
|
|
9
|
+
businessId: string;
|
|
10
10
|
testMode: boolean;
|
|
11
|
+
hideErrors?: boolean;
|
|
11
12
|
isLoading: boolean;
|
|
12
13
|
currentStep: number;
|
|
13
14
|
totalSteps: number;
|
|
14
|
-
serverError:
|
|
15
|
+
serverError: boolean;
|
|
16
|
+
errorMessage: string;
|
|
17
|
+
clickEvent: EventEmitter<{
|
|
18
|
+
data?: any;
|
|
19
|
+
name: string;
|
|
20
|
+
}>;
|
|
21
|
+
submitted: EventEmitter<{
|
|
22
|
+
data: any;
|
|
23
|
+
}>;
|
|
15
24
|
private formController;
|
|
16
25
|
private api;
|
|
17
26
|
constructor();
|
|
27
|
+
get disabledState(): boolean;
|
|
28
|
+
get showErrors(): boolean;
|
|
29
|
+
get businessEndpoint(): string;
|
|
30
|
+
componentStepMapping: {
|
|
31
|
+
0: (formController: any) => any;
|
|
32
|
+
1: (formController: any) => any;
|
|
33
|
+
2: (formController: any) => any;
|
|
34
|
+
3: (formController: any) => any;
|
|
35
|
+
};
|
|
18
36
|
componentWillLoad(): void;
|
|
19
37
|
handleResponse(response: any, onSuccess: any): void;
|
|
20
38
|
private sendData;
|
|
@@ -23,7 +41,7 @@ export declare class BusinessFormStepped {
|
|
|
23
41
|
showPreviousStepButton(): boolean;
|
|
24
42
|
previousStepButtonOnClick(): void;
|
|
25
43
|
showNextStepButton(): boolean;
|
|
26
|
-
nextStepButtonOnClick(): void;
|
|
44
|
+
nextStepButtonOnClick(clickEventName: any): void;
|
|
27
45
|
showSubmitButton(): boolean;
|
|
28
46
|
currentStepComponent(): any;
|
|
29
47
|
render(): any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
1
2
|
/**
|
|
2
3
|
* @exportedPart label: Label for inputs
|
|
3
4
|
* @exportedPart input: The input fields
|
|
@@ -5,8 +6,21 @@
|
|
|
5
6
|
*/
|
|
6
7
|
export declare class BusinessForm {
|
|
7
8
|
authToken: string;
|
|
8
|
-
businessId
|
|
9
|
+
businessId: string;
|
|
10
|
+
hideErrors?: boolean;
|
|
9
11
|
isLoading: boolean;
|
|
12
|
+
serverError: boolean;
|
|
13
|
+
errorMessage: string;
|
|
14
|
+
clickEvent: EventEmitter<{
|
|
15
|
+
data?: any;
|
|
16
|
+
name: string;
|
|
17
|
+
}>;
|
|
18
|
+
submitted: EventEmitter<{
|
|
19
|
+
data: any;
|
|
20
|
+
}>;
|
|
21
|
+
get disabledState(): boolean;
|
|
22
|
+
get showErrors(): boolean;
|
|
23
|
+
get businessEndpoint(): string;
|
|
10
24
|
private formController;
|
|
11
25
|
private api;
|
|
12
26
|
constructor();
|
package/dist/types/components/business-form/business-generic-info/business-generic-info.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FormController } from '../../form/form';
|
|
2
|
+
import { ICoreBusinessInfo } from '../../../api/Business';
|
|
2
3
|
/**
|
|
3
4
|
*
|
|
4
5
|
* The difference between this component and business-generic-info-details
|
|
@@ -12,6 +13,7 @@ import { FormController } from '../../form/form';
|
|
|
12
13
|
export declare class BusinessGenericInfo {
|
|
13
14
|
formController: FormController;
|
|
14
15
|
errors: any;
|
|
16
|
+
genericInfo: ICoreBusinessInfo;
|
|
15
17
|
constructor();
|
|
16
18
|
componentDidLoad(): void;
|
|
17
19
|
inputHandler(name: string, value: string): void;
|
|
@@ -19,9 +19,9 @@ declare class BusinessOwner {
|
|
|
19
19
|
*/
|
|
20
20
|
export declare class BusinessOwners {
|
|
21
21
|
formController: FormController;
|
|
22
|
-
isEditing: boolean;
|
|
23
22
|
errors: any[];
|
|
24
23
|
owners: BusinessOwner[];
|
|
24
|
+
get disabledState(): boolean;
|
|
25
25
|
constructor();
|
|
26
26
|
componentDidLoad(): void;
|
|
27
27
|
inputHandler(name: string, value: string, index: number): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const parseForPatching: (
|
|
1
|
+
export declare const parseForPatching: (values: any, initialValues: any) => any;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { FunctionalComponent } from '../../stencil-public-runtime';
|
|
2
|
+
export declare const LoadingState: () => any;
|
|
2
3
|
export declare const ErrorState: (errorMessage: string) => any;
|
|
3
|
-
export declare const DetailSection:
|
|
4
|
+
export declare const DetailSection: FunctionalComponent<{
|
|
4
5
|
sectionTitle: string;
|
|
5
|
-
}
|
|
6
|
+
}>;
|
|
6
7
|
export declare const DetailItem: ({ title, value, }: {
|
|
7
8
|
title: string;
|
|
8
9
|
value: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FormAlert: (message: string) => any;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Payment } from '../../api';
|
|
2
|
+
export declare class PaymentDetailsCore {
|
|
3
|
+
getPaymentDetails: Function;
|
|
4
|
+
payment: Payment;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
errorMessage: string;
|
|
7
|
+
componentWillLoad(): void;
|
|
8
|
+
updateOnPropChange(): void;
|
|
9
|
+
fetchData(): void;
|
|
10
|
+
render(): any;
|
|
11
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PaymentService } from '../../api/services/payment.service';
|
|
2
2
|
/**
|
|
3
3
|
* @exportedPart detail-loading-spinner
|
|
4
4
|
* @exportedPart detail-loading-state
|
|
@@ -26,11 +26,11 @@ import { Payment } from '../../api';
|
|
|
26
26
|
export declare class PaymentDetails {
|
|
27
27
|
paymentId: string;
|
|
28
28
|
authToken: string;
|
|
29
|
-
|
|
30
|
-
loading: boolean;
|
|
29
|
+
getPaymentDetails: Function;
|
|
31
30
|
errorMessage: string;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
componentWillLoad(): void;
|
|
32
|
+
propChanged(): void;
|
|
33
|
+
private initializeGetPaymentDetails;
|
|
34
|
+
paymentService: PaymentService;
|
|
35
35
|
render(): any;
|
|
36
36
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
interface PaymentMethodCreateResponseWrapper {
|
|
2
2
|
id: string;
|
|
3
|
-
type:
|
|
3
|
+
type: "payment_method";
|
|
4
4
|
error?: {
|
|
5
5
|
code: string;
|
|
6
6
|
message: string;
|
|
@@ -23,6 +23,14 @@ interface CardCreateResponse extends PaymentMethodCreateResponseWrapper {
|
|
|
23
23
|
metadata: any;
|
|
24
24
|
address_line1_check: string;
|
|
25
25
|
address_postal_code_check: string;
|
|
26
|
+
bin_details?: {
|
|
27
|
+
type: "Credit" | "Debit" | "Prepaid" | "Unknown";
|
|
28
|
+
card_brand: string;
|
|
29
|
+
card_class: string;
|
|
30
|
+
country: string;
|
|
31
|
+
issuer: string;
|
|
32
|
+
funding_source: "Charge" | "Credit" | "Debit" | "Deferred Debit (Visa Only)" | "Network Only" | "Prepaid";
|
|
33
|
+
};
|
|
26
34
|
};
|
|
27
35
|
};
|
|
28
36
|
}
|
|
@@ -34,7 +42,7 @@ interface BankAccountCreateResponse extends PaymentMethodCreateResponseWrapper {
|
|
|
34
42
|
bank_account: {
|
|
35
43
|
id: string;
|
|
36
44
|
account_owner_name: string;
|
|
37
|
-
account_type:
|
|
45
|
+
account_type: "checking" | "savings";
|
|
38
46
|
bank_name: string;
|
|
39
47
|
acct_last_four: number;
|
|
40
48
|
token: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { PagingInfo, Payment } from '../../api';
|
|
3
|
+
export declare class PaymentsListCore {
|
|
4
|
+
getPayments: Function;
|
|
5
|
+
payments: Payment[];
|
|
6
|
+
loading: boolean;
|
|
7
|
+
errorMessage: string;
|
|
8
|
+
paging: PagingInfo;
|
|
9
|
+
params: any;
|
|
10
|
+
rowClicked: EventEmitter<Payment>;
|
|
11
|
+
componentWillLoad(): void;
|
|
12
|
+
updateOnPropChange(): void;
|
|
13
|
+
handleClickPrevious: (beforeCursor: string) => void;
|
|
14
|
+
handleClickNext: (afterCursor: string) => void;
|
|
15
|
+
fetchData(): void;
|
|
16
|
+
render(): any;
|
|
17
|
+
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { PagingInfo, Payment } from '../../api';
|
|
3
1
|
/**
|
|
4
2
|
* @exportedPart table-head: Table head
|
|
5
3
|
* @exportedPart table-head-row: Head row
|
|
@@ -22,16 +20,10 @@ import { PagingInfo, Payment } from '../../api';
|
|
|
22
20
|
export declare class PaymentsList {
|
|
23
21
|
accountId: string;
|
|
24
22
|
authToken: string;
|
|
25
|
-
|
|
26
|
-
loading: boolean;
|
|
23
|
+
getPayments: Function;
|
|
27
24
|
errorMessage: string;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
updateOnPropChange(): void;
|
|
32
|
-
connectedCallback(): void;
|
|
33
|
-
handleClickPrevious: (beforeCursor: string) => void;
|
|
34
|
-
handleClickNext: (afterCursor: string) => void;
|
|
35
|
-
fetchData(): Promise<void>;
|
|
25
|
+
componentWillLoad(): void;
|
|
26
|
+
propChanged(): void;
|
|
27
|
+
private initializeGetPayments;
|
|
36
28
|
render(): any;
|
|
37
29
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Payout } from '../../api';
|
|
2
|
+
export declare class PayoutDetailsCore {
|
|
3
|
+
getPayout: Function;
|
|
4
|
+
payout: Payout;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
errorMessage: string;
|
|
7
|
+
componentWillLoad(): void;
|
|
8
|
+
getPayoutWatcher(): void;
|
|
9
|
+
fetchData(): void;
|
|
10
|
+
render(): any;
|
|
11
|
+
}
|
|
@@ -1,36 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* @exportedPart detail-loading-spinner
|
|
4
|
-
* @exportedPart detail-loading-state
|
|
5
|
-
* @exportedPart detail-empty-state
|
|
6
|
-
* @exportedPart detail-head
|
|
7
|
-
* @exportedPart detail-title
|
|
8
|
-
* @exportedPart detail-method
|
|
9
|
-
* @exportedPart detail-info
|
|
10
|
-
* @exportedPart detail-info-item
|
|
11
|
-
* @exportedPart detail-info-item-title
|
|
12
|
-
* @exportedPart detail-info-item-data
|
|
13
|
-
* @exportedPart detail-metadata
|
|
14
|
-
* @exportedPart detail-metadata-title
|
|
15
|
-
* @exportedPart detail-method-title
|
|
16
|
-
* @exportedPart detail-method-data
|
|
17
|
-
* @exportedPart detail-section
|
|
18
|
-
* @exportedPart detail-section-title
|
|
19
|
-
* @exportedPart detail-section-item-title
|
|
20
|
-
* @exportedPart detail-section-item-data
|
|
21
|
-
* @exportedPart detail-head-info
|
|
22
|
-
* @exportedPart detail-head-info-item
|
|
23
|
-
* @exportedPart detail-head-info-item-title
|
|
24
|
-
* @exportedPart detail-head-info-item-data
|
|
25
|
-
*/
|
|
26
|
-
export declare class PaymentDetails {
|
|
1
|
+
export declare class PayoutDetails {
|
|
27
2
|
payoutId: string;
|
|
28
3
|
authToken: string;
|
|
29
|
-
|
|
30
|
-
loading: boolean;
|
|
4
|
+
getPayout: Function;
|
|
31
5
|
errorMessage: string;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
6
|
+
componentWillLoad(): void;
|
|
7
|
+
propChanged(): void;
|
|
8
|
+
initializeGetPayout(): void;
|
|
35
9
|
render(): any;
|
|
36
10
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { PagingInfo, Payout, PayoutStatuses } from '../../api';
|
|
3
|
+
export declare class PayoutsListCore {
|
|
4
|
+
getPayouts: Function;
|
|
5
|
+
payouts: Payout[];
|
|
6
|
+
loading: boolean;
|
|
7
|
+
errorMessage: string;
|
|
8
|
+
paging: PagingInfo;
|
|
9
|
+
params: any;
|
|
10
|
+
rowClicked: EventEmitter<Payout>;
|
|
11
|
+
componentWillLoad(): void;
|
|
12
|
+
updateOnPropChange(): void;
|
|
13
|
+
mapStatusToBadge: (status: PayoutStatuses) => string;
|
|
14
|
+
handleClickPrevious: (beforeCursor: string) => void;
|
|
15
|
+
handleClickNext: (afterCursor: string) => void;
|
|
16
|
+
fetchData(): void;
|
|
17
|
+
render(): any;
|
|
18
|
+
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { PagingInfo, Payout, PayoutStatuses } from '../../api';
|
|
3
1
|
/**
|
|
4
2
|
* @exportedPart table-head: Table head
|
|
5
3
|
* @exportedPart table-head-row: Head row
|
|
@@ -22,17 +20,10 @@ import { PagingInfo, Payout, PayoutStatuses } from '../../api';
|
|
|
22
20
|
export declare class PayoutsList {
|
|
23
21
|
accountId: string;
|
|
24
22
|
authToken: string;
|
|
25
|
-
|
|
26
|
-
loading: boolean;
|
|
23
|
+
getPayouts: Function;
|
|
27
24
|
errorMessage: string;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
updateOnPropChange(): void;
|
|
32
|
-
connectedCallback(): void;
|
|
33
|
-
mapStatusToBadge: (status: PayoutStatuses) => string;
|
|
34
|
-
handleClickPrevious: (beforeCursor: string) => void;
|
|
35
|
-
handleClickNext: (afterCursor: string) => void;
|
|
36
|
-
fetchData(): Promise<void>;
|
|
25
|
+
componentWillLoad(): void;
|
|
26
|
+
propChanged(): void;
|
|
27
|
+
private initializeGetPayouts;
|
|
37
28
|
render(): any;
|
|
38
29
|
}
|
|
@@ -16,9 +16,8 @@ export declare class Table {
|
|
|
16
16
|
params: TableProps['params'];
|
|
17
17
|
entityId: string[];
|
|
18
18
|
rowClickHandler: (e: any) => any;
|
|
19
|
-
showEmptyState(): boolean;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
loadingState: () => any;
|
|
19
|
+
get showEmptyState(): boolean;
|
|
20
|
+
get showErrorState(): boolean;
|
|
21
|
+
get showRowData(): boolean;
|
|
23
22
|
render(): any;
|
|
24
23
|
}
|