@justifi/webcomponents 5.7.6-rc-07 → 5.7.6-rc-09
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/{check-pkg-version-DEcNwH27.js → check-pkg-version-DDiIM7TD.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- package/dist/cjs/justifi-apple-pay.cjs.entry.js +9 -2
- package/dist/cjs/justifi-bank-account-form_5.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-button_5.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +2 -2
- package/dist/cjs/{package-cJqLX2S4.js → package-Cxw6plJP.js} +1 -1
- package/dist/collection/api/services/apple-pay.service.js +5 -0
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +4 -2
- package/dist/docs.json +1 -1
- package/dist/esm/{check-pkg-version-mGsb6VH3.js → check-pkg-version-CTiz0uFe.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +1 -1
- package/dist/esm/justifi-apple-pay.entry.js +9 -2
- package/dist/esm/justifi-bank-account-form_5.entry.js +2 -2
- package/dist/esm/justifi-business-details.entry.js +2 -2
- package/dist/esm/justifi-business-form.entry.js +2 -2
- package/dist/esm/justifi-button_5.entry.js +2 -2
- package/dist/esm/justifi-checkout.entry.js +2 -2
- package/dist/esm/justifi-checkouts-list.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +2 -2
- package/dist/esm/justifi-dispute-notification_3.entry.js +2 -2
- package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
- package/dist/esm/justifi-order-terminals.entry.js +2 -2
- package/dist/esm/justifi-payment-details.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
- package/dist/esm/justifi-payment-transactions-list.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +2 -2
- package/dist/esm/justifi-payout-details.entry.js +2 -2
- package/dist/esm/justifi-payout-transactions-list.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +2 -2
- package/dist/esm/justifi-refund-payment.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -2
- package/dist/esm/justifi-terminal-orders-list.entry.js +2 -2
- package/dist/esm/justifi-terminals-list.entry.js +2 -2
- package/dist/esm/justifi-tokenize-payment-method.entry.js +2 -2
- package/dist/esm/{package-kbTAg0Fi.js → package-BkRTy0ik.js} +1 -1
- package/dist/module/justifi-apple-pay.js +9 -2
- package/dist/module/package.js +1 -1
- package/dist/types/api/services/apple-pay.service.d.ts +2 -0
- package/dist/webcomponents/{p-e0ba82b6.entry.js → p-1b1198de.entry.js} +1 -1
- package/dist/webcomponents/{p-426986d1.entry.js → p-293196a3.entry.js} +1 -1
- package/dist/webcomponents/{p-f53ff470.entry.js → p-3286a710.entry.js} +1 -1
- package/dist/webcomponents/{p-20af3042.entry.js → p-32e8f6db.entry.js} +1 -1
- package/dist/webcomponents/{p-154a298b.entry.js → p-3b6e2720.entry.js} +1 -1
- package/dist/webcomponents/{p-4d03b096.entry.js → p-3bcbc170.entry.js} +1 -1
- package/dist/webcomponents/{p-813858cb.entry.js → p-3ef84467.entry.js} +1 -1
- package/dist/webcomponents/{p-cf5256f3.entry.js → p-483b126a.entry.js} +1 -1
- package/dist/webcomponents/{p-a7ab198e.entry.js → p-4bd5c24e.entry.js} +1 -1
- package/dist/webcomponents/{p-cd89e908.entry.js → p-6ee43c12.entry.js} +1 -1
- package/dist/webcomponents/{p-28beac6a.entry.js → p-6f91c6a7.entry.js} +1 -1
- package/dist/webcomponents/{p-271648dd.entry.js → p-73357a3f.entry.js} +1 -1
- package/dist/webcomponents/p-7bdbf02b.entry.js +1 -0
- package/dist/webcomponents/p-807364a1.entry.js +1 -0
- package/dist/webcomponents/{p-4022a5ec.entry.js → p-854b3c68.entry.js} +1 -1
- package/dist/webcomponents/{p-450eeb37.entry.js → p-981ef744.entry.js} +1 -1
- package/dist/webcomponents/p-BkRTy0ik.js +1 -0
- package/dist/webcomponents/{p-DkGfv8M-.js → p-DCuoHK4F.js} +1 -1
- package/dist/webcomponents/{p-794224cb.entry.js → p-a0301ff0.entry.js} +1 -1
- package/dist/webcomponents/{p-67265fb9.entry.js → p-d25dd497.entry.js} +1 -1
- package/dist/webcomponents/{p-aac4b32b.entry.js → p-d385af07.entry.js} +1 -1
- package/dist/webcomponents/{p-1eb52e5c.entry.js → p-d4300f5d.entry.js} +1 -1
- package/dist/webcomponents/{p-68d99790.entry.js → p-e759cd25.entry.js} +1 -1
- package/dist/webcomponents/{p-5b4e8845.entry.js → p-eb67742c.entry.js} +1 -1
- package/dist/webcomponents/{p-2041f39c.entry.js → p-f7a407ef.entry.js} +1 -1
- package/dist/webcomponents/{p-56f91bae.entry.js → p-fa83b4f6.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-0b2f1cdd.entry.js +0 -1
- package/dist/webcomponents/p-6f30cfa8.entry.js +0 -1
- package/dist/webcomponents/p-kbTAg0Fi.js +0 -1
|
@@ -167,6 +167,9 @@ class ApplePayService {
|
|
|
167
167
|
setAuthToken(authToken) {
|
|
168
168
|
this.authToken = authToken;
|
|
169
169
|
}
|
|
170
|
+
setAccountId(accountId) {
|
|
171
|
+
this.accountId = accountId;
|
|
172
|
+
}
|
|
170
173
|
/**
|
|
171
174
|
* Initialize Apple Pay configuration
|
|
172
175
|
*/
|
|
@@ -188,6 +191,7 @@ class ApplePayService {
|
|
|
188
191
|
'Content-Type': 'application/json',
|
|
189
192
|
Accept: 'application/json',
|
|
190
193
|
Authorization: `Bearer ${authToken}`,
|
|
194
|
+
"Sub-Account": this.accountId
|
|
191
195
|
},
|
|
192
196
|
body: JSON.stringify(body),
|
|
193
197
|
});
|
|
@@ -218,6 +222,7 @@ class ApplePayService {
|
|
|
218
222
|
'Content-Type': 'application/json',
|
|
219
223
|
Accept: 'application/json',
|
|
220
224
|
Authorization: `Bearer ${authToken}`,
|
|
225
|
+
"Sub-Account": this.accountId
|
|
221
226
|
},
|
|
222
227
|
body: JSON.stringify(body),
|
|
223
228
|
});
|
|
@@ -717,6 +722,7 @@ const ApplePay = class {
|
|
|
717
722
|
this.applePayService = new ApplePayService();
|
|
718
723
|
this.applePayService.setApiBaseUrl(this.apiBaseUrl);
|
|
719
724
|
this.applePayService.setAuthToken(checkoutStore.authToken);
|
|
725
|
+
this.applePayService.setAccountId(checkoutStore.accountId);
|
|
720
726
|
this.initializeApplePay();
|
|
721
727
|
}
|
|
722
728
|
componentDidLoad() {
|
|
@@ -765,6 +771,7 @@ const ApplePay = class {
|
|
|
765
771
|
buttonType: this.buttonType,
|
|
766
772
|
buttonStyle: this.buttonStyle,
|
|
767
773
|
};
|
|
774
|
+
this.applePayService.setAccountId(checkoutStore.accountId);
|
|
768
775
|
this.applePayService.initialize(applePayConfig);
|
|
769
776
|
const hasActiveCard = await this.applePayService.canMakePaymentsWithActiveCard();
|
|
770
777
|
if (!hasActiveCard) {
|
|
@@ -801,10 +808,10 @@ const ApplePay = class {
|
|
|
801
808
|
this.isAvailable &&
|
|
802
809
|
this.canMakePayments &&
|
|
803
810
|
!this.error;
|
|
804
|
-
return (h(StyledHost, { key: '
|
|
811
|
+
return (h(StyledHost, { key: '7a097bebb5e74135ffc5c2581a6cd866457960f2' }, h("div", { key: '2303cb24ca09ad878a5d3316b1e8bd099225af67', class: 'apple-pay-container' }, h(ApplePaySkeleton, { key: '5042a5fdcffee0a70bea873709e0315e6b56fd77', isReady: isReady }), !this.isLoading && this.error && (h("div", { key: 'ce361a001f391ac7545dac3f710d158921a481b8', class: 'apple-pay-error', role: 'alert' }, h("span", { key: 'b3d5c64a0d88033f684e23b76c9a114820e7745c', class: 'error-icon' }, "\u26A0\uFE0F"), h("span", { key: 'a202744010ea79c3d5be11a822814bbedcc51c77', class: 'error-message' }, this.error))), !this.isLoading && !this.error && !this.isAvailable && (h("div", { key: '121dbc93599736dffdc449770d1e0ec177c82f59', class: 'apple-pay-unavailable' }, h("span", { key: 'b8021e9a8e392c34665d31af19a4cec8bc609cc0', class: 'unavailable-message' }, "Apple Pay is not available on this device"))), !this.isLoading &&
|
|
805
812
|
!this.error &&
|
|
806
813
|
this.isAvailable &&
|
|
807
|
-
this.canMakePayments && (h(ApplePayButton, { key: '
|
|
814
|
+
this.canMakePayments && (h(ApplePayButton, { key: '287ea471872eaa059ce528a4d621ea41aa4425e1', buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", { key: 'd359fa5667e229d42b733f5875a404218d0bea9c' }, `
|
|
808
815
|
.apple-pay-container {
|
|
809
816
|
width: 100%;
|
|
810
817
|
}
|
|
@@ -2,7 +2,7 @@ import { h, r as registerInstance, c as createEvent } from './index-kpoIU4v_.js'
|
|
|
2
2
|
import { S as StyledHost } from './styled-host-B_XBaM7z.js';
|
|
3
3
|
import './event-types-CZfYo5-1.js';
|
|
4
4
|
import { S as Skeleton } from './skeleton-CZfDofm6.js';
|
|
5
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
5
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CTiz0uFe.js';
|
|
6
6
|
import { w as waitForConfig, c as configState } from './config-state-BrllxiM0.js';
|
|
7
7
|
import { c as create$3, F as FormController } from './index.esm-cYgKOXtz.js';
|
|
8
8
|
import { k as postalValidation, l as stateValidation, m as cityValidation, n as lineTwoValidation, q as lineOneValidation, y as identityNameValidation } from './schema-validations-DcR1ujuX.js';
|
|
@@ -10,7 +10,7 @@ import { ag as billingForm } from './parts-D3G5aVLy.js';
|
|
|
10
10
|
import { n as numberOnlyHandler } from './utils-BnjCmwMr.js';
|
|
11
11
|
import { S as StateOptions } from './state-options-BX8GieXu.js';
|
|
12
12
|
import { o as onChange } from './checkout.store-QrBBYQfi.js';
|
|
13
|
-
import './package-
|
|
13
|
+
import './package-BkRTy0ik.js';
|
|
14
14
|
import './Api-DQM93PRm.js';
|
|
15
15
|
import './utils-B7jE0g5_.js';
|
|
16
16
|
import './ComponentError-Cjcsf8ku.js';
|
|
@@ -3,7 +3,7 @@ import { E as ErrorState } from './utils-CBJo9jNE.js';
|
|
|
3
3
|
import { B as BusinessService } from './business.service-BgXdRyYa.js';
|
|
4
4
|
import { m as makeGetBusiness } from './get-business-Crb6P-iI.js';
|
|
5
5
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
6
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
6
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CTiz0uFe.js';
|
|
7
7
|
import './parts-D3G5aVLy.js';
|
|
8
8
|
import './Api-DQM93PRm.js';
|
|
9
9
|
import './config-state-BrllxiM0.js';
|
|
@@ -17,7 +17,7 @@ import './Business-BCoP0TAV.js';
|
|
|
17
17
|
import './helpers-Mu7LQT-w.js';
|
|
18
18
|
import './state-options-BX8GieXu.js';
|
|
19
19
|
import './utils-BeQLScSm.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-BkRTy0ik.js';
|
|
21
21
|
|
|
22
22
|
const BusinessDetails = class {
|
|
23
23
|
constructor(hostRef) {
|
|
@@ -10,7 +10,7 @@ import './Pagination-CLHwhyvu.js';
|
|
|
10
10
|
import './Payment-Bs0-9Lnt.js';
|
|
11
11
|
import { B as Business, b as BusinessFormServerErrors } from './Business-BCoP0TAV.js';
|
|
12
12
|
import './Dispute-7MWRbTXI.js';
|
|
13
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
13
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CTiz0uFe.js';
|
|
14
14
|
import { B as Button } from './button-DxM4-mlD.js';
|
|
15
15
|
import { S as StyledHost } from './styled-host-B_XBaM7z.js';
|
|
16
16
|
import { H as Header1 } from './header-1-B0PFwGib.js';
|
|
@@ -25,7 +25,7 @@ import './state-options-BX8GieXu.js';
|
|
|
25
25
|
import './business-form-options-CgssATyg.js';
|
|
26
26
|
import './index-B9me4yN2.js';
|
|
27
27
|
import './helpers-Mu7LQT-w.js';
|
|
28
|
-
import './package-
|
|
28
|
+
import './package-BkRTy0ik.js';
|
|
29
29
|
import './Api-DQM93PRm.js';
|
|
30
30
|
import './parts-D3G5aVLy.js';
|
|
31
31
|
import './utils-BeQLScSm.js';
|
|
@@ -8,7 +8,7 @@ import './event-types-CZfYo5-1.js';
|
|
|
8
8
|
import { H as Header1 } from './header-1-B0PFwGib.js';
|
|
9
9
|
import { H as Header2, b as insuranceValuesOn, i as insuranceValues } from './insurance-state-DQH40x6F.js';
|
|
10
10
|
import { H as Header3 } from './header-3-D3gxg6YU.js';
|
|
11
|
-
import { J as JustifiAnalytics, c as checkPkgVersion } from './check-pkg-version-
|
|
11
|
+
import { J as JustifiAnalytics, c as checkPkgVersion } from './check-pkg-version-CTiz0uFe.js';
|
|
12
12
|
import './config-state-BrllxiM0.js';
|
|
13
13
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes, b as ComponentErrorMessages } from './ComponentError-Cjcsf8ku.js';
|
|
14
14
|
import { I as ICheckoutStatus } from './Refund-4B3c-kLz.js';
|
|
@@ -19,7 +19,7 @@ import './Dispute-7MWRbTXI.js';
|
|
|
19
19
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
20
20
|
import { C as CheckoutService } from './checkout.service-CXeKDZTF.js';
|
|
21
21
|
import './index-B9me4yN2.js';
|
|
22
|
-
import './package-
|
|
22
|
+
import './package-BkRTy0ik.js';
|
|
23
23
|
import './Api-DQM93PRm.js';
|
|
24
24
|
import './helpers-Mu7LQT-w.js';
|
|
25
25
|
import './state-options-BX8GieXu.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-kpoIU4v_.js';
|
|
2
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
2
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CTiz0uFe.js';
|
|
3
3
|
import { c as checkoutStore } from './checkout.store-QrBBYQfi.js';
|
|
4
4
|
import { d as checkoutSummary } from './parts-D3G5aVLy.js';
|
|
5
5
|
import { P as PaymentMethodTypes } from './Payment-Bs0-9Lnt.js';
|
|
6
6
|
import { S as StyledHost } from './styled-host-B_XBaM7z.js';
|
|
7
7
|
import './event-types-CZfYo5-1.js';
|
|
8
|
-
import './package-
|
|
8
|
+
import './package-BkRTy0ik.js';
|
|
9
9
|
import './Api-DQM93PRm.js';
|
|
10
10
|
import './config-state-BrllxiM0.js';
|
|
11
11
|
import './index-B9me4yN2.js';
|
|
@@ -8,7 +8,7 @@ import './Payment-Bs0-9Lnt.js';
|
|
|
8
8
|
import './Business-BCoP0TAV.js';
|
|
9
9
|
import './Dispute-7MWRbTXI.js';
|
|
10
10
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
11
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
11
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CTiz0uFe.js';
|
|
12
12
|
import { C as CheckoutService } from './checkout.service-CXeKDZTF.js';
|
|
13
13
|
import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-C62B2OC_.js';
|
|
14
14
|
import { S as StyledHost } from './styled-host-B_XBaM7z.js';
|
|
@@ -17,7 +17,7 @@ import { d as defaultColumnsKeys } from './checkouts-table-Djb7Yj6O.js';
|
|
|
17
17
|
import './index-B9me4yN2.js';
|
|
18
18
|
import './helpers-Mu7LQT-w.js';
|
|
19
19
|
import './state-options-BX8GieXu.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-BkRTy0ik.js';
|
|
21
21
|
import './Api-DQM93PRm.js';
|
|
22
22
|
import './badge-D-vrtiQR.js';
|
|
23
23
|
import './parts-D3G5aVLy.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-kpoIU4v_.js';
|
|
2
2
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
3
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
3
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CTiz0uFe.js';
|
|
4
4
|
import { a as Dispute } from './Dispute-7MWRbTXI.js';
|
|
5
5
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
6
6
|
import { D as DisputeService } from './dispute.service-DWs_TX-m.js';
|
|
7
|
-
import './package-
|
|
7
|
+
import './package-BkRTy0ik.js';
|
|
8
8
|
import './Api-DQM93PRm.js';
|
|
9
9
|
import './config-state-BrllxiM0.js';
|
|
10
10
|
import './index-B9me4yN2.js';
|
|
@@ -9,7 +9,7 @@ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Compone
|
|
|
9
9
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
10
10
|
import { D as DisputeService } from './dispute.service-DWs_TX-m.js';
|
|
11
11
|
import { D as DisputeManagementClickActions } from './event-types-Bg2SZArf.js';
|
|
12
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
12
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CTiz0uFe.js';
|
|
13
13
|
import './Api-DQM93PRm.js';
|
|
14
14
|
import './config-state-BrllxiM0.js';
|
|
15
15
|
import './index-B9me4yN2.js';
|
|
@@ -20,7 +20,7 @@ import './Dispute-7MWRbTXI.js';
|
|
|
20
20
|
import './Business-BCoP0TAV.js';
|
|
21
21
|
import './helpers-Mu7LQT-w.js';
|
|
22
22
|
import './state-options-BX8GieXu.js';
|
|
23
|
-
import './package-
|
|
23
|
+
import './package-BkRTy0ik.js';
|
|
24
24
|
|
|
25
25
|
const makeUpdateDisputeResponse = ({ authToken, disputeId, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
|
|
26
26
|
var _a;
|
|
@@ -8,14 +8,14 @@ import './Business-BCoP0TAV.js';
|
|
|
8
8
|
import './Dispute-7MWRbTXI.js';
|
|
9
9
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
10
10
|
import { E as ErrorState } from './utils-CBJo9jNE.js';
|
|
11
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
11
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CTiz0uFe.js';
|
|
12
12
|
import './config-state-BrllxiM0.js';
|
|
13
13
|
import './index-B9me4yN2.js';
|
|
14
14
|
import './utils-B7jE0g5_.js';
|
|
15
15
|
import './helpers-Mu7LQT-w.js';
|
|
16
16
|
import './state-options-BX8GieXu.js';
|
|
17
17
|
import './parts-D3G5aVLy.js';
|
|
18
|
-
import './package-
|
|
18
|
+
import './package-BkRTy0ik.js';
|
|
19
19
|
|
|
20
20
|
const api = Api();
|
|
21
21
|
class ReportsService {
|
|
@@ -2,7 +2,7 @@ import { h, r as registerInstance, c as createEvent } from './index-kpoIU4v_.js'
|
|
|
2
2
|
import { ap as heading5, am as heading4, ae as buttonPrimary, z as text } from './parts-D3G5aVLy.js';
|
|
3
3
|
import { S as StyledHost } from './styled-host-B_XBaM7z.js';
|
|
4
4
|
import './event-types-CZfYo5-1.js';
|
|
5
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
5
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CTiz0uFe.js';
|
|
6
6
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
7
7
|
import { B as BusinessService } from './business.service-BgXdRyYa.js';
|
|
8
8
|
import { B as Business } from './Business-BCoP0TAV.js';
|
|
@@ -16,7 +16,7 @@ import './Payment-Bs0-9Lnt.js';
|
|
|
16
16
|
import './Dispute-7MWRbTXI.js';
|
|
17
17
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
18
18
|
import { T as TerminalService } from './terminal.service-BLeBxTv4.js';
|
|
19
|
-
import './package-
|
|
19
|
+
import './package-BkRTy0ik.js';
|
|
20
20
|
import './Api-DQM93PRm.js';
|
|
21
21
|
import './helpers-Mu7LQT-w.js';
|
|
22
22
|
import './state-options-BX8GieXu.js';
|
|
@@ -3,7 +3,7 @@ import { P as PaymentService } from './payment.service-BnDr_9vX.js';
|
|
|
3
3
|
import { m as makeGetPaymentDetails } from './get-payment-details-j8nOngzB.js';
|
|
4
4
|
import { E as ErrorState } from './utils-CBJo9jNE.js';
|
|
5
5
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
6
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
6
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CTiz0uFe.js';
|
|
7
7
|
import './Api-DQM93PRm.js';
|
|
8
8
|
import './config-state-BrllxiM0.js';
|
|
9
9
|
import './index-B9me4yN2.js';
|
|
@@ -17,7 +17,7 @@ import './helpers-Mu7LQT-w.js';
|
|
|
17
17
|
import './state-options-BX8GieXu.js';
|
|
18
18
|
import './utils-BeQLScSm.js';
|
|
19
19
|
import './parts-D3G5aVLy.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-BkRTy0ik.js';
|
|
21
21
|
|
|
22
22
|
const PaymentDetails = class {
|
|
23
23
|
constructor(hostRef) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-kpoIU4v_.js';
|
|
2
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
2
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CTiz0uFe.js';
|
|
3
3
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
4
4
|
import { m as makeGetBusiness, a as makePostProvisioning } from './payment-provisioning-actions-ONP8lDnV.js';
|
|
5
5
|
import { B as BusinessService } from './business.service-BgXdRyYa.js';
|
|
@@ -9,7 +9,7 @@ import './Pagination-CLHwhyvu.js';
|
|
|
9
9
|
import './Payment-Bs0-9Lnt.js';
|
|
10
10
|
import './Business-BCoP0TAV.js';
|
|
11
11
|
import './Dispute-7MWRbTXI.js';
|
|
12
|
-
import './package-
|
|
12
|
+
import './package-BkRTy0ik.js';
|
|
13
13
|
import './utils-BeQLScSm.js';
|
|
14
14
|
import './config-state-BrllxiM0.js';
|
|
15
15
|
import './index-B9me4yN2.js';
|
|
@@ -7,7 +7,7 @@ import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
|
|
|
7
7
|
import './Payment-Bs0-9Lnt.js';
|
|
8
8
|
import './Business-BCoP0TAV.js';
|
|
9
9
|
import './Dispute-7MWRbTXI.js';
|
|
10
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
10
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CTiz0uFe.js';
|
|
11
11
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
12
12
|
import { P as PaymentService } from './payment.service-BnDr_9vX.js';
|
|
13
13
|
import { T as Table, l as TableWrapper, a as TableComponent, b as TableHead, c as TableHeadRow, d as TableBody, e as TableLoadingState, f as TableEmptyState, g as TableErrorState, h as TableRow, i as TableFoot, j as TableFootRow, k as TableFootCell } from './table-CTPfsGKi.js';
|
|
@@ -17,7 +17,7 @@ import { N as tableHeadCell, O as getAlternateTableCellPart } from './parts-D3G5
|
|
|
17
17
|
import './index-B9me4yN2.js';
|
|
18
18
|
import './helpers-Mu7LQT-w.js';
|
|
19
19
|
import './state-options-BX8GieXu.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-BkRTy0ik.js';
|
|
21
21
|
import './Api-DQM93PRm.js';
|
|
22
22
|
import './spinner-D-vbFqC6.js';
|
|
23
23
|
|
|
@@ -9,7 +9,7 @@ import { a as Payment } from './Payment-Bs0-9Lnt.js';
|
|
|
9
9
|
import './Business-BCoP0TAV.js';
|
|
10
10
|
import './Dispute-7MWRbTXI.js';
|
|
11
11
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
12
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
12
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CTiz0uFe.js';
|
|
13
13
|
import { S as StyledHost } from './styled-host-B_XBaM7z.js';
|
|
14
14
|
import './event-types-CZfYo5-1.js';
|
|
15
15
|
import { d as defaultColumnsKeys } from './payments-table-BuiNqlwv.js';
|
|
@@ -17,7 +17,7 @@ import './Api-DQM93PRm.js';
|
|
|
17
17
|
import './index-B9me4yN2.js';
|
|
18
18
|
import './helpers-Mu7LQT-w.js';
|
|
19
19
|
import './state-options-BX8GieXu.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-BkRTy0ik.js';
|
|
21
21
|
import './payments-status-DVYzDcJ4.js';
|
|
22
22
|
import './badge-D-vrtiQR.js';
|
|
23
23
|
import './parts-D3G5aVLy.js';
|
|
@@ -10,14 +10,14 @@ import './Business-BCoP0TAV.js';
|
|
|
10
10
|
import './Dispute-7MWRbTXI.js';
|
|
11
11
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
12
12
|
import { E as ErrorState } from './utils-CBJo9jNE.js';
|
|
13
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
13
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CTiz0uFe.js';
|
|
14
14
|
import { m as makeGetPayoutCSV } from './get-payout-csv-D-Lnooki.js';
|
|
15
15
|
import './Api-DQM93PRm.js';
|
|
16
16
|
import './index-B9me4yN2.js';
|
|
17
17
|
import './helpers-Mu7LQT-w.js';
|
|
18
18
|
import './state-options-BX8GieXu.js';
|
|
19
19
|
import './parts-D3G5aVLy.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-BkRTy0ik.js';
|
|
21
21
|
|
|
22
22
|
const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
23
23
|
var _a;
|
|
@@ -7,7 +7,7 @@ import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
|
|
|
7
7
|
import './Payment-Bs0-9Lnt.js';
|
|
8
8
|
import './Business-BCoP0TAV.js';
|
|
9
9
|
import './Dispute-7MWRbTXI.js';
|
|
10
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
10
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CTiz0uFe.js';
|
|
11
11
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
12
12
|
import { P as PayoutService } from './payout.service-Ai1aEuFC.js';
|
|
13
13
|
import { T as Table, l as TableWrapper, a as TableComponent, b as TableHead, c as TableHeadRow, d as TableBody, e as TableLoadingState, f as TableEmptyState, g as TableErrorState, h as TableRow, i as TableFoot, j as TableFootRow, k as TableFootCell } from './table-CTPfsGKi.js';
|
|
@@ -17,7 +17,7 @@ import { N as tableHeadCell, O as getAlternateTableCellPart } from './parts-D3G5
|
|
|
17
17
|
import './index-B9me4yN2.js';
|
|
18
18
|
import './helpers-Mu7LQT-w.js';
|
|
19
19
|
import './state-options-BX8GieXu.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-BkRTy0ik.js';
|
|
21
21
|
import './Api-DQM93PRm.js';
|
|
22
22
|
import './spinner-D-vbFqC6.js';
|
|
23
23
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-kpoIU4v_.js';
|
|
2
2
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
3
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
3
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CTiz0uFe.js';
|
|
4
4
|
import { P as PayoutService } from './payout.service-Ai1aEuFC.js';
|
|
5
5
|
import './config-state-BrllxiM0.js';
|
|
6
6
|
import './utils-B7jE0g5_.js';
|
|
@@ -15,7 +15,7 @@ import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccoun
|
|
|
15
15
|
import { S as StyledHost } from './styled-host-B_XBaM7z.js';
|
|
16
16
|
import './event-types-CZfYo5-1.js';
|
|
17
17
|
import { d as defaultColumnsKeys } from './payouts-table-cgIXP54P.js';
|
|
18
|
-
import './package-
|
|
18
|
+
import './package-BkRTy0ik.js';
|
|
19
19
|
import './Api-DQM93PRm.js';
|
|
20
20
|
import './index-B9me4yN2.js';
|
|
21
21
|
import './helpers-Mu7LQT-w.js';
|
|
@@ -13,7 +13,7 @@ import { S as StyledHost } from './styled-host-B_XBaM7z.js';
|
|
|
13
13
|
import './event-types-CZfYo5-1.js';
|
|
14
14
|
import { P as PaymentService } from './payment.service-BnDr_9vX.js';
|
|
15
15
|
import { m as makeGetPaymentDetails } from './get-payment-details-j8nOngzB.js';
|
|
16
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
16
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CTiz0uFe.js';
|
|
17
17
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
18
18
|
import { A as Api } from './Api-DQM93PRm.js';
|
|
19
19
|
import { S as Skeleton } from './skeleton-CZfDofm6.js';
|
|
@@ -22,7 +22,7 @@ import './index-B9me4yN2.js';
|
|
|
22
22
|
import './helpers-Mu7LQT-w.js';
|
|
23
23
|
import './state-options-BX8GieXu.js';
|
|
24
24
|
import './parts-D3G5aVLy.js';
|
|
25
|
-
import './package-
|
|
25
|
+
import './package-BkRTy0ik.js';
|
|
26
26
|
|
|
27
27
|
const amountValidation = (maxAmount) => {
|
|
28
28
|
const max = +maxAmount;
|
|
@@ -7,14 +7,14 @@ import './Payment-Bs0-9Lnt.js';
|
|
|
7
7
|
import './Business-BCoP0TAV.js';
|
|
8
8
|
import './Dispute-7MWRbTXI.js';
|
|
9
9
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
10
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
10
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CTiz0uFe.js';
|
|
11
11
|
import { c as checkoutStore } from './checkout.store-QrBBYQfi.js';
|
|
12
12
|
import './config-state-BrllxiM0.js';
|
|
13
13
|
import './index-B9me4yN2.js';
|
|
14
14
|
import './utils-B7jE0g5_.js';
|
|
15
15
|
import './helpers-Mu7LQT-w.js';
|
|
16
16
|
import './state-options-BX8GieXu.js';
|
|
17
|
-
import './package-
|
|
17
|
+
import './package-BkRTy0ik.js';
|
|
18
18
|
|
|
19
19
|
const api = Api();
|
|
20
20
|
class InsuranceService {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-kpoIU4v_.js';
|
|
2
2
|
import { S as StyledHost } from './styled-host-B_XBaM7z.js';
|
|
3
3
|
import './event-types-CZfYo5-1.js';
|
|
4
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
4
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CTiz0uFe.js';
|
|
5
5
|
import { d as defaultColumnsKeys } from './terminal-orders-table-CvK516_V.js';
|
|
6
6
|
import './config-state-BrllxiM0.js';
|
|
7
7
|
import './utils-B7jE0g5_.js';
|
|
@@ -13,7 +13,7 @@ import './Business-BCoP0TAV.js';
|
|
|
13
13
|
import './Dispute-7MWRbTXI.js';
|
|
14
14
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
15
15
|
import { A as Api } from './Api-DQM93PRm.js';
|
|
16
|
-
import './package-
|
|
16
|
+
import './package-BkRTy0ik.js';
|
|
17
17
|
import './parts-D3G5aVLy.js';
|
|
18
18
|
import './badge-D-vrtiQR.js';
|
|
19
19
|
import './index-B9me4yN2.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-kpoIU4v_.js';
|
|
2
2
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
3
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
3
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CTiz0uFe.js';
|
|
4
4
|
import { T as TerminalService } from './terminal.service-BLeBxTv4.js';
|
|
5
5
|
import './config-state-BrllxiM0.js';
|
|
6
6
|
import './utils-B7jE0g5_.js';
|
|
@@ -14,7 +14,7 @@ import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccoun
|
|
|
14
14
|
import { S as StyledHost } from './styled-host-B_XBaM7z.js';
|
|
15
15
|
import './event-types-CZfYo5-1.js';
|
|
16
16
|
import { d as defaultColumnsKeys } from './terminals-table-2QGQITkt.js';
|
|
17
|
-
import './package-
|
|
17
|
+
import './package-BkRTy0ik.js';
|
|
18
18
|
import './Api-DQM93PRm.js';
|
|
19
19
|
import './index-B9me4yN2.js';
|
|
20
20
|
import './helpers-Mu7LQT-w.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h } from './index-kpoIU4v_.js'
|
|
|
2
2
|
import { B as Button } from './button-DxM4-mlD.js';
|
|
3
3
|
import { S as StyledHost } from './styled-host-B_XBaM7z.js';
|
|
4
4
|
import './event-types-CZfYo5-1.js';
|
|
5
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
5
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CTiz0uFe.js';
|
|
6
6
|
import './config-state-BrllxiM0.js';
|
|
7
7
|
import './utils-B7jE0g5_.js';
|
|
8
8
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
@@ -13,7 +13,7 @@ import './Business-BCoP0TAV.js';
|
|
|
13
13
|
import './Dispute-7MWRbTXI.js';
|
|
14
14
|
import { c as checkoutStore } from './checkout.store-QrBBYQfi.js';
|
|
15
15
|
import './parts-D3G5aVLy.js';
|
|
16
|
-
import './package-
|
|
16
|
+
import './package-BkRTy0ik.js';
|
|
17
17
|
import './Api-DQM93PRm.js';
|
|
18
18
|
import './index-B9me4yN2.js';
|
|
19
19
|
import './helpers-Mu7LQT-w.js';
|
|
@@ -166,6 +166,9 @@ class ApplePayService {
|
|
|
166
166
|
setAuthToken(authToken) {
|
|
167
167
|
this.authToken = authToken;
|
|
168
168
|
}
|
|
169
|
+
setAccountId(accountId) {
|
|
170
|
+
this.accountId = accountId;
|
|
171
|
+
}
|
|
169
172
|
/**
|
|
170
173
|
* Initialize Apple Pay configuration
|
|
171
174
|
*/
|
|
@@ -187,6 +190,7 @@ class ApplePayService {
|
|
|
187
190
|
'Content-Type': 'application/json',
|
|
188
191
|
Accept: 'application/json',
|
|
189
192
|
Authorization: `Bearer ${authToken}`,
|
|
193
|
+
"Sub-Account": this.accountId
|
|
190
194
|
},
|
|
191
195
|
body: JSON.stringify(body),
|
|
192
196
|
});
|
|
@@ -217,6 +221,7 @@ class ApplePayService {
|
|
|
217
221
|
'Content-Type': 'application/json',
|
|
218
222
|
Accept: 'application/json',
|
|
219
223
|
Authorization: `Bearer ${authToken}`,
|
|
224
|
+
"Sub-Account": this.accountId
|
|
220
225
|
},
|
|
221
226
|
body: JSON.stringify(body),
|
|
222
227
|
});
|
|
@@ -718,6 +723,7 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
|
|
|
718
723
|
this.applePayService = new ApplePayService();
|
|
719
724
|
this.applePayService.setApiBaseUrl(this.apiBaseUrl);
|
|
720
725
|
this.applePayService.setAuthToken(checkoutStore.authToken);
|
|
726
|
+
this.applePayService.setAccountId(checkoutStore.accountId);
|
|
721
727
|
this.initializeApplePay();
|
|
722
728
|
}
|
|
723
729
|
componentDidLoad() {
|
|
@@ -766,6 +772,7 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
|
|
|
766
772
|
buttonType: this.buttonType,
|
|
767
773
|
buttonStyle: this.buttonStyle,
|
|
768
774
|
};
|
|
775
|
+
this.applePayService.setAccountId(checkoutStore.accountId);
|
|
769
776
|
this.applePayService.initialize(applePayConfig);
|
|
770
777
|
const hasActiveCard = await this.applePayService.canMakePaymentsWithActiveCard();
|
|
771
778
|
if (!hasActiveCard) {
|
|
@@ -802,10 +809,10 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
|
|
|
802
809
|
this.isAvailable &&
|
|
803
810
|
this.canMakePayments &&
|
|
804
811
|
!this.error;
|
|
805
|
-
return (h(StyledHost, { key: '
|
|
812
|
+
return (h(StyledHost, { key: '7a097bebb5e74135ffc5c2581a6cd866457960f2' }, h("div", { key: '2303cb24ca09ad878a5d3316b1e8bd099225af67', class: 'apple-pay-container' }, h(ApplePaySkeleton, { key: '5042a5fdcffee0a70bea873709e0315e6b56fd77', isReady: isReady }), !this.isLoading && this.error && (h("div", { key: 'ce361a001f391ac7545dac3f710d158921a481b8', class: 'apple-pay-error', role: 'alert' }, h("span", { key: 'b3d5c64a0d88033f684e23b76c9a114820e7745c', class: 'error-icon' }, "\u26A0\uFE0F"), h("span", { key: 'a202744010ea79c3d5be11a822814bbedcc51c77', class: 'error-message' }, this.error))), !this.isLoading && !this.error && !this.isAvailable && (h("div", { key: '121dbc93599736dffdc449770d1e0ec177c82f59', class: 'apple-pay-unavailable' }, h("span", { key: 'b8021e9a8e392c34665d31af19a4cec8bc609cc0', class: 'unavailable-message' }, "Apple Pay is not available on this device"))), !this.isLoading &&
|
|
806
813
|
!this.error &&
|
|
807
814
|
this.isAvailable &&
|
|
808
|
-
this.canMakePayments && (h(ApplePayButton, { key: '
|
|
815
|
+
this.canMakePayments && (h(ApplePayButton, { key: '287ea471872eaa059ce528a4d621ea41aa4425e1', buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", { key: 'd359fa5667e229d42b733f5875a404218d0bea9c' }, `
|
|
809
816
|
.apple-pay-container {
|
|
810
817
|
width: 100%;
|
|
811
818
|
}
|
package/dist/module/package.js
CHANGED
|
@@ -5,6 +5,7 @@ export declare class ApplePayService implements IApplePayService {
|
|
|
5
5
|
private currentPaymentRequest?;
|
|
6
6
|
private apiBaseUrl;
|
|
7
7
|
private authToken?;
|
|
8
|
+
private accountId?;
|
|
8
9
|
/**
|
|
9
10
|
* Set custom API base URL
|
|
10
11
|
*/
|
|
@@ -13,6 +14,7 @@ export declare class ApplePayService implements IApplePayService {
|
|
|
13
14
|
* Set authentication token
|
|
14
15
|
*/
|
|
15
16
|
setAuthToken(authToken: string): void;
|
|
17
|
+
setAccountId(accountId: string): void;
|
|
16
18
|
/**
|
|
17
19
|
* Initialize Apple Pay configuration
|
|
18
20
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t,r as e,c as a}from"./p-kpoIU4v_.js";import{c as i}from"./p-9y5MOK55.js";import{a as s}from"./p-B7jE0g5_.js";import{C as o,a as r}from"./p-Cjcsf8ku.js";import{f as c}from"./p-Bou1Z4Bm.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-BDUTtU21.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{c as p,J as d}from"./p-
|
|
1
|
+
import{h as t,r as e,c as a}from"./p-kpoIU4v_.js";import{c as i}from"./p-9y5MOK55.js";import{a as s}from"./p-B7jE0g5_.js";import{C as o,a as r}from"./p-Cjcsf8ku.js";import{f as c}from"./p-Bou1Z4Bm.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-BDUTtU21.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{c as p,J as d}from"./p-DCuoHK4F.js";import{g as h,a as l}from"./p-D2muobcE.js";import{P as f}from"./p-Sz-UKsNL.js";import{T as u,l as m,a as y,b,c as _,d as w,e as j,f as T,g as v,h as k,i as g,j as D,k as C}from"./p-C8ll3Wwp.js";import{S as I}from"./p-CRFzwZW6.js";import{T as S}from"./p-CZfYo5-1.js";import{N as P,O}from"./p-D3G5aVLy.js";import"./p-7WIgS5RM.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BkRTy0ik.js";import"./p-Dj1uo4J3.js";import"./p-B8tUOqiv.js";const q={id:()=>t("th",{part:P,scope:"col",title:"The unique identifier of each transaction"},"ID"),account_id:()=>t("th",{part:P,scope:"col",title:"The unique identifier of the account associated with each transaction"},"Account ID"),payout_id:()=>t("th",{part:P,scope:"col",title:"The unique identifier of the payout associated with each transaction"},"Payout ID"),financial_transaction_id:()=>t("th",{part:P,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),amount:()=>t("th",{part:P,scope:"col",title:"The dollar amount of each transaction"},"Amount"),fee:()=>t("th",{part:P,scope:"col",title:"The fee associated with each transaction"},"Fee"),net:()=>t("th",{part:P,scope:"col",title:"The net amount of each transaction"},"Net"),currency:()=>t("th",{part:P,scope:"col",title:"The currency of each transaction"},"Currency"),description:()=>t("th",{part:P,scope:"col",title:"The description of each transaction"},"Description"),source_id:()=>t("th",{part:P,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),txn_type:()=>t("th",{part:P,scope:"col",title:"The type of each transaction"},"Type"),created_at:()=>t("th",{part:P,scope:"col",title:"The date and time each transaction was made"},"Processed On"),available_on:()=>t("th",{part:P,scope:"col",title:"The date and time each transaction will be available"},"Available On"),updated_at:()=>t("th",{part:P,scope:"col",title:"The date and time each transaction was last updated"},"Updated On")},B={fee:"Fee",payment:"Payment",payout:"Payout",seller_payment_refund:"Seller Payment Refund",dispute_amount_collected:"Dispute Amount Collected",dispute_fee_collected:"Dispute Fee Collected",seller_payment:"Seller Payment",transfer:"Transfer",partner_platform_proceeds_credit:"Partner Platform Proceeds Credit"},E={id:e=>t("td",{part:O(e.id)},e.id),account_id:e=>t("td",{part:O(e.account_id)},e.account_id),payout_id:e=>t("td",{part:O(e.payout_id)},e.payout_id),financial_transaction_id:e=>t("td",{part:O(e.financial_transaction_id)},e.financial_transaction_id),amount:e=>t("td",{part:O(e.amount)},e.formattedPaymentAmount(e.amount)),fee:e=>t("td",{part:O(e.fee)},e.formattedPaymentAmount(e.fee)),net:e=>t("td",{part:O(e.net)},e.formattedPaymentAmount(e.net)),currency:e=>t("td",{part:O(e.currency)},e.currency),description:e=>t("td",{part:O(e.description)},e.description),source_id:e=>t("td",{part:O(e.source_id)},e.source_id),txn_type:e=>t("td",{part:O(e.txn_type)},B[e.txn_type]),created_at:e=>t("td",{part:O(e.created_at)},t("div",{class:"fw-bold"},s(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},s(e.created_at,{showTime:!0}))),available_on:e=>t("td",{part:O(e.available_on)},t("div",{class:"fw-bold"},s(e.available_on,{showDisplayDate:!0})),t("div",{class:"fw-bold"},s(e.available_on,{showTime:!0}))),updated_at:e=>t("td",{part:O(e.updated_at)},t("div",{class:"fw-bold"},s(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},s(e.updated_at,{showTime:!0})))},A=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event"),this.errorEvent=a(this,"error-event"),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=n,this.pagingParams={},this.columns="created_at,txn_type,description,amount,fee,net",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:S.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:S.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:S.row,data:a})}}componentWillLoad(){this.transactionsTable=new u(this.balanceTransactions,this.columns,q,E),p(),this.analytics=new d(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.payoutId&&this.authToken?(({accountId:t,authToken:e,service:a})=>async({params:i,onSuccess:s,onError:r,final:n})=>{var p;try{const n=await a.fetchPayoutTransactions(t,e,i);n.error?r({error:l(n.error),code:h(null===(p=n.error)||void 0===p?void 0:p.code),severity:o.ERROR}):s({balanceTransactions:n.data.map((t=>new c(t))),pagingInfo:Object.assign({},n.page_info)})}catch(t){const e=h(null==t?void 0:t.code);r({error:l(t),code:e,severity:o.ERROR})}finally{n()}})({accountId:i.accountId,authToken:this.authToken,service:new f})({params:this.requestParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payout-id and auth-token props are required",this.handleError(r.MISSING_PROPS,this.errorMessage,o.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}get requestParams(){return Object.assign({payout_id:this.payoutId,limit:"15"},this.pagingParams)}render(){return t(I,{key:"3cd7ace37599772de8eff537c9e3f55f47806438"},t(m,{key:"dc452066ad9ea340928eb46cf066b14879b03da3"},t(y,{key:"b9432f88ea632667ef4c5dab5d7fb9c93ef216d9"},t(b,{key:"e3ec6220544923b0da36962175a83ebcbc4f5ec0"},t(_,{key:"ba1337dfd25e72cfea80742be409ea2120c1fd90"},this.transactionsTable.columnData.map((t=>t)))),t(w,{key:"abae90255e377f9a5714412ea63a0531bbbadd15"},t(j,{key:"aa83ef0f731bb3f256429a2861db65e8b928505a",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(T,{key:"5d56c98acabd29e81d921d48178c4fab57fd0b31",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(v,{key:"d7c517f477071c51026650cd4a58357f10047b97",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(k,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(g,{key:"355844893dd1263d483a6f55749435b949856ca6"},t(D,{key:"6d383897a69110e66a1478609538f975f1a8694b"},t(C,{key:"72ef4e146147b7f8ad6902ce0380d7cf1d200764",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"500f5a0aa17c25d0085a9d2f3c9ce80488924880",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],payoutId:["propChanged"],authToken:["propChanged"]}}};export{A as justifi_payout_transactions_list}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as r}from"./p-kpoIU4v_.js";import{P as i}from"./p-ObR0KZw0.js";import"./p-9y5MOK55.js";import"./p-B7jE0g5_.js";import{C as o,a as e}from"./p-Cjcsf8ku.js";import"./p-Bou1Z4Bm.js";import"./p-CLHwhyvu.js";import{a as p}from"./p-BDUTtU21.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{g as a,a as n}from"./p-D2muobcE.js";import{c as m,J as c}from"./p-
|
|
1
|
+
import{r as t,c as s,h as r}from"./p-kpoIU4v_.js";import{P as i}from"./p-ObR0KZw0.js";import"./p-9y5MOK55.js";import"./p-B7jE0g5_.js";import{C as o,a as e}from"./p-Cjcsf8ku.js";import"./p-Bou1Z4Bm.js";import"./p-CLHwhyvu.js";import{a as p}from"./p-BDUTtU21.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{g as a,a as n}from"./p-D2muobcE.js";import{c as m,J as c}from"./p-DCuoHK4F.js";import{S as h}from"./p-CRFzwZW6.js";import"./p-CZfYo5-1.js";import{d as j}from"./p-B2csvKrZ.js";import"./p-Dj1uo4J3.js";import"./p-7WIgS5RM.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BkRTy0ik.js";import"./p-BvyiDejp.js";import"./p-DCDU6JB3.js";import"./p-D3G5aVLy.js";const d=class{constructor(r){t(this,r),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=j,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){m(),this.analytics=new c(this),this.initializeGetPayments()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPayments()}initializeGetPayments(){this.accountId&&this.authToken?this.getPayments=(({id:t,authToken:s,service:r})=>async({params:i,onSuccess:e,onError:m,final:c})=>{var h,j;try{const c=await r.fetchPayments(t,s,i);if(c.error)return m({error:n(c.error),code:a(null===(j=c.error)||void 0===j?void 0:j.code),severity:o.ERROR});{const t=Object.assign({},c.page_info);e({payments:(null===(h=c.data)||void 0===h?void 0:h.map((t=>new p(t))))||[],pagingInfo:t})}}catch(t){const s=a(null==t?void 0:t.code);return m({error:t.message||t,code:s,severity:o.ERROR})}finally{return c()}})({id:this.accountId,authToken:this.authToken,service:new i}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}render(){return r(h,{key:"346d4f307320d44c5103a3d259bef61e08b4779b"},r("payments-list-core",{key:"9e5283017a8d56fd274754b81942e293686d874b",getPayments:this.getPayments,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_payments_list}
|