@justifi/webcomponents 6.13.3 → 6.13.4-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Analytics-DusgFP9U.js → Analytics-HPx5iT8j.js} +2 -2
- package/dist/cjs/{Api-BioDE5he.js → Api-DiVnyVMc.js} +19 -3
- package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +4 -4
- package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/{business.service-DOGeb2O6.js → business.service-xyk3nSbS.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +2 -2
- package/dist/cjs/{check-pkg-version-DD7fjCqn.js → check-pkg-version-Cl4hjRLt.js} +1 -1
- package/dist/cjs/{checkout.service-Bdr5qUHj.js → checkout.service-BvQmucoL.js} +1 -1
- package/dist/cjs/dispute-notification_2.cjs.entry.js +5 -5
- package/dist/cjs/{event-types-DWDQKDv4.js → event-types-Dzra0qB3.js} +1 -1
- package/dist/cjs/{get-subaccounts-Dgl7ECtg.js → get-subaccounts-h69ubhBi.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +11 -6
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +4 -4
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-details.cjs.entry.js +5 -5
- package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-card-form.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkout.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +5 -5
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -4
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payment-details.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +15 -6
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payments-list.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payout-details.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-qr-terminal.cjs.entry.js +5 -5
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +5 -5
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +6 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-DeCbZvnG.js → package-12FrJVUb.js} +1 -1
- package/dist/cjs/{payment-provisioning-actions-B4x7lnyF.js → payment-provisioning-actions-DwgI9weK.js} +5 -4
- package/dist/cjs/{payment.service-a5EL3s2d.js → payment.service-BdK_wsu2.js} +1 -1
- package/dist/cjs/{payout.service-BJtGBHsQ.js → payout.service-CVSqMmCW.js} +1 -1
- package/dist/cjs/{plaid.service-DpiLY-5D.js → plaid.service-Dj-AZOjk.js} +1 -1
- package/dist/cjs/{terminal.service-DN2A-bNx.js → terminal.service-Dzukw0o7.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Api.js +19 -3
- package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +7 -0
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-actions.js +5 -4
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-submission-failed.js +6 -0
- package/dist/collection/components/modular-checkout/sub-components/justifi-google-pay.js +25 -0
- package/dist/docs.json +30 -1
- package/dist/esm/{Analytics-CtVZmAya.js → Analytics-HXE2X5RU.js} +3 -3
- package/dist/esm/{Api-DjAL73GZ.js → Api-CTkszAxp.js} +20 -4
- package/dist/esm/{Plaid-C8qoMZLV.js → Plaid-XJ1Wi_Qy.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +1 -1
- package/dist/esm/additional-questions-form-step_15.entry.js +7 -7
- package/dist/esm/bank-account-document-form-inputs.entry.js +2 -2
- package/dist/esm/bank-account-form.entry.js +3 -3
- package/dist/esm/{business.service-BGXqAyxu.js → business.service-CJrHGJHW.js} +2 -2
- package/dist/esm/card-form.entry.js +3 -3
- package/dist/esm/{check-pkg-version-DcFIDA70.js → check-pkg-version-joJTtrkx.js} +1 -1
- package/dist/esm/{checkout-actions-D8JS2l5e.js → checkout-actions-CheVrS18.js} +2 -2
- package/dist/esm/{checkout.service-sHKaW-M0.js → checkout.service-fPRUtr9H.js} +2 -2
- package/dist/esm/dispute-notification_2.entry.js +8 -8
- package/dist/esm/{event-types-ynZLear3.js → event-types-BtWMbtaC.js} +2 -2
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/{get-business-DAv_b3vf.js → get-business-DTNQJoh_.js} +2 -2
- package/dist/esm/{get-payment-details-Bipad3jX.js → get-payment-details-CSX5fwOG.js} +2 -2
- package/dist/esm/{get-subaccounts-FqCT2s3S.js → get-subaccounts-Cy2mYsaE.js} +3 -3
- package/dist/esm/hidden-input_2.entry.js +1 -1
- package/dist/esm/justifi-apple-pay_11.entry.js +15 -10
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +6 -6
- package/dist/esm/justifi-bank-account-form.entry.js +6 -6
- package/dist/esm/justifi-business-details.entry.js +9 -9
- package/dist/esm/justifi-business-form.entry.js +9 -9
- package/dist/esm/justifi-card-form.entry.js +6 -6
- package/dist/esm/justifi-checkout-qr-code.entry.js +6 -6
- package/dist/esm/justifi-checkout.entry.js +6 -6
- package/dist/esm/justifi-checkouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-checkouts-list.entry.js +9 -9
- package/dist/esm/justifi-dispute-management.entry.js +8 -8
- package/dist/esm/justifi-gross-payment-chart.entry.js +7 -7
- package/dist/esm/justifi-order-terminals.entry.js +10 -10
- package/dist/esm/justifi-payment-details.entry.js +9 -9
- package/dist/esm/justifi-payment-provisioning.entry.js +18 -9
- package/dist/esm/justifi-payment-transactions-list.entry.js +8 -8
- package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
- package/dist/esm/justifi-payments-list.entry.js +8 -8
- package/dist/esm/justifi-payout-details.entry.js +9 -9
- package/dist/esm/justifi-payout-transactions-list.entry.js +8 -8
- package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +10 -10
- package/dist/esm/justifi-qr-terminal.entry.js +9 -9
- package/dist/esm/justifi-refund-payment.entry.js +9 -9
- package/dist/esm/justifi-season-interruption-insurance.entry.js +7 -7
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +2 -2
- package/dist/esm/justifi-terminal-orders-list.entry.js +7 -7
- package/dist/esm/justifi-terminals-list-filters.entry.js +2 -2
- package/dist/esm/justifi-terminals-list.entry.js +9 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-Bx2_PW91.js → package-Bzbt5VX9.js} +1 -1
- package/dist/esm/{payment-provisioning-actions-DI3QUsjh.js → payment-provisioning-actions-DjjVhIsC.js} +7 -6
- package/dist/esm/{payment.service-wSNYSRyl.js → payment.service-DqqhXGIA.js} +2 -2
- package/dist/esm/{payout.service-CTAksNmD.js → payout.service-pXbxWGPO.js} +2 -2
- package/dist/esm/{payouts-status-CeZoirpf.js → payouts-status-Ch05ZKVP.js} +2 -2
- package/dist/esm/{plaid.service-5EpJEdwX.js → plaid.service-Bb_mVHR9.js} +2 -2
- package/dist/esm/{terminal.service-xjfU0mJT.js → terminal.service-AK9uBpcb.js} +2 -2
- package/dist/esm/{utils-myniydlM.js → utils-ByihSvdD.js} +1 -1
- package/dist/esm/{utils-CcA8Y5hs.js → utils-UkIEdf2x.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Api.js +19 -3
- package/dist/module/justifi-google-pay2.js +6 -0
- package/dist/module/justifi-order-terminals.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +11 -1
- package/dist/module/justifi-season-interruption-insurance.js +1 -1
- package/dist/module/justifi-terminals-list.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/payment-provisioning-actions.js +5 -4
- package/dist/module/utils2.js +1 -1
- package/dist/types/components/business-forms/payment-provisioning/justifi-payment-provisioning.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-submission-failed.d.ts +1 -0
- package/dist/types/components/modular-checkout/sub-components/justifi-google-pay.d.ts +4 -0
- package/dist/types/components.d.ts +10 -0
- package/dist/webcomponents/{p-f4baf684.entry.js → p-0ff0e0d8.entry.js} +1 -1
- package/dist/webcomponents/{p-291b9a48.entry.js → p-1da4a104.entry.js} +1 -1
- package/dist/webcomponents/{p-7b6cf400.entry.js → p-36b16db2.entry.js} +1 -1
- package/dist/webcomponents/{p-dde22375.entry.js → p-39d2bad2.entry.js} +4 -4
- package/dist/webcomponents/{p-CfIGO7TJ.js → p-3EVeuNqR.js} +1 -1
- package/dist/webcomponents/{p-2a0ab07f.entry.js → p-579b40c1.entry.js} +1 -1
- package/dist/webcomponents/{p-98bbdf10.entry.js → p-57ca7af1.entry.js} +1 -1
- package/dist/webcomponents/{p-db17a828.entry.js → p-58550e43.entry.js} +1 -1
- package/dist/webcomponents/p-607d7841.entry.js +1 -0
- package/dist/webcomponents/{p-4383dfdc.entry.js → p-64b98974.entry.js} +1 -1
- package/dist/webcomponents/{p-c8bcc54f.entry.js → p-67da2742.entry.js} +1 -1
- package/dist/webcomponents/{p-4fab9314.entry.js → p-6d52cdd4.entry.js} +1 -1
- package/dist/webcomponents/{p-c6eea99e.entry.js → p-6edf887c.entry.js} +1 -1
- package/dist/webcomponents/{p-9d11aaf2.entry.js → p-73bb7d58.entry.js} +1 -1
- package/dist/webcomponents/{p-708aee06.entry.js → p-746097a2.entry.js} +1 -1
- package/dist/webcomponents/{p-4a30693b.entry.js → p-7776b52e.entry.js} +1 -1
- package/dist/webcomponents/{p-ebee139f.entry.js → p-7f5798e0.entry.js} +1 -1
- package/dist/webcomponents/{p-8fce7a9c.entry.js → p-87cc4aef.entry.js} +1 -1
- package/dist/webcomponents/{p-84b643f7.entry.js → p-93d65fae.entry.js} +1 -1
- package/dist/webcomponents/{p-f6d49f21.entry.js → p-9e63d60b.entry.js} +1 -1
- package/dist/webcomponents/{p-C7hX61pS.js → p-B7wfdVBf.js} +1 -1
- package/dist/webcomponents/{p-BSs-2JKu.js → p-BM88Upl5.js} +1 -1
- package/dist/webcomponents/p-BaZTheg9.js +1 -0
- package/dist/webcomponents/p-Bzbt5VX9.js +1 -0
- package/dist/webcomponents/p-CI-XifDo.js +1 -0
- package/dist/webcomponents/{p-CqOzVXGL.js → p-CL9rrHjP.js} +1 -1
- package/dist/webcomponents/p-CP0Y19co.js +1 -0
- package/dist/webcomponents/p-CWook735.js +1 -0
- package/dist/webcomponents/{p-DXTa04jn.js → p-Cl5FLD11.js} +1 -1
- package/dist/webcomponents/{p-zZn1OXja.js → p-CykiDks3.js} +1 -1
- package/dist/webcomponents/p-DGsgQXco.js +1 -0
- package/dist/webcomponents/{p-CO8ZGkfN.js → p-DItiYtAy.js} +1 -1
- package/dist/webcomponents/p-DWdj6UhE.js +1 -0
- package/dist/webcomponents/{p-CxBrydeX.js → p-D_MQLfzf.js} +1 -1
- package/dist/webcomponents/{p-R_0S69Pr.js → p-D_ULdupf.js} +1 -1
- package/dist/webcomponents/{p-CdwzNfP1.js → p-IFhZFB4v.js} +1 -1
- package/dist/webcomponents/p-UEdJ7AYc.js +1 -0
- package/dist/webcomponents/p-a0f2ab72.entry.js +1 -0
- package/dist/webcomponents/{p-f01fd4ff.entry.js → p-a30af70b.entry.js} +1 -1
- package/dist/webcomponents/{p-65908b5f.entry.js → p-a5443425.entry.js} +1 -1
- package/dist/webcomponents/p-b171711f.entry.js +1 -0
- package/dist/webcomponents/{p-8771e52a.entry.js → p-b2472d61.entry.js} +1 -1
- package/dist/webcomponents/p-b3da9fb0.entry.js +1 -0
- package/dist/webcomponents/{p-b89a5053.entry.js → p-b70b4904.entry.js} +1 -1
- package/dist/webcomponents/{p-e3f8541c.entry.js → p-b73bbc07.entry.js} +1 -1
- package/dist/webcomponents/p-baf0a483.entry.js +1 -0
- package/dist/webcomponents/p-c58dbd91.entry.js +1 -0
- package/dist/webcomponents/{p-7495aa96.entry.js → p-c64b73bb.entry.js} +1 -1
- package/dist/webcomponents/{p-a62ef857.entry.js → p-cc7a40b9.entry.js} +1 -1
- package/dist/webcomponents/p-cfb6d114.entry.js +1 -0
- package/dist/webcomponents/{p-67364f1d.entry.js → p-e033ced2.entry.js} +1 -1
- package/dist/webcomponents/{p-3918fb44.entry.js → p-e9ab82cf.entry.js} +1 -1
- package/dist/webcomponents/{p-dfe66300.entry.js → p-f16e4457.entry.js} +1 -1
- package/dist/webcomponents/{p-9c0760b9.entry.js → p-f805c9ac.entry.js} +1 -1
- package/dist/webcomponents/{p-1fced37f.entry.js → p-ff386db4.entry.js} +1 -1
- package/dist/webcomponents/{p-Cn7z5L7J.js → p-ph646MSj.js} +1 -1
- package/dist/webcomponents/{p-B62JX_Dh.js → p-rhS9V7qg.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +14 -14
- package/LICENSE +0 -21
- package/dist/webcomponents/p-0b9263f3.entry.js +0 -1
- package/dist/webcomponents/p-17f8c3e7.entry.js +0 -1
- package/dist/webcomponents/p-2b64659a.entry.js +0 -1
- package/dist/webcomponents/p-2c798125.entry.js +0 -1
- package/dist/webcomponents/p-5ea486b6.entry.js +0 -1
- package/dist/webcomponents/p-6f71bf5f.entry.js +0 -1
- package/dist/webcomponents/p-BB8Ce9rp.js +0 -1
- package/dist/webcomponents/p-BUHsyQpA.js +0 -1
- package/dist/webcomponents/p-Bx2_PW91.js +0 -1
- package/dist/webcomponents/p-CPJC6tlj.js +0 -1
- package/dist/webcomponents/p-DP9ysr2K.js +0 -1
- package/dist/webcomponents/p-Da3fPDxu.js +0 -1
- package/dist/webcomponents/p-De4Pig-y.js +0 -1
- package/dist/webcomponents/p-NzPaWKbY.js +0 -1
- package/dist/webcomponents/p-e9494d8f.entry.js +0 -1
|
@@ -38,6 +38,10 @@ const JustifiGooglePay = /*@__PURE__*/ proxyCustomElement(class JustifiGooglePay
|
|
|
38
38
|
this.googlePayCompleted = createEvent(this, "googlePayCompleted", 7);
|
|
39
39
|
this.googlePayCancelled = createEvent(this, "googlePayCancelled", 7);
|
|
40
40
|
this.merchantDisplayName = "JustiFi Checkout";
|
|
41
|
+
/** Set to true when embedding inside an Android WebView so the iframe uses the
|
|
42
|
+
* W3C Payment Request API (native Google Pay sheet) instead of pay.js's
|
|
43
|
+
* loadPaymentData popup, which Google blocks in WebViews (OR_BIBED_15). */
|
|
44
|
+
this.useNativePaymentRequest = false;
|
|
41
45
|
this.iframeReady = false;
|
|
42
46
|
this.sdkLoaded = false;
|
|
43
47
|
this.isReadyToPay = false;
|
|
@@ -111,6 +115,7 @@ const JustifiGooglePay = /*@__PURE__*/ proxyCustomElement(class JustifiGooglePay
|
|
|
111
115
|
merchantName: this.merchantDisplayName,
|
|
112
116
|
authToken: checkoutStore.authToken,
|
|
113
117
|
accountId: checkoutStore.accountId,
|
|
118
|
+
useNativePaymentRequest: this.useNativePaymentRequest,
|
|
114
119
|
};
|
|
115
120
|
this.iframeElement.contentWindow.postMessage({
|
|
116
121
|
eventType: GooglePayEventTypes.initialize,
|
|
@@ -149,6 +154,7 @@ const JustifiGooglePay = /*@__PURE__*/ proxyCustomElement(class JustifiGooglePay
|
|
|
149
154
|
}, [257, "justifi-google-pay", {
|
|
150
155
|
"environment": [1],
|
|
151
156
|
"merchantDisplayName": [1, "merchant-display-name"],
|
|
157
|
+
"useNativePaymentRequest": [4, "use-native-payment-request"],
|
|
152
158
|
"iframeOrigin": [32],
|
|
153
159
|
"iframeReady": [32],
|
|
154
160
|
"sdkLoaded": [32],
|
|
@@ -17,7 +17,7 @@ import './Pagination.js';
|
|
|
17
17
|
import './ApplePay.js';
|
|
18
18
|
import { g as getErrorCode, a as getErrorMessage } from './utils3.js';
|
|
19
19
|
import { T as TerminalService } from './terminal.service.js';
|
|
20
|
-
import {
|
|
20
|
+
import { m as formatPhoneNumber } from './utils2.js';
|
|
21
21
|
import { d as defineCustomElement$4 } from './custom-popper2.js';
|
|
22
22
|
import { d as defineCustomElement$3 } from './form-control-tooltip2.js';
|
|
23
23
|
import { d as defineCustomElement$2 } from './terminal-quantity-selector2.js';
|
|
@@ -8,7 +8,7 @@ import './Pagination.js';
|
|
|
8
8
|
import { a as CountryCode, b as Business, f as checkProvisioningStatus } from './Business.js';
|
|
9
9
|
import './ApplePay.js';
|
|
10
10
|
import { c as checkPkgVersion } from './check-pkg-version.js';
|
|
11
|
-
import {
|
|
11
|
+
import { n as isTokenExpired } from './utils2.js';
|
|
12
12
|
import { j as text } from './parts.js';
|
|
13
13
|
import { S as StyledHost } from './styled-host.js';
|
|
14
14
|
import { H as Header1 } from './header-1.js';
|
|
@@ -69,6 +69,10 @@ const PaymentProvisioningSubmissionComplete = () => {
|
|
|
69
69
|
return (h("div", { class: "row gap-3 p5" }, h("div", { class: "col-12" }, h(Header1, { text: "You're all set for now" })), h("div", { class: "col-12", part: text }, h("p", null, "We're reviewing your information and working on your approval. We'll be in touch to let you know once you've been approved (or if we find anything that needs fixing). Have a good one!"))));
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
+
const PaymentProvisioningSubmissionFailed = () => {
|
|
73
|
+
return (h("div", { class: "row gap-3 p-5" }, h("div", { class: "col-12" }, h(Header1, { text: "Something went wrong" })), h("div", { class: "col-12", part: text }, h("p", null, "There was an error submitting the provisioning. Your progress has been saved \u2014 please try again later or contact the support team."))));
|
|
74
|
+
};
|
|
75
|
+
|
|
72
76
|
const JustifiPaymentProvisioning$1 = /*@__PURE__*/ proxyCustomElement(class JustifiPaymentProvisioning extends HTMLElement {
|
|
73
77
|
constructor(registerHost) {
|
|
74
78
|
super();
|
|
@@ -83,6 +87,7 @@ const JustifiPaymentProvisioning$1 = /*@__PURE__*/ proxyCustomElement(class Just
|
|
|
83
87
|
this.businessLoading = true;
|
|
84
88
|
this.businessProvisioned = false;
|
|
85
89
|
this.formSubmitted = false;
|
|
90
|
+
this.submissionFailed = false;
|
|
86
91
|
this.currentStep = 0;
|
|
87
92
|
this.country = CountryCode.USA;
|
|
88
93
|
this.allowOptionalFields = false;
|
|
@@ -124,6 +129,7 @@ const JustifiPaymentProvisioning$1 = /*@__PURE__*/ proxyCustomElement(class Just
|
|
|
124
129
|
this.submitEvent.emit({ response: response });
|
|
125
130
|
},
|
|
126
131
|
onError: ({ error, code, severity }) => {
|
|
132
|
+
this.submissionFailed = true;
|
|
127
133
|
this.submitEvent.emit({ response: { error } });
|
|
128
134
|
this.errorEvent.emit({
|
|
129
135
|
message: error,
|
|
@@ -227,6 +233,9 @@ const JustifiPaymentProvisioning$1 = /*@__PURE__*/ proxyCustomElement(class Just
|
|
|
227
233
|
if (this.formSubmitted) {
|
|
228
234
|
return (h(StyledHost, null, h(PaymentProvisioningSubmissionComplete, null)));
|
|
229
235
|
}
|
|
236
|
+
if (this.submissionFailed) {
|
|
237
|
+
return (h(StyledHost, null, h(PaymentProvisioningSubmissionFailed, null)));
|
|
238
|
+
}
|
|
230
239
|
return (h(StyledHost, null, h("div", { class: "row gap-3" }, h(Header1, { text: this.formTitle }), h("payment-provisioning-form-steps", { businessId: this.businessId, authToken: this.authToken, refs: this.refs, currentStep: this.currentStep, allowOptionalFields: this.allowOptionalFields, country: this.country, handleFormLoading: this.handleFormLoading }), h("div", { class: "d-flex justify-content-between align-items-center" }, h("div", { class: "d-flex align-items-center", part: text }, this.stepCounter), h("payment-provisioning-form-buttons", { currentStep: this.currentStep, totalSteps: this.totalSteps, formLoading: this.loading, formDisabled: this.formDisabled, previousStepButtonOnClick: this.previousStepButtonOnClick, nextStepButtonOnClick: this.nextStepButtonOnClick })))));
|
|
231
240
|
}
|
|
232
241
|
static get watchers() { return {
|
|
@@ -242,6 +251,7 @@ const JustifiPaymentProvisioning$1 = /*@__PURE__*/ proxyCustomElement(class Just
|
|
|
242
251
|
"businessLoading": [32],
|
|
243
252
|
"businessProvisioned": [32],
|
|
244
253
|
"formSubmitted": [32],
|
|
254
|
+
"submissionFailed": [32],
|
|
245
255
|
"currentStep": [32],
|
|
246
256
|
"errorMessage": [32],
|
|
247
257
|
"country": [32]
|
|
@@ -8,7 +8,7 @@ import { g as getErrorCode, a as getErrorMessage } from './utils3.js';
|
|
|
8
8
|
import { J as JustifiAnalytics } from './Analytics.js';
|
|
9
9
|
import { c as checkPkgVersion } from './check-pkg-version.js';
|
|
10
10
|
import { c as checkoutStore } from './checkout.store.js';
|
|
11
|
-
import { p as processHTML, b as formatCurrency, r as removeAttribute,
|
|
11
|
+
import { p as processHTML, b as formatCurrency, r as removeAttribute, k as addAttribute } from './utils2.js';
|
|
12
12
|
import { v as validateInsuranceValues, a as insuranceValues, b as insuranceErrors } from './insurance-state.js';
|
|
13
13
|
import { j as text, k as textDanger } from './parts.js';
|
|
14
14
|
import { S as StyledHost } from './styled-host.js';
|
|
@@ -17,7 +17,7 @@ import { T as TableClickActions } from './event-types.js';
|
|
|
17
17
|
import './justifi-radio-list-item2.js';
|
|
18
18
|
import { B as Badge, a as BadgeVariant } from './badge.js';
|
|
19
19
|
import { D as tableHeadCell, ah as getAlternateTableCellPart } from './parts.js';
|
|
20
|
-
import {
|
|
20
|
+
import { l as capitalFirstLetter } from './utils2.js';
|
|
21
21
|
import { o as onQueryParamsChange, g as getRequestParams } from './terminals-list-params-state.js';
|
|
22
22
|
import { d as defineCustomElement$2 } from './pagination-menu2.js';
|
|
23
23
|
|
package/dist/module/package.js
CHANGED
|
@@ -63,15 +63,16 @@ const makePatchBusiness = ({ authToken, businessId, service }) => async ({ paylo
|
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
const makePostProvisioning = ({ authToken, businessId, product, service }) => async ({ onSuccess, onError }) => {
|
|
66
|
-
var _a;
|
|
66
|
+
var _a, _b, _c, _d;
|
|
67
67
|
try {
|
|
68
68
|
const response = await service.postProvisioning(authToken, businessId, product);
|
|
69
|
-
if (!response.error) {
|
|
69
|
+
if ((response === null || response === void 0 ? void 0 : response.data) && !response.error) {
|
|
70
70
|
onSuccess(response);
|
|
71
71
|
}
|
|
72
72
|
else {
|
|
73
|
-
const
|
|
74
|
-
const
|
|
73
|
+
const rawError = (_c = (_a = response === null || response === void 0 ? void 0 : response.error) !== null && _a !== void 0 ? _a : (_b = response === null || response === void 0 ? void 0 : response.errors) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : 'Provisioning request failed';
|
|
74
|
+
const responseError = getErrorMessage(rawError);
|
|
75
|
+
const code = getErrorCode((_d = response === null || response === void 0 ? void 0 : response.error) === null || _d === void 0 ? void 0 : _d.code);
|
|
75
76
|
return onError({
|
|
76
77
|
error: responseError,
|
|
77
78
|
code,
|
package/dist/module/utils2.js
CHANGED
|
@@ -22325,4 +22325,4 @@ function isTokenExpired(token) {
|
|
|
22325
22325
|
}
|
|
22326
22326
|
}
|
|
22327
22327
|
|
|
22328
|
-
export { formatTime as a, formatCurrency as b, formatMediumDate as c, generateTabId as d, convertToUTC as e, formatDate as f, generateId as g, convertToLocal as h, isEmptyObject as i, capitalizeFirstLetter as j,
|
|
22328
|
+
export { formatTime as a, formatCurrency as b, formatMediumDate as c, generateTabId as d, convertToUTC as e, formatDate as f, generateId as g, convertToLocal as h, isEmptyObject as i, capitalizeFirstLetter as j, addAttribute as k, capitalFirstLetter as l, formatPhoneNumber as m, isTokenExpired as n, formatDisplayDate as o, processHTML as p, removeAttribute as r, snakeCaseToHumanReadable as s };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PaymentProvisioningSubmissionFailed: () => any;
|
|
@@ -4,6 +4,10 @@ export declare class JustifiGooglePay {
|
|
|
4
4
|
/** If not provided, the environment will be determined by the account mode: 'test' or 'live'. */
|
|
5
5
|
environment?: "TEST" | "PRODUCTION";
|
|
6
6
|
merchantDisplayName: string;
|
|
7
|
+
/** Set to true when embedding inside an Android WebView so the iframe uses the
|
|
8
|
+
* W3C Payment Request API (native Google Pay sheet) instead of pay.js's
|
|
9
|
+
* loadPaymentData popup, which Google blocks in WebViews (OR_BIBED_15). */
|
|
10
|
+
useNativePaymentRequest: boolean;
|
|
7
11
|
iframeOrigin: string;
|
|
8
12
|
iframeReady: boolean;
|
|
9
13
|
sdkLoaded: boolean;
|
|
@@ -720,6 +720,11 @@ export namespace Components {
|
|
|
720
720
|
* @default "JustiFi Checkout"
|
|
721
721
|
*/
|
|
722
722
|
"merchantDisplayName": string;
|
|
723
|
+
/**
|
|
724
|
+
* Set to true when embedding inside an Android WebView so the iframe uses the W3C Payment Request API (native Google Pay sheet) instead of pay.js's loadPaymentData popup, which Google blocks in WebViews (OR_BIBED_15).
|
|
725
|
+
* @default false
|
|
726
|
+
*/
|
|
727
|
+
"useNativePaymentRequest": boolean;
|
|
723
728
|
}
|
|
724
729
|
interface JustifiGrossPaymentChart {
|
|
725
730
|
"accountId": string;
|
|
@@ -3623,6 +3628,11 @@ declare namespace LocalJSX {
|
|
|
3623
3628
|
error?: { code: string; message: string };
|
|
3624
3629
|
}>) => void;
|
|
3625
3630
|
"onGooglePayStarted"?: (event: JustifiGooglePayCustomEvent<void>) => void;
|
|
3631
|
+
/**
|
|
3632
|
+
* Set to true when embedding inside an Android WebView so the iframe uses the W3C Payment Request API (native Google Pay sheet) instead of pay.js's loadPaymentData popup, which Google blocks in WebViews (OR_BIBED_15).
|
|
3633
|
+
* @default false
|
|
3634
|
+
*/
|
|
3635
|
+
"useNativePaymentRequest"?: boolean;
|
|
3626
3636
|
}
|
|
3627
3637
|
interface JustifiGrossPaymentChart {
|
|
3628
3638
|
"accountId": string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as s,F as e,r as i,c as t}from"./p-CV0Pyo1O.js";import{E as a}from"./p-Cu7hgXL1.js";import{B as r}from"./p-
|
|
1
|
+
import{h as s,F as e,r as i,c as t}from"./p-CV0Pyo1O.js";import{E as a}from"./p-Cu7hgXL1.js";import{B as r}from"./p-D_ULdupf.js";import{m as o}from"./p-CI-XifDo.js";import{C as l,b as n}from"./p-Cl5FLD11.js";import{J as h}from"./p-3EVeuNqR.js";import{c as p}from"./p-CL9rrHjP.js";import{S as c}from"./p-DzEdYT8R.js";import"./p-CZfYo5-1.js";import{S as d}from"./p-uZ5KAseb.js";import"./p-CPKMvyV_.js";import"./p-CP0Y19co.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-BM88Upl5.js";import"./p-HXpYMWUU.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-IFhZFB4v.js";import"./p-Bzbt5VX9.js";const u=()=>{const i=()=>s("div",{class:"mt-5"},s(d,{width:"40%",height:"1.5rem"}),s("hr",null),s("div",{class:"row g-3"},s("div",{class:"col-12 col-md-6"},s(d,null),s(d,null),s(d,null)),s("div",{class:"col-12 col-md-6"},s(d,null),s(d,null),s(d,null))));return s(e,null,s(i,null),s(i,null),s(i,null),s(i,null))},m=class{constructor(s){i(this,s),this.errorEvent=t(this,"error-event",7),this.loading=!0}componentWillLoad(){p(),this.analytics=new h(this),this.initializeGetBusiness()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}propChanged(){this.initializeGetBusiness()}initializeGetBusiness(){this.businessId&&this.authToken?(this.getBusiness=o({id:this.businessId,authToken:this.authToken,service:new r}),this.fetchData()):(this.errorMessage="Invalid business id or auth token",this.errorEvent.emit({errorCode:n.MISSING_PROPS,message:this.errorMessage,severity:l.ERROR}))}updateOnPropChange(){this.getBusiness&&this.fetchData()}fetchData(){this.loading=!0,this.getBusiness({onSuccess:({business:s})=>{this.business=s,this.errorMessage=null},onError:({error:s,code:e,severity:i})=>{this.errorMessage=s,this.errorEvent.emit({errorCode:e,message:s,severity:i})},final:()=>{this.loading=!1}})}render(){return s(c,{key:"7ce48e6905cdbbf8f94470913ecfa3ef8dbb76c7"},this.loading&&s(u,{key:"7c3439e0c247436cd7951d3bdc32e7672c9f8447"}),!this.loading&&this.errorMessage&&a(this.errorMessage),!this.loading&&!this.errorMessage&&this.business&&s("justifi-details",{key:"bf57dacf2067f2704014ce3e002958e3306bba73",errorMessage:this.errorMessage},s("div",{key:"46d19a178ba0d33aa21a4f3900128e3e905731a9",slot:"detail-sections"},s("core-info-details",{key:"ac217a4cfe6b45810a85ca320760b7331f76e60b",business:this.business}),s("legal-address-details",{key:"1fc1a196a43bcf5f9eafd09bfe74c8bb7c409797",legalAddress:this.business.legal_address}),s("representative-details",{key:"1e0833606b129f69a05946726172963cbec05189",representative:this.business.representative}),s("owner-details",{key:"c974111dc67a8961ef6435c34843ca927ad8a7e5",owners:this.business.owners}),s("additional-questions-details",{key:"0951d284a373457e98a1dafc80231ec3ee057e0a",additionalQuestions:this.business.additional_questions}))))}static get watchers(){return{businessId:["propChanged"],authToken:["propChanged"],getBusiness:["updateOnPropChange"]}}};export{m as justifi_business_details}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t,r as e,c as a}from"./p-CV0Pyo1O.js";import{P as s}from"./p-
|
|
1
|
+
import{h as t,r as e,c as a}from"./p-CV0Pyo1O.js";import{P as s}from"./p-DWdj6UhE.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{e as i,C as r,b as o}from"./p-Cl5FLD11.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{g as c,a as h}from"./p-IFhZFB4v.js";import{J as p}from"./p-3EVeuNqR.js";import{c as d}from"./p-CL9rrHjP.js";import{S as m}from"./p-DzEdYT8R.js";import{T as l,a as f,b as u,c as y,d as b,e as g,f as v,g as j,h as C,i as _,j as k,k as w,l as T}from"./p-BICxxa69.js";import{T as D}from"./p-CZfYo5-1.js";import{M as P}from"./p-D1_eip6x.js";import{a as O}from"./p-BM88Upl5.js";import{a6 as S,a7 as I}from"./p-CPKMvyV_.js";import{o as E,g as x}from"./p-Dm07nLGs.js";import"./p-CP0Y19co.js";import"./p-D8GTwl9v.js";import"./p-Bzbt5VX9.js";import"./p-CqiVXthx.js";import"./p-CHw7tICr.js";const V={created_at:()=>t("th",{part:S,scope:"col",title:"The date and time each payment was made"},"Date"),amount:()=>t("th",{part:S,scope:"col",title:"The dollar amount of each payment"},"Amount"),status:()=>t("th",{part:S,scope:"col",title:"The current status of each payment"},"Status"),payment_type:()=>t("th",{part:S,scope:"col",title:"The type of each payment"},"Type"),description:()=>t("th",{part:S,scope:"col",title:"The payment description, if you provided one"},"Description"),payers_name:()=>t("th",{part:S,scope:"col",title:"The name associated with the payment method"},"Account Holder"),last_four_digits:()=>t("th",{part:S,scope:"col",title:"The brand and last 4 digits of the payment method"},"Payment Method"),card_brand:()=>t("th",{part:S,scope:"col",title:"The brand of the payment method"},"Card Brand")},A={created_at:(e,a)=>t("td",{part:I(a)},t("div",{class:"fw-bold"},O(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},O(e.created_at,{showTime:!0}))),amount:(e,a)=>t("td",{part:I(a)},e.formattedPaymentAmount(e.amount)),status:(e,a)=>t("td",{part:I(a)},P(e.status)),payment_type:(e,a)=>t("td",{part:I(a)},e.payment_type),description:(e,a)=>t("td",{part:I(a)},e.description),payers_name:(e,a)=>t("td",{part:I(a)},e.payers_name),last_four_digits:(e,a)=>t("td",{part:I(a)},e.last_four_digits),card_brand:(e,a)=>{var s,i,r;return t("td",{part:I(a)},(r=(null===(s=e.payment_method.card)||void 0===s?void 0:s.brand)||(null===(i=e.payment_method.bank_account)||void 0===i?void 0:i.brand))?{visa:"VISA",mastercard:"Mastercard",american_express:"American Express",discover:"Discover",diners_club:"Diners Club",jcb:"JCB",china_unionpay:"China UnionPay",unknown:"Unknown"}[r.toLowerCase()]||r:"N/A")}},B=class{constructor(t){e(this,t),this.errorEvent=a(this,"error-event",7),this.clickEvent=a(this,"click-event",7),this.errorMessage=null,this.payments=[],this.loading=!0,this.paging=n,this.pagingParams={},this.columns="created_at,amount,status,payment_type,description,payers_name,last_four_digits,card_brand",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:D.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:D.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.payments.find((t=>t.id===e));this.clickEvent.emit({name:D.row,data:a})}}componentWillLoad(){d(),this.analytics=new p(this),this.paymentsTable=new l(this.payments,this.columns,V,A),this.initializeGetPayments(),E("set",(()=>{this.pagingParams={},this.errorMessage=""})),E("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPayments()}updateOnPropChange(){this.fetchData()}initializeGetPayments(){this.accountId&&this.authToken?this.getPayments=(({id:t,authToken:e,service:a})=>async({params:s,onSuccess:o,onError:n,final:p})=>{var d,m;try{const p=await a.fetchPayments(t,e,s);if(p.error)return n({error:h(p.error),code:c(null===(m=p.error)||void 0===m?void 0:m.code),severity:r.ERROR});{const t=Object.assign({},p.page_info);o({payments:(null===(d=p.data)||void 0===d?void 0:d.map((t=>new i(t))))||[],pagingInfo:t})}}catch(t){const e=c(null==t?void 0:t.code);return n({error:t.message||t,code:e,severity:r.ERROR})}finally{p()}})({id:this.accountId,authToken:this.authToken,service:new s}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:r.ERROR}))}fetchData(){this.getPayments&&(this.loading=!0,this.getPayments({params:this.paymentParams,onSuccess:({payments:t,pagingInfo:e})=>{this.payments=t,this.paging=e,this.paymentsTable.collectionData=this.payments},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:a})},final:()=>{this.loading=!1}}))}get paymentParams(){const t=x();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.payments.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.paymentsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return t(m,{key:"b2c7bd7573c3a2cdc683e6ea0b22bc625eaddbc6"},t(f,{key:"edcc04c18ae762b75aab3cebe31a5aab824843ef"},t(u,{key:"98b6e699948ac65667497b59b0ac23e36d7ea212"},t(y,{key:"06830e440c2f5ea23acd0109f58dd6e11f6495bf"},t(b,{key:"8a29564e85eb5a870c37c58cc57a149327f5405d"},this.paymentsTable.columnData.map((t=>t)))),t(g,{key:"a03ffd7422fbf7f364a6f7545a0158fb0cd38691"},t(v,{key:"6f48d9791c28a3407edddf97fc54a1a92c5e7dbc",columnSpan:this.paymentsTable.columnData.length,isLoading:this.loading}),t(j,{key:"ab948e22cf74e5db93835df17f93c200f0caf698",isEmpty:this.showEmptyState,columnSpan:this.paymentsTable.columnData.length}),t(C,{key:"28064e964a0db825ba7d78bc84e55c88b5c8e0c3",columnSpan:this.paymentsTable.columnData.length,errorMessage:this.errorMessage}),this.showRowData&&this.paymentsTable.rowData.map(((e,a)=>t(_,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(k,{key:"036c71025fb6d150a3bdaa370e84e955ecf79b66"},t(w,{key:"373d7ac9f89a226a32a26a5ee7bb2a2246f8a454"},t(T,{key:"a74ee4a4f5004dfe5e0513cfeea66c3b34b8d610",colSpan:this.paymentsTable.columnData.length},t("pagination-menu",{key:"438d49d2094bb17488b8e2aa90fd0dbce100d920",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"],pagingParams:["updateOnPropChange"],getPayments:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{B as justifi_payments_list}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-CV0Pyo1O.js";import{l as t}from"./p-OeJ-3w3l.js";import{f as s,p as
|
|
1
|
+
import{r as e,h as a}from"./p-CV0Pyo1O.js";import{l as t}from"./p-OeJ-3w3l.js";import{f as s,p as l,c as r}from"./p-BPTtWj7E.js";import{f as d,a as i}from"./p-CPKMvyV_.js";import{S as o}from"./p-DzEdYT8R.js";import"./p-CZfYo5-1.js";import"./p-DVJaoI_m.js";import{c,a as p}from"./p-BM88Upl5.js";import{T as b,f as m}from"./p-Cl5FLD11.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BFTU3MAI.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";const n=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{s[e]=a},this.handleDateInput=(e,a)=>{const t=c(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({order_status:this.orderStatus,order_type:this.orderType,created_after:this.createdAfter,created_before:this.createdBefore,company_name:this.companyName}).forEach((([e,a])=>{a&&(l[e]=a)}))}get terminalOrderStatusOptions(){return[{label:"All",value:""},{label:"Created",value:b.created},{label:"Completed",value:b.completed},{label:"Submitted",value:b.submitted},{label:"In Progress",value:b.in_progress},{label:"On Hold",value:b.on_hold},{label:"Canceled",value:b.canceled}]}get terminalOrderTypeOptions(){return[{label:"All",value:""},{label:"Boarding Only",value:m.boardingOnly},{label:"Boarding Shipping",value:m.boardingShipping}]}render(){const e=Object.assign({},s);return a(o,{key:"287baf0a2de1287195105adbebd501d2bccd21d7"},a("table-filters-menu",{key:"b0112de1075f459780d01528f017780c9ceedb18",params:e,clearParams:r,part:d},a("div",{key:"f9acabaf7d2edbe4eabb81edc92b2378ef563012",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"e76d3b3771b8084fc5f6bf32fac2c75c3da87abb",class:"p-2"},a("form-control-select",{key:"9c687e7202a310500e85d3cbce29268ac04cdd4a",name:"order_status",label:"Order Status",options:this.terminalOrderStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderStatus||s.order_status||"",disabled:!!this.orderStatus,part:i})),a("div",{key:"345ebc972663899a456a7a660863cd81a9770a87",class:"p-2"},a("form-control-select",{key:"26879377755e826a1d1f236ab5e54a22415451e8",name:"order_type",label:"Order Type",options:this.terminalOrderTypeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderType||s.order_type||"",disabled:!!this.orderType,part:i})),a("div",{key:"2a7df2b8c9a3bfbbd76cca1a732c01521b08dd34",class:"p-2"},a("form-control-date",{key:"3fbceb80eaf7ae48e02221961317d8c77ec2c5a5",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:p(this.createdAfter,{showInputDateTime:!0})||p(s.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:i})),a("div",{key:"4c3c59ab54215591c5b0eb9a26c45a0265e48d96",class:"p-2"},a("form-control-date",{key:"aea46abb41595c0cc5d82edd0f1f09425c0a1701",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:p(this.createdBefore,{showInputDateTime:!0})||p(s.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:i})),a("div",{key:"e83af454cde29c12fcd6e2e37093bf70fd03718c",class:"p-2"},a("form-control-text",{key:"3c5fe84b5883b7df6247ed1eba1a15871cb882b5",name:"company_name",label:"Company Name",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.companyName||s.company_name,disabled:!!this.companyName,part:i})))))}};export{n as justifi_terminal_orders_list_filters}
|