@justifi/webcomponents 4.7.4 → 4.7.5
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/LICENSE +1 -1
- package/dist/cjs/{Api-548eaa62.js → Api-a06b996e.js} +35 -35
- package/dist/cjs/{Pagination-cae1dcbd.js → Pagination-0da8f095.js} +5 -5
- package/dist/cjs/Payout-7821eb61.js +183 -0
- package/dist/cjs/SubAccount-b9487cbb.js +107 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +50 -50
- package/dist/cjs/business-form-schema-a2b87e77.js +148 -0
- package/dist/cjs/config-ff2dda66.js +15 -0
- package/dist/cjs/{form-1e732a9d.js → form-2ad3d374.js} +84 -84
- package/dist/cjs/form-control-datepart_2.cjs.entry.js +108 -108
- package/dist/cjs/form-control-monetary.cjs.entry.js +50 -50
- package/dist/cjs/form-control-number_3.cjs.entry.js +108 -108
- package/dist/cjs/helpers-b254d050.js +26 -0
- package/dist/cjs/{index-c5ace247.js → index-4286ac32.js} +189 -51
- package/dist/cjs/{index-5a880722.js → index-fc5339a5.js} +406 -195
- package/dist/cjs/{index.esm-91ec051e.js → index.esm-c08c2adc.js} +61 -30
- package/dist/cjs/justifi-additional-questions_6.cjs.entry.js +372 -372
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +56 -56
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +79 -79
- package/dist/cjs/justifi-business-details.cjs.entry.js +61 -61
- package/dist/cjs/justifi-business-form-stepped.cjs.entry.js +110 -110
- package/dist/cjs/justifi-business-form.cjs.entry.js +71 -71
- package/dist/cjs/justifi-business-list.cjs.entry.js +128 -128
- package/dist/cjs/justifi-card-form.cjs.entry.js +57 -57
- package/dist/cjs/justifi-details.cjs.entry.js +13 -13
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +125 -125
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +72 -72
- package/dist/cjs/justifi-payment-details.cjs.entry.js +53 -53
- package/dist/cjs/justifi-payment-form.cjs.entry.js +89 -89
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +171 -188
- package/dist/cjs/justifi-payments-list.cjs.entry.js +97 -98
- package/dist/cjs/justifi-payout-details.cjs.entry.js +54 -54
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +119 -119
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +135 -135
- package/dist/cjs/justifi-refund-form.cjs.entry.js +85 -85
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +62 -62
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +84 -84
- package/dist/cjs/justifi-table_2.cjs.entry.js +61 -61
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/select-input_2.cjs.entry.js +38 -38
- package/dist/cjs/state-options-96d05a98.js +246 -0
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +41 -41
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +11 -11
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +11 -11
- package/dist/cjs/{utils-13d069be.js → utils-36bf8b3e.js} +108 -108
- package/dist/cjs/utils-a2ee48ca.js +35 -0
- package/dist/cjs/webcomponents.cjs.js +3 -3
- package/dist/collection/api/Api.js +34 -34
- package/dist/collection/api/Business.js +39 -39
- package/dist/collection/api/Pagination.js +5 -5
- package/dist/collection/api/Payment.js +108 -108
- package/dist/collection/api/Payout.js +33 -33
- package/dist/collection/api/Proceed.js +33 -33
- package/dist/collection/api/SubAccount.js +78 -78
- package/dist/collection/api/mockData/MockOnboardingData.js +108 -108
- package/dist/collection/api/mockData/MockPayments.js +207 -207
- package/dist/collection/api/mockData/MockSubAccount.js +96 -96
- package/dist/collection/api/mockData/mockGrossVolumeReport.js +123 -123
- package/dist/collection/collection-manifest.json +4 -4
- package/dist/collection/components/bank-account-form/bank-account-form.js +260 -259
- package/dist/collection/components/bank-account-form/test/bank-account-form.e2e.js +10 -10
- package/dist/collection/components/bank-account-form/test/bank-account-form.spec.js +38 -38
- package/dist/collection/components/billing-form/billing-form-schema.js +6 -6
- package/dist/collection/components/billing-form/billing-form.css +16 -12
- package/dist/collection/components/billing-form/billing-form.js +177 -179
- package/dist/collection/components/billing-form/state-options.js +240 -240
- package/dist/collection/components/billing-form/test/billing-form.spec.js +50 -50
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.css +23 -16
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +43 -43
- package/dist/collection/components/business-details/business-details.css +11 -4
- package/dist/collection/components/business-details/business-details.js +107 -107
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.css +23 -16
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +43 -43
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.css +23 -16
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +43 -43
- package/dist/collection/components/business-details/owner-details/owner-details.css +23 -16
- package/dist/collection/components/business-details/owner-details/owner-details.js +45 -45
- package/dist/collection/components/business-details/representative-details/representative-details.css +23 -16
- package/dist/collection/components/business-details/representative-details/representative-details.js +43 -43
- package/dist/collection/components/business-form/additional-questions/additional-questions.js +49 -49
- package/dist/collection/components/business-form/business-address/business-address-form-schema.js +8 -8
- package/dist/collection/components/business-form/business-address/business-address-form.css +16 -12
- package/dist/collection/components/business-form/business-address/business-address-form.js +93 -93
- package/dist/collection/components/business-form/business-address/test/business-address.e2e.js +6 -6
- package/dist/collection/components/business-form/business-address/test/business-address.spec.js +21 -21
- package/dist/collection/components/business-form/business-form-schema.js +137 -137
- package/dist/collection/components/business-form/business-form-stepped.css +23 -16
- package/dist/collection/components/business-form/business-form-stepped.js +203 -203
- package/dist/collection/components/business-form/business-form.css +23 -16
- package/dist/collection/components/business-form/business-form.js +111 -111
- package/dist/collection/components/business-form/business-generic-info/business-generic-info.css +16 -12
- package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +57 -57
- package/dist/collection/components/business-form/business-owners/business-owners.css +23 -16
- package/dist/collection/components/business-form/business-owners/business-owners.js +117 -117
- package/dist/collection/components/business-form/business-representative/business-representative.css +16 -12
- package/dist/collection/components/business-form/business-representative/business-representative.js +65 -65
- package/dist/collection/components/business-form/helpers.js +19 -19
- package/dist/collection/components/business-form/legal-address-form/legal-address-form-schema.js +6 -6
- package/dist/collection/components/business-form/legal-address-form/legal-address-form.css +16 -12
- package/dist/collection/components/business-form/legal-address-form/legal-address-form.js +61 -61
- package/dist/collection/components/business-form/test/business-form.spec.js +35 -35
- package/dist/collection/components/business-list/business-list.css +3 -0
- package/dist/collection/components/business-list/business-list.js +160 -160
- package/dist/collection/components/business-list/business-list.stories.js +10 -10
- package/dist/collection/components/card-form/card-form.js +278 -277
- package/dist/collection/components/card-form/test/card-form.e2e.js +10 -10
- package/dist/collection/components/card-form/test/card-form.spec.js +45 -45
- package/dist/collection/components/details/details.css +38 -31
- package/dist/collection/components/details/details.js +42 -42
- package/dist/collection/components/form/form-control-datepart.js +224 -224
- package/dist/collection/components/form/form-control-monetary.js +177 -177
- package/dist/collection/components/form/form-control-number-masked.js +208 -208
- package/dist/collection/components/form/form-control-number.css +7 -2
- package/dist/collection/components/form/form-control-number.js +188 -188
- package/dist/collection/components/form/form-control-select.css +7 -2
- package/dist/collection/components/form/form-control-select.js +196 -196
- package/dist/collection/components/form/form-control-text.css +7 -2
- package/dist/collection/components/form/form-control-text.js +188 -188
- package/dist/collection/components/form/form.js +80 -80
- package/dist/collection/components/gross-payment-chart/chart-utils.js +52 -52
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.css +3 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +125 -125
- package/dist/collection/components/gross-payment-chart/test/gross-payment-chart.spec.js +7 -7
- package/dist/collection/components/pagination-menu/pagination-menu.js +72 -72
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +144 -144
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js +10 -10
- package/dist/collection/components/payment-details/payment-details.css +38 -31
- package/dist/collection/components/payment-details/payment-details.js +106 -106
- package/dist/collection/components/payment-form/payment-form.css +16 -12
- package/dist/collection/components/payment-form/payment-form.js +319 -318
- package/dist/collection/components/payment-form/payment-method-selector.css +6 -2
- package/dist/collection/components/payment-form/payment-method-selector.js +90 -90
- package/dist/collection/components/payment-form/test/payment-form.e2e.js +9 -9
- package/dist/collection/components/payment-form/test/payment-form.spec.js +157 -157
- package/dist/collection/components/payment-method-form/get-computed-theme.js +47 -47
- package/dist/collection/components/payment-method-form/message-event-types.js +14 -14
- package/dist/collection/components/payment-method-form/payment-method-form.js +288 -262
- package/dist/collection/components/payment-method-form/test/payment-method-form.e2e.js +16 -16
- package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js +43 -43
- package/dist/collection/components/payments-list/payments-list.css +3 -0
- package/dist/collection/components/payments-list/payments-list.js +177 -178
- package/dist/collection/components/payments-list/test/payments-list.spec.js +21 -21
- package/dist/collection/components/payout-details/payout-details.css +38 -31
- package/dist/collection/components/payout-details/payout-details.js +107 -107
- package/dist/collection/components/payouts-list/payouts-list.css +3 -0
- package/dist/collection/components/payouts-list/payouts-list.js +199 -199
- package/dist/collection/components/proceeds-list/proceeds-list.css +3 -0
- package/dist/collection/components/proceeds-list/proceeds-list.js +182 -182
- package/dist/collection/components/proceeds-list/proceeds-list.stories.js +12 -12
- package/dist/collection/components/refund-form/refund-form-schema.js +9 -9
- package/dist/collection/components/refund-form/refund-form.css +23 -16
- package/dist/collection/components/refund-form/refund-form.js +216 -216
- package/dist/collection/components/refund-form/refund-form.stories.js +27 -27
- package/dist/collection/components/select-input/select-input.css +7 -2
- package/dist/collection/components/select-input/select-input.js +139 -139
- package/dist/collection/components/select-input/test/select-input.spec.js +38 -38
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.css +23 -16
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +65 -65
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.css +23 -16
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +43 -43
- package/dist/collection/components/subaccount-details/subaccount-details.css +38 -31
- package/dist/collection/components/subaccount-details/subaccount-details.js +132 -132
- package/dist/collection/components/subaccount-details/subaccount-details.stories.js +9 -9
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.css +23 -16
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +43 -44
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.css +23 -16
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +44 -43
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.css +23 -16
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +43 -43
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.css +23 -16
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +43 -43
- package/dist/collection/components/subaccount-details/test/subaccount-details.spec.js +7 -7
- package/dist/collection/components/subaccounts-list/subaccounts-list.js +164 -164
- package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js +12 -12
- package/dist/collection/components/subaccounts-list/test/subaccounts-list.e2e.js +6 -6
- package/dist/collection/components/subaccounts-list/test/subaccounts-list.spec.js +21 -21
- package/dist/collection/components/table/table.css +38 -31
- package/dist/collection/components/table/table.js +224 -224
- package/dist/collection/components/table/test/table.spec.js +48 -48
- package/dist/collection/components/text-input/test/text-input.spec.js +31 -31
- package/dist/collection/components/text-input/text-input.css +7 -2
- package/dist/collection/components/text-input/text-input.js +122 -122
- package/dist/collection/utils/country-options.js +198 -198
- package/dist/collection/utils/phone-masks.js +1 -1
- package/dist/collection/utils/utils.js +107 -107
- package/dist/config.js +9 -9
- package/dist/docs.d.ts +401 -0
- package/dist/docs.json +6506 -0
- package/dist/esm/{Api-c65d3ed8.js → Api-0e88671c.js} +35 -35
- package/dist/esm/{Pagination-31f770d6.js → Pagination-afc8f96d.js} +5 -5
- package/dist/esm/Payout-c42e3877.js +179 -0
- package/dist/esm/SubAccount-b3ce8720.js +105 -0
- package/dist/esm/additional-questions-details_5.entry.js +50 -50
- package/dist/esm/business-form-schema-997c585c.js +144 -0
- package/dist/esm/config-476c7241.js +13 -0
- package/dist/esm/{form-32cf3d1e.js → form-5279c05a.js} +84 -84
- package/dist/esm/form-control-datepart_2.entry.js +108 -108
- package/dist/esm/form-control-monetary.entry.js +50 -50
- package/dist/esm/form-control-number_3.entry.js +108 -108
- package/dist/esm/helpers-d8a6a0f1.js +24 -0
- package/dist/esm/{index-5ed53c20.js → index-5eb05747.js} +406 -195
- package/dist/esm/{index-7471ed60.js → index-ff8194f9.js} +189 -51
- package/dist/esm/{index.esm-9397ffa0.js → index.esm-8ae36d07.js} +61 -30
- package/dist/esm/justifi-additional-questions_6.entry.js +372 -372
- package/dist/esm/justifi-bank-account-form.entry.js +56 -56
- package/dist/esm/justifi-billing-form_2.entry.js +79 -79
- package/dist/esm/justifi-business-details.entry.js +61 -61
- package/dist/esm/justifi-business-form-stepped.entry.js +110 -110
- package/dist/esm/justifi-business-form.entry.js +71 -71
- package/dist/esm/justifi-business-list.entry.js +128 -128
- package/dist/esm/justifi-card-form.entry.js +57 -57
- package/dist/esm/justifi-details.entry.js +13 -13
- package/dist/esm/justifi-gross-payment-chart.entry.js +125 -125
- package/dist/esm/justifi-payment-balance-transactions.entry.js +72 -72
- package/dist/esm/justifi-payment-details.entry.js +53 -53
- package/dist/esm/justifi-payment-form.entry.js +89 -89
- package/dist/esm/justifi-payment-method-form.entry.js +171 -188
- package/dist/esm/justifi-payments-list.entry.js +97 -98
- package/dist/esm/justifi-payout-details.entry.js +54 -54
- package/dist/esm/justifi-payouts-list.entry.js +119 -119
- package/dist/esm/justifi-proceeds-list.entry.js +135 -135
- package/dist/esm/justifi-refund-form.entry.js +85 -85
- package/dist/esm/justifi-subaccount-details.entry.js +62 -62
- package/dist/esm/justifi-subaccounts-list.entry.js +84 -84
- package/dist/esm/justifi-table_2.entry.js +61 -61
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/select-input_2.entry.js +38 -38
- package/dist/esm/state-options-fc1daf67.js +244 -0
- package/dist/esm/subaccount-account-details_4.entry.js +41 -41
- package/dist/esm/subaccount-bank-details.entry.js +11 -11
- package/dist/esm/subaccount-terms-details.entry.js +11 -11
- package/dist/esm/{utils-40b7002c.js → utils-26c7dd12.js} +108 -108
- package/dist/esm/utils-7c6bd149.js +27 -0
- package/dist/esm/webcomponents.js +4 -4
- package/{loader → dist/loader}/cdn.js +1 -1
- package/{loader → dist/loader}/index.cjs.js +1 -1
- package/{loader → dist/loader}/index.d.ts +1 -1
- package/dist/loader/index.es2017.js +3 -0
- package/{loader → dist/loader}/index.js +2 -2
- package/dist/{components → module}/Api.js +35 -35
- package/dist/{components → module}/Pagination.js +5 -5
- package/dist/module/Payout.js +179 -0
- package/dist/module/SubAccount.js +105 -0
- package/dist/{components → module}/additional-questions-details.d.ts +2 -2
- package/dist/module/additional-questions-details2.js +36 -0
- package/dist/module/additional-questions.js +50 -0
- package/dist/module/billing-form.js +113 -0
- package/dist/module/business-address-form.js +72 -0
- package/dist/module/business-generic-info.js +212 -0
- package/dist/module/business-owners.js +116 -0
- package/dist/module/business-representative.js +90 -0
- package/dist/module/config.js +13 -0
- package/dist/module/details.js +38 -0
- package/dist/{components → module}/form-control-datepart.d.ts +2 -2
- package/dist/module/form-control-datepart2.js +98 -0
- package/dist/{components → module}/form-control-monetary.d.ts +2 -2
- package/dist/module/form-control-monetary2.js +83 -0
- package/dist/{components → module}/form-control-number-masked.d.ts +2 -2
- package/dist/module/form-control-number-masked2.js +82 -0
- package/dist/{components → module}/form-control-number.d.ts +2 -2
- package/dist/module/form-control-number2.js +71 -0
- package/dist/{components → module}/form-control-select.d.ts +2 -2
- package/dist/module/form-control-select2.js +67 -0
- package/dist/{components → module}/form-control-text.d.ts +2 -2
- package/dist/module/form-control-text2.js +71 -0
- package/dist/{components → module}/form.js +84 -84
- package/dist/{components → module}/generic-info-details.d.ts +2 -2
- package/dist/module/generic-info-details2.js +37 -0
- package/dist/module/helpers.js +24 -0
- package/dist/{components → module}/index.esm.js +61 -30
- package/dist/{components → module}/index2.js +406 -195
- package/dist/{components → module}/justifi-additional-questions.d.ts +2 -2
- package/dist/{components → module}/justifi-bank-account-form.d.ts +2 -2
- package/dist/module/justifi-bank-account-form.js +96 -0
- package/dist/{components → module}/justifi-billing-form.d.ts +2 -2
- package/dist/{components → module}/justifi-business-address-form.d.ts +2 -2
- package/dist/{components → module}/justifi-business-details.d.ts +2 -2
- package/dist/module/justifi-business-details.js +130 -0
- package/dist/{components → module}/justifi-business-form-stepped.d.ts +2 -2
- package/dist/module/justifi-business-form-stepped.js +228 -0
- package/dist/{components → module}/justifi-business-form.d.ts +2 -2
- package/dist/{components/justifi-payment-details.js → module/justifi-business-form.js} +161 -79
- package/dist/{components → module}/justifi-business-generic-info.d.ts +2 -2
- package/dist/{components → module}/justifi-business-list.d.ts +2 -2
- package/dist/module/justifi-business-list.js +197 -0
- package/dist/{components → module}/justifi-business-owners.d.ts +2 -2
- package/dist/{components → module}/justifi-business-representative.d.ts +2 -2
- package/dist/{components → module}/justifi-card-form.d.ts +2 -2
- package/dist/module/justifi-card-form.js +98 -0
- package/dist/{components → module}/justifi-details.d.ts +2 -2
- package/dist/{components → module}/justifi-gross-payment-chart.d.ts +2 -2
- package/dist/{components → module}/justifi-gross-payment-chart.js +146 -142
- package/dist/{components → module}/justifi-legal-address-form.d.ts +2 -2
- package/dist/{components → module}/justifi-payment-balance-transactions.d.ts +2 -2
- package/dist/module/justifi-payment-balance-transactions.js +125 -0
- package/dist/{components → module}/justifi-payment-details.d.ts +2 -2
- package/dist/module/justifi-payment-details.js +98 -0
- package/dist/{components → module}/justifi-payment-form.d.ts +2 -2
- package/dist/module/justifi-payment-form.js +169 -0
- package/dist/{components → module}/justifi-payment-method-form.d.ts +2 -2
- package/dist/{components → module}/justifi-payment-method-selector.d.ts +2 -2
- package/dist/{components → module}/justifi-payments-list.d.ts +2 -2
- package/dist/module/justifi-payments-list.js +154 -0
- package/dist/{components → module}/justifi-payout-details.d.ts +2 -2
- package/dist/module/justifi-payout-details.js +99 -0
- package/dist/{components → module}/justifi-payouts-list.d.ts +2 -2
- package/dist/module/justifi-payouts-list.js +176 -0
- package/dist/{components → module}/justifi-proceeds-list.d.ts +2 -2
- package/dist/module/justifi-proceeds-list.js +199 -0
- package/dist/{components → module}/justifi-refund-form.d.ts +2 -2
- package/dist/module/justifi-refund-form.js +139 -0
- package/dist/{components → module}/justifi-subaccount-details.d.ts +2 -2
- package/dist/module/justifi-subaccount-details.js +134 -0
- package/dist/{components → module}/justifi-subaccounts-list.d.ts +2 -2
- package/dist/module/justifi-subaccounts-list.js +142 -0
- package/dist/{components → module}/justifi-table.d.ts +2 -2
- package/dist/{components → module}/legal-address-details.d.ts +2 -2
- package/dist/module/legal-address-details2.js +36 -0
- package/dist/module/legal-address-form.js +268 -0
- package/dist/{components → module}/owner-details.d.ts +2 -2
- package/dist/module/owner-details2.js +39 -0
- package/dist/{components → module}/pagination-menu.d.ts +2 -2
- package/dist/module/pagination-menu2.js +43 -0
- package/dist/{components → module}/payment-method-form.js +191 -207
- package/dist/module/payment-method-selector.js +44 -0
- package/dist/{components → module}/phone-masks.js +1 -1
- package/dist/{components → module}/representative-details.d.ts +2 -2
- package/dist/module/representative-details2.js +37 -0
- package/dist/{components → module}/select-input.d.ts +2 -2
- package/dist/module/select-input2.js +50 -0
- package/dist/module/state-options.js +244 -0
- package/dist/{components → module}/subaccount-account-details.d.ts +2 -2
- package/dist/module/subaccount-account-details2.js +38 -0
- package/dist/{components → module}/subaccount-bank-details.d.ts +2 -2
- package/dist/module/subaccount-bank-details.js +39 -0
- package/dist/{components → module}/subaccount-merchant-details.d.ts +2 -2
- package/dist/module/subaccount-merchant-details2.js +37 -0
- package/dist/{components → module}/subaccount-owners-details.d.ts +2 -2
- package/dist/module/subaccount-owners-details2.js +37 -0
- package/dist/{components → module}/subaccount-representative-details.d.ts +2 -2
- package/dist/module/subaccount-representative-details2.js +37 -0
- package/dist/{components → module}/subaccount-terms-details.d.ts +2 -2
- package/dist/{webcomponents/p-98e4eae3.entry.js → module/subaccount-terms-details.js} +39 -1
- package/dist/module/table.js +90 -0
- package/dist/{components → module}/text-input.d.ts +2 -2
- package/dist/module/text-input2.js +48 -0
- package/dist/module/utils.js +27 -0
- package/dist/{components → module}/utils2.js +108 -108
- package/dist/types/api/Api.d.ts +14 -14
- package/dist/types/api/Business.d.ts +120 -120
- package/dist/types/api/GrossVolume.d.ts +4 -4
- package/dist/types/api/Pagination.d.ts +12 -12
- package/dist/types/api/Payment.d.ts +134 -134
- package/dist/types/api/Payout.d.ts +51 -51
- package/dist/types/api/Proceed.d.ts +51 -51
- package/dist/types/api/SubAccount.d.ts +130 -130
- package/dist/types/api/mockData/MockOnboardingData.d.ts +5 -5
- package/dist/types/api/mockData/mockGrossVolumeReport.d.ts +5 -5
- package/dist/types/api/shared.d.ts +9 -9
- package/dist/types/components/bank-account-form/bank-account-form.d.ts +58 -0
- package/dist/types/components/billing-form/billing-form-schema.d.ts +18 -18
- package/dist/types/components/billing-form/billing-form.d.ts +25 -25
- package/dist/types/components/billing-form/state-options.d.ts +2 -2
- 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 +13 -13
- package/dist/types/components/business-details/generic-info-details/generic-info-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-details/owner-details/owner-details.d.ts +2 -2
- package/dist/types/components/business-details/representative-details/representative-details.d.ts +2 -2
- package/dist/types/components/business-form/additional-questions/additional-questions.d.ts +7 -7
- package/dist/types/components/business-form/business-address/business-address-form-schema.d.ts +16 -16
- package/dist/types/components/business-form/business-address/business-address-form.d.ts +7 -7
- package/dist/types/components/business-form/business-form-schema.d.ts +102 -102
- package/dist/types/components/business-form/business-form-stepped.d.ts +23 -23
- package/dist/types/components/business-form/business-form.d.ts +11 -11
- package/dist/types/components/business-form/business-generic-info/business-generic-info.d.ts +6 -6
- package/dist/types/components/business-form/business-owners/business-owners.d.ts +22 -22
- package/dist/types/components/business-form/business-representative/business-representative-schema.d.ts +13 -13
- package/dist/types/components/business-form/business-representative/business-representative.d.ts +8 -8
- package/dist/types/components/business-form/legal-address-form/legal-address-form-schema.d.ts +12 -12
- package/dist/types/components/business-form/legal-address-form/legal-address-form.d.ts +7 -7
- package/dist/types/components/business-list/business-list.d.ts +27 -27
- package/dist/types/components/business-list/business-list.stories.d.ts +3 -3
- package/dist/types/components/card-form/card-form.d.ts +68 -0
- package/dist/types/components/details/details.d.ts +2 -2
- package/dist/types/components/details/utils.d.ts +10 -10
- package/dist/types/components/form/form-control-datepart.d.ts +16 -16
- package/dist/types/components/form/form-control-monetary.d.ts +14 -14
- package/dist/types/components/form/form-control-number-masked.d.ts +16 -16
- package/dist/types/components/form/form-control-number.d.ts +15 -15
- package/dist/types/components/form/form-control-select.d.ts +17 -17
- package/dist/types/components/form/form-control-text.d.ts +15 -15
- package/dist/types/components/form/form.d.ts +18 -18
- package/dist/types/components/gross-payment-chart/chart-utils.d.ts +39 -39
- package/dist/types/components/gross-payment-chart/gross-payment-chart.d.ts +16 -16
- package/dist/types/components/pagination-menu/pagination-menu.d.ts +5 -5
- package/dist/types/components/payment-balance-transactions/payment-balance-transactions.d.ts +14 -14
- package/dist/types/components/payment-balance-transactions/payment-balance-transactions.stories.d.ts +3 -3
- package/dist/types/components/payment-details/payment-details.d.ts +9 -9
- package/dist/types/components/payment-form/payment-form.d.ts +22 -22
- package/dist/types/components/payment-form/payment-method-selector.d.ts +6 -6
- package/dist/types/components/payment-form/tokenize.d.ts +3 -3
- package/dist/types/components/payment-method-form/message-event-types.d.ts +14 -14
- package/dist/types/components/payment-method-form/payment-method-form.d.ts +21 -22
- package/dist/types/components/payment-method-form/payment-method-responses.d.ts +40 -40
- package/dist/types/components/payment-method-form/theme.d.ts +45 -45
- package/dist/types/components/payments-list/payments-list.d.ts +14 -14
- package/dist/types/components/payout-details/payout-details.d.ts +9 -9
- package/dist/types/components/payouts-list/payouts-list.d.ts +15 -15
- package/dist/types/components/proceeds-list/proceeds-list.d.ts +15 -15
- package/dist/types/components/proceeds-list/proceeds-list.stories.d.ts +4 -4
- package/dist/types/components/refund-form/refund-form-schema.d.ts +4 -4
- package/dist/types/components/refund-form/refund-form.d.ts +54 -54
- package/dist/types/components/refund-form/refund-form.stories.d.ts +21 -21
- package/dist/types/components/select-input/select-input.d.ts +14 -14
- package/dist/types/components/subaccount-details/subaccount-account-details/subaccount-account-details.d.ts +3 -3
- package/dist/types/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.d.ts +2 -2
- package/dist/types/components/subaccount-details/subaccount-details.d.ts +13 -13
- package/dist/types/components/subaccount-details/subaccount-details.stories.d.ts +3 -3
- package/dist/types/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.d.ts +2 -2
- package/dist/types/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.d.ts +2 -2
- package/dist/types/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.d.ts +2 -2
- package/dist/types/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.d.ts +2 -2
- package/dist/types/components/subaccounts-list/subaccounts-list.d.ts +14 -14
- package/dist/types/components/subaccounts-list/subaccounts-list.stories.d.ts +4 -4
- package/dist/types/components/table/table.d.ts +19 -19
- package/dist/types/components/text-input/text-input.d.ts +10 -10
- package/dist/types/components.d.ts +228 -15
- package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/config.d.ts +11 -0
- package/dist/types/stencil-public-runtime.d.ts +32 -3
- package/dist/types/utils/country-options.d.ts +2 -2
- package/dist/types/utils/phone-masks.d.ts +1 -1
- package/dist/webcomponents/p-04817850.entry.js +1 -0
- package/dist/webcomponents/{p-b157f6ae.js → p-04c7f8f8.js} +1 -1
- package/dist/webcomponents/p-0a351e24.entry.js +1 -0
- package/dist/webcomponents/{p-ed8c9b88.entry.js → p-0ad353cc.entry.js} +1 -1
- package/dist/webcomponents/{p-cdd06952.entry.js → p-0f5206f0.entry.js} +1 -1
- package/dist/{components/subaccount-terms-details.js → webcomponents/p-173fb8ef.entry.js} +1 -38
- package/dist/webcomponents/p-1e2a98bf.js +1 -0
- package/dist/webcomponents/{p-86c23e1e.js → p-210677e3.js} +1 -1
- package/dist/webcomponents/p-22c2a11e.entry.js +1 -0
- package/dist/webcomponents/p-2cab231e.entry.js +1 -0
- package/dist/webcomponents/p-2ea68b03.entry.js +1 -0
- package/dist/{components/additional-questions-details2.js → webcomponents/p-33e74da7.entry.js} +1 -35
- package/dist/webcomponents/p-34430db2.entry.js +1 -0
- package/dist/webcomponents/p-377303af.entry.js +1 -0
- package/dist/webcomponents/{p-988191bf.js → p-3bef762a.js} +1 -1
- package/dist/webcomponents/p-42bc8e53.entry.js +1 -0
- package/dist/webcomponents/p-439a79c7.entry.js +1 -0
- package/dist/webcomponents/p-57efe345.entry.js +1 -0
- package/dist/webcomponents/p-59ecc2d7.entry.js +1 -0
- package/dist/webcomponents/p-650eb614.entry.js +1 -0
- package/dist/webcomponents/p-68427454.entry.js +1 -0
- package/dist/webcomponents/{p-59860ac8.js → p-78baff54.js} +1 -1
- package/dist/webcomponents/p-7d922421.entry.js +1 -0
- package/dist/webcomponents/{p-311250e2.entry.js → p-8302a5e2.entry.js} +1 -1
- package/dist/webcomponents/p-862f38cc.entry.js +1 -0
- package/dist/webcomponents/p-93579716.js +1 -0
- package/dist/webcomponents/p-b2dc938f.entry.js +1 -0
- package/dist/webcomponents/p-c8099443.entry.js +1 -0
- package/dist/webcomponents/p-c8916484.entry.js +1 -0
- package/dist/webcomponents/{p-c0f9f6a8.entry.js → p-cb5352a3.entry.js} +2 -2
- package/dist/webcomponents/p-cf656598.entry.js +1 -0
- package/dist/webcomponents/p-d84cd3a5.entry.js +1 -0
- package/dist/webcomponents/p-da00d9bf.js +2 -0
- package/dist/webcomponents/p-dd4e8fa1.entry.js +1 -0
- package/dist/webcomponents/p-df8f6a0f.entry.js +1 -0
- package/dist/webcomponents/p-e8f41c84.entry.js +1 -0
- package/dist/webcomponents/p-e9589e45.entry.js +1 -0
- package/dist/webcomponents/webcomponents.css +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +18 -41
- package/dist/cjs/Payout-f8240e9c.js +0 -183
- package/dist/cjs/SubAccount-f47c8522.js +0 -107
- package/dist/cjs/business-form-schema-fe831c30.js +0 -148
- package/dist/cjs/config-a156df17.js +0 -15
- package/dist/cjs/helpers-c505d861.js +0 -26
- package/dist/cjs/state-options-83b52cd1.js +0 -246
- package/dist/cjs/utils-a47b2e73.js +0 -35
- package/dist/collection/components/bank-account-form/bank-account-form.stories.js +0 -132
- package/dist/collection/components/bank-account-form/example.js +0 -54
- package/dist/collection/components/billing-form/billing-form.stories.js +0 -61
- package/dist/collection/components/billing-form/example.js +0 -26
- package/dist/collection/components/business-details/business-details.stories.js +0 -23
- package/dist/collection/components/business-form/business-form-example.js +0 -12
- package/dist/collection/components/business-form/business-form-stepped-example.js +0 -12
- package/dist/collection/components/business-form/business-form-stepped.stories.js +0 -132
- package/dist/collection/components/business-form/business-form.stories.js +0 -127
- package/dist/collection/components/card-form/card-form.stories.js +0 -137
- package/dist/collection/components/card-form/example.js +0 -59
- package/dist/collection/components/gross-payment-chart/example.js +0 -12
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.stories.js +0 -22
- package/dist/collection/components/payment-details/example.js +0 -12
- package/dist/collection/components/payment-details/payment-details.stories.js +0 -47
- package/dist/collection/components/payment-form/example.js +0 -23
- package/dist/collection/components/payment-form/payment-form.stories.js +0 -129
- package/dist/collection/components/payments-list/example.js +0 -12
- package/dist/collection/components/payments-list/payments-list.stories.js +0 -88
- package/dist/collection/components/payout-details/example.js +0 -12
- package/dist/collection/components/payout-details/payout-details.stories.js +0 -47
- package/dist/collection/components/payouts-list/example.js +0 -12
- package/dist/collection/components/payouts-list/payouts-list.stories.js +0 -88
- package/dist/components/Payout.js +0 -179
- package/dist/components/SubAccount.js +0 -105
- package/dist/components/additional-questions.js +0 -49
- package/dist/components/billing-form.js +0 -112
- package/dist/components/business-address-form.js +0 -69
- package/dist/components/business-generic-info.js +0 -211
- package/dist/components/business-owners.js +0 -115
- package/dist/components/business-representative.js +0 -89
- package/dist/components/config.js +0 -13
- package/dist/components/details.js +0 -37
- package/dist/components/form-control-datepart2.js +0 -95
- package/dist/components/form-control-monetary2.js +0 -80
- package/dist/components/form-control-number-masked2.js +0 -79
- package/dist/components/form-control-number2.js +0 -68
- package/dist/components/form-control-select2.js +0 -64
- package/dist/components/form-control-text2.js +0 -68
- package/dist/components/generic-info-details2.js +0 -36
- package/dist/components/helpers.js +0 -24
- package/dist/components/justifi-bank-account-form.js +0 -95
- package/dist/components/justifi-business-details.js +0 -129
- package/dist/components/justifi-business-form-stepped.js +0 -227
- package/dist/components/justifi-business-form.js +0 -175
- package/dist/components/justifi-business-list.js +0 -192
- package/dist/components/justifi-card-form.js +0 -97
- package/dist/components/justifi-payment-balance-transactions.js +0 -122
- package/dist/components/justifi-payment-form.js +0 -168
- package/dist/components/justifi-payments-list.js +0 -149
- package/dist/components/justifi-payout-details.js +0 -95
- package/dist/components/justifi-payouts-list.js +0 -171
- package/dist/components/justifi-proceeds-list.js +0 -194
- package/dist/components/justifi-refund-form.js +0 -138
- package/dist/components/justifi-subaccount-details.js +0 -130
- package/dist/components/justifi-subaccounts-list.js +0 -137
- package/dist/components/legal-address-details2.js +0 -35
- package/dist/components/legal-address-form.js +0 -267
- package/dist/components/owner-details2.js +0 -38
- package/dist/components/pagination-menu2.js +0 -42
- package/dist/components/payment-method-selector.js +0 -43
- package/dist/components/representative-details2.js +0 -36
- package/dist/components/select-input2.js +0 -49
- package/dist/components/state-options.js +0 -244
- package/dist/components/subaccount-account-details2.js +0 -37
- package/dist/components/subaccount-bank-details.js +0 -38
- package/dist/components/subaccount-merchant-details2.js +0 -36
- package/dist/components/subaccount-owners-details2.js +0 -36
- package/dist/components/subaccount-representative-details2.js +0 -36
- package/dist/components/table.js +0 -89
- package/dist/components/text-input2.js +0 -47
- package/dist/components/utils.js +0 -27
- package/dist/esm/Payout-586f06a3.js +0 -179
- package/dist/esm/SubAccount-128190e9.js +0 -105
- package/dist/esm/business-form-schema-30a3eadd.js +0 -144
- package/dist/esm/config-ceb0f902.js +0 -13
- package/dist/esm/helpers-1d5ecdc8.js +0 -24
- package/dist/esm/state-options-ece00aa2.js +0 -244
- package/dist/esm/utils-d19c2778.js +0 -27
- package/dist/types/components/bank-account-form/bank-account-form.stories.d.ts +0 -23
- package/dist/types/components/billing-form/billing-form.stories.d.ts +0 -8
- package/dist/types/components/business-details/business-details.stories.d.ts +0 -7
- package/dist/types/components/business-form/business-form-stepped.stories.d.ts +0 -27
- package/dist/types/components/business-form/business-form.stories.d.ts +0 -27
- package/dist/types/components/card-form/card-form.stories.d.ts +0 -17
- package/dist/types/components/gross-payment-chart/gross-payment-chart.stories.d.ts +0 -7
- package/dist/types/components/payment-details/payment-details.stories.d.ts +0 -8
- package/dist/types/components/payment-form/payment-form.stories.d.ts +0 -8
- package/dist/types/components/payments-list/payments-list.stories.d.ts +0 -9
- package/dist/types/components/payout-details/payout-details.stories.d.ts +0 -8
- package/dist/types/components/payouts-list/payouts-list.stories.d.ts +0 -9
- package/dist/types/home/runner/work/web-component-library/web-component-library/stencil-library/.stencil/config.d.ts +0 -11
- package/dist/webcomponents/p-14f7229e.entry.js +0 -1
- package/dist/webcomponents/p-2c2cde2d.js +0 -1
- package/dist/webcomponents/p-3501b0e8.entry.js +0 -1
- package/dist/webcomponents/p-3ee831ac.entry.js +0 -1
- package/dist/webcomponents/p-3fc95638.entry.js +0 -1
- package/dist/webcomponents/p-4214dbb8.entry.js +0 -1
- package/dist/webcomponents/p-46d5f717.entry.js +0 -1
- package/dist/webcomponents/p-4852ce94.entry.js +0 -1
- package/dist/webcomponents/p-4ec00b55.entry.js +0 -1
- package/dist/webcomponents/p-4fb653a8.entry.js +0 -1
- package/dist/webcomponents/p-586c8a4f.entry.js +0 -1
- package/dist/webcomponents/p-5e6726a8.entry.js +0 -1
- package/dist/webcomponents/p-7bda12a5.entry.js +0 -1
- package/dist/webcomponents/p-8f37e3ee.js +0 -1
- package/dist/webcomponents/p-91757d9f.entry.js +0 -1
- package/dist/webcomponents/p-9e012e33.entry.js +0 -1
- package/dist/webcomponents/p-a1ef6b4c.entry.js +0 -1
- package/dist/webcomponents/p-af771964.entry.js +0 -1
- package/dist/webcomponents/p-b60a58f4.entry.js +0 -1
- package/dist/webcomponents/p-bb70152e.entry.js +0 -1
- package/dist/webcomponents/p-bc91044c.entry.js +0 -1
- package/dist/webcomponents/p-c29c587f.entry.js +0 -1
- package/dist/webcomponents/p-cbb60191.js +0 -2
- package/dist/webcomponents/p-d0e4eca5.entry.js +0 -1
- package/dist/webcomponents/p-d4b66d74.entry.js +0 -1
- package/dist/webcomponents/p-e7ef2455.entry.js +0 -1
- package/dist/webcomponents/p-f2f0aa6e.entry.js +0 -1
- package/dist/webcomponents/p-f4075186.entry.js +0 -1
- package/loader/index.es2017.js +0 -3
- /package/{loader → dist/loader}/package.json +0 -0
- /package/dist/{components → module}/additional-questions-details.js +0 -0
- /package/dist/{components → module}/form-control-datepart.js +0 -0
- /package/dist/{components → module}/form-control-monetary.js +0 -0
- /package/dist/{components → module}/form-control-number-masked.js +0 -0
- /package/dist/{components → module}/form-control-number.js +0 -0
- /package/dist/{components → module}/form-control-select.js +0 -0
- /package/dist/{components → module}/form-control-text.js +0 -0
- /package/dist/{components → module}/generic-info-details.js +0 -0
- /package/dist/{components → module}/index.d.ts +0 -0
- /package/dist/{components → module}/index.js +0 -0
- /package/dist/{components → module}/justifi-additional-questions.js +0 -0
- /package/dist/{components → module}/justifi-billing-form.js +0 -0
- /package/dist/{components → module}/justifi-business-address-form.js +0 -0
- /package/dist/{components → module}/justifi-business-generic-info.js +0 -0
- /package/dist/{components → module}/justifi-business-owners.js +0 -0
- /package/dist/{components → module}/justifi-business-representative.js +0 -0
- /package/dist/{components → module}/justifi-details.js +0 -0
- /package/dist/{components → module}/justifi-legal-address-form.js +0 -0
- /package/dist/{components → module}/justifi-payment-method-form.js +0 -0
- /package/dist/{components → module}/justifi-payment-method-selector.js +0 -0
- /package/dist/{components → module}/justifi-table.js +0 -0
- /package/dist/{components → module}/legal-address-details.js +0 -0
- /package/dist/{components → module}/owner-details.js +0 -0
- /package/dist/{components → module}/pagination-menu.js +0 -0
- /package/dist/{components → module}/representative-details.js +0 -0
- /package/dist/{components → module}/select-input.js +0 -0
- /package/dist/{components → module}/subaccount-account-details.js +0 -0
- /package/dist/{components → module}/subaccount-merchant-details.js +0 -0
- /package/dist/{components → module}/subaccount-owners-details.js +0 -0
- /package/dist/{components → module}/subaccount-representative-details.js +0 -0
- /package/dist/{components → module}/text-input.js +0 -0
- /package/dist/webcomponents/{p-0d5d02d7.js → p-56f6ce4c.js} +0 -0
- /package/dist/webcomponents/{p-e12ab547.js → p-71679a41.js} +0 -0
- /package/dist/webcomponents/{p-47bc59b5.js → p-8e2a88a8.js} +0 -0
- /package/dist/webcomponents/{p-d6b5793d.js → p-9a6e4749.js} +0 -0
- /package/dist/webcomponents/{p-526cb161.js → p-9b4b91ba.js} +0 -0
- /package/dist/webcomponents/{p-9b6dcac5.js → p-ae263544.js} +0 -0
- /package/dist/webcomponents/{p-7d58db66.js → p-bedada09.js} +0 -0
|
@@ -1,117 +1,117 @@
|
|
|
1
1
|
import { BusinessStructure } from "../Business";
|
|
2
2
|
import { AccountType, BusinessType } from "../SubAccount";
|
|
3
3
|
const MockOnboardingPayload = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
business_details: {
|
|
5
|
+
url: "https://justifi.ai",
|
|
6
|
+
phone: '111-222-3333',
|
|
7
|
+
doing_business_as: {
|
|
8
|
+
name: 'Very Good Business'
|
|
9
|
+
},
|
|
10
|
+
email: 'ceo@business.com',
|
|
11
|
+
type: BusinessType.individual,
|
|
12
|
+
structure: BusinessStructure.private_corporation,
|
|
13
|
+
industry: "Landscaping Services",
|
|
14
|
+
legal: {
|
|
15
|
+
name: 'Legal Business Name',
|
|
16
|
+
address_city: "Minneapolis",
|
|
17
|
+
address_line1: "123 Example St",
|
|
18
|
+
address_state: "MN",
|
|
19
|
+
address_country: "USA",
|
|
20
|
+
address_postal_code: "55555"
|
|
21
|
+
}
|
|
9
22
|
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
title: 'Head of Operations',
|
|
26
|
-
email: "just.an.individual@justifi.ai",
|
|
27
|
-
phone: "6124011111",
|
|
28
|
-
dob_day: "01",
|
|
29
|
-
dob_year: "1980",
|
|
30
|
-
is_owner: false,
|
|
31
|
-
dob_month: "01",
|
|
32
|
-
ssn_last4: "6789",
|
|
33
|
-
address_city: "Minneapolis",
|
|
34
|
-
address_line1: "123 Example St",
|
|
35
|
-
address_state: "MN",
|
|
36
|
-
address_country: "USA",
|
|
37
|
-
address_postal_code: "55555"
|
|
38
|
-
},
|
|
39
|
-
owners: [
|
|
40
|
-
{
|
|
41
|
-
name: "Owner 1",
|
|
42
|
-
title: "CEO",
|
|
43
|
-
email: "owner@company.com",
|
|
44
|
-
identification_number: '555-555-5555',
|
|
45
|
-
dob_day: "01",
|
|
46
|
-
dob_year: "1980",
|
|
47
|
-
dob_month: "01",
|
|
48
|
-
address_city: "Minneapolis",
|
|
49
|
-
address_line1: "123 Example St",
|
|
50
|
-
address_state: "MN",
|
|
51
|
-
address_country: "USA",
|
|
52
|
-
address_postal_code: "55555"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
name: "Owner 2",
|
|
56
|
-
title: "CFO",
|
|
57
|
-
email: "owner@company.com",
|
|
58
|
-
identification_number: '555-555-5555',
|
|
59
|
-
dob_day: "01",
|
|
60
|
-
dob_year: "1980",
|
|
61
|
-
dob_month: "01",
|
|
62
|
-
address_city: "Minneapolis",
|
|
63
|
-
address_line1: "123 Example St",
|
|
64
|
-
address_state: "MN",
|
|
65
|
-
address_country: "USA",
|
|
66
|
-
address_postal_code: "55555"
|
|
23
|
+
representative: {
|
|
24
|
+
name: "Individual Personname",
|
|
25
|
+
title: 'Head of Operations',
|
|
26
|
+
email: "just.an.individual@justifi.ai",
|
|
27
|
+
phone: "6124011111",
|
|
28
|
+
dob_day: "01",
|
|
29
|
+
dob_year: "1980",
|
|
30
|
+
is_owner: false,
|
|
31
|
+
dob_month: "01",
|
|
32
|
+
ssn_last4: "6789",
|
|
33
|
+
address_city: "Minneapolis",
|
|
34
|
+
address_line1: "123 Example St",
|
|
35
|
+
address_state: "MN",
|
|
36
|
+
address_country: "USA",
|
|
37
|
+
address_postal_code: "55555"
|
|
67
38
|
},
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
39
|
+
owners: [
|
|
40
|
+
{
|
|
41
|
+
name: "Owner 1",
|
|
42
|
+
title: "CEO",
|
|
43
|
+
email: "owner@company.com",
|
|
44
|
+
identification_number: '555-555-5555',
|
|
45
|
+
dob_day: "01",
|
|
46
|
+
dob_year: "1980",
|
|
47
|
+
dob_month: "01",
|
|
48
|
+
address_city: "Minneapolis",
|
|
49
|
+
address_line1: "123 Example St",
|
|
50
|
+
address_state: "MN",
|
|
51
|
+
address_country: "USA",
|
|
52
|
+
address_postal_code: "55555"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: "Owner 2",
|
|
56
|
+
title: "CFO",
|
|
57
|
+
email: "owner@company.com",
|
|
58
|
+
identification_number: '555-555-5555',
|
|
59
|
+
dob_day: "01",
|
|
60
|
+
dob_year: "1980",
|
|
61
|
+
dob_month: "01",
|
|
62
|
+
address_city: "Minneapolis",
|
|
63
|
+
address_line1: "123 Example St",
|
|
64
|
+
address_state: "MN",
|
|
65
|
+
address_country: "USA",
|
|
66
|
+
address_postal_code: "55555"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: "Owner 3",
|
|
70
|
+
title: "Owner",
|
|
71
|
+
email: "owner@company.com",
|
|
72
|
+
identification_number: '555-555-5555',
|
|
73
|
+
dob_day: "01",
|
|
74
|
+
dob_year: "1980",
|
|
75
|
+
dob_month: "01",
|
|
76
|
+
address_city: "Minneapolis",
|
|
77
|
+
address_line1: "123 Example St",
|
|
78
|
+
address_state: "MN",
|
|
79
|
+
address_country: "USA",
|
|
80
|
+
address_postal_code: "55555"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: "Owner 4",
|
|
84
|
+
title: "Some guy",
|
|
85
|
+
email: "owner@company.com",
|
|
86
|
+
identification_number: '555-555-5555',
|
|
87
|
+
dob_day: "01",
|
|
88
|
+
dob_year: "1980",
|
|
89
|
+
dob_month: "01",
|
|
90
|
+
address_city: "Minneapolis",
|
|
91
|
+
address_line1: "123 Example St",
|
|
92
|
+
address_state: "MN",
|
|
93
|
+
address_country: "USA",
|
|
94
|
+
address_postal_code: "55555"
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
onboarding_version: "v1.0",
|
|
98
|
+
bank_account: {
|
|
99
|
+
bank_name: "Wells Fargo",
|
|
100
|
+
account_type: "checking",
|
|
101
|
+
account_number: "*****1112",
|
|
102
|
+
routing_number: "111111111",
|
|
103
|
+
account_nickname: "My payout account"
|
|
81
104
|
},
|
|
82
|
-
{
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
dob_day: "01",
|
|
88
|
-
dob_year: "1980",
|
|
89
|
-
dob_month: "01",
|
|
90
|
-
address_city: "Minneapolis",
|
|
91
|
-
address_line1: "123 Example St",
|
|
92
|
-
address_state: "MN",
|
|
93
|
-
address_country: "USA",
|
|
94
|
-
address_postal_code: "55555"
|
|
95
|
-
},
|
|
96
|
-
],
|
|
97
|
-
onboarding_version: "v1.0",
|
|
98
|
-
bank_account: {
|
|
99
|
-
bank_name: "Wells Fargo",
|
|
100
|
-
account_type: "checking",
|
|
101
|
-
account_number: "*****1112",
|
|
102
|
-
routing_number: "111111111",
|
|
103
|
-
account_nickname: "My payout account"
|
|
104
|
-
},
|
|
105
|
-
terms_and_conditions: {
|
|
106
|
-
ip: "127.0.0.1",
|
|
107
|
-
accepted: true,
|
|
108
|
-
user_agent: "Safari"
|
|
109
|
-
}
|
|
105
|
+
terms_and_conditions: {
|
|
106
|
+
ip: "127.0.0.1",
|
|
107
|
+
accepted: true,
|
|
108
|
+
user_agent: "Safari"
|
|
109
|
+
}
|
|
110
110
|
};
|
|
111
111
|
export const MockOnboardingData = {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
112
|
+
account_type: AccountType.test,
|
|
113
|
+
payload: MockOnboardingPayload,
|
|
114
|
+
platform_account_id: 'abc123',
|
|
115
|
+
seller_account_id: 'def456',
|
|
116
|
+
sub_account_id: 'ghi789'
|
|
117
117
|
};
|
|
@@ -1,218 +1,218 @@
|
|
|
1
1
|
import { CaptureStrategy, Card, Payment, PaymentMethod, PaymentStatuses } from "../Payment";
|
|
2
2
|
const mockPayments = [
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
3
|
+
// payment 0: succeeded
|
|
4
|
+
new Payment({
|
|
5
|
+
account_id: 'acc_5wEk41rFZVPsqK5xQ7K0eG',
|
|
6
|
+
amount: 363393,
|
|
7
|
+
amount_disputed: 0,
|
|
8
|
+
amount_refundable: 363393,
|
|
9
|
+
amount_refunded: 0,
|
|
10
|
+
balance: 363368,
|
|
11
|
+
capture_strategy: CaptureStrategy.automatic,
|
|
12
|
+
captured: true,
|
|
13
|
+
created_at: '2022-01-10T15:29:58.940Z',
|
|
14
|
+
currency: 'usd',
|
|
15
|
+
description: 'Successful Payment',
|
|
16
|
+
disputed: false,
|
|
17
|
+
disputes: [],
|
|
18
|
+
error_code: null,
|
|
19
|
+
error_description: null,
|
|
20
|
+
fee_amount: 25,
|
|
21
|
+
id: 'py_6vbEiTROeuEoA1Hs1s2exQ',
|
|
22
|
+
is_test: false,
|
|
23
|
+
metadata: {
|
|
24
|
+
city: 'Vienna',
|
|
25
|
+
state: 'Nevada',
|
|
26
|
+
customer_id: 234,
|
|
27
|
+
customer_first_name: 'Elvis',
|
|
28
|
+
customer_last_name: 'Presley',
|
|
29
|
+
source: 'app',
|
|
30
|
+
items: [
|
|
31
|
+
{
|
|
32
|
+
name: 'Pullover',
|
|
33
|
+
amount: 4500,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'Jeans',
|
|
37
|
+
amount: 5567,
|
|
38
|
+
},
|
|
39
|
+
],
|
|
38
40
|
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
41
|
+
payment_intent_id: null,
|
|
42
|
+
payment_method: new PaymentMethod({
|
|
43
|
+
card: new Card({
|
|
44
|
+
acct_last_four: '6449',
|
|
45
|
+
brand: 'mastercard',
|
|
46
|
+
created_at: '2022-01-13T14:19:11.803Z',
|
|
47
|
+
id: 'pm_7f66GJQoSofG3s9nOHPgaq',
|
|
48
|
+
name: 'Nick Name',
|
|
49
|
+
token: 'fake-token',
|
|
50
|
+
updated_at: '2022-01-13T14:19:11.803Z',
|
|
51
|
+
}),
|
|
52
|
+
}),
|
|
53
|
+
refunded: false,
|
|
54
|
+
status: PaymentStatuses.succeeded,
|
|
55
|
+
updated_at: '2022-01-10T15:29:58.940Z',
|
|
52
56
|
}),
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
57
|
+
// payment 1: fully refunded
|
|
58
|
+
new Payment({
|
|
59
|
+
account_id: 'acc_5wEk41rFZVPsqK5xQ7K0eG',
|
|
60
|
+
amount: 3393,
|
|
61
|
+
amount_disputed: 0,
|
|
62
|
+
amount_refundable: 0,
|
|
63
|
+
amount_refunded: 3393,
|
|
64
|
+
balance: 0,
|
|
65
|
+
capture_strategy: CaptureStrategy.automatic,
|
|
66
|
+
captured: true,
|
|
67
|
+
created_at: '2021-01-10T15:29:58.940Z',
|
|
68
|
+
currency: 'usd',
|
|
69
|
+
description: 'Fully Refunded Payment',
|
|
70
|
+
disputed: false,
|
|
71
|
+
disputes: [],
|
|
72
|
+
error_code: null,
|
|
73
|
+
error_description: null,
|
|
74
|
+
fee_amount: 25,
|
|
75
|
+
id: 'py_22cEiTROeuEoA1Hs1s24ls3',
|
|
76
|
+
is_test: false,
|
|
77
|
+
metadata: null,
|
|
78
|
+
payment_intent_id: null,
|
|
79
|
+
payment_method: new PaymentMethod({
|
|
80
|
+
card: new Card({
|
|
81
|
+
acct_last_four: '1213',
|
|
82
|
+
brand: 'visa',
|
|
83
|
+
created_at: '2021-01-13T14:19:11.803Z',
|
|
84
|
+
id: 'pm_7f66GJQoSofG3s9nOHPgaq',
|
|
85
|
+
name: 'Good Customer',
|
|
86
|
+
token: 'fake-token',
|
|
87
|
+
updated_at: '2021-01-13T14:19:11.803Z',
|
|
88
|
+
}),
|
|
89
|
+
}),
|
|
90
|
+
refunded: true,
|
|
91
|
+
status: PaymentStatuses.fully_refunded,
|
|
92
|
+
updated_at: '2021-01-10T15:29:58.940Z',
|
|
89
93
|
}),
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
94
|
+
// payment 2: partially refunded
|
|
95
|
+
new Payment({
|
|
96
|
+
account_id: 'acc_5wEk41rFZVPsqK5xQ7K0eG',
|
|
97
|
+
amount: 3393,
|
|
98
|
+
amount_disputed: 0,
|
|
99
|
+
amount_refundable: 3300,
|
|
100
|
+
amount_refunded: 193,
|
|
101
|
+
balance: 3275,
|
|
102
|
+
capture_strategy: CaptureStrategy.automatic,
|
|
103
|
+
captured: true,
|
|
104
|
+
created_at: '2021-11-10T15:29:58.940Z',
|
|
105
|
+
currency: 'usd',
|
|
106
|
+
description: 'Partially Refunded Payment',
|
|
107
|
+
disputed: false,
|
|
108
|
+
disputes: [],
|
|
109
|
+
error_code: null,
|
|
110
|
+
error_description: null,
|
|
111
|
+
fee_amount: 25,
|
|
112
|
+
id: 'py_8reEiTROeuEoA1Hs1s24zue',
|
|
113
|
+
is_test: false,
|
|
114
|
+
metadata: null,
|
|
115
|
+
payment_intent_id: null,
|
|
116
|
+
payment_method: new PaymentMethod({
|
|
117
|
+
card: new Card({
|
|
118
|
+
acct_last_four: '9780',
|
|
119
|
+
brand: 'american_express',
|
|
120
|
+
created_at: '2021-11-13T14:19:11.803Z',
|
|
121
|
+
id: 'pm_7f66GJQoSofG3s9nOHPgaq',
|
|
122
|
+
name: 'Sal Gleason',
|
|
123
|
+
token: 'fake-token',
|
|
124
|
+
updated_at: '2021-11-13T14:19:11.803Z',
|
|
125
|
+
}),
|
|
126
|
+
}),
|
|
127
|
+
refunded: true,
|
|
128
|
+
status: PaymentStatuses.partially_refunded,
|
|
129
|
+
updated_at: '2022-01-10T15:29:58.940Z',
|
|
126
130
|
}),
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
balance: 0,
|
|
139
|
-
capture_strategy: CaptureStrategy.automatic,
|
|
140
|
-
captured: true,
|
|
141
|
-
created_at: '2021-09-10T15:29:58.940Z',
|
|
142
|
-
currency: 'usd',
|
|
143
|
-
description: 'Rustic Marble Pants',
|
|
144
|
-
disputed: true,
|
|
145
|
-
disputes: [
|
|
146
|
-
{
|
|
147
|
-
amount_cents: 10000,
|
|
148
|
-
created_at: '2021-09-10T16:34:47.940Z',
|
|
131
|
+
// payment 3: disputed
|
|
132
|
+
new Payment({
|
|
133
|
+
account_id: 'acc_5wEk41rFZVPsqK5xQ7K0eG',
|
|
134
|
+
amount: 403393,
|
|
135
|
+
amount_disputed: 403393,
|
|
136
|
+
amount_refundable: 0,
|
|
137
|
+
amount_refunded: 0,
|
|
138
|
+
balance: 0,
|
|
139
|
+
capture_strategy: CaptureStrategy.automatic,
|
|
140
|
+
captured: true,
|
|
141
|
+
created_at: '2021-09-10T15:29:58.940Z',
|
|
149
142
|
currency: 'usd',
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
143
|
+
description: 'Rustic Marble Pants',
|
|
144
|
+
disputed: true,
|
|
145
|
+
disputes: [
|
|
146
|
+
{
|
|
147
|
+
amount_cents: 10000,
|
|
148
|
+
created_at: '2021-09-10T16:34:47.940Z',
|
|
149
|
+
currency: 'usd',
|
|
150
|
+
gateway_ref_id: 'dp_4f67775b-d6e0-4c4a-afb0-6ecf2d0df1a8',
|
|
151
|
+
id: 'ed5dfa9d-b29d-4658-b76d-fff0c592171f',
|
|
152
|
+
payment_id: '41ebfb2a-f8c8-4cee-9eca-cb7d86e863bc',
|
|
153
|
+
reason: null,
|
|
154
|
+
status: 'needs_response',
|
|
155
|
+
updated_at: '2021-09-10T16:34:47.940Z',
|
|
156
|
+
},
|
|
157
|
+
],
|
|
158
|
+
error_code: null,
|
|
159
|
+
error_description: null,
|
|
160
|
+
fee_amount: 35,
|
|
161
|
+
id: 'py_123EiTROeuEoA1Hs1s24r4w',
|
|
162
|
+
is_test: false,
|
|
163
|
+
metadata: null,
|
|
164
|
+
payment_intent_id: null,
|
|
165
|
+
payment_method: new PaymentMethod({
|
|
166
|
+
card: new Card({
|
|
167
|
+
acct_last_four: '1554',
|
|
168
|
+
brand: 'discover',
|
|
169
|
+
created_at: '2021-09-13T14:19:11.803Z',
|
|
170
|
+
id: 'pm_7f66GJQoSofG3s9nOHPgaq',
|
|
171
|
+
name: 'Sal Gleason',
|
|
172
|
+
token: 'fake-token',
|
|
173
|
+
updated_at: '2021-09-13T14:19:11.803Z',
|
|
174
|
+
}),
|
|
175
|
+
}),
|
|
176
|
+
refunded: false,
|
|
177
|
+
status: PaymentStatuses.disputed,
|
|
178
|
+
updated_at: '2021-09-10T15:29:58.940Z',
|
|
175
179
|
}),
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
180
|
+
// payment 4: failed
|
|
181
|
+
new Payment({
|
|
182
|
+
account_id: 'acc_5wEk41rFZVPsqK5xQ7K0eG',
|
|
183
|
+
amount: 24170,
|
|
184
|
+
amount_disputed: 0,
|
|
185
|
+
amount_refundable: 0,
|
|
186
|
+
amount_refunded: 0,
|
|
187
|
+
balance: 0,
|
|
188
|
+
capture_strategy: CaptureStrategy.automatic,
|
|
189
|
+
captured: false,
|
|
190
|
+
created_at: '2022-01-18T12:54:44.822Z',
|
|
191
|
+
currency: 'usd',
|
|
192
|
+
description: 'Failed Payment',
|
|
193
|
+
disputed: false,
|
|
194
|
+
disputes: [],
|
|
195
|
+
error_code: 'card_declined',
|
|
196
|
+
error_description: 'Your card has insufficient funds.',
|
|
197
|
+
fee_amount: 25,
|
|
198
|
+
id: 'py_6eZAJjYBFZU6LLNzxUDgx9',
|
|
199
|
+
is_test: true,
|
|
200
|
+
metadata: null,
|
|
201
|
+
payment_intent_id: null,
|
|
202
|
+
payment_method: new PaymentMethod({
|
|
203
|
+
card: new Card({
|
|
204
|
+
acct_last_four: '8774',
|
|
205
|
+
brand: 'diners_club',
|
|
206
|
+
created_at: '2022-01-18T15:07:15.975Z',
|
|
207
|
+
id: 'pm_5uyevnE6o1yl55nRgPWXXL',
|
|
208
|
+
name: 'Minnie Bernhard',
|
|
209
|
+
token: 'fake-token',
|
|
210
|
+
updated_at: '2022-01-18T15:07:15.975Z',
|
|
211
|
+
}),
|
|
212
|
+
}),
|
|
213
|
+
refunded: false,
|
|
214
|
+
status: PaymentStatuses.failed,
|
|
215
|
+
updated_at: '2022-01-18T12:54:44.822Z',
|
|
212
216
|
}),
|
|
213
|
-
refunded: false,
|
|
214
|
-
status: PaymentStatuses.failed,
|
|
215
|
-
updated_at: '2022-01-18T12:54:44.822Z',
|
|
216
|
-
}),
|
|
217
217
|
];
|
|
218
218
|
export default mockPayments;
|