@justifi/webcomponents 6.0.0-rc.15 → 6.0.0-rc.16
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/bank-account-document-form-inputs_4.cjs.entry.js +2 -2
- package/dist/cjs/{check-pkg-version-CVOffMTi.js → check-pkg-version-DfzaKEDg.js} +1 -1
- package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
- package/dist/cjs/form-control-date.cjs.entry.js +2 -2
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
- package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number.cjs.entry.js +2 -2
- package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
- package/dist/cjs/form-control-select_2.cjs.entry.js +2 -2
- package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
- package/dist/cjs/justifi-apple-pay.cjs.entry.js +36 -369
- package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +7 -7
- 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-checkout-summary_7.cjs.entry.js +7 -6
- 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 +3 -3
- 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 +3 -3
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -3
- 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-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-MU7zz6nI.js → package-CHNXn8wx.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +1 -1
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +1 -1
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +1 -1
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/terminals-list-core.cjs.entry.js +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/components/modular-checkout/modular-checkout.js +2 -1
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +37 -46
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
- package/dist/collection/components/order-terminals/order-terminals.js +1 -1
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +3 -3
- package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +3 -3
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
- package/dist/docs.json +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +2 -2
- package/dist/esm/{check-pkg-version-BLDmtrcB.js → check-pkg-version-Cz8T6Ux8.js} +1 -1
- package/dist/esm/{checkout.store-DNDbZO3M.js → checkout.store-OD-OX5On.js} +1 -1
- package/dist/esm/custom-popper_2.entry.js +2 -2
- package/dist/esm/form-control-date.entry.js +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +3 -3
- package/dist/esm/form-control-monetary.entry.js +2 -2
- package/dist/esm/form-control-number-masked_2.entry.js +2 -2
- package/dist/esm/form-control-number.entry.js +2 -2
- package/dist/esm/form-control-radio.entry.js +2 -2
- package/dist/esm/form-control-select_2.entry.js +2 -2
- package/dist/esm/hidden-input_2.entry.js +5 -5
- package/dist/esm/justifi-apple-pay.entry.js +37 -370
- package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +8 -8
- package/dist/esm/justifi-business-details.entry.js +2 -2
- package/dist/esm/justifi-business-form.entry.js +2 -2
- package/dist/esm/justifi-checkout-summary_7.entry.js +8 -7
- package/dist/esm/justifi-checkout.entry.js +3 -3
- 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 +3 -3
- 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 +3 -3
- package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +3 -3
- package/dist/esm/justifi-payout-details.entry.js +2 -2
- package/dist/esm/justifi-payout-transactions-list.entry.js +3 -3
- package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +3 -3
- package/dist/esm/justifi-refund-payment.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +3 -3
- package/dist/esm/justifi-skeleton.entry.js +1 -1
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +2 -2
- package/dist/esm/justifi-terminal-orders-list.entry.js +3 -3
- package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminals-list.entry.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-BFz8vLec.js → package-BiTF1__F.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +8 -8
- package/dist/esm/payment-method-option.entry.js +1 -1
- package/dist/esm/payments-list-core.entry.js +1 -1
- package/dist/esm/payout-details-core.entry.js +3 -3
- package/dist/esm/payouts-list-core.entry.js +1 -1
- package/dist/esm/terminal-orders-list-core.entry.js +1 -1
- package/dist/esm/terminal-quantity-selector.entry.js +1 -1
- package/dist/esm/terminals-list-core.entry.js +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/bank-account.js +2 -2
- package/dist/module/card-form2.js +2 -2
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +2 -2
- package/dist/module/form-control-monetary2.js +2 -2
- package/dist/module/form-control-number-masked2.js +2 -2
- package/dist/module/form-control-number.js +2 -2
- package/dist/module/form-control-radio2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/justifi-apple-pay.js +34 -372
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-order-terminals.js +1 -1
- package/dist/module/justifi-payment-transactions-list.js +1 -1
- package/dist/module/justifi-payments-list-filters.js +2 -2
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +1 -1
- package/dist/module/justifi-payouts-list-filters.js +2 -2
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +2 -2
- package/dist/module/justifi-terminal-orders-list.js +1 -1
- package/dist/module/justifi-terminals-list-filters.js +1 -1
- package/dist/module/justifi-terminals-list.js +1 -1
- package/dist/module/modular-checkout.js +2 -1
- package/dist/module/package.js +1 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/summary.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +1 -1
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminals-list-core2.js +1 -1
- package/dist/module/tokenize-payment-method.js +1 -1
- package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +0 -4
- package/dist/webcomponents/p-054193e4.entry.js +1 -0
- package/dist/webcomponents/p-07c3c25e.entry.js +1 -0
- package/dist/webcomponents/p-0913a57b.entry.js +1 -0
- package/dist/webcomponents/p-099e96ba.entry.js +1 -0
- package/dist/webcomponents/{p-50f6a37b.entry.js → p-0bba0dd0.entry.js} +1 -1
- package/dist/webcomponents/p-0e80830f.entry.js +1 -0
- package/dist/webcomponents/{p-a6748a1d.entry.js → p-13c21c47.entry.js} +1 -1
- package/dist/webcomponents/{p-5961ab23.entry.js → p-225da0b5.entry.js} +1 -1
- package/dist/webcomponents/{p-2d14f144.entry.js → p-225ed545.entry.js} +1 -1
- package/dist/webcomponents/{p-71f9c48a.entry.js → p-2550e845.entry.js} +1 -1
- package/dist/webcomponents/p-2ae3613e.entry.js +1 -0
- package/dist/webcomponents/{p-286221ee.entry.js → p-2b47ddd8.entry.js} +1 -1
- package/dist/webcomponents/{p-12136157.entry.js → p-3a34e4f9.entry.js} +1 -1
- package/dist/webcomponents/p-3caee9d2.entry.js +1 -0
- package/dist/webcomponents/p-3d94c845.entry.js +1 -0
- package/dist/webcomponents/{p-9c997d0b.entry.js → p-45e8185c.entry.js} +1 -1
- package/dist/webcomponents/{p-65c958b1.entry.js → p-4abf0877.entry.js} +1 -1
- package/dist/webcomponents/{p-33311d41.entry.js → p-559be51b.entry.js} +1 -1
- package/dist/webcomponents/p-5a3fc339.entry.js +1 -0
- package/dist/webcomponents/p-654d85ca.entry.js +1 -0
- package/dist/webcomponents/{p-1c157c8e.entry.js → p-69bf5e32.entry.js} +1 -1
- package/dist/webcomponents/{p-81c2edfb.entry.js → p-73dd0306.entry.js} +1 -1
- package/dist/webcomponents/p-7c463a59.entry.js +1 -0
- package/dist/webcomponents/p-7fcbccc7.entry.js +1 -0
- package/dist/webcomponents/p-87acb5ec.entry.js +1 -0
- package/dist/webcomponents/{p-9fc567d8.entry.js → p-8c95827f.entry.js} +1 -1
- package/dist/webcomponents/{p-8d743490.entry.js → p-93ed5490.entry.js} +1 -1
- package/dist/webcomponents/{p-949cecf8.entry.js → p-995c2cbf.entry.js} +1 -1
- package/dist/webcomponents/p-9c621697.entry.js +1 -0
- package/dist/webcomponents/{p-DjB0cvKF.js → p-BcAsEqa5.js} +1 -1
- package/dist/webcomponents/p-BiTF1__F.js +1 -0
- package/dist/webcomponents/{p-Cb3h46bV.js → p-CItulios.js} +1 -1
- package/dist/webcomponents/{p-0ff04742.entry.js → p-a5114207.entry.js} +1 -1
- package/dist/webcomponents/{p-c340830a.entry.js → p-a53710c4.entry.js} +1 -1
- package/dist/webcomponents/p-a65d751d.entry.js +1 -0
- package/dist/webcomponents/p-a7712cea.entry.js +1 -0
- package/dist/webcomponents/{p-98ef7e25.entry.js → p-b9ab3803.entry.js} +1 -1
- package/dist/webcomponents/{p-522e7b24.entry.js → p-bf2df971.entry.js} +1 -1
- package/dist/webcomponents/{p-cbd65ba9.entry.js → p-c3cfcd4b.entry.js} +1 -1
- package/dist/webcomponents/{p-f887ae7c.entry.js → p-ce272d8a.entry.js} +1 -1
- package/dist/webcomponents/p-cff8ae71.entry.js +1 -0
- package/dist/webcomponents/{p-ed901f9d.entry.js → p-d031ad31.entry.js} +1 -1
- package/dist/webcomponents/p-d5d271d3.entry.js +1 -0
- package/dist/webcomponents/{p-52cbd667.entry.js → p-dba55699.entry.js} +1 -1
- package/dist/webcomponents/p-e5282f6c.entry.js +1 -0
- package/dist/webcomponents/{p-2dec38c9.entry.js → p-e7921c1f.entry.js} +1 -1
- package/dist/webcomponents/{p-7f422774.entry.js → p-eabaeaf6.entry.js} +1 -1
- package/dist/webcomponents/{p-0e2010f1.entry.js → p-f6e3f1ca.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-1f7a796e.entry.js +0 -1
- package/dist/webcomponents/p-2abcad8b.entry.js +0 -1
- package/dist/webcomponents/p-2b39ab97.entry.js +0 -1
- package/dist/webcomponents/p-402caa84.entry.js +0 -1
- package/dist/webcomponents/p-42d4ea58.entry.js +0 -1
- package/dist/webcomponents/p-50ef7446.entry.js +0 -1
- package/dist/webcomponents/p-537aa971.entry.js +0 -1
- package/dist/webcomponents/p-7186f4a7.entry.js +0 -1
- package/dist/webcomponents/p-75fff382.entry.js +0 -1
- package/dist/webcomponents/p-77948b46.entry.js +0 -1
- package/dist/webcomponents/p-852febb1.entry.js +0 -1
- package/dist/webcomponents/p-8b2eff55.entry.js +0 -1
- package/dist/webcomponents/p-BFz8vLec.js +0 -1
- package/dist/webcomponents/p-aa6194ef.entry.js +0 -1
- package/dist/webcomponents/p-bc45aa92.entry.js +0 -1
- package/dist/webcomponents/p-e45bd6ec.entry.js +0 -1
- package/dist/webcomponents/p-e6d1ed81.entry.js +0 -1
- package/dist/webcomponents/p-e7fc542c.entry.js +0 -1
- package/dist/webcomponents/p-f849a34e.entry.js +0 -1
- package/dist/webcomponents/p-fa1884b4.entry.js +0 -1
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { h, proxyCustomElement, HTMLElement, createEvent } from '@stencil/core/internal/client';
|
|
2
|
-
import { A as Api } from './Api.js';
|
|
3
2
|
import { S as StyledHost } from './styled-host.js';
|
|
4
3
|
import './details.js';
|
|
5
4
|
import './event-types.js';
|
|
6
5
|
import './justifi-radio-list-item2.js';
|
|
7
6
|
import { S as Skeleton } from './skeleton.js';
|
|
8
|
-
import { c as checkoutStore
|
|
7
|
+
import { c as checkoutStore } from './checkout.store.js';
|
|
9
8
|
|
|
10
9
|
var ApplePaySessionStatus;
|
|
11
10
|
(function (ApplePaySessionStatus) {
|
|
@@ -35,45 +34,6 @@ var ApplePayMerchantCapability;
|
|
|
35
34
|
ApplePayMerchantCapability["SUPPORTS_CREDIT"] = "supportsCredit";
|
|
36
35
|
ApplePayMerchantCapability["SUPPORTS_DEBIT"] = "supportsDebit";
|
|
37
36
|
})(ApplePayMerchantCapability || (ApplePayMerchantCapability = {}));
|
|
38
|
-
class ApplePayConfig {
|
|
39
|
-
constructor(data) {
|
|
40
|
-
this.merchantIdentifier = data.merchantIdentifier;
|
|
41
|
-
this.displayName = data.displayName;
|
|
42
|
-
this.initiative = data.initiative;
|
|
43
|
-
this.initiativeContext = data.initiativeContext;
|
|
44
|
-
this.buttonType = data.buttonType || ApplePayButtonType.PLAIN;
|
|
45
|
-
this.buttonStyle = data.buttonStyle || ApplePayButtonStyle.BLACK;
|
|
46
|
-
this.buttonLocale = data.buttonLocale || 'en-US';
|
|
47
|
-
}
|
|
48
|
-
get isValid() {
|
|
49
|
-
return !!(this.merchantIdentifier &&
|
|
50
|
-
this.displayName &&
|
|
51
|
-
this.initiative &&
|
|
52
|
-
this.initiativeContext);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
class ApplePayPaymentRequest {
|
|
56
|
-
constructor(data) {
|
|
57
|
-
this.countryCode = data.countryCode;
|
|
58
|
-
this.currencyCode = data.currencyCode;
|
|
59
|
-
this.merchantCapabilities = data.merchantCapabilities;
|
|
60
|
-
this.supportedNetworks = data.supportedNetworks;
|
|
61
|
-
this.total = data.total;
|
|
62
|
-
this.lineItems = data.lineItems;
|
|
63
|
-
this.shippingMethods = data.shippingMethods;
|
|
64
|
-
this.applicationData = data.applicationData;
|
|
65
|
-
this.supportedCountries = data.supportedCountries;
|
|
66
|
-
}
|
|
67
|
-
get isValid() {
|
|
68
|
-
var _a, _b, _c, _d;
|
|
69
|
-
return !!(this.countryCode &&
|
|
70
|
-
this.currencyCode &&
|
|
71
|
-
((_a = this.merchantCapabilities) === null || _a === void 0 ? void 0 : _a.length) &&
|
|
72
|
-
((_b = this.supportedNetworks) === null || _b === void 0 ? void 0 : _b.length) &&
|
|
73
|
-
((_c = this.total) === null || _c === void 0 ? void 0 : _c.label) &&
|
|
74
|
-
((_d = this.total) === null || _d === void 0 ? void 0 : _d.amount));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
37
|
class ApplePayHelpers {
|
|
78
38
|
static isApplePaySupported() {
|
|
79
39
|
var _a;
|
|
@@ -127,298 +87,6 @@ class ApplePayHelpers {
|
|
|
127
87
|
}
|
|
128
88
|
}
|
|
129
89
|
|
|
130
|
-
class ApplePayService {
|
|
131
|
-
constructor() {
|
|
132
|
-
this.api = Api();
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Initialize Apple Pay configuration
|
|
136
|
-
*/
|
|
137
|
-
initialize(applePayConfig) {
|
|
138
|
-
this.applePayConfig = new ApplePayConfig(applePayConfig);
|
|
139
|
-
if (!this.applePayConfig.isValid) {
|
|
140
|
-
throw new Error('Invalid Apple Pay configuration provided');
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Validate merchant with Apple Pay servers via API
|
|
145
|
-
*/
|
|
146
|
-
async validateMerchant(authToken, accountId) {
|
|
147
|
-
const endpoint = 'apple_pay/merchant_session';
|
|
148
|
-
try {
|
|
149
|
-
const response = await this.api.post({
|
|
150
|
-
endpoint,
|
|
151
|
-
authToken,
|
|
152
|
-
headers: {
|
|
153
|
-
'Sub-Account': accountId,
|
|
154
|
-
},
|
|
155
|
-
});
|
|
156
|
-
return response;
|
|
157
|
-
}
|
|
158
|
-
catch (error) {
|
|
159
|
-
console.error('Backend validation failed:', error);
|
|
160
|
-
throw new Error('Merchant validation failed');
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* Process Apple Pay payment via API (fixed to match original logic)
|
|
165
|
-
*/
|
|
166
|
-
async processPayment(authToken, accountId, payload) {
|
|
167
|
-
const endpoint = 'apple_pay/process_token';
|
|
168
|
-
const result = await this.api.post({
|
|
169
|
-
endpoint,
|
|
170
|
-
authToken,
|
|
171
|
-
body: payload,
|
|
172
|
-
headers: {
|
|
173
|
-
'Sub-Account': accountId,
|
|
174
|
-
},
|
|
175
|
-
});
|
|
176
|
-
return {
|
|
177
|
-
success: result.id && !!result.data.token,
|
|
178
|
-
data: result,
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* Check if Apple Pay is available on this device/browser
|
|
183
|
-
*/
|
|
184
|
-
isAvailable() {
|
|
185
|
-
return (ApplePayHelpers.isApplePaySupported() && ApplePayHelpers.canMakePayments());
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* Check if the user has an active card for the merchant
|
|
189
|
-
*/
|
|
190
|
-
async canMakePaymentsWithActiveCard() {
|
|
191
|
-
if (!this.applePayConfig) {
|
|
192
|
-
throw new Error('Apple Pay not initialized. Call initialize() first.');
|
|
193
|
-
}
|
|
194
|
-
return await ApplePayHelpers.canMakePaymentsWithActiveCard(this.applePayConfig.merchantIdentifier);
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* Start Apple Pay session
|
|
198
|
-
*/
|
|
199
|
-
async startPaymentSession(paymentRequest, authToken, accountId) {
|
|
200
|
-
if (!this.applePayConfig) {
|
|
201
|
-
throw new Error('Apple Pay not initialized. Call initialize() first.');
|
|
202
|
-
}
|
|
203
|
-
// if (!this.isAvailable()) {
|
|
204
|
-
// throw new Error('Apple Pay is not available on this device/browser');
|
|
205
|
-
// }
|
|
206
|
-
const request = new ApplePayPaymentRequest(paymentRequest);
|
|
207
|
-
if (!request.isValid) {
|
|
208
|
-
throw new Error('Invalid payment request provided');
|
|
209
|
-
}
|
|
210
|
-
this.currentPaymentRequest = request;
|
|
211
|
-
return new Promise((resolve, reject) => {
|
|
212
|
-
try {
|
|
213
|
-
this.currentSession = new window.ApplePaySession(3, request);
|
|
214
|
-
this.setupSessionEventHandlers(resolve, reject, authToken, accountId);
|
|
215
|
-
this.currentSession.begin();
|
|
216
|
-
}
|
|
217
|
-
catch (error) {
|
|
218
|
-
reject({
|
|
219
|
-
success: false,
|
|
220
|
-
error: {
|
|
221
|
-
code: 'SESSION_ERROR',
|
|
222
|
-
message: error instanceof Error
|
|
223
|
-
? error.message
|
|
224
|
-
: 'Failed to start Apple Pay session',
|
|
225
|
-
},
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
/**
|
|
231
|
-
* Abort current Apple Pay session
|
|
232
|
-
*/
|
|
233
|
-
abortPaymentSession() {
|
|
234
|
-
if (this.currentSession) {
|
|
235
|
-
this.currentSession.abort();
|
|
236
|
-
this.currentSession = undefined;
|
|
237
|
-
this.currentPaymentRequest = undefined;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* Setup Apple Pay session event handlers
|
|
242
|
-
*/
|
|
243
|
-
setupSessionEventHandlers(resolve, reject, authToken, accountId) {
|
|
244
|
-
if (!this.currentSession ||
|
|
245
|
-
!this.applePayConfig ||
|
|
246
|
-
!this.currentPaymentRequest) {
|
|
247
|
-
return;
|
|
248
|
-
}
|
|
249
|
-
this.currentSession.onvalidatemerchant = async () => {
|
|
250
|
-
try {
|
|
251
|
-
if (!authToken) {
|
|
252
|
-
throw new Error('Authentication token not provided.');
|
|
253
|
-
}
|
|
254
|
-
const merchantSession = await this.validateMerchant(authToken, accountId);
|
|
255
|
-
try {
|
|
256
|
-
this.currentSession.completeMerchantValidation(merchantSession);
|
|
257
|
-
}
|
|
258
|
-
catch (completionError) {
|
|
259
|
-
console.error('Error calling completeMerchantValidation:', completionError);
|
|
260
|
-
throw completionError;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
catch (error) {
|
|
264
|
-
console.error('=== MERCHANT VALIDATION ERROR ===');
|
|
265
|
-
console.error('Error during merchant validation:', error);
|
|
266
|
-
console.error('Error stack:', error.stack);
|
|
267
|
-
this.currentSession.abort();
|
|
268
|
-
reject({
|
|
269
|
-
success: false,
|
|
270
|
-
error: {
|
|
271
|
-
code: 'MERCHANT_VALIDATION_ERROR',
|
|
272
|
-
message: error instanceof Error
|
|
273
|
-
? error.message
|
|
274
|
-
: 'Merchant validation failed',
|
|
275
|
-
},
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
};
|
|
279
|
-
this.currentSession.onpaymentauthorized = async (event) => {
|
|
280
|
-
try {
|
|
281
|
-
const payment = event.payment;
|
|
282
|
-
const paymentPayload = Object.assign(Object.assign({}, payment.token), { product_details: {
|
|
283
|
-
name: this.currentPaymentRequest.total.label,
|
|
284
|
-
price: ApplePayHelpers.parseAmount(this.currentPaymentRequest.total.amount),
|
|
285
|
-
description: this.currentPaymentRequest.total.label,
|
|
286
|
-
} });
|
|
287
|
-
const paymentResult = await this.processPayment(authToken, accountId, paymentPayload);
|
|
288
|
-
if (paymentResult.success) {
|
|
289
|
-
this.currentSession.completePayment({
|
|
290
|
-
status: ApplePaySessionStatus.STATUS_SUCCESS,
|
|
291
|
-
});
|
|
292
|
-
resolve({
|
|
293
|
-
success: true,
|
|
294
|
-
token: payment.token,
|
|
295
|
-
paymentMethodId: paymentResult.data.id,
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
else {
|
|
299
|
-
console.error('PSP reported payment failure:', paymentResult.data);
|
|
300
|
-
this.currentSession.completePayment({
|
|
301
|
-
status: ApplePaySessionStatus.STATUS_FAILURE,
|
|
302
|
-
});
|
|
303
|
-
reject({
|
|
304
|
-
success: false,
|
|
305
|
-
error: {
|
|
306
|
-
code: 'PAYMENT_PROCESSING_ERROR',
|
|
307
|
-
message: 'Payment processing failed',
|
|
308
|
-
},
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
catch (error) {
|
|
313
|
-
console.error('=== PAYMENT PROCESSING ERROR ===');
|
|
314
|
-
console.error('Error processing payment:', error);
|
|
315
|
-
console.error('Error stack:', error.stack);
|
|
316
|
-
this.currentSession.completePayment({
|
|
317
|
-
status: ApplePaySessionStatus.STATUS_FAILURE,
|
|
318
|
-
});
|
|
319
|
-
reject({
|
|
320
|
-
success: false,
|
|
321
|
-
error: {
|
|
322
|
-
code: 'PAYMENT_PROCESSING_ERROR',
|
|
323
|
-
message: error instanceof Error
|
|
324
|
-
? error.message
|
|
325
|
-
: 'Payment processing failed',
|
|
326
|
-
},
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
finally {
|
|
330
|
-
this.currentSession = undefined;
|
|
331
|
-
this.currentPaymentRequest = undefined;
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
|
-
this.currentSession.onpaymentmethodselected = () => {
|
|
335
|
-
const paymentUpdate = {
|
|
336
|
-
newTotal: this.currentPaymentRequest.total,
|
|
337
|
-
newLineItems: this.currentPaymentRequest.lineItems || [],
|
|
338
|
-
};
|
|
339
|
-
try {
|
|
340
|
-
this.currentSession.completePaymentMethodSelection(paymentUpdate);
|
|
341
|
-
}
|
|
342
|
-
catch (error) {
|
|
343
|
-
console.error('Error completing payment method selection:', error);
|
|
344
|
-
this.currentSession.abort();
|
|
345
|
-
}
|
|
346
|
-
};
|
|
347
|
-
this.currentSession.onshippingmethodselected = () => {
|
|
348
|
-
this.currentSession.completeShippingMethodSelection({
|
|
349
|
-
status: ApplePaySessionStatus.STATUS_SUCCESS,
|
|
350
|
-
newTotal: this.currentPaymentRequest.total,
|
|
351
|
-
newLineItems: this.currentPaymentRequest.lineItems || [],
|
|
352
|
-
});
|
|
353
|
-
};
|
|
354
|
-
this.currentSession.oncancel = (event) => {
|
|
355
|
-
if (event.sessionError) {
|
|
356
|
-
console.error(event.sessionError);
|
|
357
|
-
switch (event.sessionError.code) {
|
|
358
|
-
case 'unknown':
|
|
359
|
-
console.error('Unknown error - likely merchant validation issue');
|
|
360
|
-
console.error('This usually means:');
|
|
361
|
-
console.error('1. Merchant certificate is invalid or expired');
|
|
362
|
-
console.error('2. Merchant identifier mismatch');
|
|
363
|
-
console.error('3. Backend validation endpoint issues');
|
|
364
|
-
break;
|
|
365
|
-
case 'invalidMerchantSession':
|
|
366
|
-
console.error('Invalid merchant session provided');
|
|
367
|
-
console.error('Check that the merchant session from backend is valid');
|
|
368
|
-
break;
|
|
369
|
-
case 'userCancel':
|
|
370
|
-
console.error('User cancelled the payment');
|
|
371
|
-
break;
|
|
372
|
-
default:
|
|
373
|
-
console.error('Other error code:', event.sessionError.code);
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
this.currentSession = undefined;
|
|
377
|
-
this.currentPaymentRequest = undefined;
|
|
378
|
-
reject({
|
|
379
|
-
success: false,
|
|
380
|
-
error: {
|
|
381
|
-
code: 'USER_CANCELLED',
|
|
382
|
-
message: 'User cancelled the Apple Pay session',
|
|
383
|
-
},
|
|
384
|
-
});
|
|
385
|
-
};
|
|
386
|
-
if ('onerror' in this.currentSession) {
|
|
387
|
-
this.currentSession.onerror = (error) => {
|
|
388
|
-
console.error('=== APPLE PAY SESSION ERROR ===');
|
|
389
|
-
console.error('Session error:', error);
|
|
390
|
-
this.currentSession = undefined;
|
|
391
|
-
this.currentPaymentRequest = undefined;
|
|
392
|
-
reject({
|
|
393
|
-
success: false,
|
|
394
|
-
error: {
|
|
395
|
-
code: 'SESSION_ERROR',
|
|
396
|
-
message: 'Apple Pay session error occurred',
|
|
397
|
-
},
|
|
398
|
-
});
|
|
399
|
-
};
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
/**
|
|
403
|
-
* Create a basic payment request
|
|
404
|
-
*/
|
|
405
|
-
static createPaymentRequest(amount, label, countryCode = 'US', currencyCode = 'USD') {
|
|
406
|
-
return {
|
|
407
|
-
countryCode,
|
|
408
|
-
currencyCode,
|
|
409
|
-
merchantCapabilities: ApplePayHelpers.getDefaultMerchantCapabilities(),
|
|
410
|
-
supportedNetworks: ApplePayHelpers.getDefaultSupportedNetworks(),
|
|
411
|
-
total: ApplePayHelpers.createLineItem(label, amount),
|
|
412
|
-
};
|
|
413
|
-
}
|
|
414
|
-
/**
|
|
415
|
-
* Get current configuration
|
|
416
|
-
*/
|
|
417
|
-
getApplePayConfig() {
|
|
418
|
-
return this.applePayConfig;
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
|
|
422
90
|
const ApplePaySkeleton = (props) => {
|
|
423
91
|
const { isReady } = props;
|
|
424
92
|
if (isReady) {
|
|
@@ -651,25 +319,29 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
|
|
|
651
319
|
}
|
|
652
320
|
};
|
|
653
321
|
}
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
}
|
|
664
|
-
disconnectedCallback() {
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
322
|
+
// private unsubscribeCheckoutLoaded?: () => void;
|
|
323
|
+
// componentWillLoad() {
|
|
324
|
+
// this.unsubscribeCheckoutLoaded = onChange("checkoutLoaded", (loaded) => {
|
|
325
|
+
// this.applePayService = new ApplePayService();
|
|
326
|
+
// console.log("checkoutLoaded", loaded);
|
|
327
|
+
// if (loaded) {
|
|
328
|
+
// this.initializeApplePay();
|
|
329
|
+
// }
|
|
330
|
+
// });
|
|
331
|
+
// }
|
|
332
|
+
// disconnectedCallback() {
|
|
333
|
+
// this.unsubscribeCheckoutLoaded?.();
|
|
334
|
+
// this.unsubscribeCheckoutLoaded = undefined;
|
|
335
|
+
// }
|
|
336
|
+
// @Watch("merchantIdentifier")
|
|
337
|
+
// @Watch("buttonType")
|
|
338
|
+
// @Watch("buttonStyle")
|
|
339
|
+
// @Watch("disabled")
|
|
340
|
+
// watchPropsChange() {
|
|
341
|
+
// this.initializeApplePay();
|
|
342
|
+
// }
|
|
672
343
|
async initializeApplePay() {
|
|
344
|
+
console.log("initializeApplePay", checkoutStore.checkoutLoaded);
|
|
673
345
|
try {
|
|
674
346
|
this.isLoading = true;
|
|
675
347
|
this.error = null;
|
|
@@ -678,9 +350,9 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
|
|
|
678
350
|
Boolean(checkoutStore.paymentCurrency) &&
|
|
679
351
|
Boolean(checkoutStore.authToken);
|
|
680
352
|
if (!hasRequiredConfig) {
|
|
681
|
-
this.error = "Missing required Apple Pay configuration";
|
|
353
|
+
this.error = "Missing required Apple Pay configuration blabla blabla 2";
|
|
682
354
|
this.isConfigValid = false;
|
|
683
|
-
console.error("Apple Pay config error: missing required values", {
|
|
355
|
+
console.error("Apple Pay config error: missing required values blabla blabla 2", {
|
|
684
356
|
paymentAmount: checkoutStore.paymentAmount,
|
|
685
357
|
paymentCurrency: checkoutStore.paymentCurrency,
|
|
686
358
|
hasAuthToken: Boolean(checkoutStore.authToken),
|
|
@@ -746,29 +418,24 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
|
|
|
746
418
|
this.applePayCancelled.emit();
|
|
747
419
|
}
|
|
748
420
|
render() {
|
|
749
|
-
const shouldHide =
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
421
|
+
// const shouldHide =
|
|
422
|
+
// !this.isLoading &&
|
|
423
|
+
// (!this.isConfigValid || !this.isAvailable || !this.canMakePayments || !checkoutStore.checkoutLoaded);
|
|
424
|
+
// if (shouldHide) {
|
|
425
|
+
// return null;
|
|
426
|
+
// }
|
|
754
427
|
const isReady = !this.isLoading &&
|
|
755
428
|
this.isAvailable &&
|
|
756
429
|
this.canMakePayments &&
|
|
757
430
|
this.isConfigValid;
|
|
758
|
-
return (h(StyledHost,
|
|
759
|
-
|
|
760
|
-
|
|
431
|
+
return (h(StyledHost, { key: 'ea33bc759d2849cf013cb6f98367c8d78c799acb' }, checkoutStore.checkoutLoaded && (h("script", { key: '9ed6140223a8788ca194a8978a9ca8e1e30eb10e', async: true, src: 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js', onLoad: () => {
|
|
432
|
+
this.initializeApplePay();
|
|
433
|
+
} })), h("div", { key: '6501d8cb4c4119eadf9112db4fca876437138bcc', class: 'apple-pay-container' }, h(ApplePaySkeleton, { key: '1aee83e3deac0d0f68d2788f65401a1d7c48047f', isReady: isReady }), isReady && (h(ApplePayButton, { key: 'eb05dde5789f5f1bb83e75127c222996a38c8fef', buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", { key: '8060bf6771c12f47d482f0a774e4fd6547e50a2e' }, `
|
|
761
434
|
.apple-pay-container {
|
|
762
435
|
width: 100%;
|
|
763
436
|
}
|
|
764
437
|
`)));
|
|
765
438
|
}
|
|
766
|
-
static get watchers() { return {
|
|
767
|
-
"merchantIdentifier": ["watchPropsChange"],
|
|
768
|
-
"buttonType": ["watchPropsChange"],
|
|
769
|
-
"buttonStyle": ["watchPropsChange"],
|
|
770
|
-
"disabled": ["watchPropsChange"]
|
|
771
|
-
}; }
|
|
772
439
|
}, [257, "justifi-apple-pay", {
|
|
773
440
|
"countryCode": [1, "country-code"],
|
|
774
441
|
"merchantIdentifier": [1, "merchant-identifier"],
|
|
@@ -787,11 +454,6 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
|
|
|
787
454
|
"isSupported": [64],
|
|
788
455
|
"getPaymentMethods": [64],
|
|
789
456
|
"abort": [64]
|
|
790
|
-
}, undefined, {
|
|
791
|
-
"merchantIdentifier": ["watchPropsChange"],
|
|
792
|
-
"buttonType": ["watchPropsChange"],
|
|
793
|
-
"buttonStyle": ["watchPropsChange"],
|
|
794
|
-
"disabled": ["watchPropsChange"]
|
|
795
457
|
}]);
|
|
796
458
|
function defineCustomElement$1() {
|
|
797
459
|
if (typeof customElements === "undefined") {
|
|
@@ -11,7 +11,7 @@ const JustifiButton = /*@__PURE__*/ proxyCustomElement(class JustifiButton exten
|
|
|
11
11
|
this.type = 'button';
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(StyledHost, { key: '
|
|
14
|
+
return (h(StyledHost, { key: '48098276e0808052803f0d16df68ba23d529c4ab' }, h(Button, { key: 'c62e8d2d9208dc180180b4283edea991c5a93c57', variant: this.variant, isLoading: this.isLoading, clickHandler: this.clickHandler, class: this.class, type: this.type, disabled: this.disabled, style: this.customStyle }, this.text)));
|
|
15
15
|
}
|
|
16
16
|
}, [257, "justifi-button", {
|
|
17
17
|
"text": [1],
|
|
@@ -18,7 +18,7 @@ const Header = /*@__PURE__*/ proxyCustomElement(class Header extends HTMLElement
|
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
20
|
const HeaderComponent = this.levels[this.level];
|
|
21
|
-
return (h(StyledHost, { key: '
|
|
21
|
+
return (h(StyledHost, { key: 'eb3651b698897193d34a6c6456cd57dd0bd0bc43' }, h(HeaderComponent, { key: '39caee687f93d3d4d90e62d9fbcae318eaa8022e', text: this.text, class: this.class })));
|
|
22
22
|
}
|
|
23
23
|
}, [257, "justifi-header", {
|
|
24
24
|
"text": [1],
|
|
@@ -231,7 +231,7 @@ const OrderTerminals = /*@__PURE__*/ proxyCustomElement(class OrderTerminals ext
|
|
|
231
231
|
return (h("div", { class: "mt-3" }, h("div", { class: "text-end" }, "Order limit: ", this.orderLimit), h("div", { class: "d-flex justify-content-end mt-3" }, h("button", { class: "btn btn-primary submit-btn", onClick: this.submitOrder.bind(this), disabled: this.order.totalQuantity === 0 || this.submitting, part: buttonPrimary }, this.submitting ? 'Submitting...' : this.submitButtonText))));
|
|
232
232
|
}
|
|
233
233
|
render() {
|
|
234
|
-
return (h(StyledHost, { key: '
|
|
234
|
+
return (h(StyledHost, { key: '3ea6cebd4ab6bc47090056581482dab8502175c1' }, h("div", { key: '383dc710920b5119841d5cf6f1b596ebc349fd5a', part: text }, this.renderLoading(), this.renderBusinessDetails(), this.renderTerminals(), this.renderOrderSection())));
|
|
235
235
|
}
|
|
236
236
|
}, [257, "justifi-order-terminals", {
|
|
237
237
|
"businessId": [1, "business-id"],
|
|
@@ -181,7 +181,7 @@ const PaymentTransactionsList = /*@__PURE__*/ proxyCustomElement(class PaymentTr
|
|
|
181
181
|
return !this.showEmptyState && !this.showErrorState && !this.isLoading;
|
|
182
182
|
}
|
|
183
183
|
render() {
|
|
184
|
-
return (h(StyledHost, { key: '
|
|
184
|
+
return (h(StyledHost, { key: 'c73dfcd1d3038dbca6800b9bd0f4e6c5fba2b8bf' }, h(TableWrapper, { key: '66d8f92a96f2ace82c05d10a9f538d6ad22b588f' }, h(TableComponent, { key: 'cff0e6344efd035f264326ecc79615bddfe8d0ac' }, h(TableHead, { key: '702e53ae1d59ab674425f4753c1cf0b6415feacd' }, h(TableHeadRow, { key: '7773de2d113af30b3a0d64405dce5d5e09a0bb8c' }, this.transactionsTable.columnData.map((column) => column))), h(TableBody, { key: '7b86d982f52037349b5cc2f7ec5fa800e38ed519' }, h(TableLoadingState, { key: '040c3dfb101c1ea127cfcf982e4415ae94661b2a', columnSpan: this.transactionsTable.columnKeys.length, isLoading: this.isLoading }), h(TableEmptyState, { key: '6d25f8a886cf9b15ea9c17c44dfe0bce6125c557', isEmpty: this.showEmptyState, columnSpan: this.transactionsTable.columnKeys.length }), h(TableErrorState, { key: '60bb435ecf7a595cdb028df4cd95c1361ce06c8d', columnSpan: this.transactionsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.transactionsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: 'accb2e3cb9dc8521c50db6a8ed306f91e5aa44c7' }, h(TableFootRow, { key: 'a4408276ce552fe4c43c60f79e7a2a3602566b2c' }, h(TableFootCell, { key: '20b13cc71f8b62166e8b6e9fce5dea2d1b4c5ac0', colSpan: this.transactionsTable.columnData.length }, h("pagination-menu", { key: '90657ed6a805af46446bc8fb316a52252a9a2bf4', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
185
185
|
}
|
|
186
186
|
static get watchers() { return {
|
|
187
187
|
"pagingParams": ["propChanged"],
|
|
@@ -56,8 +56,8 @@ const PaymentsListFilters = /*@__PURE__*/ proxyCustomElement(class PaymentsListF
|
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
58
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
59
|
-
return (h(StyledHost, { key: '
|
|
60
|
-
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterPaymentsListFilterParam })), h("div", { key: '
|
|
59
|
+
return (h(StyledHost, { key: 'ef06ca5d0df145fd2c7f82fb164a4098b1654e7c' }, h("table-filters-menu", { key: '32739ded26b3a11092e5237d363b5b280c859f0c', params: filterMenuParams, clearParams: clearParams, part: paymentsListFilterMenu }, h("div", { key: '2e123d80c45a92944811b9124e13f6cfc2e11cc0', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'd9e5facfe21e0896a4f0542a12592f11c54c0bc8', class: "p-2" }, h("form-control-text", { key: '084cec1084b8be08a5520891479aa4b4ab168ab7', name: "payment_id", label: "Payment ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.paymentId || filterParams.payment_id, disabled: !!this.paymentId, part: paymentIdPaymentsListFilterParam })), h("div", { key: 'c86027af0c49931a34e31e185cfc3c0d1093caf9', class: "p-2" }, h("form-control-text", { key: '694b5ddd5f90af1d73320cb6e29ce2e3aafce0b8', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdPaymentsListFilterParam })), h("div", { key: '4d2e5e1a0e76a58be68255e08a2a4f09dbbbc481', class: "p-2" }, h("form-control-select", { key: 'd4fa79604b6f9a390a63601001bc2ba8f8af425a', name: "payment_status", label: "Status", options: this.paymentStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentStatus || filterParams.payment_status, disabled: !!this.paymentStatus, part: paymentStatusPaymentsListFilterParam })), h("div", { key: '54cc9fb98d5c0f6d96abb592d5e22c037634089c', class: "p-2" }, h("form-control-date", { key: '95001198266f09607e34d0c1fa5c1d0693b67b0a', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
|
|
60
|
+
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterPaymentsListFilterParam })), h("div", { key: '3510ccb63020969b2777c65ed82cfab9027dccd8', class: "p-2" }, h("form-control-date", { key: '428a3195efb976842c186aa0b4ec76ebfb1b7836', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
|
|
61
61
|
convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: createdBeforePaymentsListFilterParam }))))));
|
|
62
62
|
}
|
|
63
63
|
}, [257, "justifi-payments-list-filters", {
|
|
@@ -90,7 +90,7 @@ const PaymentsList = /*@__PURE__*/ proxyCustomElement(class PaymentsList extends
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
render() {
|
|
93
|
-
return (h(StyledHost, { key: '
|
|
93
|
+
return (h(StyledHost, { key: '4cdd2e9a318226408d47198bf2de40a750a71d01' }, h("payments-list-core", { key: '87964c5dd33fd3b716964227cd990539d5d13fc4', getPayments: this.getPayments, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
94
94
|
}
|
|
95
95
|
static get watchers() { return {
|
|
96
96
|
"accountId": ["propChanged"],
|
|
@@ -190,7 +190,7 @@ const PayoutTransactionsList = /*@__PURE__*/ proxyCustomElement(class PayoutTran
|
|
|
190
190
|
return Object.assign({ payout_id: this.payoutId, limit: '15' }, this.pagingParams);
|
|
191
191
|
}
|
|
192
192
|
render() {
|
|
193
|
-
return (h(StyledHost, { key: '
|
|
193
|
+
return (h(StyledHost, { key: 'f795f89fe39f8cded7f0d9c671df8e3e86de6f03' }, h(TableWrapper, { key: '5bb5f805a78965068f675012a1a491e5dd3d4416' }, h(TableComponent, { key: 'c75e72fb5bde6b3f8f127be4d76ef1fa66ce6781' }, h(TableHead, { key: '3dfb03ed0205f6fff21953e0a4c85e8b151680a1' }, h(TableHeadRow, { key: '169156e61bdf1ce6e10b89c660526a7ec9efb860' }, this.transactionsTable.columnData.map((column) => column))), h(TableBody, { key: '1e59e340e98ace8291acfbe26836e5b2b7b7dd29' }, h(TableLoadingState, { key: '3c1a420d293d24ac9434f034c7e6de7a83698b63', columnSpan: this.transactionsTable.columnKeys.length, isLoading: this.isLoading }), h(TableEmptyState, { key: '2038ebb6ff5480d74b0bb6a6ecf31a9531f606ef', isEmpty: this.showEmptyState, columnSpan: this.transactionsTable.columnKeys.length }), h(TableErrorState, { key: '48582c83e384b4e5ba81c4d0055dc9e727a81cdd', columnSpan: this.transactionsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.transactionsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: '0bb2c1f4085278db7b114c8b9c5a11702a1840d1' }, h(TableFootRow, { key: '2cc9fe5d66b433b392da1e0a1ae265db6404002d' }, h(TableFootCell, { key: 'cb21e30d68c92758efa03fbd16509ff28ab5e316', colSpan: this.transactionsTable.columnData.length }, h("pagination-menu", { key: 'e5ac8aa63ddb08d7f70976cfceccbadab3b8efa9', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
194
194
|
}
|
|
195
195
|
static get watchers() { return {
|
|
196
196
|
"pagingParams": ["propChanged"],
|
|
@@ -37,8 +37,8 @@ const PayoutsListFilters = /*@__PURE__*/ proxyCustomElement(class PayoutsListFil
|
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
39
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
40
|
-
return (h(StyledHost, { key: '
|
|
41
|
-
convertToLocal(filterParams.created_after, { showInputDate: true }), disabled: !!this.createdAfter, part: createdAfterPayoutsListFilterParam })), h("div", { key: '
|
|
40
|
+
return (h(StyledHost, { key: '83debaafb73e9143b6e2e7804f69c4124845d01e' }, h("table-filters-menu", { key: '162c3af697cef40e2a93c7e0245ec4d7d385f361', params: filterMenuParams, clearParams: clearParams, part: payoutsListFilterMenu }, h("div", { key: '7e118d535a6bed14a1ea6e7ed920fd682bbd3705', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'dfd557f8d5a3f834bbaa5164ef2c1e7d3c19adcc', class: "p-2" }, h("form-control-date", { key: '01d9e16489abce36d4f770c4c06912923026860f', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDate: true }) ||
|
|
41
|
+
convertToLocal(filterParams.created_after, { showInputDate: true }), disabled: !!this.createdAfter, part: createdAfterPayoutsListFilterParam })), h("div", { key: '9e7167618cc737911056c9217dc6a1ca77c1f41b', class: "p-2" }, h("form-control-date", { key: 'd80e6e2ebda1cd8f290daff21908f7dba1af2d7a', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDate: true }) ||
|
|
42
42
|
convertToLocal(filterParams.created_before, { showInputDate: true }), disabled: !!this.createdBefore, part: createdBeforePayoutsListFilterParam }))))));
|
|
43
43
|
}
|
|
44
44
|
}, [257, "justifi-payouts-list-filters", {
|
|
@@ -104,7 +104,7 @@ const PayoutsList = /*@__PURE__*/ proxyCustomElement(class PayoutsList extends H
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
render() {
|
|
107
|
-
return (h(StyledHost, { key: '
|
|
107
|
+
return (h(StyledHost, { key: '73ac65b309e80186e0f7799385d012e91ceb1b8b' }, h("payouts-list-core", { key: 'f7767376f3155521445cb2ee48b9a20c362c8137', getPayouts: this.getPayouts, getPayoutCSV: this.getPayoutCSV, getSubAccounts: this.getSubAccounts, "onError-event": this.handleOnError, columns: this.columns })));
|
|
108
108
|
}
|
|
109
109
|
static get watchers() { return {
|
|
110
110
|
"accountId": ["propChanged"],
|
|
@@ -9,7 +9,7 @@ const JustifiSkeleton$1 = /*@__PURE__*/ proxyCustomElement(class JustifiSkeleton
|
|
|
9
9
|
this.__attachShadow();
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h(StyledHost, { key: '
|
|
12
|
+
return (h(StyledHost, { key: 'c995981caeae785829f1ef75454b2759243e8adb' }, h(Skeleton, { key: '9c63cf385499820bb1acd3503e126363485684f6', component: this.component, height: this.height, width: this.width, className: this.class, styles: this.customStyle })));
|
|
13
13
|
}
|
|
14
14
|
}, [257, "justifi-skeleton", {
|
|
15
15
|
"component": [1],
|
|
@@ -62,8 +62,8 @@ const TerminalOrdersListFilters = /*@__PURE__*/ proxyCustomElement(class Termina
|
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
64
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
65
|
-
return (h(StyledHost, { key: '
|
|
66
|
-
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterTerminalOrdersListFilterParam })), h("div", { key: '
|
|
65
|
+
return (h(StyledHost, { key: '3042752f6f3bf4eb4f379aa256ff2a17d7fe8627' }, h("table-filters-menu", { key: '9a2a446701c17e3aa1ecbc89fa383c3a3c16b3d1', params: filterMenuParams, clearParams: clearParams, part: terminalOrdersListFilterMenu }, h("div", { key: '8c5533b280615974883fba9da4b87c066f7af5be', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'bbe71c8c5f2b49da9a38638ac4bda646cc4f7770', class: "p-2" }, h("form-control-select", { key: '235922673a4ef8e7392b3e46b3c0bd326f7abe79', name: "order_status", label: "Order Status", options: this.terminalOrderStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderStatus || filterParams.order_status, disabled: !!this.orderStatus, part: orderStatusTerminalOrdersListFilterParam })), h("div", { key: 'd66c4305848a6f85867307d0448bfb2d7a80b698', class: "p-2" }, h("form-control-select", { key: '480bd03e3ba6ea595c1602bbdf657f369f133adb', name: "order_type", label: "Order Type", options: this.terminalOrderTypeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderType || filterParams.order_type, disabled: !!this.orderType, part: orderTypeTerminalOrdersListFilterParam })), h("div", { key: 'ffdbbbac93a6498fe52f21c91a70998ad1094596', class: "p-2" }, h("form-control-date", { key: '60c95da005a50430e5a81d3b14f0b7a627480534', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
|
|
66
|
+
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterTerminalOrdersListFilterParam })), h("div", { key: '7e30fed8bbf9ba6db03d70d7b70a5f669d761ce9', class: "p-2" }, h("form-control-date", { key: 'ce490f4c346a3e455ae6f44e781b126ca46391d5', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
|
|
67
67
|
convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: createdBeforeTerminalOrdersListFilterParam }))))));
|
|
68
68
|
}
|
|
69
69
|
}, [257, "justifi-terminal-orders-list-filters", {
|
|
@@ -96,7 +96,7 @@ const TerminalOrdersList = /*@__PURE__*/ proxyCustomElement(class TerminalOrders
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
render() {
|
|
99
|
-
return (h(StyledHost, { key: '
|
|
99
|
+
return (h(StyledHost, { key: '55f0bf858787e00c304972c941a477815712df9d' }, h("terminal-orders-list-core", { key: '2d47e23bc2157d79254f34dfe0551fb32a9d88cc', getTerminalOrders: this.getTerminalOrders, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
100
100
|
}
|
|
101
101
|
}, [257, "justifi-terminal-orders-list", {
|
|
102
102
|
"accountId": [1, "account-id"],
|