@saasquatch/mint-components 2.4.4 → 2.4.6
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-331ac9e4.js → ShadowViewAddon-ed5d27ef.js} +11 -2
- package/dist/cjs/{data-89ac73dd.js → data-04ef5511.js} +2 -0
- 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 +35 -21
- package/dist/cjs/sqm-big-stat_47.cjs.entry.js +34 -4
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +85 -9
- package/dist/cjs/{sqm-user-info-form-view-ec41191c.js → sqm-user-info-form-view-9745956d.js} +29 -26
- package/dist/cjs/{subregions-3d27e279.js → subregions-d12829d6.js} +28 -0
- package/dist/cjs/{useIndirectTaxForm-5211013b.js → useIndirectTaxForm-0969e194.js} +26 -3
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +8 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +11 -2
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +19 -0
- package/dist/collection/components/tax-and-cash/data.js +2 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.js +25 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +12 -8
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +10 -9
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +7 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +11 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +51 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +25 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +63 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.js +11 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +27 -24
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +51 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +2 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/UserInfoFormView.stories.js +3 -1
- package/dist/collection/components/tax-and-cash/utils.js +26 -0
- package/dist/esm/{ShadowViewAddon-ae0cd8b9.js → ShadowViewAddon-4ee8cc57.js} +11 -2
- package/dist/esm/{data-8698cbc6.js → data-0be04430.js} +2 -0
- 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 +35 -21
- package/dist/esm/sqm-big-stat_47.entry.js +34 -4
- package/dist/esm/sqm-email-verification_2.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +85 -9
- package/dist/esm/{sqm-user-info-form-view-b43a1729.js → sqm-user-info-form-view-81526655.js} +29 -26
- package/dist/esm/{subregions-810a5c2d.js → subregions-98789b46.js} +27 -1
- package/dist/esm/{useIndirectTaxForm-4dc576f0.js → useIndirectTaxForm-bbe8779d.js} +26 -3
- package/dist/esm-es5/{ShadowViewAddon-ae0cd8b9.js → ShadowViewAddon-4ee8cc57.js} +1 -1
- package/dist/esm-es5/data-0be04430.js +1 -0
- 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-email-verification_2.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-user-info-form-view-81526655.js +1 -0
- package/dist/esm-es5/subregions-98789b46.js +1 -0
- package/dist/esm-es5/useIndirectTaxForm-bbe8779d.js +6 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-07b989a3.system.js +6 -0
- package/dist/mint-components/p-14f4cce8.js +1 -0
- package/dist/mint-components/{p-3d2fe16b.js → p-221d044f.js} +4 -4
- package/dist/mint-components/p-227ca8d4.system.js +1 -0
- package/dist/mint-components/{p-e8aaf90f.system.entry.js → p-288249ae.system.entry.js} +1 -1
- package/dist/mint-components/{p-0a0d8788.system.entry.js → p-3de1b8a7.system.entry.js} +1 -1
- package/dist/mint-components/{p-87f119f0.system.js → p-4148d8d7.system.js} +1 -1
- package/dist/mint-components/p-53575d04.js +1 -0
- package/dist/mint-components/p-549d60ee.system.entry.js +1 -0
- package/dist/mint-components/{p-83099738.entry.js → p-654cdee8.entry.js} +1 -1
- package/dist/mint-components/{p-5c52100b.js → p-7aa89fa8.js} +2 -0
- package/dist/mint-components/p-826e3db0.system.js +1 -0
- package/dist/mint-components/p-a1b655ba.system.js +1 -0
- package/dist/mint-components/p-b1feb0f1.js +108 -0
- package/dist/mint-components/p-bfb00685.system.js +1 -1
- package/dist/mint-components/p-ca6c2c4c.system.entry.js +1 -0
- package/dist/mint-components/p-e1b917ff.entry.js +83 -0
- package/dist/mint-components/{p-484817ed.entry.js → p-eae73594.entry.js} +3 -3
- package/dist/mint-components/{p-26126144.entry.js → p-fb2d9545.entry.js} +2 -2
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/data.d.ts +2 -0
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.d.ts +3 -0
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +3 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +8 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +2 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +11 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +3 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +8 -0
- package/dist/types/components/tax-and-cash/utils.d.ts +5 -1
- package/dist/types/components.d.ts +54 -0
- 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/esm-es5/data-8698cbc6.js +0 -1
- package/dist/esm-es5/sqm-user-info-form-view-b43a1729.js +0 -1
- package/dist/esm-es5/subregions-810a5c2d.js +0 -1
- package/dist/esm-es5/useIndirectTaxForm-4dc576f0.js +0 -6
- package/dist/mint-components/p-0ad64881.js +0 -101
- package/dist/mint-components/p-13379201.system.entry.js +0 -1
- package/dist/mint-components/p-3090d391.system.js +0 -1
- package/dist/mint-components/p-4fd803e7.entry.js +0 -83
- package/dist/mint-components/p-6cd93ea3.system.js +0 -6
- package/dist/mint-components/p-92f520c9.js +0 -1
- package/dist/mint-components/p-9c1f5317.system.js +0 -1
- package/dist/mint-components/p-ae19027d.js +0 -1
- package/dist/mint-components/p-ef695105.system.entry.js +0 -1
- package/dist/mint-components/p-fd231c49.system.js +0 -1
package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js
CHANGED
|
@@ -2,8 +2,9 @@ import { useParentQueryValue } from "@saasquatch/component-boilerplate";
|
|
|
2
2
|
import { DateTime } from "luxon";
|
|
3
3
|
import { intl } from "../../../global/global";
|
|
4
4
|
import { USER_QUERY_NAMESPACE } from "../data";
|
|
5
|
+
import { formatPayoutThreshold, isBalanceUnderPayoutThreshold, } from "../utils";
|
|
5
6
|
export function usePayoutDetailsCard(props) {
|
|
6
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
7
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
7
8
|
const { data, loading } = useParentQueryValue(USER_QUERY_NAMESPACE);
|
|
8
9
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
9
10
|
function getPayoutDetailedStatusText(paymentDay) {
|
|
@@ -42,18 +43,18 @@ export function usePayoutDetailsCard(props) {
|
|
|
42
43
|
return {
|
|
43
44
|
states: {
|
|
44
45
|
loading,
|
|
45
|
-
thresholdBalance: (
|
|
46
|
-
|
|
47
|
-
balance: (
|
|
48
|
-
badgeStatus: ((
|
|
46
|
+
thresholdBalance: formatPayoutThreshold(publisher),
|
|
47
|
+
belowPayoutThreshold: isBalanceUnderPayoutThreshold(publisher),
|
|
48
|
+
balance: (_d = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _d === void 0 ? void 0 : _d.balance,
|
|
49
|
+
badgeStatus: ((_e = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _e === void 0 ? void 0 : _e.paymentSchedulingType) !== "FIXED_DAY"
|
|
49
50
|
? "thresholdPayout"
|
|
50
51
|
: isPayoutToday
|
|
51
52
|
? "payoutToday"
|
|
52
53
|
: "nextPayout",
|
|
53
|
-
payoutType: (
|
|
54
|
-
error: (
|
|
55
|
-
paypalEmailAddress: (
|
|
56
|
-
cardNumberPreview: (
|
|
54
|
+
payoutType: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _f === void 0 ? void 0 : _f.paymentMethod,
|
|
55
|
+
error: (_g = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _g === void 0 ? void 0 : _g.hold,
|
|
56
|
+
paypalEmailAddress: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paypalEmailAddress,
|
|
57
|
+
cardNumberPreview: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _j === void 0 ? void 0 : _j.bankAccountNumber,
|
|
57
58
|
nextPayoutDate: paymentDay,
|
|
58
59
|
},
|
|
59
60
|
text: props.getTextProps(),
|
package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js
CHANGED
|
@@ -30,6 +30,13 @@ export const Loading = () => (h("sqm-payout-status-alert", { demoData: { states:
|
|
|
30
30
|
export const Error = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, error: true } } }));
|
|
31
31
|
export const NewPayeeReview = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, status: "NEW_PAYEE_REVIEW" } } }));
|
|
32
32
|
export const PaymentHoldOnChange = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, status: "PAYMENT_HOLD_ON_CHANGE" } } }));
|
|
33
|
+
export const BalanceUnderThreshold = () => (h("sqm-payout-status-alert", { demoData: {
|
|
34
|
+
states: {
|
|
35
|
+
...defaultProps,
|
|
36
|
+
status: "BALANCE_UNDER_THRESHOLD",
|
|
37
|
+
minPayoutAmount: "USD50.00",
|
|
38
|
+
},
|
|
39
|
+
} }));
|
|
33
40
|
export const BeneficiaryNameInvalid = () => (h("sqm-payout-status-alert", { demoData: {
|
|
34
41
|
states: { ...defaultProps, status: "BENEFICIARY_NAME_INVALID" },
|
|
35
42
|
} }));
|
|
@@ -145,6 +145,17 @@ export function PayoutStatusAlertView(props) {
|
|
|
145
145
|
alertType: "warning",
|
|
146
146
|
icon: "exclamation-triangle",
|
|
147
147
|
};
|
|
148
|
+
case "BALANCE_UNDER_THRESHOLD":
|
|
149
|
+
return {
|
|
150
|
+
header: text.balanceUnderThresholdHeader,
|
|
151
|
+
description: intl.formatMessage({
|
|
152
|
+
id: "balanceUnderThresholdDescription",
|
|
153
|
+
defaultMessage: text.balanceUnderThresholdDescription,
|
|
154
|
+
}, { minPayoutAmount: states.minPayoutAmount }),
|
|
155
|
+
buttonText: null,
|
|
156
|
+
alertType: "info",
|
|
157
|
+
icon: "info-circle",
|
|
158
|
+
};
|
|
148
159
|
case "PAYMENT_HOLD_ON_CHANGE":
|
|
149
160
|
return {
|
|
150
161
|
header: text.paymentHoldOnChangeHeader,
|
package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js
CHANGED
|
@@ -79,6 +79,14 @@ export class PayoutStatusAlert {
|
|
|
79
79
|
* @uiName Account review alert description
|
|
80
80
|
*/
|
|
81
81
|
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 Balance under payout minimum alert header
|
|
84
|
+
*/
|
|
85
|
+
this.balanceUnderThresholdHeader = "Your balance is under the minimum payout";
|
|
86
|
+
/**
|
|
87
|
+
* @uiName Balance under payout minimum alert description
|
|
88
|
+
*/
|
|
89
|
+
this.balanceUnderThresholdDescription = "Your total balance is under {minPayoutAmount}, the minimum required for payout.";
|
|
82
90
|
/**
|
|
83
91
|
* @uiName Payment on hold alert header
|
|
84
92
|
*/
|
|
@@ -526,6 +534,48 @@ export class PayoutStatusAlert {
|
|
|
526
534
|
"reflect": false,
|
|
527
535
|
"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
536
|
},
|
|
537
|
+
"balanceUnderThresholdHeader": {
|
|
538
|
+
"type": "string",
|
|
539
|
+
"mutable": false,
|
|
540
|
+
"complexType": {
|
|
541
|
+
"original": "string",
|
|
542
|
+
"resolved": "string",
|
|
543
|
+
"references": {}
|
|
544
|
+
},
|
|
545
|
+
"required": false,
|
|
546
|
+
"optional": false,
|
|
547
|
+
"docs": {
|
|
548
|
+
"tags": [{
|
|
549
|
+
"text": "Balance under payout minimum alert header",
|
|
550
|
+
"name": "uiName"
|
|
551
|
+
}],
|
|
552
|
+
"text": ""
|
|
553
|
+
},
|
|
554
|
+
"attribute": "balance-under-threshold-header",
|
|
555
|
+
"reflect": false,
|
|
556
|
+
"defaultValue": "\"Your balance is under the minimum payout\""
|
|
557
|
+
},
|
|
558
|
+
"balanceUnderThresholdDescription": {
|
|
559
|
+
"type": "string",
|
|
560
|
+
"mutable": false,
|
|
561
|
+
"complexType": {
|
|
562
|
+
"original": "string",
|
|
563
|
+
"resolved": "string",
|
|
564
|
+
"references": {}
|
|
565
|
+
},
|
|
566
|
+
"required": false,
|
|
567
|
+
"optional": false,
|
|
568
|
+
"docs": {
|
|
569
|
+
"tags": [{
|
|
570
|
+
"text": "Balance under payout minimum alert description",
|
|
571
|
+
"name": "uiName"
|
|
572
|
+
}],
|
|
573
|
+
"text": ""
|
|
574
|
+
},
|
|
575
|
+
"attribute": "balance-under-threshold-description",
|
|
576
|
+
"reflect": false,
|
|
577
|
+
"defaultValue": "\"Your total balance is under {minPayoutAmount}, the minimum required for payout.\""
|
|
578
|
+
},
|
|
529
579
|
"paymentHoldOnChangeHeader": {
|
|
530
580
|
"type": "string",
|
|
531
581
|
"mutable": false,
|
|
@@ -1026,7 +1076,7 @@ export class PayoutStatusAlert {
|
|
|
1026
1076
|
"mutable": false,
|
|
1027
1077
|
"complexType": {
|
|
1028
1078
|
"original": "DemoData<PayoutStatusAlertViewProps>",
|
|
1029
|
-
"resolved": "{ states?: { error: boolean; loading: boolean; status: PayoutStatus; veriffLoading: boolean; enforceUsTaxComplianceOption?: EnforceUsTaxComplianceOption; }; data?: { type: \"SquatchJS2\" | \"SquatchAndroid\" | \"SquatchIOS\" | \"SquatchPortal\" | \"SquatchAdmin\" | \"None\"; }; }",
|
|
1079
|
+
"resolved": "{ states?: { error: boolean; loading: boolean; status: PayoutStatus; veriffLoading: boolean; minPayoutAmount?: string; enforceUsTaxComplianceOption?: EnforceUsTaxComplianceOption; }; data?: { type: \"SquatchJS2\" | \"SquatchAndroid\" | \"SquatchIOS\" | \"SquatchPortal\" | \"SquatchAdmin\" | \"None\"; }; }",
|
|
1030
1080
|
"references": {
|
|
1031
1081
|
"DemoData": {
|
|
1032
1082
|
"location": "import",
|
|
@@ -3,6 +3,7 @@ import { useEffect, useState } from "@saasquatch/stencil-hooks";
|
|
|
3
3
|
import { gql } from "graphql-request";
|
|
4
4
|
import { TAX_FORM_UPDATED_EVENT_KEY } from "../eventKeys";
|
|
5
5
|
import { useVeriffApp, VERIFF_COMPLETE_EVENT_KEY } from "../useVeriffApp";
|
|
6
|
+
import { formatPayoutThreshold, isBalanceUnderPayoutThreshold, } from "../utils";
|
|
6
7
|
const GET_USER_STATUS = gql `
|
|
7
8
|
query getUserStatus {
|
|
8
9
|
user: viewer {
|
|
@@ -12,9 +13,16 @@ const GET_USER_STATUS = gql `
|
|
|
12
13
|
connected
|
|
13
14
|
publisher {
|
|
14
15
|
id
|
|
16
|
+
currency
|
|
17
|
+
withdrawalSettings {
|
|
18
|
+
paymentThreshold
|
|
19
|
+
}
|
|
15
20
|
payoutsAccount {
|
|
16
21
|
hold
|
|
17
22
|
holdReasons
|
|
23
|
+
balance
|
|
24
|
+
balanceAmount
|
|
25
|
+
currencyCode
|
|
18
26
|
}
|
|
19
27
|
}
|
|
20
28
|
}
|
|
@@ -41,7 +49,22 @@ const GET_TAX_SETTING = gql `
|
|
|
41
49
|
}
|
|
42
50
|
}
|
|
43
51
|
`;
|
|
52
|
+
/** Transient holds that clear automatically, so a balance under the minimum explains the wait better. */
|
|
53
|
+
const DISPLACEABLE_STATUSES = [
|
|
54
|
+
"DONE",
|
|
55
|
+
"NEW_PAYEE_REVIEW",
|
|
56
|
+
"PAYMENT_HOLD_ON_CHANGE",
|
|
57
|
+
];
|
|
44
58
|
export function getStatus(data) {
|
|
59
|
+
var _a;
|
|
60
|
+
const status = getHoldStatus(data);
|
|
61
|
+
const publisher = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher;
|
|
62
|
+
return DISPLACEABLE_STATUSES.includes(status) &&
|
|
63
|
+
isBalanceUnderPayoutThreshold(publisher)
|
|
64
|
+
? "BALANCE_UNDER_THRESHOLD"
|
|
65
|
+
: status;
|
|
66
|
+
}
|
|
67
|
+
function getHoldStatus(data) {
|
|
45
68
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
46
69
|
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
47
70
|
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) => {
|
|
@@ -84,7 +107,7 @@ export function getStatus(data) {
|
|
|
84
107
|
return "DONE";
|
|
85
108
|
}
|
|
86
109
|
export function usePayoutStatus(props) {
|
|
87
|
-
var _a;
|
|
110
|
+
var _a, _b, _c;
|
|
88
111
|
const { type } = getEnvironmentSDK();
|
|
89
112
|
const { loading, data, errors, refetch } = useQuery(GET_USER_STATUS, {});
|
|
90
113
|
const { data: taxSettingRes } = useQuery(GET_TAX_SETTING, {});
|
|
@@ -134,6 +157,7 @@ export function usePayoutStatus(props) {
|
|
|
134
157
|
status,
|
|
135
158
|
error: !!errors,
|
|
136
159
|
enforceUsTaxComplianceOption,
|
|
160
|
+
minPayoutAmount: formatPayoutThreshold((_c = (_b = data === null || data === void 0 ? void 0 : data.user) === null || _b === void 0 ? void 0 : _b.impactConnection) === null || _c === void 0 ? void 0 : _c.publisher),
|
|
137
161
|
},
|
|
138
162
|
data: { type },
|
|
139
163
|
text: props.getTextProps(),
|
|
@@ -947,6 +947,17 @@ export class TaxAndCashMonolith {
|
|
|
947
947
|
* @uiName Account review alert description
|
|
948
948
|
*/
|
|
949
949
|
this.dashboard_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}.";
|
|
950
|
+
/**
|
|
951
|
+
* @uiName Balance under payout minimum alert header
|
|
952
|
+
* @uiGroup Dashboard Properties
|
|
953
|
+
*/
|
|
954
|
+
this.dashboard_balanceUnderThresholdHeader = "Your balance is under the minimum payout";
|
|
955
|
+
/**
|
|
956
|
+
* @uiName Balance under payout minimum alert description
|
|
957
|
+
* @uiGroup Dashboard Properties
|
|
958
|
+
* @uiWidget textArea
|
|
959
|
+
*/
|
|
960
|
+
this.dashboard_balanceUnderThresholdDescription = "Your total balance is under {minPayoutAmount}, the minimum required for payout.";
|
|
950
961
|
/**
|
|
951
962
|
* @uiName Payment on hold alert header
|
|
952
963
|
*/
|
|
@@ -5097,6 +5108,57 @@ export class TaxAndCashMonolith {
|
|
|
5097
5108
|
"reflect": false,
|
|
5098
5109
|
"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}.\""
|
|
5099
5110
|
},
|
|
5111
|
+
"dashboard_balanceUnderThresholdHeader": {
|
|
5112
|
+
"type": "string",
|
|
5113
|
+
"mutable": false,
|
|
5114
|
+
"complexType": {
|
|
5115
|
+
"original": "string",
|
|
5116
|
+
"resolved": "string",
|
|
5117
|
+
"references": {}
|
|
5118
|
+
},
|
|
5119
|
+
"required": false,
|
|
5120
|
+
"optional": false,
|
|
5121
|
+
"docs": {
|
|
5122
|
+
"tags": [{
|
|
5123
|
+
"text": "Balance under payout minimum alert header",
|
|
5124
|
+
"name": "uiName"
|
|
5125
|
+
}, {
|
|
5126
|
+
"text": "Dashboard Properties",
|
|
5127
|
+
"name": "uiGroup"
|
|
5128
|
+
}],
|
|
5129
|
+
"text": ""
|
|
5130
|
+
},
|
|
5131
|
+
"attribute": "dashboard_balance-under-threshold-header",
|
|
5132
|
+
"reflect": false,
|
|
5133
|
+
"defaultValue": "\"Your balance is under the minimum payout\""
|
|
5134
|
+
},
|
|
5135
|
+
"dashboard_balanceUnderThresholdDescription": {
|
|
5136
|
+
"type": "string",
|
|
5137
|
+
"mutable": false,
|
|
5138
|
+
"complexType": {
|
|
5139
|
+
"original": "string",
|
|
5140
|
+
"resolved": "string",
|
|
5141
|
+
"references": {}
|
|
5142
|
+
},
|
|
5143
|
+
"required": false,
|
|
5144
|
+
"optional": false,
|
|
5145
|
+
"docs": {
|
|
5146
|
+
"tags": [{
|
|
5147
|
+
"text": "Balance under payout minimum alert description",
|
|
5148
|
+
"name": "uiName"
|
|
5149
|
+
}, {
|
|
5150
|
+
"text": "Dashboard Properties",
|
|
5151
|
+
"name": "uiGroup"
|
|
5152
|
+
}, {
|
|
5153
|
+
"text": "textArea",
|
|
5154
|
+
"name": "uiWidget"
|
|
5155
|
+
}],
|
|
5156
|
+
"text": ""
|
|
5157
|
+
},
|
|
5158
|
+
"attribute": "dashboard_balance-under-threshold-description",
|
|
5159
|
+
"reflect": false,
|
|
5160
|
+
"defaultValue": "\"Your total balance is under {minPayoutAmount}, the minimum required for payout.\""
|
|
5161
|
+
},
|
|
5100
5162
|
"dashboard_paymentOnHoldHeader": {
|
|
5101
5163
|
"type": "string",
|
|
5102
5164
|
"mutable": false,
|
|
@@ -5867,7 +5929,7 @@ export class TaxAndCashMonolith {
|
|
|
5867
5929
|
"mutable": false,
|
|
5868
5930
|
"complexType": {
|
|
5869
5931
|
"original": "DemoData<TaxAndCashMonolith>",
|
|
5870
|
-
"resolved": "{ step1_firstName?: string; step1_lastName?: string; step1_email?: string; step1_country?: string; step1_phoneNumber?: string; step1_address?: string; step1_city?: string; step1_state?: string; step1_province?: string; step1_region?: string; step1_postalCode?: string; step1_currency?: string; step1_allowBankingCollection?: string; step1_personalInformation?: string; step1_termsAndConditionsLabel?: string; step1_termsAndConditionsLink?: string; step1_searchForCurrencyText?: string; step2_indirectTax?: string; step2_indirectTaxDescription?: string; step2_indirectTaxDetails?: string; step2_otherRegion?: string; step2_otherRegionSubtext?: string; step2_notRegistered?: string; step2_notRegisteredSubtext?: string; step2_selectedRegion?: string; step2_indirectTaxNumber?: string; step2_province?: string; step2_indirectTaxNumberError?: string; step2_qstNumber?: string; step2_isRegisteredQST?: string; step2_isRegisteredSubRegionIncomeTax?: string; step2_subRegion?: string; step2_subRegionTaxNumberLabel?: string; step2_cannotChangeInfoAlert?: string; step3_taxForm?: string; step3_taxFormLabel?: string; step3_participantType?: string; step3_businessEntity?: string; step3_individualParticipant?: string; step3_taxFormDescription?: string; step3_taxFormDescriptionIndividualParticipant?: string; step3_taxFormDescriptionBusinessEntity?: string; step3_docusignExpired?: string; step3_docusignSessionWarning?: string; step3_docusignError?: string; step3_refreshButton?: string; step3_exitButton?: string; step3_modalTitle?: string; step3_modalDescription?: string; step3_modalButtonText?: string; step4_taxAndPayouts?: string; step4_directlyToBankAccount?: string; step4_toPayPalAccount?: string; step4_paymentScheduleBalanceThreshold?: string; step4_paymentScheduleFixedDay?: string; step4_paymentDaySelectLabel?: string; step4_paymentThresholdSelectLabel?: string; step4_paymentDayFirstOfMonthLabelText?: string; step4_paymentDayFifteenthOfMonthLabelText?: string; step4_paymentMethod?: string; step4_paymentSchedule?: string; step4_paymentMethodSubtext?: string; step4_payPalInputLabel?: string; step4_bankLocationLabel?: string; step4_beneficiaryAccountNameLabel?: string; step4_beneficiaryAccountNameDescription?: string; step4_bankAccountTypeLabel?: string; step4_checkingSelectItemLabel?: string; step4_savingsSelectItemLabel?: string; step4_bankAccountNumberLabel?: string; step4_ibanLabel?: string; step4_swiftCodeLabel?: string; step4_routingCodeLabel?: string; step4_bankNameLabel?: string; step4_classificationEntityLabel?: string; step4_businessSelectItemLabel?: string; step4_individualSelectItemLabel?: string; step4_foreignSelectItemLabel?: string; step4_classificationCPFLabel?: string; step4_patronymicNameLabel?: string; step4_voCodeLabel?: string; step4_agencyCodeLabel?: string; step4_branchCodeLabel?: string; step4_branchNameLabel?: string; step4_classificationLabel?: string; step4_classificationCodeLabel?: string; step4_taxPayerIdLabel?: string; step4_bankAddressLabel?: string; step4_bankCityLabel?: string; step4_bankStateLabel?: string; step4_bankPostalCodeLabel?: string; step4_eftWithdrawalLabel?: string; step4_fxWireProcessingFeeLabel?: string; step4_verifyEmailHeaderText?: string; step4_verifyEmailDescriptionText?: string; step4_modalTitle?: string; step4_modalDescription?: string; step4_modalButtonText?: string; dashboard_statusTextActive?: string; dashboard_statusTextNotActive?: string; dashboard_statusTextNotVerified?: string; dashboard_statusTextRequired?: string; dashboard_requiredTaxForm?: string; dashboard_badgeTextSubmittedOn?: string; dashboard_badgeTextSubmittedOnW8?: string; dashboard_badgeTextAwaitingReview?: string; dashboard_taxAlertHeaderNotActiveW9?: string; dashboard_taxAlertHeaderNotActiveW8?: string; dashboard_taxAlertNotActiveMessageW9?: string; dashboard_taxAlertNotActiveMessageW8?: string; dashboard_invalidForm?: string; dashboard_bankingInformationSectionHeader?: string; dashboard_taxDocumentSectionHeader?: string; dashboard_taxDocumentSectionSubHeader?: string; dashboard_noFormNeededSubtext?: string; dashboard_indirectTaxInfoSectionHeader?: string; dashboard_indirectTaxInfoCanada?: string; dashboard_indirectTaxInfoOtherCountry?: string; dashboard_indirectTaxInfoSpain?: string; dashboard_indirectTaxTooltipSupport?: string; dashboard_indirectTaxDetails?: string; dashboard_newFormButton?: string; dashboard_editPaymentInformationButton?: string; dashboard_notRegisteredForTax?: string; dashboard_qstNumber?: string; dashboard_subRegionTaxNumber?: string; dashboard_statusBadgeText?: string; dashboard_thresholdPayoutText?: string; dashboard_accountText?: string; dashboard_invoiceColumnTitle?: string; dashboard_dateColumnTitle?: string; dashboard_earningsColumnTitle?: string; dashboard_indirectTaxColumnTitle?: string; dashboard_payoutFromImpact?: string; dashboard_earningsAfterTaxColumnTitle?: string; dashboard_payoutHoldAlertHeader?: string; dashboard_payoutHoldAlertDescription?: string; dashboard_payoutMissingInformationText?: string; dashboard_invoiceDescription?: string; dashboard_invoicePrevLabel?: string; dashboard_invoiceMoreLabel?: string; dashboard_invoiceHeader?: string; dashboard_invoiceEmptyStateHeader?: string; dashboard_invoiceEmptyStateText?: string; dashboard_replaceTaxFormModalHeader?: string; dashboard_replaceTaxFormModalBodyText?: string; dashboard_verificationRequiredHeader?: string; dashboard_verificationRequiredDescription?: string; dashboard_verificationRequiredInternalHeader?: string; dashboard_verificationRequiredInternalDescription?: string; dashboard_verificationReviewInternalHeader?: string; dashboard_verificationReviewInternalDescription?: string; dashboard_verificationFailedInternalHeader?: string; dashboard_verificationFailedInternalDescription?: string; dashboard_verificationRequiredButtonText?: string; dashboard_w9RequiredHeader?: string; dashboard_w9RequiredDescription?: string; dashboard_accountReviewHeader?: string; dashboard_accountReviewDescription?: string; dashboard_paymentOnHoldHeader?: string; dashboard_paymentOnHoldDescription?: string; dashboard_beneficiaryNameInvalidHeader?: string; dashboard_beneficiaryNameInvalidDescription?: string; dashboard_beneficiaryNameMismatchHeader?: string; dashboard_beneficiaryNameMismatchDescription?: string; dashboard_bankNameMismatchHeader?: string; dashboard_bankNameMismatchDescription?: string; dashboard_withdrawalSettingsInvalidHeader?: string; dashboard_withdrawalSettingsInvalidDescription?: string; dashboard_paymentReturnedHeader?: string; dashboard_paymentReturnedDescription?: string; dashboard_termsAndConditions?: string; dashboard_w9RequiredButtonText?: string; formStep?: string; generalErrorTitle?: string; generalErrorDescription?: string; fieldRequiredError?: string; invalidCharacterError?: string; fieldInvalidError?: string; continueButton?: string; backButton?: string; cancelButton?: string; isPartnerAlertHeader?: string; isPartnerAlertDescription?: string; searchForCountryText?: string; loadingErrorAlertHeader?: string; loadingErrorAlertDescription?: string; taxAndPayoutsDescription?: string; supportLink?: string; termsAndConditions?: string; stateController?: string; demoData?: Partial<Pick<TaxAndCashMonolith, \"step1_firstName\" | \"step1_lastName\" | \"step1_email\" | \"step1_country\" | \"step1_phoneNumber\" | \"step1_address\" | \"step1_city\" | \"step1_state\" | \"step1_province\" | \"step1_region\" | \"step1_postalCode\" | \"step1_currency\" | \"step1_allowBankingCollection\" | \"step1_personalInformation\" | \"step1_termsAndConditionsLabel\" | \"step1_termsAndConditionsLink\" | \"step1_searchForCurrencyText\" | \"step2_indirectTax\" | \"step2_indirectTaxDescription\" | \"step2_indirectTaxDetails\" | \"step2_otherRegion\" | \"step2_otherRegionSubtext\" | \"step2_notRegistered\" | \"step2_notRegisteredSubtext\" | \"step2_selectedRegion\" | \"step2_indirectTaxNumber\" | \"step2_province\" | \"step2_indirectTaxNumberError\" | \"step2_qstNumber\" | \"step2_isRegisteredQST\" | \"step2_isRegisteredSubRegionIncomeTax\" | \"step2_subRegion\" | \"step2_subRegionTaxNumberLabel\" | \"step2_cannotChangeInfoAlert\" | \"step3_taxForm\" | \"step3_taxFormLabel\" | \"step3_participantType\" | \"step3_businessEntity\" | \"step3_individualParticipant\" | \"step3_taxFormDescription\" | \"step3_taxFormDescriptionIndividualParticipant\" | \"step3_taxFormDescriptionBusinessEntity\" | \"step3_docusignExpired\" | \"step3_docusignSessionWarning\" | \"step3_docusignError\" | \"step3_refreshButton\" | \"step3_exitButton\" | \"step3_modalTitle\" | \"step3_modalDescription\" | \"step3_modalButtonText\" | \"step4_taxAndPayouts\" | \"step4_directlyToBankAccount\" | \"step4_toPayPalAccount\" | \"step4_paymentScheduleBalanceThreshold\" | \"step4_paymentScheduleFixedDay\" | \"step4_paymentDaySelectLabel\" | \"step4_paymentThresholdSelectLabel\" | \"step4_paymentDayFirstOfMonthLabelText\" | \"step4_paymentDayFifteenthOfMonthLabelText\" | \"step4_paymentMethod\" | \"step4_paymentSchedule\" | \"step4_paymentMethodSubtext\" | \"step4_payPalInputLabel\" | \"step4_bankLocationLabel\" | \"step4_beneficiaryAccountNameLabel\" | \"step4_beneficiaryAccountNameDescription\" | \"step4_bankAccountTypeLabel\" | \"step4_checkingSelectItemLabel\" | \"step4_savingsSelectItemLabel\" | \"step4_bankAccountNumberLabel\" | \"step4_ibanLabel\" | \"step4_swiftCodeLabel\" | \"step4_routingCodeLabel\" | \"step4_bankNameLabel\" | \"step4_classificationEntityLabel\" | \"step4_businessSelectItemLabel\" | \"step4_individualSelectItemLabel\" | \"step4_foreignSelectItemLabel\" | \"step4_classificationCPFLabel\" | \"step4_patronymicNameLabel\" | \"step4_voCodeLabel\" | \"step4_agencyCodeLabel\" | \"step4_branchCodeLabel\" | \"step4_branchNameLabel\" | \"step4_classificationLabel\" | \"step4_classificationCodeLabel\" | \"step4_taxPayerIdLabel\" | \"step4_bankAddressLabel\" | \"step4_bankCityLabel\" | \"step4_bankStateLabel\" | \"step4_bankPostalCodeLabel\" | \"step4_eftWithdrawalLabel\" | \"step4_fxWireProcessingFeeLabel\" | \"step4_verifyEmailHeaderText\" | \"step4_verifyEmailDescriptionText\" | \"step4_modalTitle\" | \"step4_modalDescription\" | \"step4_modalButtonText\" | \"dashboard_statusTextActive\" | \"dashboard_statusTextNotActive\" | \"dashboard_statusTextNotVerified\" | \"dashboard_statusTextRequired\" | \"dashboard_requiredTaxForm\" | \"dashboard_badgeTextSubmittedOn\" | \"dashboard_badgeTextSubmittedOnW8\" | \"dashboard_badgeTextAwaitingReview\" | \"dashboard_taxAlertHeaderNotActiveW9\" | \"dashboard_taxAlertHeaderNotActiveW8\" | \"dashboard_taxAlertNotActiveMessageW9\" | \"dashboard_taxAlertNotActiveMessageW8\" | \"dashboard_invalidForm\" | \"dashboard_bankingInformationSectionHeader\" | \"dashboard_taxDocumentSectionHeader\" | \"dashboard_taxDocumentSectionSubHeader\" | \"dashboard_noFormNeededSubtext\" | \"dashboard_indirectTaxInfoSectionHeader\" | \"dashboard_indirectTaxInfoCanada\" | \"dashboard_indirectTaxInfoOtherCountry\" | \"dashboard_indirectTaxInfoSpain\" | \"dashboard_indirectTaxTooltipSupport\" | \"dashboard_indirectTaxDetails\" | \"dashboard_newFormButton\" | \"dashboard_editPaymentInformationButton\" | \"dashboard_notRegisteredForTax\" | \"dashboard_qstNumber\" | \"dashboard_subRegionTaxNumber\" | \"dashboard_statusBadgeText\" | \"dashboard_thresholdPayoutText\" | \"dashboard_accountText\" | \"dashboard_invoiceColumnTitle\" | \"dashboard_dateColumnTitle\" | \"dashboard_earningsColumnTitle\" | \"dashboard_indirectTaxColumnTitle\" | \"dashboard_payoutFromImpact\" | \"dashboard_earningsAfterTaxColumnTitle\" | \"dashboard_payoutHoldAlertHeader\" | \"dashboard_payoutHoldAlertDescription\" | \"dashboard_payoutMissingInformationText\" | \"dashboard_invoiceDescription\" | \"dashboard_invoicePrevLabel\" | \"dashboard_invoiceMoreLabel\" | \"dashboard_invoiceHeader\" | \"dashboard_invoiceEmptyStateHeader\" | \"dashboard_invoiceEmptyStateText\" | \"dashboard_replaceTaxFormModalHeader\" | \"dashboard_replaceTaxFormModalBodyText\" | \"dashboard_verificationRequiredHeader\" | \"dashboard_verificationRequiredDescription\" | \"dashboard_verificationRequiredInternalHeader\" | \"dashboard_verificationRequiredInternalDescription\" | \"dashboard_verificationReviewInternalHeader\" | \"dashboard_verificationReviewInternalDescription\" | \"dashboard_verificationFailedInternalHeader\" | \"dashboard_verificationFailedInternalDescription\" | \"dashboard_verificationRequiredButtonText\" | \"dashboard_w9RequiredHeader\" | \"dashboard_w9RequiredDescription\" | \"dashboard_accountReviewHeader\" | \"dashboard_accountReviewDescription\" | \"dashboard_paymentOnHoldHeader\" | \"dashboard_paymentOnHoldDescription\" | \"dashboard_beneficiaryNameInvalidHeader\" | \"dashboard_beneficiaryNameInvalidDescription\" | \"dashboard_beneficiaryNameMismatchHeader\" | \"dashboard_beneficiaryNameMismatchDescription\" | \"dashboard_bankNameMismatchHeader\" | \"dashboard_bankNameMismatchDescription\" | \"dashboard_withdrawalSettingsInvalidHeader\" | \"dashboard_withdrawalSettingsInvalidDescription\" | \"dashboard_paymentReturnedHeader\" | \"dashboard_paymentReturnedDescription\" | \"dashboard_termsAndConditions\" | \"dashboard_w9RequiredButtonText\" | \"formStep\" | \"generalErrorTitle\" | \"generalErrorDescription\" | \"fieldRequiredError\" | \"invalidCharacterError\" | \"fieldInvalidError\" | \"continueButton\" | \"backButton\" | \"cancelButton\" | \"isPartnerAlertHeader\" | \"isPartnerAlertDescription\" | \"searchForCountryText\" | \"loadingErrorAlertHeader\" | \"loadingErrorAlertDescription\" | \"taxAndPayoutsDescription\" | \"supportLink\" | \"termsAndConditions\" | \"stateController\" | \"demoData\" | \"disconnectedCallback\" | \"getGeneralStepTextProps\" | \"render\">>; disconnectedCallback?: () => void; getGeneralStepTextProps?: (prefix: string) => PickPrefix<TaxAndCashMonolith, string> & { generalErrorTitle: string; generalErrorDescription: string; fieldRequiredError: string; invalidCharacterError: string; fieldInvalidError: string; continueButton: string; backButton: string; cancelButton: string; isPartnerAlertHeader: string; isPartnerAlertDescription: string; loadingErrorAlertHeader: string; loadingErrorAlertDescription: string; taxAndPayoutsDescription: string; searchForCountryText: string; formStep: string; supportLink: string; }; render?: () => any; }",
|
|
5932
|
+
"resolved": "{ step1_firstName?: string; step1_lastName?: string; step1_email?: string; step1_country?: string; step1_phoneNumber?: string; step1_address?: string; step1_city?: string; step1_state?: string; step1_province?: string; step1_region?: string; step1_postalCode?: string; step1_currency?: string; step1_allowBankingCollection?: string; step1_personalInformation?: string; step1_termsAndConditionsLabel?: string; step1_termsAndConditionsLink?: string; step1_searchForCurrencyText?: string; step2_indirectTax?: string; step2_indirectTaxDescription?: string; step2_indirectTaxDetails?: string; step2_otherRegion?: string; step2_otherRegionSubtext?: string; step2_notRegistered?: string; step2_notRegisteredSubtext?: string; step2_selectedRegion?: string; step2_indirectTaxNumber?: string; step2_province?: string; step2_indirectTaxNumberError?: string; step2_qstNumber?: string; step2_isRegisteredQST?: string; step2_isRegisteredSubRegionIncomeTax?: string; step2_subRegion?: string; step2_subRegionTaxNumberLabel?: string; step2_cannotChangeInfoAlert?: string; step3_taxForm?: string; step3_taxFormLabel?: string; step3_participantType?: string; step3_businessEntity?: string; step3_individualParticipant?: string; step3_taxFormDescription?: string; step3_taxFormDescriptionIndividualParticipant?: string; step3_taxFormDescriptionBusinessEntity?: string; step3_docusignExpired?: string; step3_docusignSessionWarning?: string; step3_docusignError?: string; step3_refreshButton?: string; step3_exitButton?: string; step3_modalTitle?: string; step3_modalDescription?: string; step3_modalButtonText?: string; step4_taxAndPayouts?: string; step4_directlyToBankAccount?: string; step4_toPayPalAccount?: string; step4_paymentScheduleBalanceThreshold?: string; step4_paymentScheduleFixedDay?: string; step4_paymentDaySelectLabel?: string; step4_paymentThresholdSelectLabel?: string; step4_paymentDayFirstOfMonthLabelText?: string; step4_paymentDayFifteenthOfMonthLabelText?: string; step4_paymentMethod?: string; step4_paymentSchedule?: string; step4_paymentMethodSubtext?: string; step4_payPalInputLabel?: string; step4_bankLocationLabel?: string; step4_beneficiaryAccountNameLabel?: string; step4_beneficiaryAccountNameDescription?: string; step4_bankAccountTypeLabel?: string; step4_checkingSelectItemLabel?: string; step4_savingsSelectItemLabel?: string; step4_bankAccountNumberLabel?: string; step4_ibanLabel?: string; step4_swiftCodeLabel?: string; step4_routingCodeLabel?: string; step4_bankNameLabel?: string; step4_classificationEntityLabel?: string; step4_businessSelectItemLabel?: string; step4_individualSelectItemLabel?: string; step4_foreignSelectItemLabel?: string; step4_classificationCPFLabel?: string; step4_patronymicNameLabel?: string; step4_voCodeLabel?: string; step4_agencyCodeLabel?: string; step4_branchCodeLabel?: string; step4_branchNameLabel?: string; step4_classificationLabel?: string; step4_classificationCodeLabel?: string; step4_taxPayerIdLabel?: string; step4_bankAddressLabel?: string; step4_bankCityLabel?: string; step4_bankStateLabel?: string; step4_bankPostalCodeLabel?: string; step4_eftWithdrawalLabel?: string; step4_fxWireProcessingFeeLabel?: string; step4_verifyEmailHeaderText?: string; step4_verifyEmailDescriptionText?: string; step4_modalTitle?: string; step4_modalDescription?: string; step4_modalButtonText?: string; dashboard_statusTextActive?: string; dashboard_statusTextNotActive?: string; dashboard_statusTextNotVerified?: string; dashboard_statusTextRequired?: string; dashboard_requiredTaxForm?: string; dashboard_badgeTextSubmittedOn?: string; dashboard_badgeTextSubmittedOnW8?: string; dashboard_badgeTextAwaitingReview?: string; dashboard_taxAlertHeaderNotActiveW9?: string; dashboard_taxAlertHeaderNotActiveW8?: string; dashboard_taxAlertNotActiveMessageW9?: string; dashboard_taxAlertNotActiveMessageW8?: string; dashboard_invalidForm?: string; dashboard_bankingInformationSectionHeader?: string; dashboard_taxDocumentSectionHeader?: string; dashboard_taxDocumentSectionSubHeader?: string; dashboard_noFormNeededSubtext?: string; dashboard_indirectTaxInfoSectionHeader?: string; dashboard_indirectTaxInfoCanada?: string; dashboard_indirectTaxInfoOtherCountry?: string; dashboard_indirectTaxInfoSpain?: string; dashboard_indirectTaxTooltipSupport?: string; dashboard_indirectTaxDetails?: string; dashboard_newFormButton?: string; dashboard_editPaymentInformationButton?: string; dashboard_notRegisteredForTax?: string; dashboard_qstNumber?: string; dashboard_subRegionTaxNumber?: string; dashboard_statusBadgeText?: string; dashboard_thresholdPayoutText?: string; dashboard_accountText?: string; dashboard_invoiceColumnTitle?: string; dashboard_dateColumnTitle?: string; dashboard_earningsColumnTitle?: string; dashboard_indirectTaxColumnTitle?: string; dashboard_payoutFromImpact?: string; dashboard_earningsAfterTaxColumnTitle?: string; dashboard_payoutHoldAlertHeader?: string; dashboard_payoutHoldAlertDescription?: string; dashboard_payoutMissingInformationText?: string; dashboard_invoiceDescription?: string; dashboard_invoicePrevLabel?: string; dashboard_invoiceMoreLabel?: string; dashboard_invoiceHeader?: string; dashboard_invoiceEmptyStateHeader?: string; dashboard_invoiceEmptyStateText?: string; dashboard_replaceTaxFormModalHeader?: string; dashboard_replaceTaxFormModalBodyText?: string; dashboard_verificationRequiredHeader?: string; dashboard_verificationRequiredDescription?: string; dashboard_verificationRequiredInternalHeader?: string; dashboard_verificationRequiredInternalDescription?: string; dashboard_verificationReviewInternalHeader?: string; dashboard_verificationReviewInternalDescription?: string; dashboard_verificationFailedInternalHeader?: string; dashboard_verificationFailedInternalDescription?: string; dashboard_verificationRequiredButtonText?: string; dashboard_w9RequiredHeader?: string; dashboard_w9RequiredDescription?: string; dashboard_accountReviewHeader?: string; dashboard_accountReviewDescription?: string; dashboard_balanceUnderThresholdHeader?: string; dashboard_balanceUnderThresholdDescription?: string; dashboard_paymentOnHoldHeader?: string; dashboard_paymentOnHoldDescription?: string; dashboard_beneficiaryNameInvalidHeader?: string; dashboard_beneficiaryNameInvalidDescription?: string; dashboard_beneficiaryNameMismatchHeader?: string; dashboard_beneficiaryNameMismatchDescription?: string; dashboard_bankNameMismatchHeader?: string; dashboard_bankNameMismatchDescription?: string; dashboard_withdrawalSettingsInvalidHeader?: string; dashboard_withdrawalSettingsInvalidDescription?: string; dashboard_paymentReturnedHeader?: string; dashboard_paymentReturnedDescription?: string; dashboard_termsAndConditions?: string; dashboard_w9RequiredButtonText?: string; formStep?: string; generalErrorTitle?: string; generalErrorDescription?: string; fieldRequiredError?: string; invalidCharacterError?: string; fieldInvalidError?: string; continueButton?: string; backButton?: string; cancelButton?: string; isPartnerAlertHeader?: string; isPartnerAlertDescription?: string; searchForCountryText?: string; loadingErrorAlertHeader?: string; loadingErrorAlertDescription?: string; taxAndPayoutsDescription?: string; supportLink?: string; termsAndConditions?: string; stateController?: string; demoData?: Partial<Pick<TaxAndCashMonolith, \"step1_firstName\" | \"step1_lastName\" | \"step1_email\" | \"step1_country\" | \"step1_phoneNumber\" | \"step1_address\" | \"step1_city\" | \"step1_state\" | \"step1_province\" | \"step1_region\" | \"step1_postalCode\" | \"step1_currency\" | \"step1_allowBankingCollection\" | \"step1_personalInformation\" | \"step1_termsAndConditionsLabel\" | \"step1_termsAndConditionsLink\" | \"step1_searchForCurrencyText\" | \"step2_indirectTax\" | \"step2_indirectTaxDescription\" | \"step2_indirectTaxDetails\" | \"step2_otherRegion\" | \"step2_otherRegionSubtext\" | \"step2_notRegistered\" | \"step2_notRegisteredSubtext\" | \"step2_selectedRegion\" | \"step2_indirectTaxNumber\" | \"step2_province\" | \"step2_indirectTaxNumberError\" | \"step2_qstNumber\" | \"step2_isRegisteredQST\" | \"step2_isRegisteredSubRegionIncomeTax\" | \"step2_subRegion\" | \"step2_subRegionTaxNumberLabel\" | \"step2_cannotChangeInfoAlert\" | \"step3_taxForm\" | \"step3_taxFormLabel\" | \"step3_participantType\" | \"step3_businessEntity\" | \"step3_individualParticipant\" | \"step3_taxFormDescription\" | \"step3_taxFormDescriptionIndividualParticipant\" | \"step3_taxFormDescriptionBusinessEntity\" | \"step3_docusignExpired\" | \"step3_docusignSessionWarning\" | \"step3_docusignError\" | \"step3_refreshButton\" | \"step3_exitButton\" | \"step3_modalTitle\" | \"step3_modalDescription\" | \"step3_modalButtonText\" | \"step4_taxAndPayouts\" | \"step4_directlyToBankAccount\" | \"step4_toPayPalAccount\" | \"step4_paymentScheduleBalanceThreshold\" | \"step4_paymentScheduleFixedDay\" | \"step4_paymentDaySelectLabel\" | \"step4_paymentThresholdSelectLabel\" | \"step4_paymentDayFirstOfMonthLabelText\" | \"step4_paymentDayFifteenthOfMonthLabelText\" | \"step4_paymentMethod\" | \"step4_paymentSchedule\" | \"step4_paymentMethodSubtext\" | \"step4_payPalInputLabel\" | \"step4_bankLocationLabel\" | \"step4_beneficiaryAccountNameLabel\" | \"step4_beneficiaryAccountNameDescription\" | \"step4_bankAccountTypeLabel\" | \"step4_checkingSelectItemLabel\" | \"step4_savingsSelectItemLabel\" | \"step4_bankAccountNumberLabel\" | \"step4_ibanLabel\" | \"step4_swiftCodeLabel\" | \"step4_routingCodeLabel\" | \"step4_bankNameLabel\" | \"step4_classificationEntityLabel\" | \"step4_businessSelectItemLabel\" | \"step4_individualSelectItemLabel\" | \"step4_foreignSelectItemLabel\" | \"step4_classificationCPFLabel\" | \"step4_patronymicNameLabel\" | \"step4_voCodeLabel\" | \"step4_agencyCodeLabel\" | \"step4_branchCodeLabel\" | \"step4_branchNameLabel\" | \"step4_classificationLabel\" | \"step4_classificationCodeLabel\" | \"step4_taxPayerIdLabel\" | \"step4_bankAddressLabel\" | \"step4_bankCityLabel\" | \"step4_bankStateLabel\" | \"step4_bankPostalCodeLabel\" | \"step4_eftWithdrawalLabel\" | \"step4_fxWireProcessingFeeLabel\" | \"step4_verifyEmailHeaderText\" | \"step4_verifyEmailDescriptionText\" | \"step4_modalTitle\" | \"step4_modalDescription\" | \"step4_modalButtonText\" | \"dashboard_statusTextActive\" | \"dashboard_statusTextNotActive\" | \"dashboard_statusTextNotVerified\" | \"dashboard_statusTextRequired\" | \"dashboard_requiredTaxForm\" | \"dashboard_badgeTextSubmittedOn\" | \"dashboard_badgeTextSubmittedOnW8\" | \"dashboard_badgeTextAwaitingReview\" | \"dashboard_taxAlertHeaderNotActiveW9\" | \"dashboard_taxAlertHeaderNotActiveW8\" | \"dashboard_taxAlertNotActiveMessageW9\" | \"dashboard_taxAlertNotActiveMessageW8\" | \"dashboard_invalidForm\" | \"dashboard_bankingInformationSectionHeader\" | \"dashboard_taxDocumentSectionHeader\" | \"dashboard_taxDocumentSectionSubHeader\" | \"dashboard_noFormNeededSubtext\" | \"dashboard_indirectTaxInfoSectionHeader\" | \"dashboard_indirectTaxInfoCanada\" | \"dashboard_indirectTaxInfoOtherCountry\" | \"dashboard_indirectTaxInfoSpain\" | \"dashboard_indirectTaxTooltipSupport\" | \"dashboard_indirectTaxDetails\" | \"dashboard_newFormButton\" | \"dashboard_editPaymentInformationButton\" | \"dashboard_notRegisteredForTax\" | \"dashboard_qstNumber\" | \"dashboard_subRegionTaxNumber\" | \"dashboard_statusBadgeText\" | \"dashboard_thresholdPayoutText\" | \"dashboard_accountText\" | \"dashboard_invoiceColumnTitle\" | \"dashboard_dateColumnTitle\" | \"dashboard_earningsColumnTitle\" | \"dashboard_indirectTaxColumnTitle\" | \"dashboard_payoutFromImpact\" | \"dashboard_earningsAfterTaxColumnTitle\" | \"dashboard_payoutHoldAlertHeader\" | \"dashboard_payoutHoldAlertDescription\" | \"dashboard_payoutMissingInformationText\" | \"dashboard_invoiceDescription\" | \"dashboard_invoicePrevLabel\" | \"dashboard_invoiceMoreLabel\" | \"dashboard_invoiceHeader\" | \"dashboard_invoiceEmptyStateHeader\" | \"dashboard_invoiceEmptyStateText\" | \"dashboard_replaceTaxFormModalHeader\" | \"dashboard_replaceTaxFormModalBodyText\" | \"dashboard_verificationRequiredHeader\" | \"dashboard_verificationRequiredDescription\" | \"dashboard_verificationRequiredInternalHeader\" | \"dashboard_verificationRequiredInternalDescription\" | \"dashboard_verificationReviewInternalHeader\" | \"dashboard_verificationReviewInternalDescription\" | \"dashboard_verificationFailedInternalHeader\" | \"dashboard_verificationFailedInternalDescription\" | \"dashboard_verificationRequiredButtonText\" | \"dashboard_w9RequiredHeader\" | \"dashboard_w9RequiredDescription\" | \"dashboard_accountReviewHeader\" | \"dashboard_accountReviewDescription\" | \"dashboard_balanceUnderThresholdHeader\" | \"dashboard_balanceUnderThresholdDescription\" | \"dashboard_paymentOnHoldHeader\" | \"dashboard_paymentOnHoldDescription\" | \"dashboard_beneficiaryNameInvalidHeader\" | \"dashboard_beneficiaryNameInvalidDescription\" | \"dashboard_beneficiaryNameMismatchHeader\" | \"dashboard_beneficiaryNameMismatchDescription\" | \"dashboard_bankNameMismatchHeader\" | \"dashboard_bankNameMismatchDescription\" | \"dashboard_withdrawalSettingsInvalidHeader\" | \"dashboard_withdrawalSettingsInvalidDescription\" | \"dashboard_paymentReturnedHeader\" | \"dashboard_paymentReturnedDescription\" | \"dashboard_termsAndConditions\" | \"dashboard_w9RequiredButtonText\" | \"formStep\" | \"generalErrorTitle\" | \"generalErrorDescription\" | \"fieldRequiredError\" | \"invalidCharacterError\" | \"fieldInvalidError\" | \"continueButton\" | \"backButton\" | \"cancelButton\" | \"isPartnerAlertHeader\" | \"isPartnerAlertDescription\" | \"searchForCountryText\" | \"loadingErrorAlertHeader\" | \"loadingErrorAlertDescription\" | \"taxAndPayoutsDescription\" | \"supportLink\" | \"termsAndConditions\" | \"stateController\" | \"demoData\" | \"disconnectedCallback\" | \"getGeneralStepTextProps\" | \"render\">>; disconnectedCallback?: () => void; getGeneralStepTextProps?: (prefix: string) => PickPrefix<TaxAndCashMonolith, string> & { generalErrorTitle: string; generalErrorDescription: string; fieldRequiredError: string; invalidCharacterError: string; fieldInvalidError: string; continueButton: string; backButton: string; cancelButton: string; isPartnerAlertHeader: string; isPartnerAlertDescription: string; loadingErrorAlertHeader: string; loadingErrorAlertDescription: string; taxAndPayoutsDescription: string; searchForCountryText: string; formStep: string; supportLink: string; }; render?: () => any; }",
|
|
5871
5933
|
"references": {
|
|
5872
5934
|
"DemoData": {
|
|
5873
5935
|
"location": "import",
|
|
@@ -65,6 +65,8 @@ const defaultText = {
|
|
|
65
65
|
w9RequiredButtonText: "Submit W-9",
|
|
66
66
|
accountReviewHeader: "Your account is under review",
|
|
67
67
|
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}.",
|
|
68
|
+
balanceUnderThresholdHeader: "Your balance is under the minimum payout",
|
|
69
|
+
balanceUnderThresholdDescription: "Your total balance is under {minPayoutAmount}, the minimum required for payout.",
|
|
68
70
|
paymentHoldOnChangeHeader: "We are reviewing your new payout settings",
|
|
69
71
|
paymentHoldOnChangeDescription: "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.",
|
|
70
72
|
beneficiaryNameInvalidHeader: "Your payment information does not match your tax form",
|
|
@@ -92,9 +94,10 @@ const defaultCallbacks = {
|
|
|
92
94
|
onNewFormCancel: () => { },
|
|
93
95
|
onNewFormClick: () => { },
|
|
94
96
|
};
|
|
95
|
-
const
|
|
96
|
-
payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: { states: { badgeStatus: "nextPayout" } } })),
|
|
97
|
-
};
|
|
97
|
+
const buildSlots = (cardStates = {}) => ({
|
|
98
|
+
payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: { states: { badgeStatus: "nextPayout", ...cardStates } } })),
|
|
99
|
+
});
|
|
100
|
+
const defaultSlots = buildSlots();
|
|
98
101
|
const baseStates = {
|
|
99
102
|
payoutStatus: "DONE",
|
|
100
103
|
veriffLoading: false,
|
|
@@ -126,6 +129,11 @@ export const TaxFormRequired = () => (h(TaxAndCashDashboardView, { states: {
|
|
|
126
129
|
// ─── Payout hold statuses not in TaxForm.stories.tsx ─────────────────────────
|
|
127
130
|
export const AccountUnderReview = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "NEW_PAYEE_REVIEW" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
|
|
128
131
|
export const PaymentHoldOnChange = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "PAYMENT_HOLD_ON_CHANGE" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
|
|
132
|
+
export const BalanceUnderThreshold = () => (h(TaxAndCashDashboardView, { states: {
|
|
133
|
+
...baseStates,
|
|
134
|
+
payoutStatus: "BALANCE_UNDER_THRESHOLD",
|
|
135
|
+
minPayoutAmount: "USD50.00",
|
|
136
|
+
}, text: defaultText, callbacks: defaultCallbacks, slots: buildSlots({ belowPayoutThreshold: true }) }));
|
|
129
137
|
export const BeneficiaryNameInvalid = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "BENEFICIARY_NAME_INVALID" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
|
|
130
138
|
export const BeneficiaryNameMismatch = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "BENEFICIARY_NAME_MISMATCH" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
|
|
131
139
|
export const BankTaxNameMismatch = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "BANK_TAX_NAME_MISMATCH" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { intl } from "../../../global/global";
|
|
3
3
|
import { createStyleSheet } from "../../../styling/JSS";
|
|
4
|
+
const holdAlertContainer = (iconColor) => ({
|
|
5
|
+
marginLeft: "-20px",
|
|
6
|
+
"&::part(base)": {
|
|
7
|
+
maxWidth: "850px",
|
|
8
|
+
border: "none",
|
|
9
|
+
backgroundColor: "transparent",
|
|
10
|
+
color: "var(--sqm-text)",
|
|
11
|
+
},
|
|
12
|
+
"& sl-icon::part(base)": {
|
|
13
|
+
color: iconColor,
|
|
14
|
+
},
|
|
15
|
+
});
|
|
4
16
|
const style = {
|
|
5
17
|
ErrorAlertContainer: {
|
|
6
18
|
"&::part(base)": {
|
|
@@ -15,30 +27,9 @@ const style = {
|
|
|
15
27
|
maxWidth: "600px",
|
|
16
28
|
},
|
|
17
29
|
},
|
|
18
|
-
WarningHoldAlertContainer:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
maxWidth: "850px",
|
|
22
|
-
border: "none",
|
|
23
|
-
backgroundColor: "transparent",
|
|
24
|
-
color: "var(--sqm-text)",
|
|
25
|
-
},
|
|
26
|
-
"& sl-icon::part(base)": {
|
|
27
|
-
color: "var(--sqm-warning-color-icon)",
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
ErrorHoldAlertContainer: {
|
|
31
|
-
marginLeft: "-20px",
|
|
32
|
-
"&::part(base)": {
|
|
33
|
-
maxWidth: "850px",
|
|
34
|
-
border: "none",
|
|
35
|
-
backgroundColor: "transparent",
|
|
36
|
-
color: "var(--sqm-text)",
|
|
37
|
-
},
|
|
38
|
-
"& sl-icon::part(base)": {
|
|
39
|
-
color: "var(--sqm-danger-color-icon)",
|
|
40
|
-
},
|
|
41
|
-
},
|
|
30
|
+
WarningHoldAlertContainer: holdAlertContainer("var(--sqm-warning-color-icon)"),
|
|
31
|
+
ErrorHoldAlertContainer: holdAlertContainer("var(--sqm-danger-color-icon)"),
|
|
32
|
+
InfoHoldAlertContainer: holdAlertContainer("var(--sqm-informative-color-icon)"),
|
|
42
33
|
ExpiringSoonAlertContainer: {
|
|
43
34
|
"&::part(base)": {
|
|
44
35
|
backgroundColor: "var(--sl-color-yellow-100)",
|
|
@@ -373,6 +364,18 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
373
364
|
icon: "exclamation-triangle",
|
|
374
365
|
class: sheet.classes.WarningHoldAlertContainer,
|
|
375
366
|
};
|
|
367
|
+
case "BALANCE_UNDER_THRESHOLD":
|
|
368
|
+
return {
|
|
369
|
+
header: text.balanceUnderThresholdHeader,
|
|
370
|
+
description: intl.formatMessage({
|
|
371
|
+
id: "balanceUnderThresholdDescription",
|
|
372
|
+
defaultMessage: text.balanceUnderThresholdDescription,
|
|
373
|
+
}, { minPayoutAmount: states.minPayoutAmount }),
|
|
374
|
+
buttonText: null,
|
|
375
|
+
alertType: "info",
|
|
376
|
+
icon: "info-circle",
|
|
377
|
+
class: sheet.classes.InfoHoldAlertContainer,
|
|
378
|
+
};
|
|
376
379
|
case "PAYMENT_HOLD_ON_CHANGE":
|
|
377
380
|
return {
|
|
378
381
|
header: text.paymentHoldOnChangeHeader,
|
|
@@ -253,6 +253,14 @@ export class TaxAndCashDashboard {
|
|
|
253
253
|
* @uiName Account review alert description
|
|
254
254
|
*/
|
|
255
255
|
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}.";
|
|
256
|
+
/**
|
|
257
|
+
* @uiName Balance under payout minimum alert header
|
|
258
|
+
*/
|
|
259
|
+
this.balanceUnderThresholdHeader = "Your balance is under the minimum payout";
|
|
260
|
+
/**
|
|
261
|
+
* @uiName Balance under payout minimum alert description
|
|
262
|
+
*/
|
|
263
|
+
this.balanceUnderThresholdDescription = "Your total balance is under {minPayoutAmount}, the minimum required for payout.";
|
|
256
264
|
/**
|
|
257
265
|
* @uiName Payment hold on change alert header
|
|
258
266
|
*/
|
|
@@ -1441,6 +1449,48 @@ export class TaxAndCashDashboard {
|
|
|
1441
1449
|
"reflect": false,
|
|
1442
1450
|
"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}.\""
|
|
1443
1451
|
},
|
|
1452
|
+
"balanceUnderThresholdHeader": {
|
|
1453
|
+
"type": "string",
|
|
1454
|
+
"mutable": false,
|
|
1455
|
+
"complexType": {
|
|
1456
|
+
"original": "string",
|
|
1457
|
+
"resolved": "string",
|
|
1458
|
+
"references": {}
|
|
1459
|
+
},
|
|
1460
|
+
"required": false,
|
|
1461
|
+
"optional": false,
|
|
1462
|
+
"docs": {
|
|
1463
|
+
"tags": [{
|
|
1464
|
+
"text": "Balance under payout minimum alert header",
|
|
1465
|
+
"name": "uiName"
|
|
1466
|
+
}],
|
|
1467
|
+
"text": ""
|
|
1468
|
+
},
|
|
1469
|
+
"attribute": "balance-under-threshold-header",
|
|
1470
|
+
"reflect": false,
|
|
1471
|
+
"defaultValue": "\"Your balance is under the minimum payout\""
|
|
1472
|
+
},
|
|
1473
|
+
"balanceUnderThresholdDescription": {
|
|
1474
|
+
"type": "string",
|
|
1475
|
+
"mutable": false,
|
|
1476
|
+
"complexType": {
|
|
1477
|
+
"original": "string",
|
|
1478
|
+
"resolved": "string",
|
|
1479
|
+
"references": {}
|
|
1480
|
+
},
|
|
1481
|
+
"required": false,
|
|
1482
|
+
"optional": false,
|
|
1483
|
+
"docs": {
|
|
1484
|
+
"tags": [{
|
|
1485
|
+
"text": "Balance under payout minimum alert description",
|
|
1486
|
+
"name": "uiName"
|
|
1487
|
+
}],
|
|
1488
|
+
"text": ""
|
|
1489
|
+
},
|
|
1490
|
+
"attribute": "balance-under-threshold-description",
|
|
1491
|
+
"reflect": false,
|
|
1492
|
+
"defaultValue": "\"Your total balance is under {minPayoutAmount}, the minimum required for payout.\""
|
|
1493
|
+
},
|
|
1444
1494
|
"paymentHoldOnChangeHeader": {
|
|
1445
1495
|
"type": "string",
|
|
1446
1496
|
"mutable": false,
|
|
@@ -2175,7 +2225,7 @@ export class TaxAndCashDashboard {
|
|
|
2175
2225
|
"mutable": false,
|
|
2176
2226
|
"complexType": {
|
|
2177
2227
|
"original": "DemoData<UseTaxAndCashDashboardResult>",
|
|
2178
|
-
"resolved": "{ states?: { status?: string; documentType: TaxDocumentType; documentTypeString: string; canEditPayoutInfo: boolean; disabled?: boolean; dateSubmitted?: string; noFormNeeded?: boolean; indirectTaxType?: string; qstNumber?: string; subRegionTaxNumber?: string; subRegion?: string; indirectTaxNumber?: string; province?: string; country?: string; notRegistered?: boolean; isBusinessEntity?: boolean; loading?: boolean; loadingError?: boolean; showNewFormDialog: boolean; hasHold: boolean; payoutStatus: PayoutStatus; veriffLoading: boolean; errors?: { general?: boolean; }; enforceUsTaxComplianceOption?: string; }; }",
|
|
2228
|
+
"resolved": "{ states?: { status?: string; documentType: TaxDocumentType; documentTypeString: string; canEditPayoutInfo: boolean; disabled?: boolean; dateSubmitted?: string; noFormNeeded?: boolean; indirectTaxType?: string; qstNumber?: string; subRegionTaxNumber?: string; subRegion?: string; indirectTaxNumber?: string; province?: string; country?: string; notRegistered?: boolean; isBusinessEntity?: boolean; loading?: boolean; loadingError?: boolean; showNewFormDialog: boolean; hasHold: boolean; payoutStatus: PayoutStatus; minPayoutAmount?: string; veriffLoading: boolean; errors?: { general?: boolean; }; enforceUsTaxComplianceOption?: string; }; }",
|
|
2179
2229
|
"references": {
|
|
2180
2230
|
"DemoData": {
|
|
2181
2231
|
"location": "import",
|
package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js
CHANGED
|
@@ -6,7 +6,7 @@ import { getStatus, } from "../sqm-payout-status-alert/usePayoutStatus";
|
|
|
6
6
|
import { TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../data";
|
|
7
7
|
import { INDIRECT_TAX_PROVINCES, INDIRECT_TAX_SPAIN_REGIONS, } from "../subregions";
|
|
8
8
|
import { useVeriffApp, VERIFF_COMPLETE_EVENT_KEY } from "../useVeriffApp";
|
|
9
|
-
import { taxTypeToName } from "../utils";
|
|
9
|
+
import { formatPayoutThreshold, taxTypeToName } from "../utils";
|
|
10
10
|
import { gql } from "graphql-request";
|
|
11
11
|
const GET_TAX_SETTING = gql `
|
|
12
12
|
query getTenantSettings {
|
|
@@ -126,6 +126,7 @@ export const useTaxAndCashDashboard = (props) => {
|
|
|
126
126
|
showNewFormDialog: showDialog,
|
|
127
127
|
hasHold: !!((_o = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _o === void 0 ? void 0 : _o.hold),
|
|
128
128
|
payoutStatus,
|
|
129
|
+
minPayoutAmount: formatPayoutThreshold(publisher),
|
|
129
130
|
veriffLoading,
|
|
130
131
|
enforceUsTaxComplianceOption,
|
|
131
132
|
},
|
|
@@ -100,3 +100,29 @@ export function getCountryObj({ countryCode, locale, }) {
|
|
|
100
100
|
displayName,
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
+
/** The minimum balance Impact requires before it will issue a payout, e.g. "USD50.00". */
|
|
104
|
+
export function formatPayoutThreshold(publisher) {
|
|
105
|
+
var _a, _b;
|
|
106
|
+
const threshold = (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold;
|
|
107
|
+
if (!threshold)
|
|
108
|
+
return undefined;
|
|
109
|
+
return `${(_b = publisher === null || publisher === void 0 ? void 0 : publisher.currency) !== null && _b !== void 0 ? _b : ""}${threshold}`;
|
|
110
|
+
}
|
|
111
|
+
/** `payoutsAccount.balance` is a formatted string; only `balanceAmount` (minor units) is comparable. */
|
|
112
|
+
export function isBalanceUnderPayoutThreshold(publisher) {
|
|
113
|
+
var _a;
|
|
114
|
+
const rawThreshold = (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold;
|
|
115
|
+
const account = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount;
|
|
116
|
+
if (!rawThreshold || !account)
|
|
117
|
+
return false;
|
|
118
|
+
const threshold = Number(rawThreshold);
|
|
119
|
+
if (!Number.isFinite(threshold) || !Number.isFinite(account.balanceAmount))
|
|
120
|
+
return false;
|
|
121
|
+
const currency = account.currencyCode || (publisher === null || publisher === void 0 ? void 0 : publisher.currency);
|
|
122
|
+
if (!currency)
|
|
123
|
+
return false;
|
|
124
|
+
const scale = 10 **
|
|
125
|
+
new Intl.NumberFormat("en-US", { style: "currency", currency })
|
|
126
|
+
.resolvedOptions().maximumFractionDigits;
|
|
127
|
+
return account.balanceAmount < Math.round(threshold * scale);
|
|
128
|
+
}
|
|
@@ -4288,10 +4288,18 @@ function ShareLinkView(props) {
|
|
|
4288
4288
|
whiteSpace: "nowrap",
|
|
4289
4289
|
userSelect: "none",
|
|
4290
4290
|
lineHeight: "var(--sl-input-height-medium)",
|
|
4291
|
+
overflow: "hidden",
|
|
4292
|
+
textOverflow: "ellipsis",
|
|
4293
|
+
flexGrow: 0,
|
|
4294
|
+
flexShrink: 1,
|
|
4295
|
+
minWidth: 0,
|
|
4296
|
+
direction: "rtl",
|
|
4297
|
+
textAlign: "left",
|
|
4291
4298
|
},
|
|
4292
4299
|
EditInput: {
|
|
4293
4300
|
maxWidth: "260px",
|
|
4294
|
-
|
|
4301
|
+
flexShrink: 0,
|
|
4302
|
+
flexGrow: 1,
|
|
4295
4303
|
"&::part(base)": {
|
|
4296
4304
|
border: "none",
|
|
4297
4305
|
borderRadius: "0",
|
|
@@ -4371,7 +4379,8 @@ function ShareLinkView(props) {
|
|
|
4371
4379
|
vanillaStyle$6),
|
|
4372
4380
|
h("p", { class: sheet.classes.EditLabel }, editLabelText),
|
|
4373
4381
|
h("div", { class: sheet.classes.EditInputWrapper },
|
|
4374
|
-
h("span", { class: sheet.classes.DomainPrefix
|
|
4382
|
+
h("span", { class: sheet.classes.DomainPrefix, title: domainPrefix },
|
|
4383
|
+
h("span", { dir: "ltr" }, domainPrefix)),
|
|
4375
4384
|
h("sl-input", { class: sheet.classes.EditInput, type: "text", value: editValue, onInput: (e) => onEditValueChange(e.target.value), onKeyDown: (e) => {
|
|
4376
4385
|
if (e.key === "/" || e.key === "@")
|
|
4377
4386
|
e.preventDefault();
|