@justifi/webcomponents 4.19.1-rc-9 → 4.19.1-rc-10
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-7b691662.js → Analytics-3b027794.js} +4 -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-090a21e1.js → business.service-66c06c19.js} +6 -5
- package/dist/cjs/config-05767cba.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-238e839a.js → get-payout-csv-10cc9246.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 -2
- package/dist/cjs/justifi-checkout.cjs.entry.js +5 -4
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +7 -3
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +9 -8
- 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 +5 -4
- 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-bf1bdd89.js → package-22afd806.js} +2 -2
- package/dist/cjs/{payload-parsers-1cbc3b57.js → payload-parsers-969ab9b6.js} +1 -1
- package/dist/cjs/{payment.service-c92635c8.js → payment.service-598a2dec.js} +3 -2
- package/dist/cjs/{schema-validations-2733de42.js → schema-validations-f3db892c.js} +1 -1
- package/dist/collection/api/services/analytics.service.js +3 -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 +2 -1
- package/dist/collection/api/services/reports.service.js +5 -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 -3
- package/dist/collection/components/checkout/new-payment-method.js +4 -3
- 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-f41168f5.js → Analytics-529b3c8e.js} +4 -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-37d0cc72.js → business.service-595d3ac4.js} +6 -5
- package/dist/esm/config-27764a9d.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-a702a0d9.js → get-payout-csv-acc4fe08.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 -2
- package/dist/esm/justifi-checkout.entry.js +5 -4
- package/dist/esm/justifi-gross-payment-chart.entry.js +7 -3
- package/dist/esm/justifi-new-payment-method_4.entry.js +9 -8
- 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 +5 -4
- 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/{webcomponents/p-9c868390.js → esm/package-345be07e.js} +2 -2
- package/dist/esm/{payload-parsers-acb719d1.js → payload-parsers-62f443e1.js} +1 -1
- package/dist/esm/{payment.service-9359fe15.js → payment.service-6361d07d.js} +3 -2
- package/dist/esm/{schema-validations-a83ff220.js → schema-validations-2f4fdebb.js} +1 -1
- package/dist/module/Analytics.js +3 -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 -2
- 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 +5 -1
- package/dist/module/justifi-payment-form.js +4 -3
- package/dist/module/justifi-payment-provisioning.js +2 -1
- 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 -2
- package/dist/module/package.js +2 -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/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +11 -0
- package/dist/webcomponents/{p-a63e3c0d.entry.js → p-01a81c92.entry.js} +5 -4
- package/dist/webcomponents/{p-3fd13ca3.js → p-04a0dbb6.js} +1 -1
- package/dist/webcomponents/{p-bd66f9d2.entry.js → p-08fb1bee.entry.js} +3 -2
- package/dist/webcomponents/{p-03a16d1d.entry.js → p-13220ac5.entry.js} +4 -3
- package/dist/webcomponents/{p-dad3e069.entry.js → p-1c5a5255.entry.js} +9 -8
- package/dist/webcomponents/{p-67600cc0.js → p-1efcb4e1.js} +4 -2
- package/dist/webcomponents/{p-89887332.js → p-241b0ed9.js} +1 -1
- package/dist/webcomponents/{p-4e492fed.entry.js → p-2c639121.entry.js} +5 -4
- package/dist/webcomponents/{p-26dec41c.entry.js → p-2d583519.entry.js} +6 -5
- package/dist/webcomponents/{p-85fc69e5.js → p-46f679a9.js} +1 -1
- package/dist/webcomponents/{p-a5a225d9.entry.js → p-4750c590.entry.js} +1 -1
- package/dist/webcomponents/{p-53ecc8b9.entry.js → p-52786c5d.entry.js} +5 -4
- package/dist/webcomponents/p-5a62fca2.js +13 -0
- package/dist/webcomponents/{p-2b9846b8.entry.js → p-6145fa2c.entry.js} +4 -3
- package/dist/webcomponents/{p-0e1bc91e.js → p-66db48be.js} +6 -5
- package/dist/webcomponents/{p-b4b8b531.js → p-6e7d09e4.js} +4 -3
- package/dist/webcomponents/{p-5f835b89.entry.js → p-7930b031.entry.js} +4 -4
- package/dist/webcomponents/{p-47d79529.js → p-7b39f49e.js} +3 -2
- package/dist/webcomponents/{p-24dc023a.entry.js → p-91d278c9.entry.js} +10 -9
- package/dist/webcomponents/{p-42f855f5.entry.js → p-9a57c210.entry.js} +5 -4
- package/dist/webcomponents/{p-c031ddc0.entry.js → p-abe50330.entry.js} +4 -3
- package/dist/webcomponents/{p-92694c3d.entry.js → p-b582eb3c.entry.js} +4 -3
- package/dist/webcomponents/{p-1cbed2a0.entry.js → p-c4a17a0f.entry.js} +5 -4
- package/dist/webcomponents/{p-40cd264a.entry.js → p-c4a291fc.entry.js} +5 -4
- package/dist/webcomponents/{p-06b795d9.entry.js → p-c63eb94f.entry.js} +1 -1
- package/dist/webcomponents/{p-02ad434c.entry.js → p-c7eec8cd.entry.js} +7 -3
- package/dist/webcomponents/{p-75fd6367.entry.js → p-d14ca2eb.entry.js} +3 -2
- package/dist/webcomponents/{p-ba5fae28.js → p-d25c2f12.js} +1 -1
- package/dist/webcomponents/{p-6771e64c.entry.js → p-e7c48797.entry.js} +4 -3
- package/dist/{esm/package-1e26d7be.js → webcomponents/p-e9023210.js} +2 -2
- package/dist/webcomponents/{p-70a2aa74.entry.js → p-ef725123.entry.js} +2 -2
- package/dist/webcomponents/{p-e461747b.entry.js → p-ffccad98.entry.js} +9 -8
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +2 -2
- package/dist/{globals.d.ts → types/global.d.ts} +1 -1
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const _package = require('./package-
|
|
3
|
+
const _package = require('./package-22afd806.js');
|
|
4
4
|
const Api = require('./Api-3bc6e43f.js');
|
|
5
|
+
const config = require('./config-05767cba.js');
|
|
5
6
|
|
|
6
7
|
class AnalyticsService {
|
|
7
8
|
async record(body) {
|
|
8
9
|
const endpoint = 'analytics';
|
|
9
|
-
|
|
10
|
+
console.log('analytics.service "https://wc-proxy.justifi.ai": ', config.config.proxyApiOrigin);
|
|
11
|
+
return Api.Api({ apiOrigin: config.config.proxyApiOrigin }).post(endpoint, JSON.stringify(body));
|
|
10
12
|
}
|
|
11
13
|
}
|
|
12
14
|
|
|
@@ -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 businessCoreInfoSchema = (allowOptionalFields) => {
|
|
7
7
|
const schema = index_esm.create$3({
|
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const Api = require('./Api-3bc6e43f.js');
|
|
4
|
+
const config = require('./config-05767cba.js');
|
|
4
5
|
|
|
5
6
|
class BusinessService {
|
|
6
7
|
async fetchBusiness(businessId, authToken) {
|
|
7
8
|
const endpoint = `entities/business/${businessId}`;
|
|
8
|
-
return Api.Api({ authToken, apiOrigin:
|
|
9
|
+
return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).get(endpoint);
|
|
9
10
|
}
|
|
10
11
|
async patchBusiness(authToken, businessId, payload) {
|
|
11
12
|
const endpoint = `entities/business/${businessId}`;
|
|
12
|
-
return Api.Api({ authToken, apiOrigin:
|
|
13
|
+
return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).patch(endpoint, payload);
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
16
|
class IdentityService {
|
|
16
17
|
async fetchIdentity(identityId, authToken) {
|
|
17
18
|
const endpoint = `entities/identity/${identityId}`;
|
|
18
|
-
return Api.Api({ authToken, apiOrigin:
|
|
19
|
+
return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).get(endpoint);
|
|
19
20
|
}
|
|
20
21
|
async patchIdentity(authToken, identityId, payload) {
|
|
21
22
|
const endpoint = `entities/identity/${identityId}`;
|
|
22
|
-
return Api.Api({ authToken, apiOrigin:
|
|
23
|
+
return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).patch(endpoint, payload);
|
|
23
24
|
}
|
|
24
25
|
async postIdentity(authToken, payload) {
|
|
25
26
|
const endpoint = `entities/identity`;
|
|
26
|
-
return Api.Api({ authToken, apiOrigin:
|
|
27
|
+
return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).post(endpoint, payload);
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const config = {
|
|
4
|
+
iframeOrigin: "https://components.justifi.ai/v1",
|
|
5
|
+
proxyApiOrigin: "https://wc-proxy.justifi.ai",
|
|
6
|
+
proxyAuthToken: 'eyJraWQiOiJqdXN0aWZpLWUyNDgyMmU3ODE1MmEzZjRkMjU1IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiJodHRwczovL2F1dGguanVzdGlmaS5haS8iLCJhenAiOiJvYXNfMmlsWHBqOHQ2WVlEQ0xWU0FiVFczMiIsInN1YiI6Im9hc18yaWxYcGo4dDZZWURDTFZTQWJUVzMyQHNlc3Npb25zIiwiYXVkIjoiaHR0cHM6Ly9hcGkuanVzdGlmaS5haS92MSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyIsInBlcm1pc3Npb25zIjpbeyJyb2xlIjoicmVhZDphY2NvdW50IiwicmVzb3VyY2VfaWQiOiJhY2NfNUV0OWlYclNTQVpSMktTb3VRR0FXaSJ9LHsicm9sZSI6InJlYWQ6YnVzaW5lc3MiLCJyZXNvdXJjZV9pZCI6ImJpel8zYmg2OWJxMXJrM2RtWE5vQUtWb251In1dLCJleHAiOjE3MTE1NTk0MTQsImlhdCI6MTcwMzc4MzQxNCwicGxhdGZvcm1fYWNjb3VudF9pZCI6ImFjY18zcmVOYjRhTll5MmlXRFpRVmN6bXg0In0.oPOoDYxzrnpE8PRUaz-FCU4KqnSuNbFTeDkl3AtMscjUkIctP1OIFh-ZGBjbH5eVH5noXCbaiin0j92dS7jx4gLpxuYT2Q8gpZbuIsT7fa58elvGeRkUUJ-AC5ueZxlv90yPWMm0OIbyrV7XZhuwYyKbV-ZczEbl2JpvBMe40CM-LdClQV66d_-Kw9a23SabBVfYgP5V-5OsagOIESvzZoO-27tGlNkV2a-hxqddDCOZv0HvRYAtp5S7EQrmRdEBu5gCNbf1eRFG424hxZUFVr2LdetYuKQLxJjDdUjf86ZwEUecrEaDSupiN1VC3CitdOwBVf6-R_N0VpN4VLVD5g',
|
|
7
|
+
exampleAccountId: 'acc_5Et9iXrSSAZR2KSouQGAWi',
|
|
8
|
+
exampleBusinessId: 'biz_3bh69bq1rk3dmXNoAKVonu',
|
|
9
|
+
examplePaymentId: 'py_1NNeEnf4FbelxDCQN2RHcE',
|
|
10
|
+
examplePayoutId: 'po_17745yESnHyEgWNeunmhmR',
|
|
11
|
+
privateApiOrigin: '',
|
|
12
|
+
privateAuthToken: '',
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
exports.config = config;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const businessFormOptions = require('./business-form-options-
|
|
6
|
+
const businessFormOptions = require('./business-form-options-26f9900c.js');
|
|
7
7
|
const formInputMasks = require('./form-input-masks-0879c139.js');
|
|
8
8
|
const Business = require('./Business-aacbe893.js');
|
|
9
9
|
const helpers = require('./helpers-602962eb.js');
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const businessAdditionalQuestionsSchema = require('./business-additional-questions-schema-
|
|
6
|
+
const businessAdditionalQuestionsSchema = require('./business-additional-questions-schema-11ce0005.js');
|
|
7
7
|
const index_esm = require('./index.esm-52757963.js');
|
|
8
8
|
const Business = require('./Business-aacbe893.js');
|
|
9
9
|
const formInputMasks = require('./form-input-masks-0879c139.js');
|
|
10
|
-
const businessFormOptions = require('./business-form-options-
|
|
11
|
-
const payloadParsers = require('./payload-parsers-
|
|
10
|
+
const businessFormOptions = require('./business-form-options-26f9900c.js');
|
|
11
|
+
const payloadParsers = require('./payload-parsers-969ab9b6.js');
|
|
12
12
|
const utils = require('./utils-89d86e29.js');
|
|
13
13
|
const utils$1 = require('./utils-ddacfc44.js');
|
|
14
|
-
const schemaValidations = require('./schema-validations-
|
|
14
|
+
const schemaValidations = require('./schema-validations-f3db892c.js');
|
|
15
15
|
const businessFormTypes = require('./business-form-types-6e1fcda3.js');
|
|
16
16
|
const button = require('./button-3f400a66.js');
|
|
17
17
|
const stateOptions = require('./state-options-4fbcb48a.js');
|
|
@@ -4,22 +4,23 @@ 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-05767cba.js');
|
|
7
8
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
8
9
|
const utils = require('./utils-7a478c37.js');
|
|
9
10
|
|
|
10
11
|
class PayoutService {
|
|
11
12
|
async fetchPayouts(accountId, authToken, params) {
|
|
12
|
-
const api = Api.Api({ authToken, apiOrigin:
|
|
13
|
+
const api = Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin });
|
|
13
14
|
const endpoint = `account/${accountId}/payouts`;
|
|
14
15
|
return api.get(endpoint, params);
|
|
15
16
|
}
|
|
16
17
|
async fetchPayout(payoutId, authToken) {
|
|
17
|
-
const api = Api.Api({ authToken, apiOrigin:
|
|
18
|
+
const api = Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin });
|
|
18
19
|
const endpoint = `payouts/${payoutId}`;
|
|
19
20
|
return api.get(endpoint);
|
|
20
21
|
}
|
|
21
22
|
async fetchCSV(payoutId, authToken) {
|
|
22
|
-
const api = Api.Api({ authToken, apiOrigin:
|
|
23
|
+
const api = Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin });
|
|
23
24
|
const endpoint = `reports/payouts/${payoutId}`;
|
|
24
25
|
return api.get(endpoint);
|
|
25
26
|
}
|
|
@@ -5,16 +5,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
7
7
|
const paymentProvisioningActions = require('./payment-provisioning-actions-06466dda.js');
|
|
8
|
-
const business_service = require('./business.service-
|
|
8
|
+
const business_service = require('./business.service-66c06c19.js');
|
|
9
9
|
const index_esm = require('./index.esm-52757963.js');
|
|
10
10
|
const businessFormTypes = require('./business-form-types-6e1fcda3.js');
|
|
11
|
-
const schemaValidations = require('./schema-validations-
|
|
12
|
-
const businessFormOptions = require('./business-form-options-
|
|
11
|
+
const schemaValidations = require('./schema-validations-f3db892c.js');
|
|
12
|
+
const businessFormOptions = require('./business-form-options-26f9900c.js');
|
|
13
13
|
const Api = require('./Api-3bc6e43f.js');
|
|
14
14
|
require('./Pagination-0da8f095.js');
|
|
15
15
|
require('./Payment-1a8a8ca6.js');
|
|
16
16
|
require('./Payout-a2dd7b01.js');
|
|
17
17
|
const utils = require('./utils-ddacfc44.js');
|
|
18
|
+
const config = require('./config-05767cba.js');
|
|
18
19
|
const Business = require('./Business-aacbe893.js');
|
|
19
20
|
const skeleton = require('./skeleton-748c5dde.js');
|
|
20
21
|
const button = require('./button-3f400a66.js');
|
|
@@ -203,7 +204,7 @@ const BusinessBankAccountFormStep = class {
|
|
|
203
204
|
;
|
|
204
205
|
componentWillLoad() {
|
|
205
206
|
this.formController = new index_esm.FormController(businessBankAccountSchema(this.allowOptionalFields));
|
|
206
|
-
this.api = Api.Api({ authToken: this.authToken, apiOrigin:
|
|
207
|
+
this.api = Api.Api({ authToken: this.authToken, apiOrigin: config.config.proxyApiOrigin });
|
|
207
208
|
if (this.businessId && this.authToken) {
|
|
208
209
|
this.fetchData();
|
|
209
210
|
}
|
|
@@ -216,7 +217,7 @@ const BusinessBankAccountFormStep = class {
|
|
|
216
217
|
}
|
|
217
218
|
render() {
|
|
218
219
|
const bankAccountDefaultValue = this.formController.getInitialValues();
|
|
219
|
-
return (index.h("form", { key: '
|
|
220
|
+
return (index.h("form", { key: 'b1520933113b53469db59e1169f6cef945815fc6' }, index.h("fieldset", { key: 'e454afff2a2f7fb80012787ac989079b363b8d20' }, index.h("legend", { key: 'd64f00a046738c432d01130b0f074016a8a5c721' }, "Bank Account Info"), index.h("hr", { key: '6a1563926609702fc6b3ca32464b6235d65e3e85' }), index.h("div", { key: 'bc701a1fbf72d0ed4d813f8e28502eb86f7eb70b', class: "row gy-3" }, index.h("div", { key: '1906887c6c7b35bf025e21520a787c325c60d4e4', class: "col-12" }, index.h("form-control-text", { key: '3aebda5c7b7e36438f56ff93d0ec0a00bbb8d739', name: "bank_name", label: "Bank Name", defaultValue: bankAccountDefaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), index.h("div", { key: '3ec443fea8a3756a8ba5083da6b0fc8b125e1796', class: "col-12" }, index.h("form-control-text", { key: '894c7cbaeb12a2bce092a7112d045f7d70374b22', name: "nickname", label: "Nickname", defaultValue: bankAccountDefaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler, disabled: this.formDisabled })), index.h("div", { key: '5a139a21ada6f27ced15e3a7cd0a796785a282a9', class: "col-12" }, index.h("form-control-text", { key: 'b9b40098b82573877acd9d5b6ba7653d01dc193b', 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 })), index.h("div", { key: '7dd9fd1a193e85eaf2d7d3c082e1328235af6fe7', class: "col-12" }, index.h("form-control-select", { key: '07371524c2b8c672768c135231a3b047fcd6ac6c', name: "account_type", label: "Account Type", options: businessFormOptions.bankAccountTypeOptions, defaultValue: bankAccountDefaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler, disabled: this.formDisabled })), index.h("div", { key: 'a1c573d754e6425b506e66d8427d64514aca63f8', class: "col-12" }, index.h("form-control-text", { key: 'bac0642032dcc9108ca3144f7f2a599e9eeb9852', name: "account_number", label: "Account Number", defaultValue: bankAccountDefaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: utils.numberOnlyHandler, disabled: this.formDisabled })), index.h("div", { key: '0c4a1c1f2927773516127291901f6de8132f3f99', class: "col-12" }, index.h("form-control-text", { key: '45360d9ae8fa142d1c9d6d922904b2d7ced33749', name: "routing_number", label: "Routing Number", defaultValue: bankAccountDefaultValue.routing_number, maxLength: 9, errorText: this.errors.routing_number, inputHandler: this.inputHandler, keyDownHandler: utils.numberOnlyHandler, disabled: this.formDisabled }))))));
|
|
220
221
|
}
|
|
221
222
|
};
|
|
222
223
|
|
|
@@ -433,7 +434,7 @@ const BusinessDocumentFormStep = class {
|
|
|
433
434
|
return 'entities/document';
|
|
434
435
|
}
|
|
435
436
|
componentWillLoad() {
|
|
436
|
-
this.api = Api.Api({ authToken: this.authToken, apiOrigin:
|
|
437
|
+
this.api = Api.Api({ authToken: this.authToken, apiOrigin: config.config.proxyApiOrigin });
|
|
437
438
|
if (this.businessId && this.authToken) {
|
|
438
439
|
this.fetchData();
|
|
439
440
|
}
|
|
@@ -466,7 +467,7 @@ const BusinessDocumentFormStep = class {
|
|
|
466
467
|
return (index.h("justifi-business-document-upload-input-group", { paymentVolume: this.paymentVolume, inputHandler: this.inputHandler, storeFiles: this.storeFiles, errors: this.errors }));
|
|
467
468
|
}
|
|
468
469
|
render() {
|
|
469
|
-
return (index.h("form", { key: '
|
|
470
|
+
return (index.h("form", { key: '8f2e1d262cd5050b315019a1947b1474eaf995de' }, index.h("fieldset", { key: 'd022b1c294835e456a9067fcfdbf2b93a33c8ca8' }, index.h("legend", { key: '522ecbab0489efa6d4294f38f792a28770010f1e' }, "Document Uploads"), index.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."), index.h("hr", { key: '3d8c2f7f5b128b99ceaa501166ae60c490b12378' }), this.documentsOnFile, index.h("div", { key: 'd2627185483e1be43c0b34d80b1fcfa850decd28', class: "d-flex flex-column" }, this.formInputs))));
|
|
470
471
|
}
|
|
471
472
|
};
|
|
472
473
|
|
|
@@ -650,7 +651,7 @@ const BusinessTermsConditionsFormStep = class {
|
|
|
650
651
|
};
|
|
651
652
|
}
|
|
652
653
|
async componentWillLoad() {
|
|
653
|
-
this.api = Api.Api({ authToken: this.authToken, apiOrigin:
|
|
654
|
+
this.api = Api.Api({ authToken: this.authToken, apiOrigin: config.config.proxyApiOrigin });
|
|
654
655
|
this.formController = new index_esm.FormController(businessTermsConditionsSchema(this.allowOptionalFields));
|
|
655
656
|
if (this.businessId && this.authToken) {
|
|
656
657
|
this.fetchData();
|
|
@@ -686,7 +687,7 @@ const BusinessTermsConditionsFormStep = class {
|
|
|
686
687
|
});
|
|
687
688
|
}
|
|
688
689
|
render() {
|
|
689
|
-
return (index.h("form", { key: '
|
|
690
|
+
return (index.h("form", { key: '82b365e61a00c1d0bf5417ffa4bfb9597fd7a822' }, index.h("fieldset", { key: 'a08f8f65f2270d8b90edbdbed2a6c5227f6a4bcd' }, index.h("legend", { key: '05afe201de9fa5e107893b5a7d8cbca0d895f11c' }, "Terms and Conditions"), index.h("hr", { key: '28ea76ccf515c4eb1e21a9cef69eac2be76dff2d' }), index.h("justifi-business-terms-conditions-text", { key: '155975dc42cdd9497b45358e2bb38ae3ff38691e' }), index.h("br", { key: '969a76309a81c7a130ac3c4f67f9994e885df9b1' }), index.h("div", { key: '906cd8b3d33d0f209416ed17317d7f4208f4c876', class: "row-gy-3" }, index.h("div", { key: '3bce48100ca8227d8657af1ab133924ed4a35c1d', class: "col-12" }, index.h("form-control-checkbox", { key: 'd770ed6fb7c96c4b7b044b9b2d34f2b3478c22fb', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText }))))));
|
|
690
691
|
}
|
|
691
692
|
};
|
|
692
693
|
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const Analytics = require('./Analytics-
|
|
7
|
-
require('./
|
|
6
|
+
const Analytics = require('./Analytics-3b027794.js');
|
|
7
|
+
const config = require('./config-05767cba.js');
|
|
8
|
+
require('./package-22afd806.js');
|
|
8
9
|
require('./Api-3bc6e43f.js');
|
|
9
10
|
|
|
10
11
|
const BankAccountForm = class {
|
|
@@ -15,7 +16,7 @@ const BankAccountForm = class {
|
|
|
15
16
|
this.bankAccountFormTokenized = index.createEvent(this, "bankAccountFormTokenize", 7);
|
|
16
17
|
this.bankAccountFormValidated = index.createEvent(this, "bankAccountFormValidate", 7);
|
|
17
18
|
this.validationMode = undefined;
|
|
18
|
-
this.iframeOrigin =
|
|
19
|
+
this.iframeOrigin = config.config.iframeOrigin;
|
|
19
20
|
this.internalStyleOverrides = undefined;
|
|
20
21
|
}
|
|
21
22
|
readyHandler(event) {
|
|
@@ -67,7 +68,7 @@ const BankAccountForm = class {
|
|
|
67
68
|
return this.childRef.resize();
|
|
68
69
|
}
|
|
69
70
|
render() {
|
|
70
|
-
return (index.h("justifi-payment-method-form", { key: '
|
|
71
|
+
return (index.h("justifi-payment-method-form", { key: 'e2fa64d199a6c550329c9797a6951335e7c12bc6', ref: el => {
|
|
71
72
|
if (el) {
|
|
72
73
|
this.childRef = el;
|
|
73
74
|
}
|
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
const index_esm = require('./index.esm-52757963.js');
|
|
7
|
-
const schemaValidations = require('./schema-validations-
|
|
7
|
+
const schemaValidations = require('./schema-validations-f3db892c.js');
|
|
8
8
|
const stateOptions = require('./state-options-4fbcb48a.js');
|
|
9
9
|
const utils = require('./utils-ddacfc44.js');
|
|
10
10
|
const styledHost = require('./styled-host-cc053016.js');
|
|
11
|
-
require('./business-form-options-
|
|
11
|
+
require('./business-form-options-26f9900c.js');
|
|
12
12
|
require('./Business-aacbe893.js');
|
|
13
13
|
require('./helpers-602962eb.js');
|
|
14
14
|
|
|
@@ -4,15 +4,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
const utils$1 = require('./utils-c1d2e426.js');
|
|
7
|
-
const business_service = require('./business.service-
|
|
7
|
+
const business_service = require('./business.service-66c06c19.js');
|
|
8
8
|
const Business = require('./Business-aacbe893.js');
|
|
9
9
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
10
10
|
const utils = require('./utils-7a478c37.js');
|
|
11
|
-
const Analytics = require('./Analytics-
|
|
11
|
+
const Analytics = require('./Analytics-3b027794.js');
|
|
12
12
|
require('./Api-3bc6e43f.js');
|
|
13
|
+
require('./config-05767cba.js');
|
|
13
14
|
require('./helpers-602962eb.js');
|
|
14
15
|
require('./state-options-4fbcb48a.js');
|
|
15
|
-
require('./package-
|
|
16
|
+
require('./package-22afd806.js');
|
|
16
17
|
|
|
17
18
|
const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
18
19
|
var _a;
|
|
@@ -4,21 +4,22 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
const index_esm = require('./index.esm-52757963.js');
|
|
7
|
-
const businessAdditionalQuestionsSchema = require('./business-additional-questions-schema-
|
|
8
|
-
const payloadParsers = require('./payload-parsers-
|
|
7
|
+
const businessAdditionalQuestionsSchema = require('./business-additional-questions-schema-11ce0005.js');
|
|
8
|
+
const payloadParsers = require('./payload-parsers-969ab9b6.js');
|
|
9
9
|
const Api = require('./Api-3bc6e43f.js');
|
|
10
10
|
require('./Pagination-0da8f095.js');
|
|
11
11
|
require('./Payment-1a8a8ca6.js');
|
|
12
12
|
require('./Payout-a2dd7b01.js');
|
|
13
13
|
const businessFormTypes = require('./business-form-types-6e1fcda3.js');
|
|
14
14
|
const Business = require('./Business-aacbe893.js');
|
|
15
|
-
const Analytics = require('./Analytics-
|
|
15
|
+
const Analytics = require('./Analytics-3b027794.js');
|
|
16
16
|
const styledHost = require('./styled-host-cc053016.js');
|
|
17
|
-
require('./
|
|
17
|
+
const config = require('./config-05767cba.js');
|
|
18
|
+
require('./schema-validations-f3db892c.js');
|
|
18
19
|
require('./state-options-4fbcb48a.js');
|
|
19
|
-
require('./business-form-options-
|
|
20
|
+
require('./business-form-options-26f9900c.js');
|
|
20
21
|
require('./helpers-602962eb.js');
|
|
21
|
-
require('./package-
|
|
22
|
+
require('./package-22afd806.js');
|
|
22
23
|
|
|
23
24
|
const businessFormSchema = index_esm.create$3(Object.assign(Object.assign({}, businessAdditionalQuestionsSchema.businessCoreInfoSchema().fields), { legal_address: payloadParsers.addressSchema(), additional_questions: businessAdditionalQuestionsSchema.additionalQuestionsSchema(), representative: payloadParsers.identitySchema('representative') }));
|
|
24
25
|
|
|
@@ -85,7 +86,7 @@ const BusinessForm = class {
|
|
|
85
86
|
if (!this.businessId)
|
|
86
87
|
console.error(missingBusinessIdMessage);
|
|
87
88
|
this.formController = new index_esm.FormController(businessFormSchema);
|
|
88
|
-
this.api = Api.Api({ authToken: this.authToken, apiOrigin:
|
|
89
|
+
this.api = Api.Api({ authToken: this.authToken, apiOrigin: config.config.proxyApiOrigin });
|
|
89
90
|
this.fetchData();
|
|
90
91
|
}
|
|
91
92
|
disconnectedCallback() {
|
|
@@ -113,7 +114,7 @@ const BusinessForm = class {
|
|
|
113
114
|
this.instantiateBusiness(response.data);
|
|
114
115
|
}
|
|
115
116
|
render() {
|
|
116
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
117
|
+
return (index.h(styledHost.StyledHost, { key: '60989d23631d6a02e9a25313dd7297a61063a09c', exportparts: "label,input,input-invalid" }, index.h("form", { key: 'd961174a3e93ed505012919a0e7e036bd61a4902', onSubmit: this.validateAndSubmit }, index.h("div", { key: '2be81a7f0e3b568266ee66127f2b537d57c36762', class: "row gap-3" }, index.h("h1", { key: 'eefc257f687ff24cebf13155a571398e3ddbcabd' }, this.title), index.h("form-alert", { key: '173d3ee84f5a952a51884ab5f3818c768fcc9b08', text: this.errorMessage, hideAlert: this.hideErrors }), index.h("div", { key: 'bfd7fd73aca630fcf56f468d912759d5a96de172', class: "col-12 mb-4" }, index.h("justifi-business-core-info", { key: 'dc15f46a28301c03ccd884ff09740e87d67b2e5a', formController: this.formController })), index.h("div", { key: 'b4cd6ba605ea28a7692cc561951bb69ad93bb8f5', class: "col-12 mb-4" }, index.h("justifi-legal-address-form", { key: '670f320ff6d1ba86a34f5b42dd97a5d38e96c209', formController: this.formController })), index.h("div", { key: '0afb9d18e6ecb951cefda4df5dd133d31359cecc', class: "col-12 mb-4" }, index.h("justifi-additional-questions", { key: '6953718bea9525126db35adc44a9c8754234816a', formController: this.formController })), index.h("div", { key: 'f88b576b9159cd43f17d5a63c26acc4b53dfa9a0', class: "col-12 mb-4" }, index.h("justifi-business-representative", { key: '4353116715c7f7b906c3c0eae322df04703fd8e5', formController: this.formController })), index.h("div", { key: 'd626b0738ce71f7529fa270d7a2c479f517e48a2', class: "col-12 d-flex flex-row-reverse" }, index.h("button", { key: '9469e132726c9bd02b8a1f4c4ca1a4c2a9000c1b', type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.fireClickEvents({ name: businessFormTypes.BusinessFormClickActions.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
|
|
117
118
|
}
|
|
118
119
|
};
|
|
119
120
|
BusinessForm.style = JustifiBusinessFormStyle0;
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const Analytics = require('./Analytics-
|
|
7
|
-
require('./
|
|
6
|
+
const Analytics = require('./Analytics-3b027794.js');
|
|
7
|
+
const config = require('./config-05767cba.js');
|
|
8
|
+
require('./package-22afd806.js');
|
|
8
9
|
require('./Api-3bc6e43f.js');
|
|
9
10
|
|
|
10
11
|
const CardForm = class {
|
|
@@ -15,7 +16,7 @@ const CardForm = class {
|
|
|
15
16
|
this.cardFormTokenized = index.createEvent(this, "cardFormTokenize", 7);
|
|
16
17
|
this.cardFormValidated = index.createEvent(this, "cardFormValidate", 7);
|
|
17
18
|
this.validationMode = undefined;
|
|
18
|
-
this.iframeOrigin =
|
|
19
|
+
this.iframeOrigin = config.config.iframeOrigin;
|
|
19
20
|
this.singleLine = false;
|
|
20
21
|
this.internalStyleOverrides = undefined;
|
|
21
22
|
}
|
|
@@ -68,7 +69,7 @@ const CardForm = class {
|
|
|
68
69
|
return this.childRef.resize();
|
|
69
70
|
}
|
|
70
71
|
render() {
|
|
71
|
-
return (index.h("justifi-payment-method-form", { key: '
|
|
72
|
+
return (index.h("justifi-payment-method-form", { key: '58843b8a47f35d716845de11f6a66d8960bc0776', ref: el => {
|
|
72
73
|
if (el) {
|
|
73
74
|
this.childRef = el;
|
|
74
75
|
}
|
|
@@ -9,6 +9,7 @@ const insuranceState = require('./insurance-state-80e24caf.js');
|
|
|
9
9
|
const button = require('./button-3f400a66.js');
|
|
10
10
|
const styledHost = require('./styled-host-cc053016.js');
|
|
11
11
|
const skeleton = require('./skeleton-748c5dde.js');
|
|
12
|
+
const config = require('./config-05767cba.js');
|
|
12
13
|
|
|
13
14
|
class Checkout {
|
|
14
15
|
constructor(data) {
|
|
@@ -48,7 +49,7 @@ const CheckoutCore = class {
|
|
|
48
49
|
});
|
|
49
50
|
this.renderState = 'error';
|
|
50
51
|
};
|
|
51
|
-
this.iframeOrigin =
|
|
52
|
+
this.iframeOrigin = config.config.iframeOrigin;
|
|
52
53
|
this.authToken = undefined;
|
|
53
54
|
this.getCheckout = undefined;
|
|
54
55
|
this.complete = undefined;
|
|
@@ -145,7 +146,7 @@ const CheckoutCore = class {
|
|
|
145
146
|
return (index.h("section", null, index.h("div", { class: !this.isLoading && 'visually-hidden' }, index.h(skeleton.Skeleton, { height: "24px" })), index.h("div", { class: this.isLoading && 'visually-hidden' }, index.h("div", { class: "jfi-payment-description" }, (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_description), index.h("div", { class: "jfi-payment-total" }, index.h("span", { class: "jfi-payment-total-label" }, "Total"), "\u00A0", index.h("span", { class: "jfi-payment-total-amount" }, utils.formatCurrency(+((_b = this.checkout) === null || _b === void 0 ? void 0 : _b.total_amount)))))));
|
|
146
147
|
}
|
|
147
148
|
render() {
|
|
148
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
149
|
+
return (index.h(styledHost.StyledHost, { key: '4d60ceb4a3fec7c32320d29030f81d44f8211c9a' }, index.h("div", { key: 'e2a8c43be33b807a63b557523de49b8888cca112', class: "row gy-3 jfi-checkout-core" }, index.h("div", { key: 'd166b4bd5e695459152339a601b541d5c4e81f9c', class: "col-12" }, index.h("h2", { key: '1bd31268727b2b3b3f05c64fa62c307447f23dcb', class: "fs-5 fw-bold pb-3 jfi-header" }, "Summary"), this.summary), index.h("div", { key: '681c36720bc78f2d58adb6ea562a69e4a3ac417a', class: "col-12" }, index.h("slot", { key: '639515cd2bb02103bced73e61e385bef5f5df900', name: "insurance" })), index.h("div", { key: 'c1ae7fa1b0b0f57737986269f7669bd3fbba5c13', class: "col-12 mt-4" }, index.h("h2", { key: '3f96c6309d45e6f821fa98cfbea7b78dbb90f08f', class: "fs-5 fw-bold pb-3 jfi-header" }, "Payment"), index.h("h3", { key: '521ac8ac5c9e374477d94656d0150d07c3d5eb6d', class: "fs-6 fw-bold lh-lg" }, "Select payment type"), index.h("div", { key: 'cf40e557b32e14f56bacb3f022a24cd702954f6e', class: "d-flex flex-column" }, this.paymentType)), index.h("div", { key: 'caf4dbdf4c92f54ae04fa5ac5033e020a3a16812', class: "col-12" }, index.h("div", { key: '561b909627601f5f044854d69bc73d39d1f48de6', class: "d-flex justify-content-end" }, index.h(button.Button, { key: '9620f99dda50ea8592b104ca2944f82e41a95d01', type: "submit", variant: "primary", onClick: (e) => this.submit(e), disabled: this.isLoading, isLoading: this.isLoading, style: { width: '100%' } }, "Pay"))))));
|
|
149
150
|
}
|
|
150
151
|
};
|
|
151
152
|
CheckoutCore.style = JustifiCheckoutCoreStyle0 + JustifiCheckoutCoreStyle1;
|
|
@@ -9,8 +9,9 @@ const Api = require('./Api-3bc6e43f.js');
|
|
|
9
9
|
require('./Pagination-0da8f095.js');
|
|
10
10
|
require('./Payment-1a8a8ca6.js');
|
|
11
11
|
require('./Payout-a2dd7b01.js');
|
|
12
|
-
const
|
|
13
|
-
require('./
|
|
12
|
+
const config = require('./config-05767cba.js');
|
|
13
|
+
const Analytics = require('./Analytics-3b027794.js');
|
|
14
|
+
require('./package-22afd806.js');
|
|
14
15
|
|
|
15
16
|
const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
|
|
16
17
|
var _a;
|
|
@@ -69,7 +70,7 @@ const makeCheckoutComplete = ({ authToken, checkoutId, service }) => async ({ pa
|
|
|
69
70
|
class CheckoutService {
|
|
70
71
|
async fetchCheckout(authToken, checkoutId) {
|
|
71
72
|
const endpoint = `checkouts/${checkoutId}`;
|
|
72
|
-
return Api.Api({ authToken, apiOrigin:
|
|
73
|
+
return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).get(endpoint);
|
|
73
74
|
}
|
|
74
75
|
async complete(authToken, checkoutId, payment) {
|
|
75
76
|
const endpoint = `checkouts/${checkoutId}/complete`;
|
|
@@ -79,7 +80,7 @@ class CheckoutService {
|
|
|
79
80
|
if (payment.payment_token) {
|
|
80
81
|
payload.payment_token = payment.payment_token;
|
|
81
82
|
}
|
|
82
|
-
return Api.Api({ authToken, apiOrigin:
|
|
83
|
+
return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
86
|
|
|
@@ -3,16 +3,20 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
+
const config = require('./config-05767cba.js');
|
|
6
7
|
const Api = require('./Api-3bc6e43f.js');
|
|
7
8
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
8
9
|
const utils = require('./utils-7a478c37.js');
|
|
9
10
|
const utils$1 = require('./utils-c1d2e426.js');
|
|
10
|
-
const Analytics = require('./Analytics-
|
|
11
|
-
require('./package-
|
|
11
|
+
const Analytics = require('./Analytics-3b027794.js');
|
|
12
|
+
require('./package-22afd806.js');
|
|
12
13
|
|
|
13
14
|
class ReportsService {
|
|
14
15
|
async fetchGrossVolumeChartData(accountId, authToken) {
|
|
15
|
-
const api = Api.Api({
|
|
16
|
+
const api = Api.Api({
|
|
17
|
+
authToken: authToken,
|
|
18
|
+
apiOrigin: config.config.proxyApiOrigin,
|
|
19
|
+
});
|
|
16
20
|
const endpoint = `account/${accountId}/reports/gross_volume`;
|
|
17
21
|
return api.get(endpoint);
|
|
18
22
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
+
const config = require('./config-05767cba.js');
|
|
6
7
|
const Payment = require('./Payment-1a8a8ca6.js');
|
|
7
8
|
const utils = require('./utils-89d86e29.js');
|
|
8
9
|
|
|
@@ -17,7 +18,7 @@ const NewPaymentMethod = class {
|
|
|
17
18
|
this.onPaymentMethodOptionClick = () => {
|
|
18
19
|
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
19
20
|
};
|
|
20
|
-
this.iframeOrigin =
|
|
21
|
+
this.iframeOrigin = config.config.iframeOrigin;
|
|
21
22
|
this.authToken = undefined;
|
|
22
23
|
this.accountId = undefined;
|
|
23
24
|
this.paymentMethodOption = undefined;
|
|
@@ -80,7 +81,7 @@ const NewPaymentMethod = class {
|
|
|
80
81
|
}
|
|
81
82
|
render() {
|
|
82
83
|
var _a, _b, _c, _d;
|
|
83
|
-
return (index.h("div", { key: '
|
|
84
|
+
return (index.h("div", { key: '8da79c0064fe7205cc64cb16e4cb16310eb92768', class: "payment-method" }, index.h("div", { key: 'b56acfbbcd009a99c453f86bb2bafb581fa30c4e', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, index.h("input", { key: '8d0d317124fcf4c98b709cc02d3f74deae5e7447', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), index.h("label", { key: 'd2cc7f9cc6b695dad77e8980fca4e82fdc42cb9c', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, PaymentMethodTypeLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.id])), this.isSelected ? this.showNewPaymentMethodForm() : null));
|
|
84
85
|
}
|
|
85
86
|
};
|
|
86
87
|
|
|
@@ -123,7 +124,7 @@ const PaymentMethodOptions = class {
|
|
|
123
124
|
this.insuranceToggled = undefined;
|
|
124
125
|
this.authToken = undefined;
|
|
125
126
|
this.accountId = undefined;
|
|
126
|
-
this.iframeOrigin =
|
|
127
|
+
this.iframeOrigin = config.config.iframeOrigin;
|
|
127
128
|
this.savedPaymentMethods = [];
|
|
128
129
|
this.paymentAmount = undefined;
|
|
129
130
|
this.selectedPaymentMethodId = undefined;
|
|
@@ -169,7 +170,7 @@ const PaymentMethodOptions = class {
|
|
|
169
170
|
}
|
|
170
171
|
render() {
|
|
171
172
|
var _a;
|
|
172
|
-
return (index.h(index.Host, { key: '
|
|
173
|
+
return (index.h(index.Host, { key: '86e309b90ab00f530dd803b00e5aab511f92300f' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
|
|
173
174
|
const newCard = paymentMethodOption.id === Payment.PaymentMethodTypes.card;
|
|
174
175
|
const newBankAccount = paymentMethodOption.id === Payment.PaymentMethodTypes.bankAccount;
|
|
175
176
|
const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
|
|
@@ -210,7 +211,7 @@ const SavedPaymentMethod = class {
|
|
|
210
211
|
this.onPaymentMethodOptionClick = () => {
|
|
211
212
|
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
212
213
|
};
|
|
213
|
-
this.iframeOrigin =
|
|
214
|
+
this.iframeOrigin = config.config.iframeOrigin;
|
|
214
215
|
this.paymentMethodOption = undefined;
|
|
215
216
|
this.isSelected = undefined;
|
|
216
217
|
}
|
|
@@ -224,7 +225,7 @@ const SavedPaymentMethod = class {
|
|
|
224
225
|
;
|
|
225
226
|
render() {
|
|
226
227
|
var _a, _b, _c, _d, _e;
|
|
227
|
-
return (index.h(index.Fragment, { key: '
|
|
228
|
+
return (index.h(index.Fragment, { key: '9c2174123f1675d60bc48d8109821c0bc2ad7682' }, index.h("div", { key: '07bffce2603110d44f38ffb2f57a60f07faddb3b', class: "payment-method" }, index.h("div", { key: 'f489d3a05db45c2b2581bc8f0fc093afed453d91', class: "payment-method-header p-3", onClick: () => this.onPaymentMethodOptionClick() }, index.h("input", { key: '70681612520aa621c39a017b72b25a7dd3211282', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), index.h("label", { key: 'a58e14ae9d199b0e0eb01b4c0a4a8bd9c8fec41d', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, CardBrandLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.brand], " *", (_e = this.paymentMethodOption) === null || _e === void 0 ? void 0 :
|
|
228
229
|
_e.acct_last_four)))));
|
|
229
230
|
}
|
|
230
231
|
};
|
|
@@ -269,7 +270,7 @@ const SezzlePaymentMethod = class {
|
|
|
269
270
|
this.sezzleCheckout = checkout;
|
|
270
271
|
this.installmentPlan = this.sezzleCheckout.getInstallmentPlan(amount);
|
|
271
272
|
};
|
|
272
|
-
this.iframeOrigin =
|
|
273
|
+
this.iframeOrigin = config.config.iframeOrigin;
|
|
273
274
|
this.bnpl = undefined;
|
|
274
275
|
this.clientId = undefined;
|
|
275
276
|
this.accountId = undefined;
|
|
@@ -295,7 +296,7 @@ const SezzlePaymentMethod = class {
|
|
|
295
296
|
}
|
|
296
297
|
render() {
|
|
297
298
|
var _a, _b, _c, _d, _e;
|
|
298
|
-
return (index.h("div", { key: '
|
|
299
|
+
return (index.h("div", { key: 'a71ee3b09669bd27f82f13fc2e924978df3b3883', class: "payment-method" }, index.h("script", { key: 'def81ad89dfc5d5038ee0de6ea6e3d430f45842c', src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), index.h("div", { key: 'b7c0afa6b157a981d61b4825dcf7fa5d031d701e', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, index.h("input", { key: '5c52a82646f941e7df87b99cd326c32b64ab1373', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), index.h("label", { key: 'bb520c7addf37652ad0f22cc5a08c3afb0a23cd8', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, index.h("div", { key: '0e43ff1520bece6a98c61be7fa31acb3fd4711e9' }, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (index.h("small", { key: '9413c186f4dd6ee5b5296a4e0e60d469f5bec5c0' }, index.h("span", { key: 'dbc4ff1d6c5c7d0a189ea4f09773de501b21d5d1' }, (_d = this.installmentPlan) === null || _d === void 0 ? void 0 : _d.installments.length), "\u00A0", index.h("span", { key: '72a4d2a7b34fffaee04d466a981a1dab3160c639' }, this.installmentPlan.schedule, " payments of"), "\u00A0", index.h("span", { key: 'c2e2c5c4eaec1d03120239c00b47ae4bac548be6', class: "fw-bold" }, utils.formatCurrency((_e = this.installmentPlan) === null || _e === void 0 ? void 0 : _e.installments[0].amountInCents))))))));
|
|
299
300
|
}
|
|
300
301
|
};
|
|
301
302
|
|
|
@@ -4,21 +4,22 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
const paymentProvisioningActions = require('./payment-provisioning-actions-06466dda.js');
|
|
7
|
-
const business_service = require('./business.service-
|
|
7
|
+
const business_service = require('./business.service-66c06c19.js');
|
|
8
8
|
const index_esm = require('./index.esm-52757963.js');
|
|
9
9
|
const Business = require('./Business-aacbe893.js');
|
|
10
10
|
const businessFormTypes = require('./business-form-types-6e1fcda3.js');
|
|
11
|
-
const payloadParsers = require('./payload-parsers-
|
|
11
|
+
const payloadParsers = require('./payload-parsers-969ab9b6.js');
|
|
12
12
|
const button = require('./button-3f400a66.js');
|
|
13
13
|
const formInputMasks = require('./form-input-masks-0879c139.js');
|
|
14
14
|
const inputHandlers = require('./input-handlers-cff032bb.js');
|
|
15
15
|
require('./ComponentError-233ac749.js');
|
|
16
16
|
require('./utils-7a478c37.js');
|
|
17
17
|
require('./Api-3bc6e43f.js');
|
|
18
|
+
require('./config-05767cba.js');
|
|
18
19
|
require('./helpers-602962eb.js');
|
|
19
20
|
require('./state-options-4fbcb48a.js');
|
|
20
|
-
require('./schema-validations-
|
|
21
|
-
require('./business-form-options-
|
|
21
|
+
require('./schema-validations-f3db892c.js');
|
|
22
|
+
require('./business-form-options-26f9900c.js');
|
|
22
23
|
|
|
23
24
|
const BusinessOwnerForm = class {
|
|
24
25
|
constructor(hostRef) {
|