@justifi/webcomponents 4.7.6 → 4.8.1
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-3c0aa22c.js +82 -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 +4 -4
- 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} +45 -2
- package/dist/cjs/{form-control-number_3.cjs.entry.js → form-control-select_2.cjs.entry.js} +0 -43
- package/dist/cjs/form-input-masks-e3bf2614.js +9 -0
- 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-billing-form_2.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +5 -5
- package/dist/cjs/justifi-business-form-stepped.cjs.entry.js +46 -52
- package/dist/cjs/justifi-business-form.cjs.entry.js +31 -35
- package/dist/cjs/justifi-business-list.cjs.entry.js +3 -50
- package/dist/cjs/justifi-business-owners.cjs.entry.js +78 -0
- package/dist/cjs/justifi-details.cjs.entry.js +1 -1
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-details.cjs.entry.js +43 -42
- package/dist/cjs/justifi-payment-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +6 -4
- package/dist/cjs/justifi-payments-list.cjs.entry.js +46 -90
- package/dist/cjs/justifi-payout-details.cjs.entry.js +47 -45
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +46 -112
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +1 -1
- package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +1 -1
- package/dist/cjs/justifi-table_2.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- 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/subaccount-account-details_4.cjs.entry.js +1 -1
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +1 -1
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +1 -1
- package/dist/cjs/{utils-99c086ee.js → utils-d126d17c.js} +4 -4
- package/dist/cjs/utils-f5d82f21.js +10 -0
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Business.js +32 -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-details/legal-address-details/legal-address-details.js +4 -4
- 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 +77 -50
- package/dist/collection/components/business-form/business-form.js +62 -33
- 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 +3 -3
- 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/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/payment-method-form/test/payment-method-form.e2e.js +1 -1
- 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/table/table.js +1 -1
- package/dist/collection/components/table/test/table.spec.js +18 -0
- package/dist/collection/components/table/utils.js +1 -1
- package/dist/collection/utils/{phone-masks.js → form-input-masks.js} +1 -0
- package/dist/docs.json +397 -233
- package/dist/esm/Business-954e1c1b.js +78 -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 +5 -5
- 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-number_3.entry.js → form-control-select_2.entry.js} +1 -43
- package/dist/esm/form-input-masks-a8187c77.js +6 -0
- 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-billing-form_2.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +5 -5
- package/dist/esm/justifi-business-form-stepped.entry.js +47 -53
- package/dist/esm/justifi-business-form.entry.js +32 -36
- package/dist/esm/justifi-business-list.entry.js +3 -50
- package/dist/{module/business-owners.js → esm/justifi-business-owners.entry.js} +13 -55
- package/dist/esm/justifi-details.entry.js +1 -1
- package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
- package/dist/esm/justifi-payment-balance-transactions.entry.js +2 -2
- package/dist/esm/justifi-payment-details.entry.js +44 -43
- package/dist/esm/justifi-payment-form.entry.js +2 -2
- package/dist/esm/justifi-payment-method-form.entry.js +6 -4
- 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 +2 -2
- package/dist/esm/justifi-refund-form.entry.js +2 -2
- package/dist/esm/justifi-subaccount-details.entry.js +4 -4
- package/dist/esm/justifi-subaccounts-list.entry.js +3 -3
- package/dist/esm/justifi-table_2.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- 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-34c30022.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/subaccount-account-details_4.entry.js +2 -2
- package/dist/esm/subaccount-bank-details.entry.js +1 -1
- package/dist/esm/subaccount-terms-details.entry.js +1 -1
- package/dist/esm/utils-546ca6aa.js +8 -0
- package/dist/esm/{utils-f33f7e3c.js → utils-576874df.js} +4 -4
- package/dist/esm/{utils-26c7dd12.js → utils-dd428dba.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Business.js +78 -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 +62 -74
- package/dist/module/justifi-business-form.js +47 -57
- 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/legal-address-form.js +3 -203
- 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 +2 -2
- package/dist/module/utils.js +4 -4
- package/dist/module/utils3.js +6 -29
- package/dist/types/api/Business.d.ts +64 -28
- 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-details/legal-address-details/legal-address-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 +19 -5
- package/dist/types/components/business-form/business-form.d.ts +11 -2
- 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/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.d.ts +136 -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-0b9146cd.entry.js +1 -0
- package/dist/webcomponents/p-0e53f470.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-ac8be2a8.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-2b2f8162.entry.js → p-2e318b6a.entry.js} +1 -1
- package/dist/webcomponents/p-34de1c5d.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-4fa27a28.entry.js +1 -0
- package/dist/webcomponents/{p-3bef762a.js → p-50730e69.js} +1 -1
- package/dist/webcomponents/p-5e142186.entry.js +1 -0
- package/dist/webcomponents/{p-85ddbe82.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-d8835e7a.entry.js → p-731cb109.entry.js} +1 -1
- package/dist/webcomponents/{p-525adabf.entry.js → p-7c0f91fa.entry.js} +1 -1
- package/dist/webcomponents/p-80140d5b.js +1 -0
- package/dist/webcomponents/p-810b72b5.js +1 -0
- package/dist/webcomponents/p-870c2e4d.entry.js +1 -0
- package/dist/webcomponents/{p-64a5126c.entry.js → p-896a9ddb.entry.js} +1 -1
- package/dist/webcomponents/{p-9ba0be02.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-a5d662ac.entry.js +1 -0
- package/dist/webcomponents/p-ad9a6c20.entry.js +1 -0
- package/dist/webcomponents/p-ade12f56.js +1 -0
- package/dist/webcomponents/{p-45d2761d.entry.js → p-b5aba473.entry.js} +1 -1
- package/dist/webcomponents/p-b8a8b551.js +1 -0
- package/dist/webcomponents/{p-c950901c.entry.js → p-c0f882ce.entry.js} +1 -1
- package/dist/webcomponents/p-d66a6057.entry.js +1 -0
- package/dist/webcomponents/{p-9cec4a27.entry.js → p-d71ce1cd.entry.js} +1 -1
- package/dist/webcomponents/p-ea05d7c2.entry.js +1 -0
- package/dist/webcomponents/{p-c43e29ac.entry.js → p-ec4f27e7.entry.js} +1 -1
- package/dist/webcomponents/{p-40fb25c6.entry.js → p-eef5b15b.entry.js} +1 -1
- package/dist/webcomponents/{p-9a6e4749.js → p-f0c535ed.js} +1 -1
- package/dist/webcomponents/{p-c63a98f6.entry.js → p-f7a3fd12.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +6 -4
- package/dist/cjs/utils-931f4879.js +0 -34
- package/dist/esm/utils-8cc130a9.js +0 -31
- package/dist/module/phone-masks.js +0 -5
- package/dist/types/utils/phone-masks.d.ts +0 -3
- package/dist/webcomponents/p-0a1347cf.entry.js +0 -1
- package/dist/webcomponents/p-0f3e9483.js +0 -1
- package/dist/webcomponents/p-0fa49c38.entry.js +0 -1
- package/dist/webcomponents/p-1e2a98bf.js +0 -1
- package/dist/webcomponents/p-5a502ceb.entry.js +0 -1
- package/dist/webcomponents/p-5bf0ac1a.entry.js +0 -1
- package/dist/webcomponents/p-6e80f063.entry.js +0 -1
- package/dist/webcomponents/p-71679a41.js +0 -1
- package/dist/webcomponents/p-78baff54.js +0 -1
- package/dist/webcomponents/p-8bbb1b10.entry.js +0 -1
- package/dist/webcomponents/p-90926321.js +0 -1
- package/dist/webcomponents/p-9e0d2179.entry.js +0 -1
- package/dist/webcomponents/p-c4826a33.entry.js +0 -1
- package/dist/webcomponents/p-d4755024.entry.js +0 -1
- package/dist/webcomponents/p-e8e109bd.entry.js +0 -1
- package/dist/webcomponents/p-ead8cfc2.entry.js +0 -1
- package/dist/webcomponents/p-f74899b9.entry.js +0 -1
package/dist/module/utils.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { h } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const LoadingState = (h("main", { part: "detail-loading-state", class: "p-4 d-flex justify-content-center text-center", style: { fontSize: '1.2rem' } },
|
|
3
|
+
const LoadingState = () => (h("main", { part: "detail-loading-state", class: "p-4 d-flex justify-content-center text-center", style: { fontSize: '1.2rem' } },
|
|
4
4
|
h("div", { part: "detail-loading-spinner", class: "spinner-border spinner-border-sm", role: "status" },
|
|
5
5
|
h("span", { class: "visually-hidden" }, "Loading..."))));
|
|
6
6
|
const ErrorState = (errorMessage) => (h("main", { part: "detail-empty-state", class: "p-4 d-flex justify-content-center text-center", style: { fontSize: '1.2rem' } },
|
|
7
7
|
h("div", null, errorMessage)));
|
|
8
|
-
const DetailSection = (
|
|
9
|
-
h("h5", { part: "detail-section-title" }, sectionTitle),
|
|
8
|
+
const DetailSection = (props, children) => (h("div", { part: "detail-section", class: "mt-4" },
|
|
9
|
+
h("h5", { part: "detail-section-title" }, props.sectionTitle),
|
|
10
10
|
h("hr", null),
|
|
11
|
-
h("div", { class: "d-table gap-2 w-100" }, children)));
|
|
11
|
+
h("div", { class: "d-table gap-2 w-100" }, ...children)));
|
|
12
12
|
const DetailItem = ({ title, value, }) => title && value ? (h("div", { class: "d-table-row gap-2" },
|
|
13
13
|
h("span", { part: "detail-section-item-title", class: "fw-bold d-table-cell px-2" }, title),
|
|
14
14
|
h("span", { part: "detail-section-item-data", class: "flex-1 d-table-cell px-2 text-wrap", innerHTML: value }))) : null;
|
package/dist/module/utils3.js
CHANGED
|
@@ -1,31 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
delete data.id;
|
|
7
|
-
delete data.documents;
|
|
8
|
-
delete data.bank_accounts;
|
|
9
|
-
delete data.product_categories;
|
|
10
|
-
delete data.created_at;
|
|
11
|
-
delete data.updated_at;
|
|
12
|
-
(_a = data.legal_address) === null || _a === void 0 ? true : delete _a.id;
|
|
13
|
-
(_b = data.legal_address) === null || _b === void 0 ? true : delete _b.created_at;
|
|
14
|
-
(_c = data.legal_address) === null || _c === void 0 ? true : delete _c.updated_at;
|
|
15
|
-
(_d = data.representative) === null || _d === void 0 ? true : delete _d.id;
|
|
16
|
-
(_e = data.representative) === null || _e === void 0 ? true : delete _e.documents;
|
|
17
|
-
(_f = data.representative) === null || _f === void 0 ? true : delete _f.created_at;
|
|
18
|
-
(_g = data.representative) === null || _g === void 0 ? true : delete _g.updated_at;
|
|
19
|
-
(_h = data.representative) === null || _h === void 0 ? true : delete _h.address.id;
|
|
20
|
-
(_j = data.representative) === null || _j === void 0 ? true : delete _j.address.created_at;
|
|
21
|
-
(_k = data.representative) === null || _k === void 0 ? true : delete _k.address.updated_at;
|
|
22
|
-
delete data.owners;
|
|
23
|
-
return data;
|
|
1
|
+
const getErrorMessage = (error) => {
|
|
2
|
+
if (typeof error === 'string') {
|
|
3
|
+
return error;
|
|
4
|
+
}
|
|
5
|
+
return error.message;
|
|
24
6
|
};
|
|
25
7
|
|
|
26
|
-
|
|
27
|
-
h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "currentColor", class: "bi bi-exclamation-triangle-fill flex-shrink-0 me-2", viewBox: "0 0 16 16", role: "img", "aria-label": "Warning:" },
|
|
28
|
-
h("path", { d: "M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z" })),
|
|
29
|
-
h("div", null, message)));
|
|
30
|
-
|
|
31
|
-
export { FormAlert as F, parseForPatching as p };
|
|
8
|
+
export { getErrorMessage as g };
|
|
@@ -20,7 +20,19 @@ export declare enum BusinessType {
|
|
|
20
20
|
non_profit = "non_profit",
|
|
21
21
|
government_entity = "government_entity"
|
|
22
22
|
}
|
|
23
|
-
export interface
|
|
23
|
+
export interface IAddress {
|
|
24
|
+
id?: string;
|
|
25
|
+
platform_account_id?: string;
|
|
26
|
+
line1?: string;
|
|
27
|
+
line2?: string;
|
|
28
|
+
postal_code?: string;
|
|
29
|
+
city?: string;
|
|
30
|
+
state?: string;
|
|
31
|
+
country?: string;
|
|
32
|
+
created_at?: string;
|
|
33
|
+
updated_at?: string;
|
|
34
|
+
}
|
|
35
|
+
export declare class Address implements IAddress {
|
|
24
36
|
id: string;
|
|
25
37
|
platform_account_id: string;
|
|
26
38
|
line1: string;
|
|
@@ -31,6 +43,7 @@ export interface Address {
|
|
|
31
43
|
country: string;
|
|
32
44
|
created_at: string;
|
|
33
45
|
updated_at: string;
|
|
46
|
+
constructor(address: IAddress);
|
|
34
47
|
}
|
|
35
48
|
export interface Document {
|
|
36
49
|
business_id: string;
|
|
@@ -48,22 +61,22 @@ export interface Document {
|
|
|
48
61
|
updated_at: string;
|
|
49
62
|
}
|
|
50
63
|
export interface Identity {
|
|
51
|
-
address
|
|
52
|
-
created_at
|
|
53
|
-
dob_day
|
|
54
|
-
dob_month
|
|
55
|
-
dob_year
|
|
56
|
-
documents
|
|
57
|
-
email
|
|
58
|
-
id
|
|
59
|
-
is_owner
|
|
60
|
-
metadata
|
|
61
|
-
name
|
|
62
|
-
phone
|
|
63
|
-
platform_account_id
|
|
64
|
-
ssn_last4
|
|
65
|
-
title
|
|
66
|
-
updated_at
|
|
64
|
+
address?: IAddress;
|
|
65
|
+
created_at?: string;
|
|
66
|
+
dob_day?: string;
|
|
67
|
+
dob_month?: string;
|
|
68
|
+
dob_year?: string;
|
|
69
|
+
documents?: Document[];
|
|
70
|
+
email?: string;
|
|
71
|
+
id?: string;
|
|
72
|
+
is_owner?: boolean;
|
|
73
|
+
metadata?: any;
|
|
74
|
+
name?: string;
|
|
75
|
+
phone?: string;
|
|
76
|
+
platform_account_id?: string;
|
|
77
|
+
ssn_last4?: string;
|
|
78
|
+
title?: string;
|
|
79
|
+
updated_at?: string;
|
|
67
80
|
}
|
|
68
81
|
export interface ProductCategories {
|
|
69
82
|
credit: boolean;
|
|
@@ -72,12 +85,36 @@ export interface ProductCategories {
|
|
|
72
85
|
payment: boolean;
|
|
73
86
|
}
|
|
74
87
|
export interface AdditionalQuestions {
|
|
75
|
-
business_revenue
|
|
76
|
-
business_payment_volume
|
|
77
|
-
business_dispute_volume
|
|
78
|
-
business_receivable_volume
|
|
88
|
+
business_revenue?: string;
|
|
89
|
+
business_payment_volume?: string;
|
|
90
|
+
business_dispute_volume?: string;
|
|
91
|
+
business_receivable_volume?: string;
|
|
92
|
+
}
|
|
93
|
+
export interface ICoreBusinessInfo {
|
|
94
|
+
business_structure?: BusinessStructure;
|
|
95
|
+
business_type?: BusinessType;
|
|
96
|
+
legal_name?: string;
|
|
97
|
+
doing_business_as?: string;
|
|
98
|
+
industry?: string;
|
|
99
|
+
tax_id?: string;
|
|
100
|
+
website_url?: string;
|
|
101
|
+
email?: string;
|
|
102
|
+
phone?: string;
|
|
103
|
+
}
|
|
104
|
+
export declare class CoreBusinessInfo implements ICoreBusinessInfo {
|
|
105
|
+
business_structure: BusinessStructure;
|
|
106
|
+
business_type: BusinessType;
|
|
107
|
+
legal_name: string;
|
|
108
|
+
doing_business_as: string;
|
|
109
|
+
industry: string;
|
|
110
|
+
tax_id: string;
|
|
111
|
+
website_url: string;
|
|
112
|
+
email: string;
|
|
113
|
+
phone: string;
|
|
114
|
+
constructor(coreBusinessInfo: ICoreBusinessInfo);
|
|
79
115
|
}
|
|
80
116
|
export interface IBusiness {
|
|
117
|
+
additional_questions: AdditionalQuestions | {};
|
|
81
118
|
business_structure: BusinessStructure;
|
|
82
119
|
business_type: BusinessType;
|
|
83
120
|
bank_accounts: BankAccount[];
|
|
@@ -87,20 +124,20 @@ export interface IBusiness {
|
|
|
87
124
|
email: string;
|
|
88
125
|
id: string;
|
|
89
126
|
industry: string;
|
|
90
|
-
legal_address:
|
|
127
|
+
legal_address: IAddress | {};
|
|
91
128
|
legal_name: string;
|
|
92
129
|
metadata: any;
|
|
93
130
|
owners: Identity[];
|
|
94
131
|
phone: string;
|
|
95
132
|
platform_account_id: string;
|
|
96
|
-
|
|
133
|
+
product_categories: ProductCategories;
|
|
134
|
+
representative: Identity | {};
|
|
97
135
|
tax_id: string;
|
|
98
136
|
updated_at: string;
|
|
99
137
|
website_url: string;
|
|
100
|
-
product_categories: ProductCategories;
|
|
101
|
-
additional_questions: AdditionalQuestions;
|
|
102
138
|
}
|
|
103
139
|
export declare class Business implements IBusiness {
|
|
140
|
+
additional_questions: AdditionalQuestions | {};
|
|
104
141
|
business_structure: BusinessStructure;
|
|
105
142
|
business_type: BusinessType;
|
|
106
143
|
bank_accounts: BankAccount[];
|
|
@@ -110,18 +147,17 @@ export declare class Business implements IBusiness {
|
|
|
110
147
|
email: string;
|
|
111
148
|
id: string;
|
|
112
149
|
industry: string;
|
|
113
|
-
legal_address:
|
|
150
|
+
legal_address: IAddress | {};
|
|
114
151
|
legal_name: string;
|
|
115
152
|
metadata: any;
|
|
116
153
|
owners: Identity[];
|
|
117
154
|
phone: string;
|
|
118
155
|
platform_account_id: string;
|
|
119
|
-
representative: Identity |
|
|
156
|
+
representative: Identity | {};
|
|
120
157
|
tax_id: string;
|
|
121
158
|
updated_at: string;
|
|
122
159
|
website_url: string;
|
|
123
160
|
product_categories: ProductCategories;
|
|
124
|
-
additional_questions: AdditionalQuestions;
|
|
125
161
|
constructor(business: IBusiness);
|
|
126
162
|
}
|
|
127
163
|
export interface IProductReadiness {
|
|
@@ -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,7 +6,7 @@
|
|
|
5
6
|
*/
|
|
6
7
|
export declare class BusinessFormStepped {
|
|
7
8
|
authToken: string;
|
|
8
|
-
businessId
|
|
9
|
+
businessId: string;
|
|
9
10
|
testMode: boolean;
|
|
10
11
|
hideErrors?: boolean;
|
|
11
12
|
isLoading: boolean;
|
|
@@ -13,12 +14,25 @@ export declare class BusinessFormStepped {
|
|
|
13
14
|
totalSteps: number;
|
|
14
15
|
serverError: boolean;
|
|
15
16
|
errorMessage: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
clickEvent: EventEmitter<{
|
|
18
|
+
data?: any;
|
|
19
|
+
name: string;
|
|
20
|
+
}>;
|
|
21
|
+
submitted: EventEmitter<{
|
|
22
|
+
data: any;
|
|
23
|
+
}>;
|
|
19
24
|
private formController;
|
|
20
25
|
private api;
|
|
21
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
|
+
};
|
|
22
36
|
componentWillLoad(): void;
|
|
23
37
|
handleResponse(response: any, onSuccess: any): void;
|
|
24
38
|
private sendData;
|
|
@@ -27,7 +41,7 @@ export declare class BusinessFormStepped {
|
|
|
27
41
|
showPreviousStepButton(): boolean;
|
|
28
42
|
previousStepButtonOnClick(): void;
|
|
29
43
|
showNextStepButton(): boolean;
|
|
30
|
-
nextStepButtonOnClick(): void;
|
|
44
|
+
nextStepButtonOnClick(clickEventName: any): void;
|
|
31
45
|
showSubmitButton(): boolean;
|
|
32
46
|
currentStepComponent(): any;
|
|
33
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,13 +6,21 @@
|
|
|
5
6
|
*/
|
|
6
7
|
export declare class BusinessForm {
|
|
7
8
|
authToken: string;
|
|
8
|
-
businessId
|
|
9
|
+
businessId: string;
|
|
9
10
|
hideErrors?: boolean;
|
|
10
11
|
isLoading: boolean;
|
|
11
12
|
serverError: boolean;
|
|
12
13
|
errorMessage: string;
|
|
13
|
-
|
|
14
|
+
clickEvent: EventEmitter<{
|
|
15
|
+
data?: any;
|
|
16
|
+
name: string;
|
|
17
|
+
}>;
|
|
18
|
+
submitted: EventEmitter<{
|
|
19
|
+
data: any;
|
|
20
|
+
}>;
|
|
21
|
+
get disabledState(): boolean;
|
|
14
22
|
get showErrors(): boolean;
|
|
23
|
+
get businessEndpoint(): string;
|
|
15
24
|
private formController;
|
|
16
25
|
private api;
|
|
17
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,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
|
}
|