@saasquatch/mint-components 2.0.3-3 → 2.0.3
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/{ShadowViewAddon-ae3a32c3.js → ShadowViewAddon-fbc33c53.js} +3 -3
- package/dist/cjs/{data-44260010.js → data-16106637.js} +2 -29
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +76 -339
- package/dist/cjs/sqm-big-stat_47.cjs.entry.js +12 -213
- package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -15
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +3 -24
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +5 -85
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +1 -1
- package/dist/collection/components/sqm-image/sqm-image.js +1 -1
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +3 -3
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +0 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +5 -10
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +5 -11
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +40 -46
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +0 -13
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +1 -95
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +7 -360
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +2 -29
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +11 -311
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +1 -96
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +10 -310
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +1 -7
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +12 -21
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +9 -100
- package/dist/esm/{ShadowViewAddon-78a1c35c.js → ShadowViewAddon-7a242b65.js} +3 -3
- package/dist/esm/{data-68816061.js → data-acdb790f.js} +2 -29
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +76 -339
- package/dist/esm/sqm-big-stat_47.entry.js +12 -213
- package/dist/esm/sqm-header-logo.entry.js +2 -15
- package/dist/esm/sqm-stencilbook.entry.js +3 -24
- package/dist/esm-es5/{ShadowViewAddon-78a1c35c.js → ShadowViewAddon-7a242b65.js} +1 -1
- package/dist/esm-es5/{data-68816061.js → data-acdb790f.js} +2 -2
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-012d31bc.entry.js +99 -0
- package/dist/mint-components/p-2ea6e2fa.entry.js +273 -0
- package/dist/mint-components/p-303b84d7.system.entry.js +1 -0
- package/dist/mint-components/p-469a6450.system.js +6 -0
- package/dist/mint-components/p-6976099f.entry.js +9 -0
- package/dist/mint-components/p-752ede25.system.entry.js +1 -0
- package/dist/mint-components/p-947bacd1.system.js +1 -1
- package/dist/mint-components/p-97747228.system.entry.js +1 -0
- package/dist/mint-components/p-a7ee19dc.entry.js +1 -0
- package/dist/mint-components/{p-e3ee8c37.system.js → p-d7635535.system.js} +1 -1
- package/dist/mint-components/p-e1e7d01c.js +157 -0
- package/dist/mint-components/p-eea87fdc.system.entry.js +1 -0
- package/dist/mint-components/{p-ee83de0e.js → p-ffc3cd7c.js} +1 -1
- package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +2 -17
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +1 -1
- package/dist/types/components/sqm-image/sqm-image.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +0 -24
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +0 -7
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +0 -16
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +0 -57
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -3
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +0 -48
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +0 -12
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +0 -48
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +0 -2
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +0 -1
- package/dist/types/components.d.ts +43 -337
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/mint-components/p-3f661133.system.entry.js +0 -1
- package/dist/mint-components/p-6c6344d9.system.entry.js +0 -1
- package/dist/mint-components/p-775214ef.entry.js +0 -273
- package/dist/mint-components/p-7e550c3b.system.entry.js +0 -1
- package/dist/mint-components/p-92b5c376.js +0 -157
- package/dist/mint-components/p-93c8ab95.entry.js +0 -106
- package/dist/mint-components/p-9a3ff9b9.entry.js +0 -9
- package/dist/mint-components/p-a2dbc9ad.system.js +0 -6
- package/dist/mint-components/p-bdb6194c.entry.js +0 -1
- package/dist/mint-components/p-c7ac295d.system.entry.js +0 -1
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -2
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js
CHANGED
|
@@ -17,16 +17,3 @@ export const W9ThresholdReached = () => (h("sqm-payout-status-alert", { demoData
|
|
|
17
17
|
export const Hold = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, status: "HOLD" } } }));
|
|
18
18
|
export const Loading = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, loading: true } } }));
|
|
19
19
|
export const Error = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, error: true } } }));
|
|
20
|
-
export const NewPayeeReview = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, status: "NEW_PAYEE_REVIEW" } } }));
|
|
21
|
-
export const PaymentHoldOnChange = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, status: "PAYMENT_HOLD_ON_CHANGE" } } }));
|
|
22
|
-
export const BeneficiaryNameInvalid = () => (h("sqm-payout-status-alert", { demoData: {
|
|
23
|
-
states: { ...defaultProps, status: "BENEFICIARY_NAME_INVALID" },
|
|
24
|
-
} }));
|
|
25
|
-
export const BeneficiaryNameMismatch = () => (h("sqm-payout-status-alert", { demoData: {
|
|
26
|
-
states: { ...defaultProps, status: "BENEFICIARY_NAME_MISMATCH" },
|
|
27
|
-
} }));
|
|
28
|
-
export const BankTaxNameMismatch = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, status: "BANK_TAX_NAME_MISMATCH" } } }));
|
|
29
|
-
export const WithdrawalSettingsInvalid = () => (h("sqm-payout-status-alert", { demoData: {
|
|
30
|
-
states: { ...defaultProps, status: "WITHDRAWAL_SETTINGS_INVALID" },
|
|
31
|
-
} }));
|
|
32
|
-
export const PaymentReturned = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, status: "PAYMENT_RETURNED" } } }));
|
|
@@ -2,12 +2,6 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { intl } from "../../../global/global";
|
|
3
3
|
import { createStyleSheet } from "../../../styling/JSS";
|
|
4
4
|
const style = {
|
|
5
|
-
ButtonContainer: {
|
|
6
|
-
display: "flex",
|
|
7
|
-
gap: "var(--sl-spacing-medium)",
|
|
8
|
-
marginTop: "var(--sl-spacing-medium)",
|
|
9
|
-
flexWrap: "wrap",
|
|
10
|
-
},
|
|
11
5
|
SkeletonOne: {
|
|
12
6
|
width: "50%",
|
|
13
7
|
height: "16px",
|
|
@@ -132,7 +126,7 @@ export function PayoutStatusAlertView(props) {
|
|
|
132
126
|
icon: "exclamation-triangle",
|
|
133
127
|
};
|
|
134
128
|
}
|
|
135
|
-
case "
|
|
129
|
+
case "ACCOUNT_REVIEW":
|
|
136
130
|
return {
|
|
137
131
|
header: text.accountReviewHeader,
|
|
138
132
|
description: intl.formatMessage({
|
|
@@ -145,92 +139,6 @@ export function PayoutStatusAlertView(props) {
|
|
|
145
139
|
alertType: "warning",
|
|
146
140
|
icon: "exclamation-triangle",
|
|
147
141
|
};
|
|
148
|
-
case "PAYMENT_HOLD_ON_CHANGE":
|
|
149
|
-
return {
|
|
150
|
-
header: text.paymentHoldOnChangeHeader,
|
|
151
|
-
description: intl.formatMessage({
|
|
152
|
-
id: "accountReviewDescription",
|
|
153
|
-
defaultMessage: text.paymentHoldOnChangeDescription,
|
|
154
|
-
}, {
|
|
155
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
156
|
-
}),
|
|
157
|
-
buttonText: null,
|
|
158
|
-
alertType: "warning",
|
|
159
|
-
icon: "exclamation-triangle",
|
|
160
|
-
};
|
|
161
|
-
case "BENEFICIARY_NAME_INVALID":
|
|
162
|
-
return {
|
|
163
|
-
header: text.beneficiaryNameInvalidHeader,
|
|
164
|
-
description: intl.formatMessage({
|
|
165
|
-
id: "accountReviewDescription",
|
|
166
|
-
defaultMessage: text.beneficiaryNameInvalidDescription,
|
|
167
|
-
}, {
|
|
168
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
169
|
-
}),
|
|
170
|
-
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
171
|
-
h("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
|
|
172
|
-
h("sl-button", { disabled: states.loading, type: "default", onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
173
|
-
alertType: "warning",
|
|
174
|
-
icon: "exclamation-triangle",
|
|
175
|
-
};
|
|
176
|
-
case "BENEFICIARY_NAME_MISMATCH":
|
|
177
|
-
return {
|
|
178
|
-
header: text.beneficiaryNameMismatchHeader,
|
|
179
|
-
description: intl.formatMessage({
|
|
180
|
-
id: "accountReviewDescription",
|
|
181
|
-
defaultMessage: text.beneficiaryNameMismatchDescription,
|
|
182
|
-
}, {
|
|
183
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
184
|
-
}),
|
|
185
|
-
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
186
|
-
h("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
|
|
187
|
-
h("sl-button", { disabled: states.loading, type: "default", onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
188
|
-
alertType: "warning",
|
|
189
|
-
icon: "exclamation-triangle",
|
|
190
|
-
};
|
|
191
|
-
case "BANK_TAX_NAME_MISMATCH":
|
|
192
|
-
return {
|
|
193
|
-
header: text.bankTaxNameMismatchHeader,
|
|
194
|
-
description: intl.formatMessage({
|
|
195
|
-
id: "accountReviewDescription",
|
|
196
|
-
defaultMessage: text.bankTaxNameMismatchDescription,
|
|
197
|
-
}, {
|
|
198
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
199
|
-
}),
|
|
200
|
-
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
201
|
-
h("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
|
|
202
|
-
h("sl-button", { disabled: states.loading, type: "default", onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
203
|
-
alertType: "warning",
|
|
204
|
-
icon: "exclamation-triangle",
|
|
205
|
-
};
|
|
206
|
-
case "WITHDRAWAL_SETTINGS_INVALID":
|
|
207
|
-
return {
|
|
208
|
-
header: text.withdrawalSettingsInvalidHeader,
|
|
209
|
-
description: intl.formatMessage({
|
|
210
|
-
id: "accountReviewDescription",
|
|
211
|
-
defaultMessage: text.withdrawalSettingsInvalidDescription,
|
|
212
|
-
}, {
|
|
213
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
214
|
-
}),
|
|
215
|
-
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
216
|
-
h("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton))),
|
|
217
|
-
alertType: "warning",
|
|
218
|
-
icon: "exclamation-triangle",
|
|
219
|
-
};
|
|
220
|
-
case "PAYMENT_RETURNED":
|
|
221
|
-
return {
|
|
222
|
-
header: text.paymentReturnedHeader,
|
|
223
|
-
description: intl.formatMessage({
|
|
224
|
-
id: "accountReviewDescription",
|
|
225
|
-
defaultMessage: text.paymentReturnedDescription,
|
|
226
|
-
}, {
|
|
227
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
228
|
-
}),
|
|
229
|
-
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
230
|
-
h("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton))),
|
|
231
|
-
alertType: "error",
|
|
232
|
-
icon: "exclamation-triangle",
|
|
233
|
-
};
|
|
234
142
|
case "HOLD":
|
|
235
143
|
return {
|
|
236
144
|
header: text.holdHeader,
|
|
@@ -266,8 +174,6 @@ export function PayoutStatusAlertView(props) {
|
|
|
266
174
|
return (h("div", { style: { paddingTop: "10px" } },
|
|
267
175
|
h("sl-button", { type: "secondary", exportparts: "base: secondarybutton-base", loading: states.veriffLoading, onClick: callbacks.onClick }, text.verificationRequiredButtonText)));
|
|
268
176
|
default:
|
|
269
|
-
if (alertDetails.button)
|
|
270
|
-
return alertDetails.button;
|
|
271
177
|
return;
|
|
272
178
|
}
|
|
273
179
|
}
|
package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js
CHANGED
|
@@ -18,15 +18,6 @@ export class PayoutStatusAlert {
|
|
|
18
18
|
* @uiName Info required alert header
|
|
19
19
|
*/
|
|
20
20
|
this.informationRequiredHeader = "Payout and tax information required";
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @uiName Edit payment info button label
|
|
24
|
-
*/
|
|
25
|
-
this.editPaymentInformationButton = "Edit Payout Information";
|
|
26
|
-
/**
|
|
27
|
-
* @uiName Submit new tax form button label
|
|
28
|
-
*/
|
|
29
|
-
this.newFormButton = "Submit new tax form";
|
|
30
21
|
/**
|
|
31
22
|
* @uiName Info required alert description
|
|
32
23
|
*/
|
|
@@ -50,7 +41,7 @@ export class PayoutStatusAlert {
|
|
|
50
41
|
/**
|
|
51
42
|
* @uiName Verification required internal alert header
|
|
52
43
|
*/
|
|
53
|
-
this.verificationRequiredInternalHeader = "Identity Verification in
|
|
44
|
+
this.verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
54
45
|
/**
|
|
55
46
|
* @uiName Verification required internal alert description
|
|
56
47
|
*/
|
|
@@ -58,7 +49,7 @@ export class PayoutStatusAlert {
|
|
|
58
49
|
/**
|
|
59
50
|
* @uiName Verification review internal alert header
|
|
60
51
|
*/
|
|
61
|
-
this.verificationReviewInternalHeader = "Identity Verification
|
|
52
|
+
this.verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
62
53
|
/**
|
|
63
54
|
* @uiName Verification review internal alert description
|
|
64
55
|
*/
|
|
@@ -66,7 +57,7 @@ export class PayoutStatusAlert {
|
|
|
66
57
|
/**
|
|
67
58
|
* @uiName Verification failed internal alert header
|
|
68
59
|
*/
|
|
69
|
-
this.verificationFailedInternalHeader = "Identity
|
|
60
|
+
this.verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
70
61
|
/**
|
|
71
62
|
* @uiName Verification failed internal alert description
|
|
72
63
|
*/
|
|
@@ -79,54 +70,6 @@ export class PayoutStatusAlert {
|
|
|
79
70
|
* @uiName Account review alert description
|
|
80
71
|
*/
|
|
81
72
|
this.accountReviewDescription = "This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.";
|
|
82
|
-
/**
|
|
83
|
-
* @uiName Payment on hold alert header
|
|
84
|
-
*/
|
|
85
|
-
this.paymentHoldOnChangeHeader = "We are reviewing your new payout settings";
|
|
86
|
-
/**
|
|
87
|
-
* @uiName Payment on hold alert description
|
|
88
|
-
*/
|
|
89
|
-
this.paymentHoldOnChangeDescription = "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.";
|
|
90
|
-
/**
|
|
91
|
-
* @uiName Beneficiary name invalid alert header
|
|
92
|
-
*/
|
|
93
|
-
this.beneficiaryNameInvalidHeader = "Your payment information does not match your tax form";
|
|
94
|
-
/**
|
|
95
|
-
* @uiName Beneficiary name invalid description
|
|
96
|
-
*/
|
|
97
|
-
this.beneficiaryNameInvalidDescription = "The account holder (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
|
|
98
|
-
/**
|
|
99
|
-
* @uiName Beneficiary name mismatch alert header
|
|
100
|
-
*/
|
|
101
|
-
this.beneficiaryNameMismatchHeader = "Your payment information does not match your tax form";
|
|
102
|
-
/**
|
|
103
|
-
* @uiName Beneficiary name mismatch alert description
|
|
104
|
-
*/
|
|
105
|
-
this.beneficiaryNameMismatchDescription = "The account holder (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
|
|
106
|
-
/**
|
|
107
|
-
* @uiName Bank name mismatch alert header
|
|
108
|
-
*/
|
|
109
|
-
this.bankTaxNameMismatchHeader = "Your payment information does not match your tax form";
|
|
110
|
-
/**
|
|
111
|
-
* @uiName Bank name mismatch alert description
|
|
112
|
-
*/
|
|
113
|
-
this.bankTaxNameMismatchDescription = "The bank account (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
|
|
114
|
-
/**
|
|
115
|
-
* @uiName Withdrawal settings invalid alert header
|
|
116
|
-
*/
|
|
117
|
-
this.withdrawalSettingsInvalidHeader = "Your payment information is incomplete or includes invalid characters";
|
|
118
|
-
/**
|
|
119
|
-
* @uiName Withdrawal settings invalid alert description
|
|
120
|
-
*/
|
|
121
|
-
this.withdrawalSettingsInvalidDescription = "There are missing fields or invalid characters in your payment information. Please review your information and make sure it is correct. Your payouts are on hold until this is resolved.";
|
|
122
|
-
/**
|
|
123
|
-
* @uiName Payment returned alert header
|
|
124
|
-
*/
|
|
125
|
-
this.paymentReturnedHeader = "Payout unsuccessful";
|
|
126
|
-
/**
|
|
127
|
-
* @uiName Payment returned alert description
|
|
128
|
-
*/
|
|
129
|
-
this.paymentReturnedDescription = "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.";
|
|
130
73
|
/**
|
|
131
74
|
* @uiName W-9 payment threshold alert header
|
|
132
75
|
*/
|
|
@@ -211,48 +154,6 @@ export class PayoutStatusAlert {
|
|
|
211
154
|
"reflect": false,
|
|
212
155
|
"defaultValue": "\"Payout and tax information required\""
|
|
213
156
|
},
|
|
214
|
-
"editPaymentInformationButton": {
|
|
215
|
-
"type": "string",
|
|
216
|
-
"mutable": false,
|
|
217
|
-
"complexType": {
|
|
218
|
-
"original": "string",
|
|
219
|
-
"resolved": "string",
|
|
220
|
-
"references": {}
|
|
221
|
-
},
|
|
222
|
-
"required": false,
|
|
223
|
-
"optional": false,
|
|
224
|
-
"docs": {
|
|
225
|
-
"tags": [{
|
|
226
|
-
"text": "Edit payment info button label",
|
|
227
|
-
"name": "uiName"
|
|
228
|
-
}],
|
|
229
|
-
"text": ""
|
|
230
|
-
},
|
|
231
|
-
"attribute": "edit-payment-information-button",
|
|
232
|
-
"reflect": false,
|
|
233
|
-
"defaultValue": "\"Edit Payout Information\""
|
|
234
|
-
},
|
|
235
|
-
"newFormButton": {
|
|
236
|
-
"type": "string",
|
|
237
|
-
"mutable": false,
|
|
238
|
-
"complexType": {
|
|
239
|
-
"original": "string",
|
|
240
|
-
"resolved": "string",
|
|
241
|
-
"references": {}
|
|
242
|
-
},
|
|
243
|
-
"required": false,
|
|
244
|
-
"optional": false,
|
|
245
|
-
"docs": {
|
|
246
|
-
"tags": [{
|
|
247
|
-
"text": "Submit new tax form button label",
|
|
248
|
-
"name": "uiName"
|
|
249
|
-
}],
|
|
250
|
-
"text": ""
|
|
251
|
-
},
|
|
252
|
-
"attribute": "new-form-button",
|
|
253
|
-
"reflect": false,
|
|
254
|
-
"defaultValue": "\"Submit new tax form\""
|
|
255
|
-
},
|
|
256
157
|
"informationRequiredDescription": {
|
|
257
158
|
"type": "string",
|
|
258
159
|
"mutable": false,
|
|
@@ -377,7 +278,7 @@ export class PayoutStatusAlert {
|
|
|
377
278
|
},
|
|
378
279
|
"attribute": "verification-required-internal-header",
|
|
379
280
|
"reflect": false,
|
|
380
|
-
"defaultValue": "\"Identity Verification in
|
|
281
|
+
"defaultValue": "\"Identity Verification in Progress\""
|
|
381
282
|
},
|
|
382
283
|
"verificationRequiredInternalDescription": {
|
|
383
284
|
"type": "string",
|
|
@@ -419,7 +320,7 @@ export class PayoutStatusAlert {
|
|
|
419
320
|
},
|
|
420
321
|
"attribute": "verification-review-internal-header",
|
|
421
322
|
"reflect": false,
|
|
422
|
-
"defaultValue": "\"Identity Verification
|
|
323
|
+
"defaultValue": "\"Identity Verification Under Review\""
|
|
423
324
|
},
|
|
424
325
|
"verificationReviewInternalDescription": {
|
|
425
326
|
"type": "string",
|
|
@@ -461,7 +362,7 @@ export class PayoutStatusAlert {
|
|
|
461
362
|
},
|
|
462
363
|
"attribute": "verification-failed-internal-header",
|
|
463
364
|
"reflect": false,
|
|
464
|
-
"defaultValue": "\"Identity
|
|
365
|
+
"defaultValue": "\"Identity Verification Unsuccessful\""
|
|
465
366
|
},
|
|
466
367
|
"verificationFailedInternalDescription": {
|
|
467
368
|
"type": "string",
|
|
@@ -526,258 +427,6 @@ export class PayoutStatusAlert {
|
|
|
526
427
|
"reflect": false,
|
|
527
428
|
"defaultValue": "\"This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.\""
|
|
528
429
|
},
|
|
529
|
-
"paymentHoldOnChangeHeader": {
|
|
530
|
-
"type": "string",
|
|
531
|
-
"mutable": false,
|
|
532
|
-
"complexType": {
|
|
533
|
-
"original": "string",
|
|
534
|
-
"resolved": "string",
|
|
535
|
-
"references": {}
|
|
536
|
-
},
|
|
537
|
-
"required": false,
|
|
538
|
-
"optional": false,
|
|
539
|
-
"docs": {
|
|
540
|
-
"tags": [{
|
|
541
|
-
"text": "Payment on hold alert header",
|
|
542
|
-
"name": "uiName"
|
|
543
|
-
}],
|
|
544
|
-
"text": ""
|
|
545
|
-
},
|
|
546
|
-
"attribute": "payment-hold-on-change-header",
|
|
547
|
-
"reflect": false,
|
|
548
|
-
"defaultValue": "\"We are reviewing your new payout settings\""
|
|
549
|
-
},
|
|
550
|
-
"paymentHoldOnChangeDescription": {
|
|
551
|
-
"type": "string",
|
|
552
|
-
"mutable": false,
|
|
553
|
-
"complexType": {
|
|
554
|
-
"original": "string",
|
|
555
|
-
"resolved": "string",
|
|
556
|
-
"references": {}
|
|
557
|
-
},
|
|
558
|
-
"required": false,
|
|
559
|
-
"optional": false,
|
|
560
|
-
"docs": {
|
|
561
|
-
"tags": [{
|
|
562
|
-
"text": "Payment on hold alert description",
|
|
563
|
-
"name": "uiName"
|
|
564
|
-
}],
|
|
565
|
-
"text": ""
|
|
566
|
-
},
|
|
567
|
-
"attribute": "payment-hold-on-change-description",
|
|
568
|
-
"reflect": false,
|
|
569
|
-
"defaultValue": "\"Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.\""
|
|
570
|
-
},
|
|
571
|
-
"beneficiaryNameInvalidHeader": {
|
|
572
|
-
"type": "string",
|
|
573
|
-
"mutable": false,
|
|
574
|
-
"complexType": {
|
|
575
|
-
"original": "string",
|
|
576
|
-
"resolved": "string",
|
|
577
|
-
"references": {}
|
|
578
|
-
},
|
|
579
|
-
"required": false,
|
|
580
|
-
"optional": false,
|
|
581
|
-
"docs": {
|
|
582
|
-
"tags": [{
|
|
583
|
-
"text": "Beneficiary name invalid alert header",
|
|
584
|
-
"name": "uiName"
|
|
585
|
-
}],
|
|
586
|
-
"text": ""
|
|
587
|
-
},
|
|
588
|
-
"attribute": "beneficiary-name-invalid-header",
|
|
589
|
-
"reflect": false,
|
|
590
|
-
"defaultValue": "\"Your payment information does not match your tax form\""
|
|
591
|
-
},
|
|
592
|
-
"beneficiaryNameInvalidDescription": {
|
|
593
|
-
"type": "string",
|
|
594
|
-
"mutable": false,
|
|
595
|
-
"complexType": {
|
|
596
|
-
"original": "string",
|
|
597
|
-
"resolved": "string",
|
|
598
|
-
"references": {}
|
|
599
|
-
},
|
|
600
|
-
"required": false,
|
|
601
|
-
"optional": false,
|
|
602
|
-
"docs": {
|
|
603
|
-
"tags": [{
|
|
604
|
-
"text": "Beneficiary name invalid description",
|
|
605
|
-
"name": "uiName"
|
|
606
|
-
}],
|
|
607
|
-
"text": ""
|
|
608
|
-
},
|
|
609
|
-
"attribute": "beneficiary-name-invalid-description",
|
|
610
|
-
"reflect": false,
|
|
611
|
-
"defaultValue": "\"The account holder (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.\""
|
|
612
|
-
},
|
|
613
|
-
"beneficiaryNameMismatchHeader": {
|
|
614
|
-
"type": "string",
|
|
615
|
-
"mutable": false,
|
|
616
|
-
"complexType": {
|
|
617
|
-
"original": "string",
|
|
618
|
-
"resolved": "string",
|
|
619
|
-
"references": {}
|
|
620
|
-
},
|
|
621
|
-
"required": false,
|
|
622
|
-
"optional": false,
|
|
623
|
-
"docs": {
|
|
624
|
-
"tags": [{
|
|
625
|
-
"text": "Beneficiary name mismatch alert header",
|
|
626
|
-
"name": "uiName"
|
|
627
|
-
}],
|
|
628
|
-
"text": ""
|
|
629
|
-
},
|
|
630
|
-
"attribute": "beneficiary-name-mismatch-header",
|
|
631
|
-
"reflect": false,
|
|
632
|
-
"defaultValue": "\"Your payment information does not match your tax form\""
|
|
633
|
-
},
|
|
634
|
-
"beneficiaryNameMismatchDescription": {
|
|
635
|
-
"type": "string",
|
|
636
|
-
"mutable": false,
|
|
637
|
-
"complexType": {
|
|
638
|
-
"original": "string",
|
|
639
|
-
"resolved": "string",
|
|
640
|
-
"references": {}
|
|
641
|
-
},
|
|
642
|
-
"required": false,
|
|
643
|
-
"optional": false,
|
|
644
|
-
"docs": {
|
|
645
|
-
"tags": [{
|
|
646
|
-
"text": "Beneficiary name mismatch alert description",
|
|
647
|
-
"name": "uiName"
|
|
648
|
-
}],
|
|
649
|
-
"text": ""
|
|
650
|
-
},
|
|
651
|
-
"attribute": "beneficiary-name-mismatch-description",
|
|
652
|
-
"reflect": false,
|
|
653
|
-
"defaultValue": "\"The account holder (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.\""
|
|
654
|
-
},
|
|
655
|
-
"bankTaxNameMismatchHeader": {
|
|
656
|
-
"type": "string",
|
|
657
|
-
"mutable": false,
|
|
658
|
-
"complexType": {
|
|
659
|
-
"original": "string",
|
|
660
|
-
"resolved": "string",
|
|
661
|
-
"references": {}
|
|
662
|
-
},
|
|
663
|
-
"required": false,
|
|
664
|
-
"optional": false,
|
|
665
|
-
"docs": {
|
|
666
|
-
"tags": [{
|
|
667
|
-
"text": "Bank name mismatch alert header",
|
|
668
|
-
"name": "uiName"
|
|
669
|
-
}],
|
|
670
|
-
"text": ""
|
|
671
|
-
},
|
|
672
|
-
"attribute": "bank-tax-name-mismatch-header",
|
|
673
|
-
"reflect": false,
|
|
674
|
-
"defaultValue": "\"Your payment information does not match your tax form\""
|
|
675
|
-
},
|
|
676
|
-
"bankTaxNameMismatchDescription": {
|
|
677
|
-
"type": "string",
|
|
678
|
-
"mutable": false,
|
|
679
|
-
"complexType": {
|
|
680
|
-
"original": "string",
|
|
681
|
-
"resolved": "string",
|
|
682
|
-
"references": {}
|
|
683
|
-
},
|
|
684
|
-
"required": false,
|
|
685
|
-
"optional": false,
|
|
686
|
-
"docs": {
|
|
687
|
-
"tags": [{
|
|
688
|
-
"text": "Bank name mismatch alert description",
|
|
689
|
-
"name": "uiName"
|
|
690
|
-
}],
|
|
691
|
-
"text": ""
|
|
692
|
-
},
|
|
693
|
-
"attribute": "bank-tax-name-mismatch-description",
|
|
694
|
-
"reflect": false,
|
|
695
|
-
"defaultValue": "\"The bank account (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.\""
|
|
696
|
-
},
|
|
697
|
-
"withdrawalSettingsInvalidHeader": {
|
|
698
|
-
"type": "string",
|
|
699
|
-
"mutable": false,
|
|
700
|
-
"complexType": {
|
|
701
|
-
"original": "string",
|
|
702
|
-
"resolved": "string",
|
|
703
|
-
"references": {}
|
|
704
|
-
},
|
|
705
|
-
"required": false,
|
|
706
|
-
"optional": false,
|
|
707
|
-
"docs": {
|
|
708
|
-
"tags": [{
|
|
709
|
-
"text": "Withdrawal settings invalid alert header",
|
|
710
|
-
"name": "uiName"
|
|
711
|
-
}],
|
|
712
|
-
"text": ""
|
|
713
|
-
},
|
|
714
|
-
"attribute": "withdrawal-settings-invalid-header",
|
|
715
|
-
"reflect": false,
|
|
716
|
-
"defaultValue": "\"Your payment information is incomplete or includes invalid characters\""
|
|
717
|
-
},
|
|
718
|
-
"withdrawalSettingsInvalidDescription": {
|
|
719
|
-
"type": "string",
|
|
720
|
-
"mutable": false,
|
|
721
|
-
"complexType": {
|
|
722
|
-
"original": "string",
|
|
723
|
-
"resolved": "string",
|
|
724
|
-
"references": {}
|
|
725
|
-
},
|
|
726
|
-
"required": false,
|
|
727
|
-
"optional": false,
|
|
728
|
-
"docs": {
|
|
729
|
-
"tags": [{
|
|
730
|
-
"text": "Withdrawal settings invalid alert description",
|
|
731
|
-
"name": "uiName"
|
|
732
|
-
}],
|
|
733
|
-
"text": ""
|
|
734
|
-
},
|
|
735
|
-
"attribute": "withdrawal-settings-invalid-description",
|
|
736
|
-
"reflect": false,
|
|
737
|
-
"defaultValue": "\"There are missing fields or invalid characters in your payment information. Please review your information and make sure it is correct. Your payouts are on hold until this is resolved.\""
|
|
738
|
-
},
|
|
739
|
-
"paymentReturnedHeader": {
|
|
740
|
-
"type": "string",
|
|
741
|
-
"mutable": false,
|
|
742
|
-
"complexType": {
|
|
743
|
-
"original": "string",
|
|
744
|
-
"resolved": "string",
|
|
745
|
-
"references": {}
|
|
746
|
-
},
|
|
747
|
-
"required": false,
|
|
748
|
-
"optional": false,
|
|
749
|
-
"docs": {
|
|
750
|
-
"tags": [{
|
|
751
|
-
"text": "Payment returned alert header",
|
|
752
|
-
"name": "uiName"
|
|
753
|
-
}],
|
|
754
|
-
"text": ""
|
|
755
|
-
},
|
|
756
|
-
"attribute": "payment-returned-header",
|
|
757
|
-
"reflect": false,
|
|
758
|
-
"defaultValue": "\"Payout unsuccessful\""
|
|
759
|
-
},
|
|
760
|
-
"paymentReturnedDescription": {
|
|
761
|
-
"type": "string",
|
|
762
|
-
"mutable": false,
|
|
763
|
-
"complexType": {
|
|
764
|
-
"original": "string",
|
|
765
|
-
"resolved": "string",
|
|
766
|
-
"references": {}
|
|
767
|
-
},
|
|
768
|
-
"required": false,
|
|
769
|
-
"optional": false,
|
|
770
|
-
"docs": {
|
|
771
|
-
"tags": [{
|
|
772
|
-
"text": "Payment returned alert description",
|
|
773
|
-
"name": "uiName"
|
|
774
|
-
}],
|
|
775
|
-
"text": ""
|
|
776
|
-
},
|
|
777
|
-
"attribute": "payment-returned-description",
|
|
778
|
-
"reflect": false,
|
|
779
|
-
"defaultValue": "\"Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.\""
|
|
780
|
-
},
|
|
781
430
|
"w9RequiredHeader": {
|
|
782
431
|
"type": "string",
|
|
783
432
|
"mutable": false,
|
|
@@ -1061,7 +710,7 @@ function useDemoPayoutStatusAlert(props) {
|
|
|
1061
710
|
return deepmerge({
|
|
1062
711
|
states: {
|
|
1063
712
|
error: false,
|
|
1064
|
-
status:
|
|
713
|
+
status: "INFORMATION_REQUIRED",
|
|
1065
714
|
loading: false,
|
|
1066
715
|
veriffLoading: false,
|
|
1067
716
|
},
|
|
@@ -1070,8 +719,6 @@ function useDemoPayoutStatusAlert(props) {
|
|
|
1070
719
|
callbacks: {
|
|
1071
720
|
onTermsClick: () => { },
|
|
1072
721
|
onClick: () => console.log("show"),
|
|
1073
|
-
onPaymentInfoClick: () => { },
|
|
1074
|
-
onNewFormClick: () => { },
|
|
1075
722
|
},
|
|
1076
723
|
}, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1077
724
|
}
|
|
@@ -39,7 +39,7 @@ const GET_TAX_SETTING = gql `
|
|
|
39
39
|
}
|
|
40
40
|
`;
|
|
41
41
|
export function getStatus(data) {
|
|
42
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q
|
|
42
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
43
43
|
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
44
44
|
const hasTransferredReward = (_e = (_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.rewards) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.find((reward) => reward.statuses.includes("REDEEMED") &&
|
|
45
45
|
reward.partnerFundsTransfer.status === "TRANSFERRED");
|
|
@@ -56,23 +56,8 @@ export function getStatus(data) {
|
|
|
56
56
|
return "VERIFICATION:REVIEW";
|
|
57
57
|
if ((_p = account.holdReasons) === null || _p === void 0 ? void 0 : _p.includes("IDV_CHECK_FAILED_INTERNAL"))
|
|
58
58
|
return "VERIFICATION:FAILED";
|
|
59
|
-
// only show banner for NEW_PAYEE_REVIEW if a PFT was created
|
|
60
59
|
if (((_q = account.holdReasons) === null || _q === void 0 ? void 0 : _q.includes("NEW_PAYEE_REVIEW")) && hasTransferredReward)
|
|
61
|
-
return "
|
|
62
|
-
if ((_r = account.holdReasons) === null || _r === void 0 ? void 0 : _r.includes("NEW_PAYEE_REVIEW"))
|
|
63
|
-
return "DONE";
|
|
64
|
-
if ((_s = account.holdReasons) === null || _s === void 0 ? void 0 : _s.includes("PAYMENT_HOLD_ON_CHANGE"))
|
|
65
|
-
return "PAYMENT_HOLD_ON_CHANGE";
|
|
66
|
-
if ((_t = account.holdReasons) === null || _t === void 0 ? void 0 : _t.includes("BENEFICIARY_NAME_INVALID"))
|
|
67
|
-
return "BENEFICIARY_NAME_INVALID";
|
|
68
|
-
if ((_u = account.holdReasons) === null || _u === void 0 ? void 0 : _u.includes("BENEFICIARY_NAME_MISMATCH"))
|
|
69
|
-
return "BENEFICIARY_NAME_MISMATCH";
|
|
70
|
-
if ((_v = account.holdReasons) === null || _v === void 0 ? void 0 : _v.includes("BANK_TAX_NAME_MISMATCH"))
|
|
71
|
-
return "BANK_TAX_NAME_MISMATCH";
|
|
72
|
-
if ((_w = account.holdReasons) === null || _w === void 0 ? void 0 : _w.includes("WITHDRAWAL_SETTINGS_INVALID"))
|
|
73
|
-
return "WITHDRAWAL_SETTINGS_INVALID";
|
|
74
|
-
if ((_x = account.holdReasons) === null || _x === void 0 ? void 0 : _x.includes("PAYMENT_RETURNED"))
|
|
75
|
-
return "PAYMENT_RETURNED";
|
|
60
|
+
return "ACCOUNT_REVIEW";
|
|
76
61
|
if (account.hold)
|
|
77
62
|
return "HOLD";
|
|
78
63
|
return "DONE";
|
|
@@ -111,16 +96,6 @@ export function usePayoutStatus(props) {
|
|
|
111
96
|
url += "#3";
|
|
112
97
|
window.history.pushState(null, "", url);
|
|
113
98
|
};
|
|
114
|
-
const onPaymentInfoClick = () => {
|
|
115
|
-
let url = props.cashPayoutsPageUrl;
|
|
116
|
-
url += "#4";
|
|
117
|
-
window.history.pushState(null, "", url);
|
|
118
|
-
};
|
|
119
|
-
const onNewFormClick = () => {
|
|
120
|
-
let url = props.cashPayoutsPageUrl;
|
|
121
|
-
url += "#3";
|
|
122
|
-
window.history.pushState(null, "", url);
|
|
123
|
-
};
|
|
124
99
|
return {
|
|
125
100
|
states: {
|
|
126
101
|
loading,
|
|
@@ -134,8 +109,6 @@ export function usePayoutStatus(props) {
|
|
|
134
109
|
callbacks: {
|
|
135
110
|
onTermsClick,
|
|
136
111
|
onClick: render,
|
|
137
|
-
onPaymentInfoClick,
|
|
138
|
-
onNewFormClick,
|
|
139
112
|
},
|
|
140
113
|
};
|
|
141
114
|
}
|