@justifi/webcomponents 4.19.1-rc-5 → 4.19.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/{Analytics-8949ea18.js → Analytics-f870b3ee.js} +3 -2
- package/dist/cjs/{business-additional-questions-schema-cf545610.js → business-additional-questions-schema-11ce0005.js} +1 -1
- package/dist/cjs/{business-form-options-582467fe.js → business-form-options-26f9900c.js} +1 -1
- package/dist/cjs/{business.service-6bb7ac82.js → business.service-f63650f5.js} +6 -5
- package/dist/cjs/config-ff2dda66.js +15 -0
- package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
- package/dist/cjs/form-control-checkbox_9.cjs.entry.js +4 -4
- package/dist/cjs/{get-payout-csv-1391ff3e.js → get-payout-csv-f3aee6d0.js} +4 -3
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +10 -9
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -4
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-details.cjs.entry.js +4 -3
- package/dist/cjs/justifi-business-form.cjs.entry.js +9 -8
- package/dist/cjs/justifi-card-form.cjs.entry.js +5 -4
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkout.cjs.entry.js +5 -4
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -3
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +9 -11
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +5 -4
- package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -3
- package/dist/cjs/justifi-payment-form.cjs.entry.js +6 -5
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -5
- package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -3
- package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -3
- package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -4
- package/dist/cjs/{package-a3cbc925.js → package-1321b070.js} +4 -2
- package/dist/cjs/{payload-parsers-1cbc3b57.js → payload-parsers-969ab9b6.js} +1 -1
- package/dist/cjs/{payment.service-dfcfa19b.js → payment.service-0a64f9cd.js} +3 -2
- package/dist/cjs/{schema-validations-2733de42.js → schema-validations-f3db892c.js} +1 -1
- package/dist/collection/api/services/analytics.service.js +2 -1
- package/dist/collection/api/services/business.service.js +6 -5
- package/dist/collection/api/services/checkout.service.js +3 -2
- package/dist/collection/api/services/insurance.service.js +3 -2
- package/dist/collection/api/services/payment.service.js +3 -2
- package/dist/collection/api/services/payout.service.js +4 -3
- package/dist/collection/api/services/provision.service.js +4 -2
- package/dist/collection/api/services/reports.service.js +2 -1
- package/dist/collection/components/bank-account-form/bank-account-form.js +4 -3
- package/dist/collection/components/business-forms/business-form/business-form.js +3 -2
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +3 -2
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +3 -2
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +3 -2
- package/dist/collection/components/business-forms/utils/business-form-options.js +1 -1
- package/dist/collection/components/card-form/card-form.js +4 -3
- package/dist/collection/components/checkout/checkout-core.js +4 -4
- package/dist/collection/components/checkout/new-payment-method.js +4 -6
- package/dist/collection/components/checkout/payment-method-options.js +4 -3
- package/dist/collection/components/checkout/saved-payment-method.js +4 -3
- package/dist/collection/components/checkout/sezzle-payment-method.js +4 -3
- package/dist/collection/components/payment-form/payment-form.js +4 -3
- package/dist/collection/components/refund-form/refund-form.js +3 -2
- package/dist/config.js +11 -0
- package/dist/docs.json +8 -8
- package/dist/esm/{Analytics-38d3bafb.js → Analytics-262cdde5.js} +3 -2
- package/dist/esm/{business-additional-questions-schema-956e3caf.js → business-additional-questions-schema-e39bc781.js} +1 -1
- package/dist/esm/{business-form-options-7a9a74fc.js → business-form-options-0b08e08c.js} +1 -1
- package/dist/esm/{business.service-f45decfc.js → business.service-74bd1212.js} +6 -5
- package/dist/esm/config-476c7241.js +13 -0
- package/dist/esm/form-alert_5.entry.js +1 -1
- package/dist/esm/form-control-checkbox_9.entry.js +4 -4
- package/dist/esm/{get-payout-csv-e784a2ab.js → get-payout-csv-b494abfe.js} +4 -3
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +10 -9
- package/dist/esm/justifi-bank-account-form.entry.js +5 -4
- package/dist/esm/justifi-billing-form_2.entry.js +2 -2
- package/dist/esm/justifi-business-details.entry.js +4 -3
- package/dist/esm/justifi-business-form.entry.js +9 -8
- package/dist/esm/justifi-card-form.entry.js +5 -4
- package/dist/esm/justifi-checkout-core.entry.js +3 -3
- package/dist/esm/justifi-checkout.entry.js +5 -4
- package/dist/esm/justifi-gross-payment-chart.entry.js +4 -3
- package/dist/esm/justifi-new-payment-method_4.entry.js +9 -11
- package/dist/esm/justifi-owner-form_3.entry.js +5 -4
- package/dist/esm/justifi-payment-details.entry.js +4 -3
- package/dist/esm/justifi-payment-form.entry.js +6 -5
- package/dist/esm/justifi-payment-method-form.entry.js +1 -1
- package/dist/esm/justifi-payment-provisioning.entry.js +6 -5
- package/dist/esm/justifi-payments-list.entry.js +4 -3
- package/dist/esm/justifi-payout-details.entry.js +4 -3
- package/dist/esm/justifi-payouts-list.entry.js +4 -3
- package/dist/esm/justifi-refund-form.entry.js +3 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -4
- package/dist/esm/{package-89734008.js → package-d88677e9.js} +4 -2
- package/dist/esm/{payload-parsers-acb719d1.js → payload-parsers-62f443e1.js} +1 -1
- package/dist/esm/{payment.service-dad5153b.js → payment.service-3ca4a492.js} +3 -2
- package/dist/esm/{schema-validations-a83ff220.js → schema-validations-2f4fdebb.js} +1 -1
- package/dist/module/Analytics.js +2 -1
- package/dist/module/business-bank-account-form-step.js +3 -2
- package/dist/module/business-document-upload-form-step.js +3 -2
- package/dist/module/business-form-options.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +3 -2
- package/dist/module/business.service.js +6 -5
- package/dist/module/checkout-core.js +3 -3
- package/dist/module/config.js +13 -0
- package/dist/module/get-payout-csv.js +4 -3
- package/dist/module/justifi-bank-account-form.js +3 -2
- package/dist/module/justifi-business-form.js +3 -2
- package/dist/module/justifi-card-form.js +3 -2
- package/dist/module/justifi-checkout.js +3 -2
- package/dist/module/justifi-gross-payment-chart.js +2 -1
- package/dist/module/justifi-payment-form.js +4 -3
- package/dist/module/justifi-payment-provisioning.js +3 -2
- package/dist/module/justifi-refund-form.js +3 -2
- package/dist/module/justifi-season-interruption-insurance.js +3 -2
- package/dist/module/new-payment-method.js +3 -5
- package/dist/module/package.js +4 -2
- package/dist/module/payment-method-options.js +3 -2
- package/dist/module/payment.service.js +3 -2
- package/dist/module/saved-payment-method.js +3 -2
- package/dist/module/sezzle-payment-method.js +3 -2
- package/dist/types/components/checkout/new-payment-method.d.ts +0 -1
- package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +11 -0
- package/dist/webcomponents/index.esm.js +0 -1
- package/dist/webcomponents/p-04a0dbb6.js +1 -0
- package/dist/webcomponents/p-061dcb79.entry.js +1 -0
- package/dist/webcomponents/p-07109641.entry.js +1 -0
- package/dist/webcomponents/p-08b0fb31.js +1 -41
- package/dist/webcomponents/p-0f7b9555.entry.js +1 -0
- package/dist/webcomponents/p-14c91ffd.js +1 -20
- package/dist/webcomponents/p-198994c0.entry.js +1 -0
- package/dist/webcomponents/p-1a43e355.entry.js +19 -0
- package/dist/webcomponents/p-1ad5995e.js +1 -3599
- package/dist/webcomponents/p-1f70fa27.entry.js +1 -0
- package/dist/webcomponents/p-1ff8810b.js +1 -29
- package/dist/webcomponents/p-2338affa.js +1 -213
- package/dist/webcomponents/p-241b0ed9.js +1 -0
- package/dist/webcomponents/p-2799383d.entry.js +1 -0
- package/dist/webcomponents/p-29c0b182.js +1 -114
- package/dist/webcomponents/p-2b6c9c4f.js +1 -7
- package/dist/webcomponents/p-2eab3c90.js +1 -3052
- package/dist/webcomponents/p-3affadfc.entry.js +1 -0
- package/dist/webcomponents/p-3d4d566d.entry.js +1 -0
- package/dist/webcomponents/p-3dd4c6c3.entry.js +1 -0
- package/dist/webcomponents/p-462dc522.entry.js +1 -0
- package/dist/webcomponents/p-46f679a9.js +1 -0
- package/dist/webcomponents/p-487b72a8.entry.js +1 -0
- package/dist/webcomponents/p-48ae16e0.entry.js +1 -0
- package/dist/webcomponents/p-4abc17f0.entry.js +1 -0
- package/dist/webcomponents/p-4bac636e.entry.js +1 -0
- package/dist/webcomponents/p-52021fa1.entry.js +1 -0
- package/dist/webcomponents/p-525db3e8.js +1 -22
- package/dist/webcomponents/p-53948ff8.entry.js +1 -0
- package/dist/webcomponents/p-53e64f15.entry.js +1 -0
- package/dist/webcomponents/p-554a3c18.js +1 -0
- package/dist/webcomponents/p-56f6ce4c.js +1 -10
- package/dist/webcomponents/p-5968ff8a.js +1 -178
- package/dist/webcomponents/p-6078a370.js +1 -244
- package/dist/webcomponents/p-60a370fc.entry.js +1 -0
- package/dist/webcomponents/p-62b32c4c.entry.js +1 -0
- package/dist/webcomponents/p-65b561da.entry.js +1 -0
- package/dist/webcomponents/p-72c9e6b3.entry.js +1 -0
- package/dist/webcomponents/p-75b4daef.js +1 -0
- package/dist/webcomponents/p-7d85af5c.js +1 -16
- package/dist/webcomponents/p-8115b2f4.js +1 -28
- package/dist/webcomponents/p-83125497.js +1 -4027
- package/dist/webcomponents/p-8603348a.js +1 -0
- package/dist/webcomponents/p-890b3254.entry.js +1 -0
- package/dist/webcomponents/p-8df7bde8.js +1 -27
- package/dist/webcomponents/p-92bb1e5f.entry.js +1 -0
- package/dist/webcomponents/p-9c9c7dac.js +1 -24
- package/dist/webcomponents/p-9ccfa1c9.entry.js +1 -0
- package/dist/webcomponents/p-9dc36f76.entry.js +1 -0
- package/dist/webcomponents/p-ad41c8c7.entry.js +1 -0
- package/dist/webcomponents/p-ae263544.js +1 -0
- package/dist/webcomponents/p-af244664.js +1 -126
- package/dist/webcomponents/p-b16dfd5d.entry.js +1 -0
- package/dist/webcomponents/p-ba4bae6f.js +1 -12
- package/dist/webcomponents/p-bbed6107.entry.js +1 -0
- package/dist/webcomponents/p-bc92235c.entry.js +1 -0
- package/dist/webcomponents/p-be39c802.entry.js +1 -0
- package/dist/webcomponents/p-c9f8f7ec.entry.js +1 -0
- package/dist/webcomponents/p-d101c5db.js +1 -0
- package/dist/webcomponents/p-d1c8d794.entry.js +1 -0
- package/dist/webcomponents/p-d25c2f12.js +1 -0
- package/dist/webcomponents/p-d2a5054f.entry.js +1 -0
- package/dist/webcomponents/p-d765d638.js +1 -0
- package/dist/webcomponents/p-d8355f91.entry.js +1 -0
- package/dist/webcomponents/p-d89bad72.js +1 -39
- package/dist/webcomponents/p-dce846bf.js +1 -27
- package/dist/webcomponents/p-df21aaad.js +1 -120
- package/dist/webcomponents/p-e1255160.js +1 -3
- package/dist/webcomponents/p-e2c88817.entry.js +1 -0
- package/dist/webcomponents/p-e31f0f3e.entry.js +1 -0
- package/dist/webcomponents/p-e333620e.js +1 -34
- package/dist/webcomponents/p-e3fab0e2.js +1 -43
- package/dist/webcomponents/p-f0866375.entry.js +1 -0
- package/dist/webcomponents/p-fad19d75.js +2 -1638
- package/dist/webcomponents/p-fb58feb5.entry.js +1 -0
- package/dist/webcomponents/p-fe33151d.entry.js +1 -0
- package/dist/webcomponents/webcomponents.css +4 -362
- package/dist/webcomponents/webcomponents.esm.js +1 -20
- package/package.json +4 -2
- package/dist/globals.d.ts +0 -2
- package/dist/webcomponents/p-0179fbb2.entry.js +0 -1684
- package/dist/webcomponents/p-01a404ca.entry.js +0 -44
- package/dist/webcomponents/p-03d35880.entry.js +0 -130
- package/dist/webcomponents/p-06ff0429.entry.js +0 -65
- package/dist/webcomponents/p-220fc2cc.entry.js +0 -98
- package/dist/webcomponents/p-258b1ee2.entry.js +0 -149
- package/dist/webcomponents/p-25d8cd65.entry.js +0 -102
- package/dist/webcomponents/p-2988ac56.js +0 -79
- package/dist/webcomponents/p-2e405359.entry.js +0 -73
- package/dist/webcomponents/p-3e9ef4a8.js +0 -28
- package/dist/webcomponents/p-3fd13ca3.js +0 -52
- package/dist/webcomponents/p-5482d030.entry.js +0 -21
- package/dist/webcomponents/p-576826b1.entry.js +0 -43
- package/dist/webcomponents/p-5cb3f0b2.entry.js +0 -261
- package/dist/webcomponents/p-5f835b89.entry.js +0 -606
- package/dist/webcomponents/p-6fed319e.entry.js +0 -99
- package/dist/webcomponents/p-70a2aa74.entry.js +0 -76
- package/dist/webcomponents/p-74d0d0e1.entry.js +0 -75
- package/dist/webcomponents/p-7582b554.entry.js +0 -18
- package/dist/webcomponents/p-79646550.entry.js +0 -61
- package/dist/webcomponents/p-7b0400cd.entry.js +0 -131
- package/dist/webcomponents/p-800d31fe.entry.js +0 -162
- package/dist/webcomponents/p-85fc69e5.js +0 -90
- package/dist/webcomponents/p-890088fc.entry.js +0 -298
- package/dist/webcomponents/p-89887332.js +0 -301
- package/dist/webcomponents/p-8eb774df.entry.js +0 -54
- package/dist/webcomponents/p-9f94bbb6.entry.js +0 -118
- package/dist/webcomponents/p-a2da97f2.entry.js +0 -145
- package/dist/webcomponents/p-a5a225d9.entry.js +0 -125
- package/dist/webcomponents/p-a5c5821e.entry.js +0 -101
- package/dist/webcomponents/p-a5fb51dc.entry.js +0 -131
- package/dist/webcomponents/p-a6d04afc.js +0 -44
- package/dist/webcomponents/p-ac086069.entry.js +0 -58
- package/dist/webcomponents/p-ad5cfa9d.js +0 -77
- package/dist/webcomponents/p-b82c146f.entry.js +0 -111
- package/dist/webcomponents/p-b9a41ec2.entry.js +0 -74
- package/dist/webcomponents/p-ba5fae28.js +0 -90
- package/dist/webcomponents/p-c636f563.entry.js +0 -791
- package/dist/webcomponents/p-c64abefc.entry.js +0 -117
- package/dist/webcomponents/p-cb26f708.js +0 -18
- package/dist/webcomponents/p-cbf2437a.entry.js +0 -80
- package/dist/webcomponents/p-d17aee2b.entry.js +0 -26
- package/dist/webcomponents/p-d894aed2.entry.js +0 -133
- package/dist/webcomponents/p-e356f280.entry.js +0 -29
- package/dist/webcomponents/p-e837a453.entry.js +0 -94
- package/dist/webcomponents/p-e84a2dcb.entry.js +0 -97
- package/dist/webcomponents/p-ec2bd24f.entry.js +0 -94
- package/dist/webcomponents/p-ec854a3e.entry.js +0 -11053
- package/dist/webcomponents/p-f02b75dc.entry.js +0 -96
|
@@ -3,16 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const payment_service = require('./payment.service-
|
|
6
|
+
const payment_service = require('./payment.service-0a64f9cd.js');
|
|
7
7
|
require('./Pagination-0da8f095.js');
|
|
8
8
|
const Payment = require('./Payment-1a8a8ca6.js');
|
|
9
9
|
require('./Payout-a2dd7b01.js');
|
|
10
10
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
11
11
|
const utils = require('./utils-7a478c37.js');
|
|
12
12
|
const utils$1 = require('./utils-c1d2e426.js');
|
|
13
|
-
const Analytics = require('./Analytics-
|
|
13
|
+
const Analytics = require('./Analytics-f870b3ee.js');
|
|
14
14
|
require('./Api-3bc6e43f.js');
|
|
15
|
-
require('./
|
|
15
|
+
require('./config-ff2dda66.js');
|
|
16
|
+
require('./package-1321b070.js');
|
|
16
17
|
|
|
17
18
|
const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
18
19
|
var _a;
|
|
@@ -7,12 +7,13 @@ require('./Pagination-0da8f095.js');
|
|
|
7
7
|
const Payment = require('./Payment-1a8a8ca6.js');
|
|
8
8
|
require('./Payout-a2dd7b01.js');
|
|
9
9
|
const utils = require('./utils-89d86e29.js');
|
|
10
|
+
const config = require('./config-ff2dda66.js');
|
|
10
11
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
11
12
|
const utils$1 = require('./utils-7a478c37.js');
|
|
12
|
-
const Analytics = require('./Analytics-
|
|
13
|
+
const Analytics = require('./Analytics-f870b3ee.js');
|
|
13
14
|
const button = require('./button-3f400a66.js');
|
|
14
15
|
const styledHost = require('./styled-host-cc053016.js');
|
|
15
|
-
require('./package-
|
|
16
|
+
require('./package-1321b070.js');
|
|
16
17
|
require('./Api-3bc6e43f.js');
|
|
17
18
|
|
|
18
19
|
const paymentFormCss = ":host{display:block}justifi-payment-method-form{display:block;margin-left:calc(var(--jfi-layout-padding) * -1);margin-right:calc(var(--jfi-layout-padding) * -1)}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){font-family:var(--jfi-layout-font-family);background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}.jfi-submit-button{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow)}.jfi-submit-button:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.jfi-submit-button:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn.jfi-submit-button:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}.btn.jfi-submit-button-loading{min-width:75px;color:var(--jfi-submit-button-color-loading);background-color:var(--jfi-submit-button-background-color-loading);border-color:var(--jfi-submit-button-border-color-loading)}.btn.jfi-submit-button-loading .spinner-border{border-top-color:var(--jfi-submit-button-color-loading);border-bottom-color:var(--jfi-submit-button-color-loading);border-left-color:var(--jfi-submit-button-color-loading)}";
|
|
@@ -121,15 +122,15 @@ const PaymentForm = class {
|
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
124
|
render() {
|
|
124
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
125
|
+
return (index.h(styledHost.StyledHost, { key: '38bd6cca38d9068fa9277a8568a98f261a4cc616' }, index.h("form", { key: 'fec19f5e2f11934e6783124c4c437a2d3947f596', class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (index.h("div", { key: '18001f78e03336d01de8473a57e3e228e9fce201', class: "col-12" }, index.h("justifi-payment-method-selector", { key: '260ac1ade3ccfe6baf518eb856bdf4d380025620', selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), index.h("div", { key: 'f6ade2336314e05f2bdce75df8577939efe33e3b', class: "col-12" }, index.h("justifi-payment-method-form", { key: 'ad8e5b121b8425175f7ac7f38ab24dfba1801a28', "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: config.config.iframeOrigin, ref: el => {
|
|
125
126
|
if (el) {
|
|
126
127
|
this.paymentMethodFormRef = el;
|
|
127
128
|
}
|
|
128
|
-
} })), index.h("div", { key: '
|
|
129
|
+
} })), index.h("div", { key: '29f15f1cece3e07a569e514d08bf9996405699c6', class: "col-12" }, index.h("justifi-billing-form", { key: '9928924cc29bfa5c5e46ada294cb26da0c1d222b', legend: "Billing Info", ref: el => {
|
|
129
130
|
if (el) {
|
|
130
131
|
this.billingFormRef = el;
|
|
131
132
|
}
|
|
132
|
-
} })), index.h("slot", { key: '
|
|
133
|
+
} })), index.h("slot", { key: 'c36583ab34bc105b506df27aec02898455855cec', name: 'insurance' }), index.h("div", { key: 'cc38292ae8a59bc6f4624a8535e8b7c93e6f3a35', class: "col-12" }, index.h(button.Button, { key: 'e5fe0f50ee2322ab2a199a6229015c9daa198cc0', variant: "primary", type: "submit", onClick: event => this.submit(event), disabled: !this.submitButtonEnabled || this.isLoading, isLoading: this.isLoading, "data-testid": "submit-button", style: { width: '100%' } }, this.submitButtonText || 'Submit')))));
|
|
133
134
|
}
|
|
134
135
|
};
|
|
135
136
|
PaymentForm.style = JustifiPaymentFormStyle0;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const _package = require('./package-
|
|
6
|
+
const _package = require('./package-1321b070.js');
|
|
7
7
|
const utils = require('./utils-89d86e29.js');
|
|
8
8
|
|
|
9
9
|
var iframeResizer = {exports: {}};
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const Analytics = require('./Analytics-
|
|
6
|
+
const Analytics = require('./Analytics-f870b3ee.js');
|
|
7
7
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
8
8
|
const paymentProvisioningActions = require('./payment-provisioning-actions-06466dda.js');
|
|
9
|
-
const business_service = require('./business.service-
|
|
9
|
+
const business_service = require('./business.service-f63650f5.js');
|
|
10
|
+
const config = require('./config-ff2dda66.js');
|
|
10
11
|
const Api = require('./Api-3bc6e43f.js');
|
|
11
|
-
require('./package-
|
|
12
|
+
require('./package-1321b070.js');
|
|
12
13
|
require('./utils-7a478c37.js');
|
|
13
14
|
|
|
14
15
|
class ProvisionService {
|
|
@@ -16,9 +17,9 @@ class ProvisionService {
|
|
|
16
17
|
const endpoint = `entities/provisioning`;
|
|
17
18
|
const payload = {
|
|
18
19
|
business_id: businessId,
|
|
19
|
-
product_category: product
|
|
20
|
+
product_category: product
|
|
20
21
|
};
|
|
21
|
-
return Api.Api({ authToken, apiOrigin:
|
|
22
|
+
return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
|
|
@@ -3,16 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const payment_service = require('./payment.service-
|
|
6
|
+
const payment_service = require('./payment.service-0a64f9cd.js');
|
|
7
7
|
require('./Pagination-0da8f095.js');
|
|
8
8
|
const Payment = require('./Payment-1a8a8ca6.js');
|
|
9
9
|
require('./Payout-a2dd7b01.js');
|
|
10
10
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
11
11
|
const utils = require('./utils-7a478c37.js');
|
|
12
12
|
const utils$1 = require('./utils-c1d2e426.js');
|
|
13
|
-
const Analytics = require('./Analytics-
|
|
13
|
+
const Analytics = require('./Analytics-f870b3ee.js');
|
|
14
14
|
require('./Api-3bc6e43f.js');
|
|
15
|
-
require('./
|
|
15
|
+
require('./config-ff2dda66.js');
|
|
16
|
+
require('./package-1321b070.js');
|
|
16
17
|
|
|
17
18
|
const makeGetPayments = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
|
|
18
19
|
var _a, _b;
|
|
@@ -3,16 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const getPayoutCsv = require('./get-payout-csv-
|
|
6
|
+
const getPayoutCsv = require('./get-payout-csv-f3aee6d0.js');
|
|
7
7
|
require('./Pagination-0da8f095.js');
|
|
8
8
|
require('./Payment-1a8a8ca6.js');
|
|
9
9
|
const Payout = require('./Payout-a2dd7b01.js');
|
|
10
10
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
11
11
|
const utils = require('./utils-7a478c37.js');
|
|
12
12
|
const utils$1 = require('./utils-c1d2e426.js');
|
|
13
|
-
const Analytics = require('./Analytics-
|
|
13
|
+
const Analytics = require('./Analytics-f870b3ee.js');
|
|
14
14
|
require('./Api-3bc6e43f.js');
|
|
15
|
-
require('./
|
|
15
|
+
require('./config-ff2dda66.js');
|
|
16
|
+
require('./package-1321b070.js');
|
|
16
17
|
|
|
17
18
|
const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
18
19
|
var _a;
|
|
@@ -4,16 +4,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
const exportedParts = require('./exported-parts-b18c68c2.js');
|
|
7
|
-
const getPayoutCsv = require('./get-payout-csv-
|
|
7
|
+
const getPayoutCsv = require('./get-payout-csv-f3aee6d0.js');
|
|
8
8
|
require('./Pagination-0da8f095.js');
|
|
9
9
|
require('./Payment-1a8a8ca6.js');
|
|
10
10
|
const Payout = require('./Payout-a2dd7b01.js');
|
|
11
11
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
12
12
|
const utils = require('./utils-7a478c37.js');
|
|
13
13
|
const utils$1 = require('./utils-c1d2e426.js');
|
|
14
|
-
const Analytics = require('./Analytics-
|
|
14
|
+
const Analytics = require('./Analytics-f870b3ee.js');
|
|
15
15
|
require('./Api-3bc6e43f.js');
|
|
16
|
-
require('./
|
|
16
|
+
require('./config-ff2dda66.js');
|
|
17
|
+
require('./package-1321b070.js');
|
|
17
18
|
|
|
18
19
|
const makeGetPayouts = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
|
|
19
20
|
var _a, _b;
|
|
@@ -8,6 +8,7 @@ const Api = require('./Api-3bc6e43f.js');
|
|
|
8
8
|
require('./Pagination-0da8f095.js');
|
|
9
9
|
require('./Payment-1a8a8ca6.js');
|
|
10
10
|
require('./Payout-a2dd7b01.js');
|
|
11
|
+
const config = require('./config-ff2dda66.js');
|
|
11
12
|
const formInputMasks = require('./form-input-masks-0879c139.js');
|
|
12
13
|
const styledHost = require('./styled-host-cc053016.js');
|
|
13
14
|
|
|
@@ -93,11 +94,11 @@ const RefundForm = class {
|
|
|
93
94
|
if (!this.authToken) {
|
|
94
95
|
console.warn('Warning: Missing auth-token.');
|
|
95
96
|
}
|
|
96
|
-
this.api = Api.Api({ authToken: this.authToken, apiOrigin:
|
|
97
|
+
this.api = Api.Api({ authToken: this.authToken, apiOrigin: config.config.proxyApiOrigin });
|
|
97
98
|
}
|
|
98
99
|
render() {
|
|
99
100
|
var _a;
|
|
100
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
101
|
+
return (index.h(styledHost.StyledHost, { key: 'd0d0962eaecab749aa1eb124e86701a2fb4dfd53' }, index.h("h1", { key: 'cb3071d89c291b1664e551fcf2808a64569ba5eb' }, "Refund"), this.refundInfoText && (index.h("div", { key: '01a6f4567f882d2eec492ef6d98db7d04747ecb4', class: "d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3", role: "alert" }, index.h("img", { key: '8ae5928aaf8ead35a7ad180a01bdde05ebec3d5f', src: "/info-icon.svg", alt: "Information", height: "30", width: "30" }), index.h("p", { key: '425a7dfe9d8b886b55fd0878f3989373733c1758', class: "m-0", innerHTML: this.refundInfoText }))), index.h("form", { key: '5516d2ac500611d2410b9b4c2a4d0d15e417b2d1', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, index.h("div", { key: 'b67a7c56f070a5a25d91aa0cc77755b27d420fdc', class: "form-group" }, index.h("form-control-monetary", { key: '76b6cfdf2b39674434f4d880333dd5d5f603f0b6', name: "amount", label: "Refund Amount", defaultValue: ((_a = this.amount) === null || _a === void 0 ? void 0 : _a.toString()) || '', maskOptions: formInputMasks.CURRENCY_MASK.DECIMAL, inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.amount })), index.h("div", { key: '5e581cdea69d2ce9dbad774214cd904923d199b3', class: "form-group" }, index.h("form-control-text", { key: '926ae888676a4089d3381bd4d650e6f84f6e206a', name: "notes", label: "Additional Notes", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.notes })), this.withButton && (index.h("div", { key: 'de5df506b7b64a69a16241f117bf9bea4fd79b57', class: "form-group d-flex flex-row-reverse" }, index.h("button", { key: '92ad4d43677587c2c20dc03c6f03a6cf1f20ac12', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, this.submitButtonText))))));
|
|
101
102
|
}
|
|
102
103
|
};
|
|
103
104
|
RefundForm.style = JustifiRefundFormStyle0;
|
|
@@ -7,19 +7,20 @@ const Api = require('./Api-3bc6e43f.js');
|
|
|
7
7
|
require('./Pagination-0da8f095.js');
|
|
8
8
|
require('./Payment-1a8a8ca6.js');
|
|
9
9
|
require('./Payout-a2dd7b01.js');
|
|
10
|
+
const config = require('./config-ff2dda66.js');
|
|
10
11
|
const utils = require('./utils-7a478c37.js');
|
|
11
12
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
12
|
-
const Analytics = require('./Analytics-
|
|
13
|
-
require('./package-
|
|
13
|
+
const Analytics = require('./Analytics-f870b3ee.js');
|
|
14
|
+
require('./package-1321b070.js');
|
|
14
15
|
|
|
15
16
|
class InsuranceService {
|
|
16
17
|
async fetchQuote(authToken, payload) {
|
|
17
18
|
const endpoint = 'insurance/quotes';
|
|
18
|
-
return Api.Api({ authToken, apiOrigin:
|
|
19
|
+
return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
|
|
19
20
|
}
|
|
20
21
|
async toggleCoverage(authToken, quoteId, payload) {
|
|
21
22
|
const endpoint = `insurance/quotes/${quoteId}/toggle`;
|
|
22
|
-
return Api.Api({ authToken, apiOrigin:
|
|
23
|
+
return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const name = "@justifi/webcomponents";
|
|
4
|
-
const version = "4.19.1
|
|
4
|
+
const version = "4.19.1";
|
|
5
5
|
const description = "JustiFi Web Components";
|
|
6
6
|
const collection = "dist/collection/collection-manifest.json";
|
|
7
7
|
const main = "dist/index.cjs.js";
|
|
@@ -26,6 +26,7 @@ const scripts = {
|
|
|
26
26
|
generate: "stencil generate",
|
|
27
27
|
test: "TZ=utc stencil test --spec",
|
|
28
28
|
"test:watch": "TZ=utc stencil test --spec --watchAll",
|
|
29
|
+
"test:e2e": "stencil test --e2e",
|
|
29
30
|
"test:file": "stencil test --spec --watch --"
|
|
30
31
|
};
|
|
31
32
|
const dependencies = {
|
|
@@ -46,15 +47,16 @@ const devDependencies = {
|
|
|
46
47
|
"@babel/preset-env": "^7.21.5",
|
|
47
48
|
"@babel/preset-react": "^7.18.6",
|
|
48
49
|
"@babel/preset-typescript": "^7.21.5",
|
|
49
|
-
"@rollup/plugin-replace": "^5.0.7",
|
|
50
50
|
"@stencil/sass": "^3.0.1",
|
|
51
51
|
"@types/jest": "27.0.3",
|
|
52
|
+
"@types/node": "^20.1.4",
|
|
52
53
|
"@types/react": "^18.0.37",
|
|
53
54
|
"@types/react-dom": "^18.0.11",
|
|
54
55
|
dotenv: "^16.3.1",
|
|
55
56
|
jest: "^29.7.0",
|
|
56
57
|
"jest-cli": "^29.7.0",
|
|
57
58
|
"jest-environment-node": "^29.7.0",
|
|
59
|
+
puppeteer: "^21.0.0",
|
|
58
60
|
"ts-jest": "^29.1.2"
|
|
59
61
|
};
|
|
60
62
|
const license = "MIT";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index_esm = require('./index.esm-52757963.js');
|
|
4
|
-
const schemaValidations = require('./schema-validations-
|
|
4
|
+
const schemaValidations = require('./schema-validations-f3db892c.js');
|
|
5
5
|
|
|
6
6
|
const addressSchema = (allowOptionalFields) => {
|
|
7
7
|
const schema = index_esm.create$3({
|
|
@@ -4,16 +4,17 @@ const Api = require('./Api-3bc6e43f.js');
|
|
|
4
4
|
require('./Pagination-0da8f095.js');
|
|
5
5
|
require('./Payment-1a8a8ca6.js');
|
|
6
6
|
require('./Payout-a2dd7b01.js');
|
|
7
|
+
const config = require('./config-ff2dda66.js');
|
|
7
8
|
|
|
8
9
|
class PaymentService {
|
|
9
10
|
async fetchPayments(accountId, authToken, params) {
|
|
10
|
-
const api = Api.Api({ authToken, apiOrigin:
|
|
11
|
+
const api = Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin });
|
|
11
12
|
const endpoint = `account/${accountId}/payments`;
|
|
12
13
|
return api.get(endpoint, params);
|
|
13
14
|
}
|
|
14
15
|
async fetchPayment(paymentId, authToken) {
|
|
15
16
|
const endpoint = `payments/${paymentId}`;
|
|
16
|
-
return Api.Api({ authToken, apiOrigin:
|
|
17
|
+
return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).get(endpoint);
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const index_esm = require('./index.esm-52757963.js');
|
|
4
4
|
const stateOptions = require('./state-options-4fbcb48a.js');
|
|
5
|
-
const businessFormOptions = require('./business-form-options-
|
|
5
|
+
const businessFormOptions = require('./business-form-options-26f9900c.js');
|
|
6
6
|
|
|
7
7
|
const transformEmptyString = (value) => {
|
|
8
8
|
return value === '' ? null : value;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { config } from "../../../config";
|
|
1
2
|
import Api from "../Api";
|
|
2
3
|
export class AnalyticsService {
|
|
3
4
|
async record(body) {
|
|
4
5
|
const endpoint = 'analytics';
|
|
5
|
-
return Api({ apiOrigin:
|
|
6
|
+
return Api({ apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(body));
|
|
6
7
|
}
|
|
7
8
|
}
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
+
import { config } from "../../../config";
|
|
1
2
|
import Api from "../Api";
|
|
2
3
|
export class BusinessService {
|
|
3
4
|
async fetchBusiness(businessId, authToken) {
|
|
4
5
|
const endpoint = `entities/business/${businessId}`;
|
|
5
|
-
return Api({ authToken, apiOrigin:
|
|
6
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
|
|
6
7
|
}
|
|
7
8
|
async patchBusiness(authToken, businessId, payload) {
|
|
8
9
|
const endpoint = `entities/business/${businessId}`;
|
|
9
|
-
return Api({ authToken, apiOrigin:
|
|
10
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).patch(endpoint, payload);
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
13
|
export class IdentityService {
|
|
13
14
|
async fetchIdentity(identityId, authToken) {
|
|
14
15
|
const endpoint = `entities/identity/${identityId}`;
|
|
15
|
-
return Api({ authToken, apiOrigin:
|
|
16
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
|
|
16
17
|
}
|
|
17
18
|
async patchIdentity(authToken, identityId, payload) {
|
|
18
19
|
const endpoint = `entities/identity/${identityId}`;
|
|
19
|
-
return Api({ authToken, apiOrigin:
|
|
20
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).patch(endpoint, payload);
|
|
20
21
|
}
|
|
21
22
|
async postIdentity(authToken, payload) {
|
|
22
23
|
const endpoint = `entities/identity`;
|
|
23
|
-
return Api({ authToken, apiOrigin:
|
|
24
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, payload);
|
|
24
25
|
}
|
|
25
26
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Api } from "..";
|
|
2
|
+
import { config } from "../../../config";
|
|
2
3
|
export class CheckoutService {
|
|
3
4
|
async fetchCheckout(authToken, checkoutId) {
|
|
4
5
|
const endpoint = `checkouts/${checkoutId}`;
|
|
5
|
-
return Api({ authToken, apiOrigin:
|
|
6
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
|
|
6
7
|
}
|
|
7
8
|
async complete(authToken, checkoutId, payment) {
|
|
8
9
|
const endpoint = `checkouts/${checkoutId}/complete`;
|
|
@@ -12,6 +13,6 @@ export class CheckoutService {
|
|
|
12
13
|
if (payment.payment_token) {
|
|
13
14
|
payload.payment_token = payment.payment_token;
|
|
14
15
|
}
|
|
15
|
-
return Api({ authToken, apiOrigin:
|
|
16
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
|
|
16
17
|
}
|
|
17
18
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Api } from "..";
|
|
2
|
+
import { config } from "../../../config";
|
|
2
3
|
export class InsuranceService {
|
|
3
4
|
async fetchQuote(authToken, payload) {
|
|
4
5
|
const endpoint = 'insurance/quotes';
|
|
5
|
-
return Api({ authToken, apiOrigin:
|
|
6
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
|
|
6
7
|
}
|
|
7
8
|
async toggleCoverage(authToken, quoteId, payload) {
|
|
8
9
|
const endpoint = `insurance/quotes/${quoteId}/toggle`;
|
|
9
|
-
return Api({ authToken, apiOrigin:
|
|
10
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
|
|
10
11
|
}
|
|
11
12
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Api } from "..";
|
|
2
|
+
import { config } from "../../../config";
|
|
2
3
|
export class PaymentService {
|
|
3
4
|
async fetchPayments(accountId, authToken, params) {
|
|
4
|
-
const api = Api({ authToken, apiOrigin:
|
|
5
|
+
const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
|
|
5
6
|
const endpoint = `account/${accountId}/payments`;
|
|
6
7
|
return api.get(endpoint, params);
|
|
7
8
|
}
|
|
8
9
|
async fetchPayment(paymentId, authToken) {
|
|
9
10
|
const endpoint = `payments/${paymentId}`;
|
|
10
|
-
return Api({ authToken, apiOrigin:
|
|
11
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
|
|
11
12
|
}
|
|
12
13
|
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { Api } from "..";
|
|
2
|
+
import { config } from "../../../config";
|
|
2
3
|
export class PayoutService {
|
|
3
4
|
async fetchPayouts(accountId, authToken, params) {
|
|
4
|
-
const api = Api({ authToken, apiOrigin:
|
|
5
|
+
const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
|
|
5
6
|
const endpoint = `account/${accountId}/payouts`;
|
|
6
7
|
return api.get(endpoint, params);
|
|
7
8
|
}
|
|
8
9
|
async fetchPayout(payoutId, authToken) {
|
|
9
|
-
const api = Api({ authToken, apiOrigin:
|
|
10
|
+
const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
|
|
10
11
|
const endpoint = `payouts/${payoutId}`;
|
|
11
12
|
return api.get(endpoint);
|
|
12
13
|
}
|
|
13
14
|
async fetchCSV(payoutId, authToken) {
|
|
14
|
-
const api = Api({ authToken, apiOrigin:
|
|
15
|
+
const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
|
|
15
16
|
const endpoint = `reports/payouts/${payoutId}`;
|
|
16
17
|
return api.get(endpoint);
|
|
17
18
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import { config } from "../../../config";
|
|
1
2
|
import Api from "../Api";
|
|
3
|
+
;
|
|
2
4
|
export class ProvisionService {
|
|
3
5
|
async postProvisioning(authToken, businessId, product) {
|
|
4
6
|
const endpoint = `entities/provisioning`;
|
|
5
7
|
const payload = {
|
|
6
8
|
business_id: businessId,
|
|
7
|
-
product_category: product
|
|
9
|
+
product_category: product
|
|
8
10
|
};
|
|
9
|
-
return Api({ authToken, apiOrigin:
|
|
11
|
+
return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
|
|
10
12
|
}
|
|
11
13
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { config } from "../../../config";
|
|
1
2
|
import Api from "../Api";
|
|
2
3
|
export class ReportsService {
|
|
3
4
|
async fetchGrossVolumeChartData(accountId, authToken) {
|
|
4
|
-
const api = Api({ authToken: authToken, apiOrigin:
|
|
5
|
+
const api = Api({ authToken: authToken, apiOrigin: config.proxyApiOrigin });
|
|
5
6
|
const endpoint = `account/${accountId}/reports/gross_volume`;
|
|
6
7
|
return api.get(endpoint);
|
|
7
8
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { h, } from "@stencil/core";
|
|
2
|
+
import { config } from "../../../config";
|
|
2
3
|
import JustifiAnalytics from "../../api/Analytics";
|
|
3
4
|
export class BankAccountForm {
|
|
4
5
|
constructor() {
|
|
5
6
|
this.validationMode = undefined;
|
|
6
|
-
this.iframeOrigin =
|
|
7
|
+
this.iframeOrigin = config.iframeOrigin;
|
|
7
8
|
this.internalStyleOverrides = undefined;
|
|
8
9
|
}
|
|
9
10
|
readyHandler(event) {
|
|
@@ -55,7 +56,7 @@ export class BankAccountForm {
|
|
|
55
56
|
return this.childRef.resize();
|
|
56
57
|
}
|
|
57
58
|
render() {
|
|
58
|
-
return (h("justifi-payment-method-form", { key: '
|
|
59
|
+
return (h("justifi-payment-method-form", { key: 'e2fa64d199a6c550329c9797a6951335e7c12bc6', ref: el => {
|
|
59
60
|
if (el) {
|
|
60
61
|
this.childRef = el;
|
|
61
62
|
}
|
|
@@ -97,7 +98,7 @@ export class BankAccountForm {
|
|
|
97
98
|
},
|
|
98
99
|
"attribute": "iframe-origin",
|
|
99
100
|
"reflect": false,
|
|
100
|
-
"defaultValue": "
|
|
101
|
+
"defaultValue": "config.iframeOrigin"
|
|
101
102
|
}
|
|
102
103
|
};
|
|
103
104
|
}
|
|
@@ -3,6 +3,7 @@ import { FormController } from "../../form/form";
|
|
|
3
3
|
import { businessFormSchema } from "../schemas/business-form-schema";
|
|
4
4
|
import { Api } from "../../../api";
|
|
5
5
|
import { parseBusiness } from "../utils/payload-parsers";
|
|
6
|
+
import { config } from "../../../../config";
|
|
6
7
|
import { BusinessFormClickActions, BusinessFormServerErrors } from "../utils/business-form-types";
|
|
7
8
|
import { Business } from "../../../api/Business";
|
|
8
9
|
import JustifiAnalytics from "../../../api/Analytics";
|
|
@@ -68,7 +69,7 @@ export class BusinessForm {
|
|
|
68
69
|
if (!this.businessId)
|
|
69
70
|
console.error(missingBusinessIdMessage);
|
|
70
71
|
this.formController = new FormController(businessFormSchema);
|
|
71
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
72
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
|
|
72
73
|
this.fetchData();
|
|
73
74
|
}
|
|
74
75
|
disconnectedCallback() {
|
|
@@ -96,7 +97,7 @@ export class BusinessForm {
|
|
|
96
97
|
this.instantiateBusiness(response.data);
|
|
97
98
|
}
|
|
98
99
|
render() {
|
|
99
|
-
return (h(StyledHost, { key: '
|
|
100
|
+
return (h(StyledHost, { key: '60989d23631d6a02e9a25313dd7297a61063a09c', exportparts: "label,input,input-invalid" }, h("form", { key: 'd961174a3e93ed505012919a0e7e036bd61a4902', onSubmit: this.validateAndSubmit }, h("div", { key: '2be81a7f0e3b568266ee66127f2b537d57c36762', class: "row gap-3" }, h("h1", { key: 'eefc257f687ff24cebf13155a571398e3ddbcabd' }, this.title), h("form-alert", { key: '173d3ee84f5a952a51884ab5f3818c768fcc9b08', text: this.errorMessage, hideAlert: this.hideErrors }), h("div", { key: 'bfd7fd73aca630fcf56f468d912759d5a96de172', class: "col-12 mb-4" }, h("justifi-business-core-info", { key: 'dc15f46a28301c03ccd884ff09740e87d67b2e5a', formController: this.formController })), h("div", { key: 'b4cd6ba605ea28a7692cc561951bb69ad93bb8f5', class: "col-12 mb-4" }, h("justifi-legal-address-form", { key: '670f320ff6d1ba86a34f5b42dd97a5d38e96c209', formController: this.formController })), h("div", { key: '0afb9d18e6ecb951cefda4df5dd133d31359cecc', class: "col-12 mb-4" }, h("justifi-additional-questions", { key: '6953718bea9525126db35adc44a9c8754234816a', formController: this.formController })), h("div", { key: 'f88b576b9159cd43f17d5a63c26acc4b53dfa9a0', class: "col-12 mb-4" }, h("justifi-business-representative", { key: '4353116715c7f7b906c3c0eae322df04703fd8e5', formController: this.formController })), h("div", { key: 'd626b0738ce71f7529fa270d7a2c479f517e48a2', class: "col-12 d-flex flex-row-reverse" }, h("button", { key: '9469e132726c9bd02b8a1f4c4ca1a4c2a9000c1b', type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.fireClickEvents({ name: BusinessFormClickActions.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
|
|
100
101
|
}
|
|
101
102
|
static get is() { return "justifi-business-form"; }
|
|
102
103
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,6 +4,7 @@ import { BusinessFormStep } from "../../utils/business-form-types";
|
|
|
4
4
|
import { businessBankAccountSchema } from "../../schemas/business-bank-account-schema";
|
|
5
5
|
import { bankAccountTypeOptions } from "../../utils/business-form-options";
|
|
6
6
|
import { Api } from "../../../../api";
|
|
7
|
+
import { config } from "../../../../../config";
|
|
7
8
|
import { numberOnlyHandler } from "../../../form/utils";
|
|
8
9
|
import { BankAccount } from "../../../../api/BankAccount";
|
|
9
10
|
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../../../api/ComponentError";
|
|
@@ -104,7 +105,7 @@ export class BusinessBankAccountFormStep {
|
|
|
104
105
|
;
|
|
105
106
|
componentWillLoad() {
|
|
106
107
|
this.formController = new FormController(businessBankAccountSchema(this.allowOptionalFields));
|
|
107
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
108
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
|
|
108
109
|
if (this.businessId && this.authToken) {
|
|
109
110
|
this.fetchData();
|
|
110
111
|
}
|
|
@@ -117,7 +118,7 @@ export class BusinessBankAccountFormStep {
|
|
|
117
118
|
}
|
|
118
119
|
render() {
|
|
119
120
|
const bankAccountDefaultValue = this.formController.getInitialValues();
|
|
120
|
-
return (h("form", { key: '
|
|
121
|
+
return (h("form", { key: 'b2e106437693b667376fb8091117bc04899cce13' }, h("fieldset", { key: 'c6fc0e5b39278a4618abe0aeba8593b4800f23fa' }, h("legend", { key: 'f07c520e32491dd506f7ac16b03b0eb82a451035' }, "Bank Account Info"), h("hr", { key: '43845af4ec6f143653154e301a49c870c688e8cb' }), h("div", { key: '911f450a0e81a7fcf6afb8b54be910da36b068d6', class: "row gy-3" }, h("div", { key: 'afe5dd40139f1098e69736cd08f00792916657b1', class: "col-12" }, h("form-control-text", { key: 'c590065940b5ef4ab5a125962e114d3bb99161e8', name: "bank_name", label: "Bank Name", defaultValue: bankAccountDefaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'ad7ac99fdae7bb0108675cf4ea522ae7b0c7b340', class: "col-12" }, h("form-control-text", { key: '4e69debe8b184272c788f0ba206b7e983bb6bba5', name: "nickname", label: "Nickname", defaultValue: bankAccountDefaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'a478bb2330e48935b65d22a42287ab89f94b4808', class: "col-12" }, h("form-control-text", { key: 'c20531fb2c5e903eefeeb62fca5a831cf2542867', name: "account_owner_name", label: "Account Owner Name", defaultValue: bankAccountDefaultValue.account_owner_name, errorText: this.errors.account_owner_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '63325c985d0341888ad9ce34fec48c623e275f55', class: "col-12" }, h("form-control-select", { key: 'b9fc86477dada5413e4a6e18b10e77de620996d9', name: "account_type", label: "Account Type", options: bankAccountTypeOptions, defaultValue: bankAccountDefaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '7d2849185532bb21c85cf8227749469e28fdc102', class: "col-12" }, h("form-control-text", { key: '466a38e94ed054788596ec63bed4b4ffe646dc63', name: "account_number", label: "Account Number", defaultValue: bankAccountDefaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled })), h("div", { key: '1162fae41dfc767cd038a37d7a7581b54dee1a1d', class: "col-12" }, h("form-control-text", { key: '47ffb34b6523d34df02739231b5764418f162fe6', name: "routing_number", label: "Routing Number", defaultValue: bankAccountDefaultValue.routing_number, maxLength: 9, errorText: this.errors.routing_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled }))))));
|
|
121
122
|
}
|
|
122
123
|
static get is() { return "justifi-business-bank-account-form-step"; }
|
|
123
124
|
static get properties() {
|
|
@@ -3,6 +3,7 @@ import { FormController } from "../../../form/form";
|
|
|
3
3
|
import { BusinessFormStep } from "../../utils/business-form-types";
|
|
4
4
|
import { Business } from "../../../../api/Business";
|
|
5
5
|
import Api from "../../../../api/Api";
|
|
6
|
+
import { config } from "../../../../../config";
|
|
6
7
|
import { businessDocumentSchema } from "../../schemas/business-document-upload-schema";
|
|
7
8
|
import { EntityDocument, EntityDocumentStorage } from "../../../../api/Document";
|
|
8
9
|
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../../../api/ComponentError";
|
|
@@ -145,7 +146,7 @@ export class BusinessDocumentFormStep {
|
|
|
145
146
|
return 'entities/document';
|
|
146
147
|
}
|
|
147
148
|
componentWillLoad() {
|
|
148
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
149
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
|
|
149
150
|
if (this.businessId && this.authToken) {
|
|
150
151
|
this.fetchData();
|
|
151
152
|
}
|
|
@@ -178,7 +179,7 @@ export class BusinessDocumentFormStep {
|
|
|
178
179
|
return (h("justifi-business-document-upload-input-group", { paymentVolume: this.paymentVolume, inputHandler: this.inputHandler, storeFiles: this.storeFiles, errors: this.errors }));
|
|
179
180
|
}
|
|
180
181
|
render() {
|
|
181
|
-
return (h("form", { key: '
|
|
182
|
+
return (h("form", { key: '8f2e1d262cd5050b315019a1947b1474eaf995de' }, h("fieldset", { key: 'd022b1c294835e456a9067fcfdbf2b93a33c8ca8' }, h("legend", { key: '522ecbab0489efa6d4294f38f792a28770010f1e' }, "Document Uploads"), h("p", { key: 'b49a6b3a4a7c79b368b20455b4ed4a943f08ec51' }, "Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category."), h("hr", { key: '3d8c2f7f5b128b99ceaa501166ae60c490b12378' }), this.documentsOnFile, h("div", { key: 'd2627185483e1be43c0b34d80b1fcfa850decd28', class: "d-flex flex-column" }, this.formInputs))));
|
|
182
183
|
}
|
|
183
184
|
static get is() { return "justifi-business-document-upload-form-step"; }
|
|
184
185
|
static get properties() {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { FormController } from "../../../form/form";
|
|
3
3
|
import { BusinessFormStep } from "../../utils/business-form-types";
|
|
4
|
+
import { config } from "../../../../../config";
|
|
4
5
|
import { businessTermsConditionsSchema } from "../../schemas/business-terms-conditions-schema";
|
|
5
6
|
import { Api } from "../../../../api";
|
|
6
7
|
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../../../api/ComponentError";
|
|
@@ -70,7 +71,7 @@ export class BusinessTermsConditionsFormStep {
|
|
|
70
71
|
};
|
|
71
72
|
}
|
|
72
73
|
async componentWillLoad() {
|
|
73
|
-
this.api = Api({ authToken: this.authToken, apiOrigin:
|
|
74
|
+
this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
|
|
74
75
|
this.formController = new FormController(businessTermsConditionsSchema(this.allowOptionalFields));
|
|
75
76
|
if (this.businessId && this.authToken) {
|
|
76
77
|
this.fetchData();
|
|
@@ -106,7 +107,7 @@ export class BusinessTermsConditionsFormStep {
|
|
|
106
107
|
});
|
|
107
108
|
}
|
|
108
109
|
render() {
|
|
109
|
-
return (h("form", { key: '
|
|
110
|
+
return (h("form", { key: '29b946b553d7a8011bee8f1997888f04b51897b3' }, h("fieldset", { key: 'c6e6c2577a66e58de8aabaac572cd7dab0a609b2' }, h("legend", { key: '4cf7e19049ee60807ffc5cbecbc8b87e9725590a' }, "Terms and Conditions"), h("hr", { key: 'b0d0bb46987a864a20a419eb0b2338fd57d07765' }), h("justifi-business-terms-conditions-text", { key: 'c936f2205bf123266d8eed2f12194eb2d8feb056' }), h("br", { key: 'e4f38ba5341c5fcf5938c3637905612e02bc7077' }), h("div", { key: '163401aaaee6e037d94182e5005625055bda66c5', class: "row-gy-3" }, h("div", { key: '3925d9b802f62e16cc41407170593b4b9a676bd9', class: "col-12" }, h("form-control-checkbox", { key: 'd86e00bfebe915d84a41486be34cec3555598d92', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText }))))));
|
|
110
111
|
}
|
|
111
112
|
static get is() { return "justifi-business-terms-conditions-form-step"; }
|
|
112
113
|
static get properties() {
|