@saasquatch/mint-components 2.2.0-0 → 2.2.0-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist/cjs/{keys-cff24974.js → keys-5a2c9ed2.js} +4 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +12 -16
  5. package/dist/cjs/sqm-big-stat_46.cjs.entry.js +22 -26
  6. package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
  7. package/dist/cjs/sqm-email-verification_2.cjs.entry.js +14 -35
  8. package/dist/cjs/{sqm-partner-info-modal-view-540886b4.js → sqm-partner-info-modal-view-431ff976.js} +15 -10
  9. package/dist/cjs/sqm-stencilbook.cjs.entry.js +17 -7
  10. package/dist/cjs/{sqm-user-info-form-view-01bf2f41.js → sqm-user-info-form-view-f1127a60.js} +2 -2
  11. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +1 -1
  12. package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +14 -4
  13. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +15 -10
  14. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +1 -30
  15. package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +13 -26
  16. package/dist/collection/components/sqm-widget-verification/keys.js +2 -0
  17. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +0 -59
  18. package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +23 -10
  19. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +5 -4
  20. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +1 -30
  21. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +0 -1
  22. package/dist/collection/components/tax-and-cash/sqm-user-info-form/UserInfoFormView.stories.js +0 -1
  23. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +2 -2
  24. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +0 -25
  25. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +5 -6
  26. package/dist/esm/keys-d7c5c851.js +8 -0
  27. package/dist/esm/loader.js +1 -1
  28. package/dist/esm/mint-components.js +1 -1
  29. package/dist/esm/sqm-banking-info-form_10.entry.js +12 -16
  30. package/dist/esm/sqm-big-stat_46.entry.js +22 -26
  31. package/dist/esm/sqm-code-verification.entry.js +1 -1
  32. package/dist/esm/sqm-email-verification_2.entry.js +14 -35
  33. package/dist/esm/{sqm-partner-info-modal-view-eec8606e.js → sqm-partner-info-modal-view-b3c33bc3.js} +15 -10
  34. package/dist/esm/sqm-stencilbook.entry.js +17 -7
  35. package/dist/esm/{sqm-user-info-form-view-365cef98.js → sqm-user-info-form-view-e732dc4d.js} +2 -2
  36. package/dist/esm/sqm-widget-verification-controller.entry.js +1 -1
  37. package/dist/esm-es5/keys-d7c5c851.js +1 -0
  38. package/dist/esm-es5/loader.js +1 -1
  39. package/dist/esm-es5/mint-components.js +1 -1
  40. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  41. package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -1
  42. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  43. package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
  44. package/dist/esm-es5/sqm-partner-info-modal-view-b3c33bc3.js +1 -0
  45. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  46. package/dist/esm-es5/{sqm-user-info-form-view-365cef98.js → sqm-user-info-form-view-e732dc4d.js} +1 -1
  47. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  48. package/dist/mint-components/mint-components.esm.js +1 -1
  49. package/dist/mint-components/{p-4d009702.system.entry.js → p-0b2a428f.system.entry.js} +1 -1
  50. package/dist/mint-components/p-16416781.system.entry.js +1 -0
  51. package/dist/mint-components/p-1bff74c0.js +1 -0
  52. package/dist/mint-components/p-1c413a06.system.js +1 -1
  53. package/dist/mint-components/{p-2d3a12f2.entry.js → p-36b91873.entry.js} +2 -2
  54. package/dist/mint-components/{p-038d0b8f.entry.js → p-440d3788.entry.js} +3 -3
  55. package/dist/mint-components/p-4c47beb0.system.js +1 -0
  56. package/dist/mint-components/{p-55d4caaa.entry.js → p-63102c04.entry.js} +7 -13
  57. package/dist/mint-components/p-6d15ce09.system.entry.js +1 -0
  58. package/dist/mint-components/{p-a0986077.system.entry.js → p-70a90ad8.system.entry.js} +1 -1
  59. package/dist/mint-components/{p-d273eb05.entry.js → p-7a744cb2.entry.js} +2 -2
  60. package/dist/mint-components/p-837c4cf8.js +1 -0
  61. package/dist/mint-components/p-987a54e2.system.js +1 -0
  62. package/dist/mint-components/{p-88c9cc1b.entry.js → p-a67f2ccf.entry.js} +1 -1
  63. package/dist/mint-components/{p-64041ee1.entry.js → p-d43c728e.entry.js} +22 -22
  64. package/dist/mint-components/{p-52eca331.js → p-dd5d8095.js} +1 -1
  65. package/dist/mint-components/{p-6194855b.system.entry.js → p-ecdbe09b.system.entry.js} +1 -1
  66. package/dist/mint-components/{p-a2db4345.system.js → p-ed3ae5ba.system.js} +1 -1
  67. package/dist/mint-components/{p-037c1a4f.system.entry.js → p-fe944f94.system.entry.js} +1 -1
  68. package/dist/types/components/sqm-partner-info-modal/PartnerInfoModal.stories.d.ts +1 -0
  69. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +0 -2
  70. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +0 -6
  71. package/dist/types/components/sqm-widget-verification/keys.d.ts +2 -0
  72. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +0 -10
  73. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +0 -5
  74. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +0 -1
  75. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +0 -4
  76. package/dist/types/components.d.ts +0 -48
  77. package/docs/docs.docx +0 -0
  78. package/docs/raisins.json +1 -1
  79. package/grapesjs/grapesjs.js +1 -1
  80. package/package.json +1 -1
  81. package/dist/esm/keys-db1897ae.js +0 -6
  82. package/dist/esm-es5/keys-db1897ae.js +0 -1
  83. package/dist/esm-es5/sqm-partner-info-modal-view-eec8606e.js +0 -1
  84. package/dist/mint-components/p-39840341.js +0 -1
  85. package/dist/mint-components/p-574a4089.system.js +0 -1
  86. package/dist/mint-components/p-7d5956ec.system.entry.js +0 -1
  87. package/dist/mint-components/p-91369a5f.js +0 -1
  88. package/dist/mint-components/p-b2a99637.system.js +0 -1
  89. package/dist/mint-components/p-ea5eec69.system.entry.js +0 -1
@@ -2,9 +2,8 @@ import { useLocale, useMutation, useQuery, useSetParent, } from "@saasquatch/com
2
2
  import { useEffect, useMemo, useState } from "@saasquatch/universal-hooks";
3
3
  import { gql } from "graphql-request";
4
4
  import { TAX_FORM_UPDATED_EVENT_KEY } from "../tax-and-cash/eventKeys";
5
- import { VERIFICATION_PARENT_NAMESPACE } from "../sqm-widget-verification/keys";
5
+ import { PARTNER_CREATED_NAMESPACE } from "../sqm-widget-verification/keys";
6
6
  import { GET_FINANCE_NETWORK_SETTINGS, } from "../tax-and-cash/data";
7
- // new field under impactConnection:{ resolvedByEmail: boolean } - determines if connection came from managed identity
8
7
  export const GET_USER_PARTNER_INFO = gql `
9
8
  query getUserPartnerInfo {
10
9
  user: viewer {
@@ -101,30 +100,22 @@ const START_IMPACT_CONNECTION = gql `
101
100
  }
102
101
  }
103
102
  `;
104
- const GET_BRAND_NAME = gql `
105
- query getTenantSettings {
106
- tenantSettings {
107
- companyName
108
- }
109
- }
110
- `;
111
103
  export function usePartnerInfoModal(props) {
112
- var _a, _b, _c, _d, _e, _f, _g;
104
+ var _a, _b, _c, _d, _e, _f;
113
105
  const locale = useLocale();
114
- const setVerificationContext = useSetParent(VERIFICATION_PARENT_NAMESPACE);
106
+ const setPartnerCreated = useSetParent(PARTNER_CREATED_NAMESPACE);
115
107
  const { data: userData, loading: userLoading, refetch, } = useQuery(GET_USER_PARTNER_INFO, {});
116
108
  const user = userData === null || userData === void 0 ? void 0 : userData.user;
117
109
  const { data: currenciesData, loading: currenciesLoading } = useQuery(GET_CURRENCIES, { variables: { locale } });
118
110
  const { data: countriesData, loading: countriesLoading } = useQuery(GET_COUNTRIES, {});
119
- const { data: tenantSettingsData } = useQuery(GET_BRAND_NAME, {});
120
111
  const { data: financeNetworkData } = useQuery(GET_FINANCE_NETWORK_SETTINGS, {
121
112
  variables: { filter: {} },
122
113
  });
123
- const [startImpactConnection, { loading: connectLoading, errors: connectErrors },] = useMutation(START_IMPACT_CONNECTION);
114
+ const [startImpactConnection, { loading: connectLoading }] = useMutation(START_IMPACT_CONNECTION);
124
115
  const [allowBankingCollection, setAllowBankingCollection] = useState(false);
125
- const [checkboxError, setCheckboxError] = useState("");
126
116
  // No pre-filled country, use locale to determine countryCode instead
127
- const [countryCode, setCountryCode] = useState(((_b = (_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.countryCode) || "");
117
+ const [countryCode, setCountryCode] = useState(((_b = (_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.countryCode) ||
118
+ locale.replace(/^.*_/, ""));
128
119
  const [currency, setCurrency] = useState(((_d = (_c = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _c === void 0 ? void 0 : _c.publisher) === null || _d === void 0 ? void 0 : _d.currency) || "");
129
120
  const countries = ((_e = countriesData === null || countriesData === void 0 ? void 0 : countriesData.impactPayoutCountries) === null || _e === void 0 ? void 0 : _e.data) || [];
130
121
  // copied from useTaxAndCash for displaying currencies based on country - could be in helper?
@@ -198,13 +189,11 @@ export function usePartnerInfoModal(props) {
198
189
  function onCheckboxChange(e) {
199
190
  const checked = e.target.checked;
200
191
  setAllowBankingCollection(checked);
201
- if (checked)
202
- setCheckboxError("");
203
192
  }
204
193
  async function onSubmit() {
205
194
  var _a, _b;
206
195
  if (!allowBankingCollection) {
207
- setCheckboxError(props.missingFieldsErrorText);
196
+ setError(props.missingFieldsErrorText);
208
197
  return;
209
198
  }
210
199
  if (!countryCode || !currency) {
@@ -212,7 +201,10 @@ export function usePartnerInfoModal(props) {
212
201
  return;
213
202
  }
214
203
  setError("");
215
- setCheckboxError("");
204
+ if (!user) {
205
+ setError(props.networkErrorText);
206
+ return;
207
+ }
216
208
  try {
217
209
  const vars = {
218
210
  user: {
@@ -221,8 +213,6 @@ export function usePartnerInfoModal(props) {
221
213
  },
222
214
  firstName: user.firstName,
223
215
  lastName: user.lastName,
224
- // phoneNumber: null,
225
- // phoneNumberCountryCode: null,
226
216
  countryCode,
227
217
  currency,
228
218
  };
@@ -233,7 +223,6 @@ export function usePartnerInfoModal(props) {
233
223
  }
234
224
  const connectionResult = result
235
225
  .startImpactConnection;
236
- console.log(result, connectionResult, "result and connectionResult from creating partner from modal");
237
226
  if (!(connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.success)) {
238
227
  const validationMsg = (_b = connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.validationErrors) === null || _b === void 0 ? void 0 : _b.map((e) => e.message).join(". ");
239
228
  setError(validationMsg || props.networkErrorText);
@@ -242,8 +231,8 @@ export function usePartnerInfoModal(props) {
242
231
  }
243
232
  window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
244
233
  await refetch();
234
+ setPartnerCreated === null || setPartnerCreated === void 0 ? void 0 : setPartnerCreated(true);
245
235
  setSuccess(true);
246
- setVerificationContext(true);
247
236
  }
248
237
  catch (e) {
249
238
  console.error("Partner creation error:", e);
@@ -258,16 +247,14 @@ export function usePartnerInfoModal(props) {
258
247
  open: showModal,
259
248
  loading: userLoading || countriesLoading || currenciesLoading,
260
249
  submitting: connectLoading,
261
- isExistingPartner: impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.publisher,
250
+ isExistingPartner: !!(impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.publisher),
262
251
  countryCode,
263
252
  currency,
264
253
  error,
265
254
  success,
266
- brandName: ((_g = tenantSettingsData === null || tenantSettingsData === void 0 ? void 0 : tenantSettingsData.tenantSettings) === null || _g === void 0 ? void 0 : _g.companyName) || "",
267
255
  filteredCountries: filteredCountries || [],
268
256
  filteredCurrencies: filteredCurrencies || [],
269
257
  allowBankingCollection,
270
- checkboxError,
271
258
  disabled: userLoading || connectLoading,
272
259
  },
273
260
  callbacks: {
@@ -1,4 +1,6 @@
1
1
  export const SHOW_CODE_NAMESPACE = "sq:code-verification";
2
+ export const SHOW_PARTNER_MODAL_NAMESPACE = "sq:show-partner-modal";
3
+ export const PARTNER_CREATED_NAMESPACE = "sq:partner-created";
2
4
  export const VERIFICATION_EMAIL_NAMESPACE = "sq:verification-email";
3
5
  export const VERIFICATION_PARENT_NAMESPACE = "sq:verification-context";
4
6
  export const VERIFICATION_EVENT_KEY = "sq:code-verified";
@@ -52,16 +52,6 @@ export class WidgetVerification {
52
52
  * @uiGroup General Text
53
53
  */
54
54
  this.general_widgetHeaderWithPartnerCreation = "Let's get you ready for rewards";
55
- /**
56
- * @uiName General verify widget header text
57
- * @uiGroup General Text
58
- */
59
- this.general_verifyEmailHeader = "Verify your email";
60
- /**
61
- * @uiName General verify widget description text
62
- * @uiGroup General Text
63
- */
64
- this.general_verifyEmailDescription = "To get your cash paid out directly to your bank account, please complete your account setup";
65
55
  /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66
56
  EMAIL STEP PROPS
67
57
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
@@ -246,7 +236,6 @@ export class WidgetVerification {
246
236
  if (props.showPartnerModal && ((_a = partnerState === null || partnerState === void 0 ? void 0 : partnerState.states) === null || _a === void 0 ? void 0 : _a.open) === false) {
247
237
  return h("div", null);
248
238
  }
249
- // const generalText = this.getStepTextProps("general_");
250
239
  const partnerText = this.getStepTextProps("createPartnerStep_");
251
240
  const dialogLabel = this.general_widgetHeaderWithPartnerCreation;
252
241
  const renderStepContent = () => {
@@ -298,54 +287,6 @@ export class WidgetVerification {
298
287
  "reflect": false,
299
288
  "defaultValue": "\"Let's get you ready for rewards\""
300
289
  },
301
- "general_verifyEmailHeader": {
302
- "type": "string",
303
- "mutable": false,
304
- "complexType": {
305
- "original": "string",
306
- "resolved": "string",
307
- "references": {}
308
- },
309
- "required": false,
310
- "optional": false,
311
- "docs": {
312
- "tags": [{
313
- "text": "General verify widget header text",
314
- "name": "uiName"
315
- }, {
316
- "text": "General Text",
317
- "name": "uiGroup"
318
- }],
319
- "text": ""
320
- },
321
- "attribute": "general_verify-email-header",
322
- "reflect": false,
323
- "defaultValue": "\"Verify your email\""
324
- },
325
- "general_verifyEmailDescription": {
326
- "type": "string",
327
- "mutable": false,
328
- "complexType": {
329
- "original": "string",
330
- "resolved": "string",
331
- "references": {}
332
- },
333
- "required": false,
334
- "optional": false,
335
- "docs": {
336
- "tags": [{
337
- "text": "General verify widget description text",
338
- "name": "uiName"
339
- }, {
340
- "text": "General Text",
341
- "name": "uiGroup"
342
- }],
343
- "text": ""
344
- },
345
- "attribute": "general_verify-email-description",
346
- "reflect": false,
347
- "defaultValue": "\"To get your cash paid out directly to your bank account, please complete your account setup\""
348
- },
349
290
  "emailStep_verifyEmailHeaderText": {
350
291
  "type": "string",
351
292
  "mutable": false,
@@ -1,8 +1,8 @@
1
- import { useLazyQuery, useParentState, useSetParent, useUserIdentity, } from "@saasquatch/component-boilerplate";
1
+ import { useLazyQuery, useParentState, useSetParent, } from "@saasquatch/component-boilerplate";
2
2
  import { useState } from "@saasquatch/stencil-hooks";
3
3
  import { useEffect } from "@saasquatch/universal-hooks";
4
4
  import { gql } from "graphql-request";
5
- import { SHOW_CODE_NAMESPACE, VERIFICATION_EMAIL_NAMESPACE, VERIFICATION_PARENT_NAMESPACE, } from "./keys";
5
+ import { PARTNER_CREATED_NAMESPACE, SHOW_CODE_NAMESPACE, SHOW_PARTNER_MODAL_NAMESPACE, VERIFICATION_PARENT_NAMESPACE, } from "./keys";
6
6
  const USER_LOOKUP = gql `
7
7
  query checkUserVerification {
8
8
  viewer {
@@ -23,18 +23,20 @@ const USER_LOOKUP = gql `
23
23
  }
24
24
  `;
25
25
  export function useWidgetVerification() {
26
- const userIdentity = useUserIdentity();
27
- const [showCode, setShowCode] = useParentState({
26
+ const [showCode] = useParentState({
28
27
  namespace: SHOW_CODE_NAMESPACE,
29
28
  initialValue: false,
30
29
  });
31
- const [email, setEmail] = useParentState({
32
- namespace: VERIFICATION_EMAIL_NAMESPACE,
33
- initialValue: userIdentity === null || userIdentity === void 0 ? void 0 : userIdentity.email,
34
- });
35
30
  const setContext = useSetParent(VERIFICATION_PARENT_NAMESPACE);
36
31
  const [loading, setLoading] = useState(true);
37
- const [showPartnerModal, setShowPartnerModal] = useState(false);
32
+ const [showPartnerModal, setShowPartnerModal] = useParentState({
33
+ namespace: SHOW_PARTNER_MODAL_NAMESPACE,
34
+ initialValue: false,
35
+ });
36
+ const [partnerCreated, setPartnerCreated] = useParentState({
37
+ namespace: PARTNER_CREATED_NAMESPACE,
38
+ initialValue: false,
39
+ });
38
40
  const [fetch] = useLazyQuery(USER_LOOKUP);
39
41
  useEffect(() => {
40
42
  const checkUser = async () => {
@@ -69,7 +71,18 @@ export function useWidgetVerification() {
69
71
  };
70
72
  const onPartnerModalComplete = () => {
71
73
  setShowPartnerModal(false);
74
+ setPartnerCreated(false);
72
75
  setContext(true);
73
76
  };
74
- return { showCode, showPartnerModal, onVerification, onPartnerModalComplete, loading };
77
+ useEffect(() => {
78
+ if (partnerCreated)
79
+ onPartnerModalComplete();
80
+ }, [partnerCreated]);
81
+ return {
82
+ showCode,
83
+ showPartnerModal,
84
+ onVerification,
85
+ onPartnerModalComplete,
86
+ loading,
87
+ };
75
88
  }
@@ -75,8 +75,8 @@ export function useIndirectTaxForm(props) {
75
75
  const formRef = useRef(null);
76
76
  const context = useParentValue(TAX_FORM_CONTEXT_NAMESPACE);
77
77
  const [step, setStep] = useParent(TAX_CONTEXT_NAMESPACE);
78
- const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = useMutation(CONNECT_PARTNER);
79
- const [completeImpactPartner, { loading: completeLoading, errors: completeErrors },] = useMutation(COMPLETE_PARTNER);
78
+ const [connectImpactPartner, { loading: connectLoading }] = useMutation(CONNECT_PARTNER);
79
+ const [completeImpactPartner, { loading: completeLoading }] = useMutation(COMPLETE_PARTNER);
80
80
  const userForm = useParentValue(USER_FORM_CONTEXT_NAMESPACE);
81
81
  const { data: userData, refetch, errors: userError, } = useParentQueryValue(USER_QUERY_NAMESPACE);
82
82
  const { data: _countriesRes, loading: countriesLoading } = useParentQueryValue(COUNTRIES_QUERY_NAMESPACE);
@@ -161,10 +161,11 @@ export function useIndirectTaxForm(props) {
161
161
  additionalTaxId: formData.qstNumber,
162
162
  withholdingTaxId: formData.subRegionTaxNumber,
163
163
  };
164
- //AL: TODO completePartnerMutation might change
164
+ // If the partner has already been started call completeImpactConnection
165
+ // to fill in the remaining details. Otherwise create from scratch.
165
166
  let result = null;
166
167
  let connectionResult;
167
- if ((_b = (_a = userData === null || userData === void 0 ? void 0 : userData.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.connected) {
168
+ if (((_b = (_a = userData === null || userData === void 0 ? void 0 : userData.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.connectionStatus) === "STARTED") {
168
169
  result = await completeImpactPartner({
169
170
  vars,
170
171
  });
@@ -84,11 +84,6 @@ export class TaxAndCashMonolith {
84
84
  * @uiGroup Step 1 Properties
85
85
  */
86
86
  this.step1_currency = "Currency";
87
- /**
88
- * @uiName Currency field help text
89
- * @uiGroup Step 1 Properties
90
- */
91
- this.step1_currencyHelpText = "Choose your preferred payout currency";
92
87
  /**
93
88
  * Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
94
89
  * @uiName Terms and conditions checkbox
@@ -1474,30 +1469,6 @@ export class TaxAndCashMonolith {
1474
1469
  "reflect": false,
1475
1470
  "defaultValue": "\"Currency\""
1476
1471
  },
1477
- "step1_currencyHelpText": {
1478
- "type": "string",
1479
- "mutable": false,
1480
- "complexType": {
1481
- "original": "string",
1482
- "resolved": "string",
1483
- "references": {}
1484
- },
1485
- "required": false,
1486
- "optional": false,
1487
- "docs": {
1488
- "tags": [{
1489
- "text": "Currency field help text",
1490
- "name": "uiName"
1491
- }, {
1492
- "text": "Step 1 Properties",
1493
- "name": "uiGroup"
1494
- }],
1495
- "text": ""
1496
- },
1497
- "attribute": "step-1_currency-help-text",
1498
- "reflect": false,
1499
- "defaultValue": "\"Choose your preferred payout currency\""
1500
- },
1501
1472
  "step1_allowBankingCollection": {
1502
1473
  "type": "string",
1503
1474
  "mutable": false,
@@ -5838,7 +5809,7 @@ export class TaxAndCashMonolith {
5838
5809
  "mutable": false,
5839
5810
  "complexType": {
5840
5811
  "original": "DemoData<TaxAndCashMonolith>",
5841
- "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_currencyHelpText?: 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_classificationLabel?: 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_currencyHelpText\" | \"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_classificationLabel\" | \"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; }",
5812
+ "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_classificationLabel?: 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_classificationLabel\" | \"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; }",
5842
5813
  "references": {
5843
5814
  "DemoData": {
5844
5815
  "location": "import",
@@ -8,7 +8,6 @@ function getCurrentStep(user) {
8
8
  return "/1";
9
9
  }
10
10
  const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, } = user.impactConnection.publisher;
11
- console.log(user.impactConnection, "publisher data in useTaxAndCash to determine step new new");
12
11
  if (user.impactConnection.connectionStatus === "STARTED") {
13
12
  return "/1";
14
13
  }
@@ -70,7 +70,6 @@ const defaultText = {
70
70
  region: "Region",
71
71
  postalCode: "Postal Code",
72
72
  currency: "Currency",
73
- currencyHelpText: "Select your preferred currency for payouts",
74
73
  allowBankingCollection: "I agree to the {termsAndConditionsLink}",
75
74
  personalInformation: "Personal Information",
76
75
  continueButton: "Continue",
@@ -287,7 +287,7 @@ export const UserInfoFormView = (props) => {
287
287
  default:
288
288
  regionLabel = text.state;
289
289
  }
290
- // when creating an impact connection without sending phoneNumber data, the impactAPI defaults the value to "000000" and the phoneNumberCountryCode to "DZ"
290
+ // when creating an impact connection without sending phoneNumber data, the impactAPI defaults the value to "0000000" and the phoneNumberCountryCode to "DZ"
291
291
  function isDisabledPartnerInput(field) {
292
292
  var _a, _b;
293
293
  if (((_a = data.partnerData) === null || _a === void 0 ? void 0 : _a.phoneNumber) === "0000000" &&
@@ -417,7 +417,7 @@ export const UserInfoFormView = (props) => {
417
417
  helpText: formatErrorMessage(text.postalCode, formState.errors.postalCode),
418
418
  }
419
419
  : {}), { required: true })),
420
- h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label, base: input-base", name: "/currency", label: text.currency, menu: true, value: formState.currency, disabled: states.disabled || isDisabledPartnerInput("currency"), helpText: text.currencyHelpText }, (((_r = formState.errors) === null || _r === void 0 ? void 0 : _r.currency) ? {
420
+ h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label, base: input-base", name: "/currency", label: text.currency, menu: true, value: formState.currency, disabled: states.disabled || isDisabledPartnerInput("currency") }, (((_r = formState.errors) === null || _r === void 0 ? void 0 : _r.currency) ? {
421
421
  class: classes.ErrorInput,
422
422
  helpText: formatErrorMessage(text.currency, formState.errors.currency),
423
423
  }
@@ -61,10 +61,6 @@ export class TaxForm {
61
61
  * @uiName Currency field label
62
62
  */
63
63
  this.currency = "Currency";
64
- /**
65
- * @uiName Currency field help text
66
- */
67
- this.currencyHelpText = "Choose your preferred payout currency";
68
64
  /**
69
65
  * @uiName Setup progress
70
66
  */
@@ -443,27 +439,6 @@ export class TaxForm {
443
439
  "reflect": false,
444
440
  "defaultValue": "\"Currency\""
445
441
  },
446
- "currencyHelpText": {
447
- "type": "string",
448
- "mutable": false,
449
- "complexType": {
450
- "original": "string",
451
- "resolved": "string",
452
- "references": {}
453
- },
454
- "required": false,
455
- "optional": false,
456
- "docs": {
457
- "tags": [{
458
- "text": "Currency field help text",
459
- "name": "uiName"
460
- }],
461
- "text": ""
462
- },
463
- "attribute": "currency-help-text",
464
- "reflect": false,
465
- "defaultValue": "\"Choose your preferred payout currency\""
466
- },
467
442
  "formStep": {
468
443
  "type": "string",
469
444
  "mutable": false,
@@ -25,8 +25,8 @@ export function useUserInfoForm(props) {
25
25
  const [step, setStep] = useParent(TAX_CONTEXT_NAMESPACE);
26
26
  const [userFormContext, setUserFormContext] = useParent(USER_FORM_CONTEXT_NAMESPACE);
27
27
  const user = useUserIdentity();
28
- const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = useMutation(CONNECT_PARTNER);
29
- const [completeImpactPartner, { loading: completeLoading, errors: completeErrors },] = useMutation(COMPLETE_PARTNER);
28
+ const [connectImpactPartner, { loading: connectLoading }] = useMutation(CONNECT_PARTNER);
29
+ const [completeImpactPartner, { loading: completeLoading }] = useMutation(COMPLETE_PARTNER);
30
30
  const { data: tenantData } = useQuery(GET_INDIRECT_TAX_COUNTRY_CODE, {});
31
31
  const { data, loading, refetch, errors: userError, } = useParentQueryValue(USER_QUERY_NAMESPACE);
32
32
  const _currencies = useParentValue(CURRENCIES_NAMESPACE);
@@ -61,7 +61,7 @@ export function useUserInfoForm(props) {
61
61
  lastName: user.impactConnection.user.lastName,
62
62
  countryCode: user.impactConnection.publisher.countryCode,
63
63
  currency: user.impactConnection.publisher.currency,
64
- // when creating an impact connection without sending phoneNumber data, the impactAPI defaults the value to "000000" and the phoneNumberCountryCode to "DZ"
64
+ // when creating an impact connection without sending phoneNumber data, the impactAPI defaults the value to "0000000" and the phoneNumberCountryCode to "DZ"
65
65
  phoneNumberCountryCode: user.impactConnection.publisher.phoneNumber === "0000000"
66
66
  ? null
67
67
  : user.impactConnection.publisher.phoneNumberCountryCode,
@@ -155,13 +155,12 @@ export function useUserInfoForm(props) {
155
155
  phoneNumber: formData.phoneNumber,
156
156
  phoneNumberCountryCode: formData.phoneNumberCountryCode,
157
157
  };
158
- //AL: TODO completePartnerMutation might change
159
- // if user already has an impact connection, call completeImpactPartner to update their information instead of connectPartner
158
+ // If the partner has already been started call completeImpactPartner to
159
+ // update the remaining details. Otherwise create a new connection.
160
160
  const userData = data === null || data === void 0 ? void 0 : data.user;
161
161
  let result = null;
162
162
  let connectionResult;
163
163
  if (((_a = userData === null || userData === void 0 ? void 0 : userData.impactConnection) === null || _a === void 0 ? void 0 : _a.connectionStatus) === "STARTED") {
164
- console.log(vars, "values for completeImpactPartner");
165
164
  result = await completeImpactPartner({
166
165
  vars,
167
166
  });
@@ -0,0 +1,8 @@
1
+ const SHOW_CODE_NAMESPACE = "sq:code-verification";
2
+ const SHOW_PARTNER_MODAL_NAMESPACE = "sq:show-partner-modal";
3
+ const PARTNER_CREATED_NAMESPACE = "sq:partner-created";
4
+ const VERIFICATION_EMAIL_NAMESPACE = "sq:verification-email";
5
+ const VERIFICATION_PARENT_NAMESPACE = "sq:verification-context";
6
+ const VERIFICATION_EVENT_KEY = "sq:code-verified";
7
+
8
+ export { PARTNER_CREATED_NAMESPACE as P, SHOW_CODE_NAMESPACE as S, VERIFICATION_PARENT_NAMESPACE as V, SHOW_PARTNER_MODAL_NAMESPACE as a, VERIFICATION_EMAIL_NAMESPACE as b, VERIFICATION_EVENT_KEY as c };