@justifi/webcomponents 5.4.2 → 5.4.4
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/{SubAccount-06f9030b.js → SubAccount-2a302ead.js} +1 -0
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +1 -1
- package/dist/cjs/billing-form_3.cjs.entry.js +1 -1
- package/dist/cjs/{check-pkg-version-15023e22.js → check-pkg-version-e6dcbeb7.js} +1 -1
- package/dist/cjs/{checkout.service-ab658f38.js → checkout.service-0a7835dc.js} +1 -1
- package/dist/cjs/checkouts-list-core.cjs.entry.js +1 -1
- package/dist/cjs/{dispute.service-1494b42c.js → dispute.service-6efc7d7f.js} +1 -1
- package/dist/cjs/{get-payout-csv-4240b172.js → get-payout-csv-7607c71e.js} +1 -1
- package/dist/cjs/{get-subaccounts-fa8dc254.js → get-subaccounts-ae5b35a8.js} +1 -1
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +1 -1
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkout.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +5 -5
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +4 -4
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +4 -4
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +8 -7
- package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +5 -5
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +26 -29
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-868b01af.js → package-5a9f02b2.js} +1 -1
- package/dist/cjs/{payment.service-97bef4f8.js → payment.service-537e049d.js} +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +1 -1
- package/dist/cjs/payouts-list-core.cjs.entry.js +1 -1
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +2 -2
- package/dist/cjs/{terminal-orders-table-050e673f.js → terminal-orders-table-3b247193.js} +2 -0
- package/dist/cjs/{terminal.service-0aac977d.js → terminal.service-ab62c344.js} +1 -1
- package/dist/cjs/terminals-list-core.cjs.entry.js +2 -2
- package/dist/cjs/{terminals-table-6710a76c.js → terminals-table-594643fd.js} +2 -2
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/TerminalOrder.js +1 -0
- package/dist/collection/components/order-terminals/order-terminals.js +22 -3
- package/dist/collection/components/refund-payment/refund-payment.js +97 -52
- package/dist/collection/components/terminal-orders-list/terminal-orders-table.js +2 -0
- package/dist/collection/components/terminals-list/terminals-table.js +2 -2
- package/dist/docs.json +116 -43
- package/dist/esm/{SubAccount-837658ae.js → SubAccount-7520271c.js} +1 -0
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +1 -1
- package/dist/esm/billing-form_3.entry.js +1 -1
- package/dist/esm/{check-pkg-version-a8dd8455.js → check-pkg-version-47fc35a7.js} +1 -1
- package/dist/esm/{checkout.service-87cd501d.js → checkout.service-e38e477f.js} +1 -1
- package/dist/esm/checkouts-list-core.entry.js +1 -1
- package/dist/esm/{dispute.service-1f79929b.js → dispute.service-7ba6d5a4.js} +1 -1
- package/dist/esm/{get-payout-csv-6139c5fc.js → get-payout-csv-fa34f40b.js} +1 -1
- package/dist/esm/{get-subaccounts-c4b2b829.js → get-subaccounts-3c6b9e84.js} +1 -1
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +1 -1
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +2 -2
- package/dist/esm/justifi-business-form.entry.js +3 -3
- package/dist/esm/justifi-checkout.entry.js +4 -4
- package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
- package/dist/esm/justifi-checkouts-list.entry.js +5 -5
- package/dist/esm/justifi-dispute-management.entry.js +4 -4
- package/dist/esm/justifi-dispute-notification_3.entry.js +4 -4
- package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
- package/dist/esm/justifi-order-terminals.entry.js +8 -7
- package/dist/esm/justifi-payment-details.entry.js +4 -4
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +4 -4
- package/dist/esm/justifi-payout-details.entry.js +4 -4
- package/dist/esm/justifi-payouts-list.entry.js +5 -5
- package/dist/esm/justifi-refund-payment.entry.js +26 -29
- package/dist/esm/justifi-season-interruption-insurance.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminal-orders-list.entry.js +4 -4
- package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminals-list.entry.js +6 -6
- package/dist/esm/justifi-tokenize-payment-method.entry.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-f0bb46fd.js → package-c8466624.js} +1 -1
- package/dist/esm/{payment.service-bc99d372.js → payment.service-af5bd8be.js} +1 -1
- package/dist/esm/payments-list-core.entry.js +1 -1
- package/dist/esm/payouts-list-core.entry.js +1 -1
- package/dist/esm/terminal-orders-list-core.entry.js +2 -2
- package/dist/esm/{terminal-orders-table-65d59323.js → terminal-orders-table-93e84d25.js} +2 -0
- package/dist/esm/{terminal.service-a8a968ac.js → terminal.service-d173566d.js} +1 -1
- package/dist/esm/terminals-list-core.entry.js +2 -2
- package/dist/esm/{terminals-table-5eb287ca.js → terminals-table-ff24bf27.js} +2 -2
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/SubAccount.js +1 -0
- package/dist/module/justifi-order-terminals.js +5 -3
- package/dist/module/justifi-refund-payment.js +31 -31
- package/dist/module/package.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +2 -0
- package/dist/module/terminals-list-core2.js +2 -2
- package/dist/types/api/TerminalOrder.d.ts +2 -0
- package/dist/types/components/order-terminals/order-terminals.d.ts +1 -0
- package/dist/types/components/refund-payment/refund-payment.d.ts +9 -36
- package/dist/types/components/terminal-orders-list/terminal-orders-table.d.ts +2 -0
- package/dist/types/components/terminals-list/terminals-table.d.ts +2 -2
- package/dist/types/components.d.ts +11 -35
- package/dist/webcomponents/{p-c00ef77b.entry.js → p-04d6b37e.entry.js} +1 -1
- package/dist/webcomponents/{p-5bd1c32c.entry.js → p-0fa216eb.entry.js} +1 -1
- package/dist/webcomponents/p-1361d8eb.entry.js +1 -0
- package/dist/webcomponents/{p-507d8aa4.entry.js → p-1cfa5df9.entry.js} +1 -1
- package/dist/webcomponents/{p-d86add24.entry.js → p-21def20b.entry.js} +1 -1
- package/dist/webcomponents/{p-913e28d6.entry.js → p-290fa30d.entry.js} +1 -1
- package/dist/webcomponents/{p-0d7d61ac.js → p-2a9d7f6b.js} +1 -1
- package/dist/webcomponents/{p-190ee091.entry.js → p-2aad7e3b.entry.js} +1 -1
- package/dist/webcomponents/{p-a2d30370.entry.js → p-3075b7e1.entry.js} +1 -1
- package/dist/webcomponents/{p-45fda0bc.entry.js → p-35c296fc.entry.js} +1 -1
- package/dist/webcomponents/{p-a589b3a1.entry.js → p-3cc7527a.entry.js} +1 -1
- package/dist/webcomponents/{p-ebd814ab.entry.js → p-3cf317d3.entry.js} +1 -1
- package/dist/webcomponents/{p-746894be.entry.js → p-407d6d29.entry.js} +1 -1
- package/dist/webcomponents/{p-c438d1c8.entry.js → p-4451de8d.entry.js} +1 -1
- package/dist/webcomponents/{p-b299b597.entry.js → p-4f7432c3.entry.js} +1 -1
- package/dist/webcomponents/{p-96783edf.js → p-536fb8e2.js} +1 -1
- package/dist/webcomponents/{p-9e49cf17.js → p-54556fc6.js} +1 -1
- package/dist/webcomponents/{p-9c4e3bac.js → p-5a541d35.js} +1 -1
- package/dist/webcomponents/{p-8c70396c.entry.js → p-645db2cb.entry.js} +1 -1
- package/dist/webcomponents/p-70be104e.js +1 -0
- package/dist/webcomponents/{p-dcff8139.entry.js → p-7e8732f7.entry.js} +1 -1
- package/dist/webcomponents/p-81a6c3e2.entry.js +1 -0
- package/dist/webcomponents/{p-14cfb25e.entry.js → p-829480e7.entry.js} +1 -1
- package/dist/webcomponents/{p-ac9f2e2b.js → p-87a4fb5b.js} +1 -1
- package/dist/webcomponents/{p-e309516a.entry.js → p-94e4f1f1.entry.js} +1 -1
- package/dist/webcomponents/{p-72e71b3c.js → p-9a9732e1.js} +1 -1
- package/dist/webcomponents/p-9fecad5a.js +1 -0
- package/dist/webcomponents/{p-90b82e40.entry.js → p-a8c69f51.entry.js} +1 -1
- package/dist/webcomponents/{p-60ec062a.entry.js → p-ad713ab6.entry.js} +1 -1
- package/dist/webcomponents/{p-2819e94a.entry.js → p-b218af87.entry.js} +1 -1
- package/dist/webcomponents/{p-150e80db.entry.js → p-b50ca848.entry.js} +1 -1
- package/dist/webcomponents/p-b8664571.entry.js +1 -0
- package/dist/webcomponents/{p-6a594a9f.js → p-cbad44b7.js} +1 -1
- package/dist/webcomponents/{p-5c5c1e82.entry.js → p-dd2938d3.entry.js} +1 -1
- package/dist/webcomponents/{p-b99817a0.js → p-de03d0f8.js} +1 -1
- package/dist/webcomponents/{p-187d456b.entry.js → p-e1ae5e80.entry.js} +1 -1
- package/dist/webcomponents/{p-431670c6.entry.js → p-e3855f51.entry.js} +1 -1
- package/dist/webcomponents/{p-1da00a0c.entry.js → p-e73be1b9.entry.js} +1 -1
- package/dist/webcomponents/p-ef1db3da.entry.js +1 -0
- package/dist/webcomponents/{p-b5c7cb4c.entry.js → p-f13b2991.entry.js} +1 -1
- package/dist/webcomponents/{p-3da2652e.js → p-f4aeb100.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-74711d79.entry.js +0 -1
- package/dist/webcomponents/p-953e9dba.js +0 -1
- package/dist/webcomponents/p-b26fb429.js +0 -1
- package/dist/webcomponents/p-c7313123.entry.js +0 -1
- package/dist/webcomponents/p-cf9e893a.entry.js +0 -1
- package/dist/webcomponents/p-f0a56d96.entry.js +0 -1
|
@@ -90,6 +90,7 @@ class TerminalOrder {
|
|
|
90
90
|
constructor(data) {
|
|
91
91
|
this.id = data.id;
|
|
92
92
|
this.business_id = data.business_id;
|
|
93
|
+
this.company_name = data.company_name;
|
|
93
94
|
this.sub_account_id = data.sub_account_id;
|
|
94
95
|
this.provider = data.provider || TerminalProviders.verifone;
|
|
95
96
|
this.order_items = [];
|
|
@@ -7,7 +7,7 @@ require('./ComponentError-233ac749.js');
|
|
|
7
7
|
require('./Checkout-5352009d.js');
|
|
8
8
|
require('./Pagination-0da8f095.js');
|
|
9
9
|
require('./Payment-bccd8f7d.js');
|
|
10
|
-
require('./SubAccount-
|
|
10
|
+
require('./SubAccount-2a302ead.js');
|
|
11
11
|
const Document = require('./Document-0b828345.js');
|
|
12
12
|
const businessFormOptions = require('./business-form-options-62e9c8ab.js');
|
|
13
13
|
require('./event-types-180a85a9.js');
|
|
@@ -8,7 +8,7 @@ const schemaValidations = require('./schema-validations-a7cefbdf.js');
|
|
|
8
8
|
const utils = require('./utils-bc03ca40.js');
|
|
9
9
|
const stateOptions = require('./state-options-4fbcb48a.js');
|
|
10
10
|
const formControlErrorText = require('./form-control-error-text-3cff9b7b.js');
|
|
11
|
-
const _package = require('./package-
|
|
11
|
+
const _package = require('./package-5a9f02b2.js');
|
|
12
12
|
const iframeInputStylesState = require('./iframe-input-styles-state-d0de0b24.js');
|
|
13
13
|
const parts = require('./parts-5ca90f9a.js');
|
|
14
14
|
require('./business-form-options-62e9c8ab.js');
|
|
@@ -5,7 +5,7 @@ require('./ComponentError-233ac749.js');
|
|
|
5
5
|
require('./Checkout-5352009d.js');
|
|
6
6
|
require('./Pagination-0da8f095.js');
|
|
7
7
|
require('./Payment-bccd8f7d.js');
|
|
8
|
-
require('./SubAccount-
|
|
8
|
+
require('./SubAccount-2a302ead.js');
|
|
9
9
|
require('./Document-0b828345.js');
|
|
10
10
|
|
|
11
11
|
class CheckoutService {
|
|
@@ -7,7 +7,7 @@ require('./ComponentError-233ac749.js');
|
|
|
7
7
|
require('./Checkout-5352009d.js');
|
|
8
8
|
const Pagination = require('./Pagination-0da8f095.js');
|
|
9
9
|
require('./Payment-bccd8f7d.js');
|
|
10
|
-
require('./SubAccount-
|
|
10
|
+
require('./SubAccount-2a302ead.js');
|
|
11
11
|
require('./Document-0b828345.js');
|
|
12
12
|
const parts = require('./parts-5ca90f9a.js');
|
|
13
13
|
const eventTypes = require('./event-types-5a6ce2b0.js');
|
|
@@ -5,7 +5,7 @@ require('./ComponentError-233ac749.js');
|
|
|
5
5
|
require('./Checkout-5352009d.js');
|
|
6
6
|
require('./Pagination-0da8f095.js');
|
|
7
7
|
require('./Payment-bccd8f7d.js');
|
|
8
|
-
require('./SubAccount-
|
|
8
|
+
require('./SubAccount-2a302ead.js');
|
|
9
9
|
require('./Document-0b828345.js');
|
|
10
10
|
|
|
11
11
|
class DisputeService {
|
|
@@ -5,7 +5,7 @@ const ComponentError = require('./ComponentError-233ac749.js');
|
|
|
5
5
|
require('./Checkout-5352009d.js');
|
|
6
6
|
require('./Pagination-0da8f095.js');
|
|
7
7
|
require('./Payment-bccd8f7d.js');
|
|
8
|
-
require('./SubAccount-
|
|
8
|
+
require('./SubAccount-2a302ead.js');
|
|
9
9
|
require('./Document-0b828345.js');
|
|
10
10
|
const utils = require('./utils-7a478c37.js');
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ const ComponentError = require('./ComponentError-233ac749.js');
|
|
|
5
5
|
require('./Checkout-5352009d.js');
|
|
6
6
|
require('./Pagination-0da8f095.js');
|
|
7
7
|
require('./Payment-bccd8f7d.js');
|
|
8
|
-
const SubAccount = require('./SubAccount-
|
|
8
|
+
const SubAccount = require('./SubAccount-2a302ead.js');
|
|
9
9
|
require('./Document-0b828345.js');
|
|
10
10
|
const utils = require('./utils-7a478c37.js');
|
|
11
11
|
|
|
@@ -16,7 +16,7 @@ const ComponentError = require('./ComponentError-233ac749.js');
|
|
|
16
16
|
require('./Checkout-5352009d.js');
|
|
17
17
|
require('./Pagination-0da8f095.js');
|
|
18
18
|
require('./Payment-bccd8f7d.js');
|
|
19
|
-
require('./SubAccount-
|
|
19
|
+
require('./SubAccount-2a302ead.js');
|
|
20
20
|
const Document = require('./Document-0b828345.js');
|
|
21
21
|
const utils = require('./utils-bc03ca40.js');
|
|
22
22
|
const button = require('./button-4a9fd41e.js');
|
|
@@ -9,7 +9,7 @@ const business_service = require('./business.service-6e8a29a2.js');
|
|
|
9
9
|
require('./Checkout-5352009d.js');
|
|
10
10
|
require('./Pagination-0da8f095.js');
|
|
11
11
|
require('./Payment-bccd8f7d.js');
|
|
12
|
-
require('./SubAccount-
|
|
12
|
+
require('./SubAccount-2a302ead.js');
|
|
13
13
|
require('./Document-0b828345.js');
|
|
14
14
|
const index_esm = require('./index.esm-544c08fd.js');
|
|
15
15
|
const Api = require('./Api-83d93333.js');
|
|
@@ -7,14 +7,14 @@ const utils = require('./utils-f8714daa.js');
|
|
|
7
7
|
const business_service = require('./business.service-6e8a29a2.js');
|
|
8
8
|
const getBusiness = require('./get-business-d8f5db51.js');
|
|
9
9
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
10
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
10
|
+
const checkPkgVersion = require('./check-pkg-version-e6dcbeb7.js');
|
|
11
11
|
require('./parts-5ca90f9a.js');
|
|
12
12
|
require('./Api-83d93333.js');
|
|
13
13
|
require('./Business-d88b77fd.js');
|
|
14
14
|
require('./helpers-602962eb.js');
|
|
15
15
|
require('./state-options-4fbcb48a.js');
|
|
16
16
|
require('./utils-7a478c37.js');
|
|
17
|
-
require('./package-
|
|
17
|
+
require('./package-5a9f02b2.js');
|
|
18
18
|
|
|
19
19
|
const BusinessDetails = class {
|
|
20
20
|
constructor(hostRef) {
|
|
@@ -11,10 +11,10 @@ require('./ComponentError-233ac749.js');
|
|
|
11
11
|
require('./Checkout-5352009d.js');
|
|
12
12
|
require('./Pagination-0da8f095.js');
|
|
13
13
|
require('./Payment-bccd8f7d.js');
|
|
14
|
-
require('./SubAccount-
|
|
14
|
+
require('./SubAccount-2a302ead.js');
|
|
15
15
|
require('./Document-0b828345.js');
|
|
16
16
|
const Business = require('./Business-d88b77fd.js');
|
|
17
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
17
|
+
const checkPkgVersion = require('./check-pkg-version-e6dcbeb7.js');
|
|
18
18
|
const button = require('./button-4a9fd41e.js');
|
|
19
19
|
const styledHost = require('./styled-host-94309bab.js');
|
|
20
20
|
const header1 = require('./header-1-43b2b905.js');
|
|
@@ -26,7 +26,7 @@ require('./business-form-options-62e9c8ab.js');
|
|
|
26
26
|
require('./utils-4120664c.js');
|
|
27
27
|
require('./Dispute-eb6bad54.js');
|
|
28
28
|
require('./helpers-602962eb.js');
|
|
29
|
-
require('./package-
|
|
29
|
+
require('./package-5a9f02b2.js');
|
|
30
30
|
require('./parts-5ca90f9a.js');
|
|
31
31
|
|
|
32
32
|
const businessFormSchema = index_esm.create$3(Object.assign(Object.assign({}, businessAdditionalQuestionsSchema.businessCoreInfoSchema().fields), { legal_address: businessIdentitySchema.addressSchema(), additional_questions: businessAdditionalQuestionsSchema.additionalQuestionsSchema(), representative: businessIdentitySchema.identitySchema('representative') }));
|
|
@@ -5,17 +5,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-5b9a3b5f.js');
|
|
6
6
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
7
7
|
const utils = require('./utils-7a478c37.js');
|
|
8
|
-
const checkout_service = require('./checkout.service-
|
|
9
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
8
|
+
const checkout_service = require('./checkout.service-0a7835dc.js');
|
|
9
|
+
const checkPkgVersion = require('./check-pkg-version-e6dcbeb7.js');
|
|
10
10
|
require('./Api-83d93333.js');
|
|
11
11
|
require('./Checkout-5352009d.js');
|
|
12
12
|
require('./utils-4120664c.js');
|
|
13
13
|
require('./Pagination-0da8f095.js');
|
|
14
14
|
require('./Payment-bccd8f7d.js');
|
|
15
15
|
require('./Dispute-eb6bad54.js');
|
|
16
|
-
require('./SubAccount-
|
|
16
|
+
require('./SubAccount-2a302ead.js');
|
|
17
17
|
require('./Document-0b828345.js');
|
|
18
|
-
require('./package-
|
|
18
|
+
require('./package-5a9f02b2.js');
|
|
19
19
|
|
|
20
20
|
const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
|
|
21
21
|
var _a;
|
|
@@ -7,7 +7,7 @@ require('./ComponentError-233ac749.js');
|
|
|
7
7
|
const Checkout = require('./Checkout-5352009d.js');
|
|
8
8
|
require('./Pagination-0da8f095.js');
|
|
9
9
|
require('./Payment-bccd8f7d.js');
|
|
10
|
-
require('./SubAccount-
|
|
10
|
+
require('./SubAccount-2a302ead.js');
|
|
11
11
|
require('./Document-0b828345.js');
|
|
12
12
|
const checkoutsListParamsState = require('./checkouts-list-params-state-644d3639.js');
|
|
13
13
|
const parts = require('./parts-5ca90f9a.js');
|
|
@@ -7,17 +7,17 @@ const ComponentError = require('./ComponentError-233ac749.js');
|
|
|
7
7
|
const Checkout = require('./Checkout-5352009d.js');
|
|
8
8
|
require('./Pagination-0da8f095.js');
|
|
9
9
|
require('./Payment-bccd8f7d.js');
|
|
10
|
-
require('./SubAccount-
|
|
10
|
+
require('./SubAccount-2a302ead.js');
|
|
11
11
|
require('./Document-0b828345.js');
|
|
12
12
|
const utils = require('./utils-7a478c37.js');
|
|
13
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
14
|
-
const checkout_service = require('./checkout.service-
|
|
15
|
-
const getSubaccounts = require('./get-subaccounts-
|
|
13
|
+
const checkPkgVersion = require('./check-pkg-version-e6dcbeb7.js');
|
|
14
|
+
const checkout_service = require('./checkout.service-0a7835dc.js');
|
|
15
|
+
const getSubaccounts = require('./get-subaccounts-ae5b35a8.js');
|
|
16
16
|
const styledHost = require('./styled-host-94309bab.js');
|
|
17
17
|
const checkoutsTable = require('./checkouts-table-8a1b49ff.js');
|
|
18
18
|
require('./utils-4120664c.js');
|
|
19
19
|
require('./Dispute-eb6bad54.js');
|
|
20
|
-
require('./package-
|
|
20
|
+
require('./package-5a9f02b2.js');
|
|
21
21
|
require('./Api-83d93333.js');
|
|
22
22
|
require('./badge-364e6311.js');
|
|
23
23
|
require('./parts-5ca90f9a.js');
|
|
@@ -4,17 +4,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5b9a3b5f.js');
|
|
6
6
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
7
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
7
|
+
const checkPkgVersion = require('./check-pkg-version-e6dcbeb7.js');
|
|
8
8
|
const Dispute = require('./Dispute-eb6bad54.js');
|
|
9
9
|
const utils = require('./utils-7a478c37.js');
|
|
10
|
-
const dispute_service = require('./dispute.service-
|
|
11
|
-
require('./package-
|
|
10
|
+
const dispute_service = require('./dispute.service-6efc7d7f.js');
|
|
11
|
+
require('./package-5a9f02b2.js');
|
|
12
12
|
require('./Api-83d93333.js');
|
|
13
13
|
require('./Checkout-5352009d.js');
|
|
14
14
|
require('./utils-4120664c.js');
|
|
15
15
|
require('./Pagination-0da8f095.js');
|
|
16
16
|
require('./Payment-bccd8f7d.js');
|
|
17
|
-
require('./SubAccount-
|
|
17
|
+
require('./SubAccount-2a302ead.js');
|
|
18
18
|
require('./Document-0b828345.js');
|
|
19
19
|
|
|
20
20
|
const makeGetDispute = ({ id, authToken, service, apiOrigin }) => async ({ onSuccess, onError }) => {
|
|
@@ -10,17 +10,17 @@ const styledHost = require('./styled-host-94309bab.js');
|
|
|
10
10
|
const skeleton = require('./skeleton-e8aa41d0.js');
|
|
11
11
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
12
12
|
const utils = require('./utils-7a478c37.js');
|
|
13
|
-
const dispute_service = require('./dispute.service-
|
|
13
|
+
const dispute_service = require('./dispute.service-6efc7d7f.js');
|
|
14
14
|
const eventTypes = require('./event-types-8edaabbb.js');
|
|
15
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
15
|
+
const checkPkgVersion = require('./check-pkg-version-e6dcbeb7.js');
|
|
16
16
|
require('./Api-83d93333.js');
|
|
17
17
|
require('./Checkout-5352009d.js');
|
|
18
18
|
require('./Pagination-0da8f095.js');
|
|
19
19
|
require('./Payment-bccd8f7d.js');
|
|
20
20
|
require('./Dispute-eb6bad54.js');
|
|
21
|
-
require('./SubAccount-
|
|
21
|
+
require('./SubAccount-2a302ead.js');
|
|
22
22
|
require('./Document-0b828345.js');
|
|
23
|
-
require('./package-
|
|
23
|
+
require('./package-5a9f02b2.js');
|
|
24
24
|
|
|
25
25
|
const makeUpdateDisputeResponse = ({ authToken, disputeId, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
|
|
26
26
|
var _a;
|
|
@@ -7,9 +7,9 @@ const Api = require('./Api-83d93333.js');
|
|
|
7
7
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
8
8
|
const utils = require('./utils-7a478c37.js');
|
|
9
9
|
const utils$1 = require('./utils-f8714daa.js');
|
|
10
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
10
|
+
const checkPkgVersion = require('./check-pkg-version-e6dcbeb7.js');
|
|
11
11
|
require('./parts-5ca90f9a.js');
|
|
12
|
-
require('./package-
|
|
12
|
+
require('./package-5a9f02b2.js');
|
|
13
13
|
|
|
14
14
|
class ReportsService {
|
|
15
15
|
async fetchGrossVolumeChartData(accountId, authToken) {
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-5b9a3b5f.js');
|
|
6
6
|
const parts = require('./parts-5ca90f9a.js');
|
|
7
7
|
const styledHost = require('./styled-host-94309bab.js');
|
|
8
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
8
|
+
const checkPkgVersion = require('./check-pkg-version-e6dcbeb7.js');
|
|
9
9
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
10
10
|
const business_service = require('./business.service-6e8a29a2.js');
|
|
11
11
|
const Business = require('./Business-d88b77fd.js');
|
|
@@ -14,12 +14,12 @@ const skeleton = require('./skeleton-e8aa41d0.js');
|
|
|
14
14
|
require('./Checkout-5352009d.js');
|
|
15
15
|
require('./Pagination-0da8f095.js');
|
|
16
16
|
require('./Payment-bccd8f7d.js');
|
|
17
|
-
const SubAccount = require('./SubAccount-
|
|
17
|
+
const SubAccount = require('./SubAccount-2a302ead.js');
|
|
18
18
|
require('./Document-0b828345.js');
|
|
19
19
|
const utils = require('./utils-7a478c37.js');
|
|
20
|
-
const terminal_service = require('./terminal.service-
|
|
20
|
+
const terminal_service = require('./terminal.service-ab62c344.js');
|
|
21
21
|
const utils$1 = require('./utils-4120664c.js');
|
|
22
|
-
require('./package-
|
|
22
|
+
require('./package-5a9f02b2.js');
|
|
23
23
|
require('./Api-83d93333.js');
|
|
24
24
|
require('./helpers-602962eb.js');
|
|
25
25
|
require('./state-options-4fbcb48a.js');
|
|
@@ -129,6 +129,7 @@ const OrderTerminals = class {
|
|
|
129
129
|
this.accountId = undefined;
|
|
130
130
|
this.shipping = false;
|
|
131
131
|
this.apiOrigin = "https://wc-proxy.justifi.ai";
|
|
132
|
+
this.submitButtonText = 'Submit Order';
|
|
132
133
|
this.loading = {
|
|
133
134
|
business: true,
|
|
134
135
|
terminals: true,
|
|
@@ -227,7 +228,7 @@ const OrderTerminals = class {
|
|
|
227
228
|
renderBusinessDetails() {
|
|
228
229
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
229
230
|
if (!this.loading.business && this.business) {
|
|
230
|
-
return (index.h("div", { class: "d-flex flex-column gap-4 mb-5 pt-5" }, index.h("div", { class: "row" }, index.h("div", { class: "col-12" }, index.h("h2", { part: parts.heading4 }, this.business.legal_name))), index.h("div", { class: "row" }, index.h("div", { class: "col-6" }, index.h("h5", { part: parts.heading5 }, "Representative:"), index.h("div", null, index.h("div", null, (_b = (_a = this.business) === null || _a === void 0 ? void 0 : _a.representative) === null || _b === void 0 ? void 0 : _b.name), index.h("div", null, (_d = (_c = this.business) === null || _c === void 0 ? void 0 : _c.representative) === null || _d === void 0 ? void 0 : _d.title), index.h("div", null, (_f = (_e = this.business) === null || _e === void 0 ? void 0 : _e.representative) === null || _f === void 0 ? void 0 : _f.email), index.h("div", null, utils$1.formatPhoneNumber((_h = (_g = this.business) === null || _g === void 0 ? void 0 : _g.representative) === null || _h === void 0 ? void 0 : _h.phone)))),
|
|
231
|
+
return (index.h("div", { class: "d-flex flex-column gap-4 mb-5 pt-5" }, index.h("div", { class: "row" }, index.h("div", { class: "col-12" }, index.h("h2", { part: parts.heading4 }, this.business.legal_name))), index.h("div", { class: "row" }, index.h("div", { class: "col-6" }, index.h("h5", { part: parts.heading5 }, "Representative:"), index.h("div", null, index.h("div", null, (_b = (_a = this.business) === null || _a === void 0 ? void 0 : _a.representative) === null || _b === void 0 ? void 0 : _b.name), index.h("div", null, (_d = (_c = this.business) === null || _c === void 0 ? void 0 : _c.representative) === null || _d === void 0 ? void 0 : _d.title), index.h("div", null, (_f = (_e = this.business) === null || _e === void 0 ? void 0 : _e.representative) === null || _f === void 0 ? void 0 : _f.email), index.h("div", null, utils$1.formatPhoneNumber((_h = (_g = this.business) === null || _g === void 0 ? void 0 : _g.representative) === null || _h === void 0 ? void 0 : _h.phone)))), index.h("div", { class: "col-6" }, index.h("h5", { part: parts.heading5 }, this.shipping ? "Shipping Address:" : "Business Address:"), index.h("div", null, this.business.legal_address.line1, this.business.legal_address.line2 ? `, ${this.business.legal_address.line2}` : "", index.h("br", null), this.business.legal_address.city, ", ", this.business.legal_address.state, " ", this.business.legal_address.postal_code)))));
|
|
231
232
|
}
|
|
232
233
|
}
|
|
233
234
|
renderTerminals() {
|
|
@@ -236,10 +237,10 @@ const OrderTerminals = class {
|
|
|
236
237
|
}
|
|
237
238
|
}
|
|
238
239
|
renderOrderSection() {
|
|
239
|
-
return (index.h("div", { class: "mt-3" }, index.h("div", { class: "text-end" }, "Order limit: ", this.orderLimit), index.h("div", { class: "d-flex justify-content-end mt-3" }, index.h("button", { class: "btn btn-primary submit-btn", onClick: this.submitOrder.bind(this), disabled: this.order.totalQuantity === 0 || this.submitting, part: parts.buttonPrimary }, this.submitting ? 'Submitting...' :
|
|
240
|
+
return (index.h("div", { class: "mt-3" }, index.h("div", { class: "text-end" }, "Order limit: ", this.orderLimit), index.h("div", { class: "d-flex justify-content-end mt-3" }, index.h("button", { class: "btn btn-primary submit-btn", onClick: this.submitOrder.bind(this), disabled: this.order.totalQuantity === 0 || this.submitting, part: parts.buttonPrimary }, this.submitting ? 'Submitting...' : this.submitButtonText))));
|
|
240
241
|
}
|
|
241
242
|
render() {
|
|
242
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
243
|
+
return (index.h(styledHost.StyledHost, { key: 'b5e93abb543719bcf80fb001fef11c45f3438d5f' }, index.h("div", { key: 'ccb91e878e84af86c7aed41829a8b9cd3deee9ed', part: parts.text }, this.renderLoading(), this.renderBusinessDetails(), this.renderTerminals(), this.renderOrderSection())));
|
|
243
244
|
}
|
|
244
245
|
};
|
|
245
246
|
|
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5b9a3b5f.js');
|
|
6
|
-
const payment_service = require('./payment.service-
|
|
6
|
+
const payment_service = require('./payment.service-537e049d.js');
|
|
7
7
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
8
8
|
require('./Checkout-5352009d.js');
|
|
9
9
|
require('./Pagination-0da8f095.js');
|
|
10
10
|
const Payment = require('./Payment-bccd8f7d.js');
|
|
11
|
-
require('./SubAccount-
|
|
11
|
+
require('./SubAccount-2a302ead.js');
|
|
12
12
|
require('./Document-0b828345.js');
|
|
13
13
|
const utils = require('./utils-7a478c37.js');
|
|
14
14
|
const utils$1 = require('./utils-f8714daa.js');
|
|
15
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
15
|
+
const checkPkgVersion = require('./check-pkg-version-e6dcbeb7.js');
|
|
16
16
|
require('./Api-83d93333.js');
|
|
17
17
|
require('./utils-4120664c.js');
|
|
18
18
|
require('./Dispute-eb6bad54.js');
|
|
19
19
|
require('./parts-5ca90f9a.js');
|
|
20
|
-
require('./package-
|
|
20
|
+
require('./package-5a9f02b2.js');
|
|
21
21
|
|
|
22
22
|
const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
23
23
|
var _a;
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5b9a3b5f.js');
|
|
6
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
6
|
+
const checkPkgVersion = require('./check-pkg-version-e6dcbeb7.js');
|
|
7
7
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
8
8
|
const paymentProvisioningActions = require('./payment-provisioning-actions-382ab48c.js');
|
|
9
9
|
const business_service = require('./business.service-6e8a29a2.js');
|
|
10
10
|
const Api = require('./Api-83d93333.js');
|
|
11
|
-
require('./package-
|
|
11
|
+
require('./package-5a9f02b2.js');
|
|
12
12
|
require('./utils-7a478c37.js');
|
|
13
13
|
|
|
14
14
|
class ProvisionService {
|
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5b9a3b5f.js');
|
|
6
|
-
const payment_service = require('./payment.service-
|
|
6
|
+
const payment_service = require('./payment.service-537e049d.js');
|
|
7
7
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
8
8
|
require('./Checkout-5352009d.js');
|
|
9
9
|
require('./Pagination-0da8f095.js');
|
|
10
10
|
const Payment = require('./Payment-bccd8f7d.js');
|
|
11
|
-
require('./SubAccount-
|
|
11
|
+
require('./SubAccount-2a302ead.js');
|
|
12
12
|
require('./Document-0b828345.js');
|
|
13
13
|
const utils = require('./utils-7a478c37.js');
|
|
14
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
14
|
+
const checkPkgVersion = require('./check-pkg-version-e6dcbeb7.js');
|
|
15
15
|
const styledHost = require('./styled-host-94309bab.js');
|
|
16
16
|
const paymentsTable = require('./payments-table-a076755a.js');
|
|
17
17
|
require('./Api-83d93333.js');
|
|
18
18
|
require('./utils-4120664c.js');
|
|
19
19
|
require('./Dispute-eb6bad54.js');
|
|
20
|
-
require('./package-
|
|
20
|
+
require('./package-5a9f02b2.js');
|
|
21
21
|
require('./payments-status-075aad0a.js');
|
|
22
22
|
require('./badge-364e6311.js');
|
|
23
23
|
require('./parts-5ca90f9a.js');
|
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5b9a3b5f.js');
|
|
6
|
-
const getPayoutCsv = require('./get-payout-csv-
|
|
6
|
+
const getPayoutCsv = require('./get-payout-csv-7607c71e.js');
|
|
7
7
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
8
8
|
require('./Checkout-5352009d.js');
|
|
9
9
|
require('./Pagination-0da8f095.js');
|
|
10
10
|
require('./Payment-bccd8f7d.js');
|
|
11
|
-
const SubAccount = require('./SubAccount-
|
|
11
|
+
const SubAccount = require('./SubAccount-2a302ead.js');
|
|
12
12
|
require('./Document-0b828345.js');
|
|
13
13
|
const utils = require('./utils-7a478c37.js');
|
|
14
14
|
const utils$1 = require('./utils-f8714daa.js');
|
|
15
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
15
|
+
const checkPkgVersion = require('./check-pkg-version-e6dcbeb7.js');
|
|
16
16
|
require('./Api-83d93333.js');
|
|
17
17
|
require('./utils-4120664c.js');
|
|
18
18
|
require('./Dispute-eb6bad54.js');
|
|
19
19
|
require('./parts-5ca90f9a.js');
|
|
20
|
-
require('./package-
|
|
20
|
+
require('./package-5a9f02b2.js');
|
|
21
21
|
|
|
22
22
|
const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
23
23
|
var _a;
|
|
@@ -4,18 +4,18 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5b9a3b5f.js');
|
|
6
6
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
7
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
8
|
-
const getPayoutCsv = require('./get-payout-csv-
|
|
7
|
+
const checkPkgVersion = require('./check-pkg-version-e6dcbeb7.js');
|
|
8
|
+
const getPayoutCsv = require('./get-payout-csv-7607c71e.js');
|
|
9
9
|
require('./Checkout-5352009d.js');
|
|
10
10
|
require('./Pagination-0da8f095.js');
|
|
11
11
|
require('./Payment-bccd8f7d.js');
|
|
12
|
-
const SubAccount = require('./SubAccount-
|
|
12
|
+
const SubAccount = require('./SubAccount-2a302ead.js');
|
|
13
13
|
require('./Document-0b828345.js');
|
|
14
14
|
const utils = require('./utils-7a478c37.js');
|
|
15
|
-
const getSubaccounts = require('./get-subaccounts-
|
|
15
|
+
const getSubaccounts = require('./get-subaccounts-ae5b35a8.js');
|
|
16
16
|
const styledHost = require('./styled-host-94309bab.js');
|
|
17
17
|
const payoutsTable = require('./payouts-table-aedce326.js');
|
|
18
|
-
require('./package-
|
|
18
|
+
require('./package-5a9f02b2.js');
|
|
19
19
|
require('./Api-83d93333.js');
|
|
20
20
|
require('./utils-4120664c.js');
|
|
21
21
|
require('./Dispute-eb6bad54.js');
|
|
@@ -6,14 +6,14 @@ const index = require('./index-5b9a3b5f.js');
|
|
|
6
6
|
const index_esm = require('./index.esm-544c08fd.js');
|
|
7
7
|
const utils = require('./utils-4120664c.js');
|
|
8
8
|
const Api = require('./Api-83d93333.js');
|
|
9
|
-
require('./ComponentError-233ac749.js');
|
|
9
|
+
const ComponentError = require('./ComponentError-233ac749.js');
|
|
10
10
|
require('./Checkout-5352009d.js');
|
|
11
11
|
require('./Pagination-0da8f095.js');
|
|
12
12
|
require('./Payment-bccd8f7d.js');
|
|
13
|
-
require('./SubAccount-
|
|
13
|
+
require('./SubAccount-2a302ead.js');
|
|
14
14
|
require('./Document-0b828345.js');
|
|
15
|
+
const button = require('./button-4a9fd41e.js');
|
|
15
16
|
const styledHost = require('./styled-host-94309bab.js');
|
|
16
|
-
const header1 = require('./header-1-43b2b905.js');
|
|
17
17
|
require('./Dispute-eb6bad54.js');
|
|
18
18
|
require('./parts-5ca90f9a.js');
|
|
19
19
|
|
|
@@ -52,14 +52,17 @@ const refundReasonOptions = [
|
|
|
52
52
|
const RefundPayment = class {
|
|
53
53
|
constructor(hostRef) {
|
|
54
54
|
index.registerInstance(this, hostRef);
|
|
55
|
-
this.
|
|
55
|
+
this.errorEvent = index.createEvent(this, "error-event", 7);
|
|
56
|
+
this.submitEvent = index.createEvent(this, "submit-event", 7);
|
|
56
57
|
this.authToken = undefined;
|
|
57
58
|
this.paymentId = undefined;
|
|
59
|
+
this.hideSubmitButton = false;
|
|
60
|
+
this.apiOrigin = "https://wc-proxy.justifi.ai";
|
|
58
61
|
this.paymentAmountRefundable = 0;
|
|
59
|
-
this.
|
|
62
|
+
this.errorMessage = null;
|
|
60
63
|
this.errors = {};
|
|
61
64
|
this.values = {};
|
|
62
|
-
this.
|
|
65
|
+
this.isLoading = false;
|
|
63
66
|
}
|
|
64
67
|
componentWillLoad() {
|
|
65
68
|
this.formController = new index_esm.FormController(RefundPaymentSchema(this.paymentAmountRefundable.toString()));
|
|
@@ -73,49 +76,43 @@ const RefundPayment = class {
|
|
|
73
76
|
this.values = Object.assign({}, values);
|
|
74
77
|
});
|
|
75
78
|
}
|
|
76
|
-
/**
|
|
77
|
-
* Handles the form submission.
|
|
78
|
-
* Prevents the default form action, validates the form, and emits the 'submitted' event.
|
|
79
|
-
*/
|
|
80
79
|
async handleSubmit(event) {
|
|
81
80
|
event.preventDefault();
|
|
82
81
|
this.formController.validateAndSubmit(this.submitRefund);
|
|
83
82
|
}
|
|
84
|
-
/**
|
|
85
|
-
* Submits the refund request to the API.
|
|
86
|
-
*/
|
|
87
83
|
async submitRefund(values) {
|
|
88
|
-
this.
|
|
84
|
+
this.isLoading = true;
|
|
85
|
+
let refundResponse;
|
|
89
86
|
try {
|
|
90
|
-
|
|
91
|
-
this.submitted.emit(response);
|
|
87
|
+
refundResponse = await this.api.post(`payments/${this.paymentId}/refunds`, values);
|
|
92
88
|
}
|
|
93
89
|
catch (error) {
|
|
94
90
|
console.error('Error submitting refund:', error);
|
|
95
|
-
this.
|
|
91
|
+
this.errorEvent.emit(error);
|
|
96
92
|
}
|
|
97
93
|
finally {
|
|
98
|
-
this.
|
|
94
|
+
this.submitEvent.emit({ response: refundResponse });
|
|
95
|
+
this.isLoading = false;
|
|
99
96
|
}
|
|
100
97
|
}
|
|
101
|
-
/**
|
|
102
|
-
* Handles input changes, updating the refundFields state.
|
|
103
|
-
*/
|
|
104
98
|
handleInput(field, value) {
|
|
105
99
|
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [field]: value }));
|
|
106
100
|
}
|
|
107
|
-
/**
|
|
108
|
-
* Initializes the API with the given authentication token.
|
|
109
|
-
* Logs a warning if the auth token is missing.
|
|
110
|
-
*/
|
|
111
101
|
initializeApi() {
|
|
112
|
-
if (
|
|
113
|
-
|
|
102
|
+
if (this.paymentId && this.authToken) {
|
|
103
|
+
this.api = Api.Api({ authToken: this.authToken, apiOrigin: "https://wc-proxy.justifi.ai" });
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
this.errorMessage = 'Payment ID and Auth Token are required';
|
|
107
|
+
this.errorEvent.emit({
|
|
108
|
+
errorCode: ComponentError.ComponentErrorCodes.MISSING_PROPS,
|
|
109
|
+
message: this.errorMessage,
|
|
110
|
+
severity: ComponentError.ComponentErrorSeverity.ERROR,
|
|
111
|
+
});
|
|
114
112
|
}
|
|
115
|
-
this.api = Api.Api({ authToken: this.authToken, apiOrigin: "https://wc-proxy.justifi.ai" });
|
|
116
113
|
}
|
|
117
114
|
render() {
|
|
118
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
115
|
+
return (index.h(styledHost.StyledHost, { key: 'ea0429d62ea383b6525251150978bb0ebfb2704e' }, index.h("form", { key: '8f2e00b871ee896ba82311d8975574e5a2cbf6e3' }, index.h("div", { key: 'fa6476367e4a8b7fd7cdfff906671ef597b453de', class: "row gy-3" }, index.h("div", { key: '72a48181200d6116ceb4bb511bdd33c8c8197742', class: "form-group" }, index.h("form-control-monetary", { key: 'f6a3b3a7d8d8c733cb032db96878ad64ff712356', name: "amount", label: "Refund Amount", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.amount, defaultValue: this.paymentAmountRefundable.toString() })), index.h("div", { key: '47e6dc07510e192caf00ce959348a2a9472f48f8', class: "form-group" }, index.h("form-control-select", { key: '9f9b761eea9964c7f6ac1dd907a4fee8cd63c906', label: "Reason for refund (optional)", options: refundReasonOptions, name: "reason", defaultValue: '' })), index.h("div", { key: 'daa4bf44ec311e0554ea28f97a0932673d542a31', class: "form-group" }, index.h("form-control-textarea", { key: 'a03d055e6462b9a23e714ca58a942a6da0365919', name: "description", label: "Note (optional)", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.description, maxLength: 250 })), index.h("div", { key: 'b744d28ff0a2d6aa37b1ebe2b7ea6d9b3edbbc39', class: "form-group d-flex flex-row-reverse" }, index.h(button.Button, { key: '3f62881a5fa333277478d35a7c19a8c4ca8bb929', variant: "primary", type: "submit", onClick: e => this.handleSubmit(e), isLoading: this.isLoading, hidden: this.hideSubmitButton }, `Refund ${utils.formatCurrency(+this.values.amount)}`))))));
|
|
119
116
|
}
|
|
120
117
|
};
|
|
121
118
|
|
|
@@ -8,13 +8,13 @@ const ComponentError = require('./ComponentError-233ac749.js');
|
|
|
8
8
|
require('./Checkout-5352009d.js');
|
|
9
9
|
require('./Pagination-0da8f095.js');
|
|
10
10
|
require('./Payment-bccd8f7d.js');
|
|
11
|
-
require('./SubAccount-
|
|
11
|
+
require('./SubAccount-2a302ead.js');
|
|
12
12
|
require('./Document-0b828345.js');
|
|
13
13
|
const utils = require('./utils-7a478c37.js');
|
|
14
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
14
|
+
const checkPkgVersion = require('./check-pkg-version-e6dcbeb7.js');
|
|
15
15
|
require('./utils-4120664c.js');
|
|
16
16
|
require('./Dispute-eb6bad54.js');
|
|
17
|
-
require('./package-
|
|
17
|
+
require('./package-5a9f02b2.js');
|
|
18
18
|
|
|
19
19
|
class InsuranceService {
|
|
20
20
|
async fetchQuote(authToken, payload) {
|
|
@@ -10,7 +10,7 @@ require('./ComponentError-233ac749.js');
|
|
|
10
10
|
require('./Checkout-5352009d.js');
|
|
11
11
|
require('./Pagination-0da8f095.js');
|
|
12
12
|
require('./Payment-bccd8f7d.js');
|
|
13
|
-
const SubAccount = require('./SubAccount-
|
|
13
|
+
const SubAccount = require('./SubAccount-2a302ead.js');
|
|
14
14
|
require('./Document-0b828345.js');
|
|
15
15
|
const utils = require('./utils-4120664c.js');
|
|
16
16
|
require('./index-d2d0b181.js');
|
|
@@ -4,17 +4,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5b9a3b5f.js');
|
|
6
6
|
const styledHost = require('./styled-host-94309bab.js');
|
|
7
|
-
const checkPkgVersion = require('./check-pkg-version-
|
|
8
|
-
const terminalOrdersTable = require('./terminal-orders-table-
|
|
7
|
+
const checkPkgVersion = require('./check-pkg-version-e6dcbeb7.js');
|
|
8
|
+
const terminalOrdersTable = require('./terminal-orders-table-3b247193.js');
|
|
9
9
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
10
10
|
require('./Checkout-5352009d.js');
|
|
11
11
|
require('./Pagination-0da8f095.js');
|
|
12
12
|
require('./Payment-bccd8f7d.js');
|
|
13
|
-
const SubAccount = require('./SubAccount-
|
|
13
|
+
const SubAccount = require('./SubAccount-2a302ead.js');
|
|
14
14
|
require('./Document-0b828345.js');
|
|
15
15
|
const utils = require('./utils-7a478c37.js');
|
|
16
16
|
const Api = require('./Api-83d93333.js');
|
|
17
|
-
require('./package-
|
|
17
|
+
require('./package-5a9f02b2.js');
|
|
18
18
|
require('./parts-5ca90f9a.js');
|
|
19
19
|
require('./utils-4120664c.js');
|
|
20
20
|
require('./badge-364e6311.js');
|