@moovio/sdk 0.3.3 → 0.3.5
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/docs/sdks/accounts/README.md +2 -4
- package/funcs/accountsUpdate.d.ts.map +1 -1
- package/funcs/accountsUpdate.js +1 -3
- package/funcs/accountsUpdate.js.map +1 -1
- package/funcs/avatarsGet.d.ts +1 -7
- package/funcs/avatarsGet.d.ts.map +1 -1
- package/funcs/avatarsGet.js +2 -12
- package/funcs/avatarsGet.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/capabilityrequirement.d.ts +2 -2
- package/models/components/capabilityrequirement.d.ts.map +1 -1
- package/models/components/capabilityrequirement.js +2 -2
- package/models/components/capabilityrequirement.js.map +1 -1
- package/models/components/enrichedbusinessresponse.d.ts +30 -0
- package/models/components/enrichedbusinessresponse.d.ts.map +1 -0
- package/models/components/{customersupportupdate.js → enrichedbusinessresponse.js} +20 -27
- package/models/components/enrichedbusinessresponse.js.map +1 -0
- package/models/components/enrichedindustries.d.ts +30 -0
- package/models/components/enrichedindustries.d.ts.map +1 -0
- package/models/components/{achpaymentsettingsupdate.js → enrichedindustries.js} +20 -19
- package/models/components/enrichedindustries.js.map +1 -0
- package/models/components/index.d.ts +6 -7
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +6 -7
- package/models/components/index.js.map +1 -1
- package/models/components/patchaccount.d.ts +116 -0
- package/models/components/patchaccount.d.ts.map +1 -0
- package/models/components/patchaccount.js +153 -0
- package/models/components/patchaccount.js.map +1 -0
- package/models/components/{createbusinessprofileupdate.d.ts → patchbusiness.d.ts} +16 -20
- package/models/components/patchbusiness.d.ts.map +1 -0
- package/models/components/{createbusinessprofileupdate.js → patchbusiness.js} +19 -17
- package/models/components/patchbusiness.js.map +1 -0
- package/models/components/patchindividual.d.ts +47 -0
- package/models/components/patchindividual.d.ts.map +1 -0
- package/models/components/{createindividualprofileupdate.js → patchindividual.js} +17 -17
- package/models/components/patchindividual.js.map +1 -0
- package/models/components/patchprofile.d.ts +42 -0
- package/models/components/patchprofile.d.ts.map +1 -0
- package/models/components/{settingsupdate.js → patchprofile.js} +23 -23
- package/models/components/patchprofile.js.map +1 -0
- package/models/operations/getavatar.d.ts +2 -23
- package/models/operations/getavatar.d.ts.map +1 -1
- package/models/operations/getavatar.js +3 -38
- package/models/operations/getavatar.js.map +1 -1
- package/models/operations/getenrichmentprofile.d.ts +2 -2
- package/models/operations/getenrichmentprofile.d.ts.map +1 -1
- package/models/operations/getenrichmentprofile.js +2 -2
- package/models/operations/getenrichmentprofile.js.map +1 -1
- package/models/operations/listindustries.d.ts +2 -2
- package/models/operations/listindustries.d.ts.map +1 -1
- package/models/operations/listindustries.js +2 -2
- package/models/operations/listindustries.js.map +1 -1
- package/models/operations/listinstitutions.d.ts +2 -2
- package/models/operations/listinstitutions.d.ts.map +1 -1
- package/models/operations/listinstitutions.js +2 -2
- package/models/operations/listinstitutions.js.map +1 -1
- package/models/operations/updateaccount.d.ts +2 -2
- package/models/operations/updateaccount.d.ts.map +1 -1
- package/models/operations/updateaccount.js +4 -4
- package/models/operations/updateaccount.js.map +1 -1
- package/package.json +1 -1
- package/sdk/avatars.d.ts +1 -5
- package/sdk/avatars.d.ts.map +1 -1
- package/sdk/avatars.js +1 -3
- package/sdk/avatars.js.map +1 -1
- package/src/funcs/accountsUpdate.ts +1 -3
- package/src/funcs/avatarsGet.ts +3 -13
- package/src/lib/config.ts +2 -2
- package/src/models/components/capabilityrequirement.ts +4 -4
- package/src/models/components/enrichedbusinessresponse.ts +72 -0
- package/src/models/components/enrichedindustries.ts +72 -0
- package/src/models/components/index.ts +6 -7
- package/src/models/components/patchaccount.ts +281 -0
- package/src/models/components/{createbusinessprofileupdate.ts → patchbusiness.ts} +24 -32
- package/src/models/components/{createindividualprofileupdate.ts → patchindividual.ts} +24 -25
- package/src/models/components/patchprofile.ts +87 -0
- package/src/models/operations/getavatar.ts +4 -70
- package/src/models/operations/getenrichmentprofile.ts +4 -4
- package/src/models/operations/listindustries.ts +4 -4
- package/src/models/operations/listinstitutions.ts +4 -4
- package/src/models/operations/updateaccount.ts +6 -6
- package/src/sdk/avatars.ts +2 -4
- package/models/components/achpaymentsettingsupdate.d.ts +0 -32
- package/models/components/achpaymentsettingsupdate.d.ts.map +0 -1
- package/models/components/achpaymentsettingsupdate.js.map +0 -1
- package/models/components/createaccountupdate.d.ts +0 -93
- package/models/components/createaccountupdate.d.ts.map +0 -1
- package/models/components/createaccountupdate.js +0 -125
- package/models/components/createaccountupdate.js.map +0 -1
- package/models/components/createbusinessprofileupdate.d.ts.map +0 -1
- package/models/components/createbusinessprofileupdate.js.map +0 -1
- package/models/components/createindividualprofileupdate.d.ts +0 -44
- package/models/components/createindividualprofileupdate.d.ts.map +0 -1
- package/models/components/createindividualprofileupdate.js.map +0 -1
- package/models/components/createprofileupdate.d.ts +0 -33
- package/models/components/createprofileupdate.d.ts.map +0 -1
- package/models/components/createprofileupdate.js +0 -73
- package/models/components/createprofileupdate.js.map +0 -1
- package/models/components/customersupportupdate.d.ts +0 -43
- package/models/components/customersupportupdate.d.ts.map +0 -1
- package/models/components/customersupportupdate.js.map +0 -1
- package/models/components/settingsupdate.d.ts +0 -39
- package/models/components/settingsupdate.d.ts.map +0 -1
- package/models/components/settingsupdate.js.map +0 -1
- package/src/models/components/achpaymentsettingsupdate.ts +0 -69
- package/src/models/components/createaccountupdate.ts +0 -227
- package/src/models/components/createprofileupdate.ts +0 -82
- package/src/models/components/customersupportupdate.ts +0 -96
- package/src/models/components/settingsupdate.ts +0 -84
|
@@ -33,7 +33,6 @@ __exportStar(require("./achparticipant.js"), exports);
|
|
|
33
33
|
__exportStar(require("./achpaymentdetails.js"), exports);
|
|
34
34
|
__exportStar(require("./achpaymentdetailserror.js"), exports);
|
|
35
35
|
__exportStar(require("./achpaymentsettings.js"), exports);
|
|
36
|
-
__exportStar(require("./achpaymentsettingsupdate.js"), exports);
|
|
37
36
|
__exportStar(require("./achreturncode.js"), exports);
|
|
38
37
|
__exportStar(require("./achtransactiondetails.js"), exports);
|
|
39
38
|
__exportStar(require("./achtransactionstatus.js"), exports);
|
|
@@ -123,24 +122,20 @@ __exportStar(require("./countrieserrors.js"), exports);
|
|
|
123
122
|
__exportStar(require("./createaccount.js"), exports);
|
|
124
123
|
__exportStar(require("./createaccounterror.js"), exports);
|
|
125
124
|
__exportStar(require("./createaccountsettings.js"), exports);
|
|
126
|
-
__exportStar(require("./createaccountupdate.js"), exports);
|
|
127
125
|
__exportStar(require("./createapplepaysession.js"), exports);
|
|
128
126
|
__exportStar(require("./createauthorizeduser.js"), exports);
|
|
129
127
|
__exportStar(require("./createauthorizedusererror.js"), exports);
|
|
130
128
|
__exportStar(require("./createauthorizeduserupdate.js"), exports);
|
|
131
129
|
__exportStar(require("./createbusinesserror.js"), exports);
|
|
132
130
|
__exportStar(require("./createbusinessprofile.js"), exports);
|
|
133
|
-
__exportStar(require("./createbusinessprofileupdate.js"), exports);
|
|
134
131
|
__exportStar(require("./createevidencefilemultipart.js"), exports);
|
|
135
132
|
__exportStar(require("./createevidencetext.js"), exports);
|
|
136
133
|
__exportStar(require("./createfeeplanagreement.js"), exports);
|
|
137
134
|
__exportStar(require("./createindividualerror.js"), exports);
|
|
138
135
|
__exportStar(require("./createindividualprofile.js"), exports);
|
|
139
|
-
__exportStar(require("./createindividualprofileupdate.js"), exports);
|
|
140
136
|
__exportStar(require("./createpaymentlink.js"), exports);
|
|
141
137
|
__exportStar(require("./createprofile.js"), exports);
|
|
142
138
|
__exportStar(require("./createprofileerror.js"), exports);
|
|
143
|
-
__exportStar(require("./createprofileupdate.js"), exports);
|
|
144
139
|
__exportStar(require("./createrefund.js"), exports);
|
|
145
140
|
__exportStar(require("./createrefundresponse.js"), exports);
|
|
146
141
|
__exportStar(require("./createrepresentative.js"), exports);
|
|
@@ -155,7 +150,6 @@ __exportStar(require("./createtransfersourceach.js"), exports);
|
|
|
155
150
|
__exportStar(require("./createtransfersourcecard.js"), exports);
|
|
156
151
|
__exportStar(require("./customersupport.js"), exports);
|
|
157
152
|
__exportStar(require("./customersupporterror.js"), exports);
|
|
158
|
-
__exportStar(require("./customersupportupdate.js"), exports);
|
|
159
153
|
__exportStar(require("./debitholdperiod.js"), exports);
|
|
160
154
|
__exportStar(require("./disbursementpaymentmethodtype.js"), exports);
|
|
161
155
|
__exportStar(require("./displayoptionserror.js"), exports);
|
|
@@ -173,6 +167,8 @@ __exportStar(require("./e2eetokenupdate.js"), exports);
|
|
|
173
167
|
__exportStar(require("./end2endencryptionerror.js"), exports);
|
|
174
168
|
__exportStar(require("./enrichedaddressresponse.js"), exports);
|
|
175
169
|
__exportStar(require("./enrichedbusinessprofile.js"), exports);
|
|
170
|
+
__exportStar(require("./enrichedbusinessresponse.js"), exports);
|
|
171
|
+
__exportStar(require("./enrichedindustries.js"), exports);
|
|
176
172
|
__exportStar(require("./enrichedindustry.js"), exports);
|
|
177
173
|
__exportStar(require("./enrichedindustrycodes.js"), exports);
|
|
178
174
|
__exportStar(require("./evidencetextresponse.js"), exports);
|
|
@@ -241,7 +237,11 @@ __exportStar(require("./onboardinginviterequest.js"), exports);
|
|
|
241
237
|
__exportStar(require("./onboardingpartneraccount.js"), exports);
|
|
242
238
|
__exportStar(require("./partnerpricing.js"), exports);
|
|
243
239
|
__exportStar(require("./partnerpricingagreement.js"), exports);
|
|
240
|
+
__exportStar(require("./patchaccount.js"), exports);
|
|
244
241
|
__exportStar(require("./patchaccounterror.js"), exports);
|
|
242
|
+
__exportStar(require("./patchbusiness.js"), exports);
|
|
243
|
+
__exportStar(require("./patchindividual.js"), exports);
|
|
244
|
+
__exportStar(require("./patchprofile.js"), exports);
|
|
245
245
|
__exportStar(require("./patchsweepconfig.js"), exports);
|
|
246
246
|
__exportStar(require("./patchtransfer.js"), exports);
|
|
247
247
|
__exportStar(require("./paymentdetailserror.js"), exports);
|
|
@@ -302,7 +302,6 @@ __exportStar(require("./scheduleresponse.js"), exports);
|
|
|
302
302
|
__exportStar(require("./seccode.js"), exports);
|
|
303
303
|
__exportStar(require("./security.js"), exports);
|
|
304
304
|
__exportStar(require("./settings.js"), exports);
|
|
305
|
-
__exportStar(require("./settingsupdate.js"), exports);
|
|
306
305
|
__exportStar(require("./sweep.js"), exports);
|
|
307
306
|
__exportStar(require("./sweepconfig.js"), exports);
|
|
308
307
|
__exportStar(require("./sweepconfigpaymentmethod.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,+CAA6B;AAC7B,yDAAuC;AACvC,wDAAsC;AACtC,+DAA6C;AAC7C,mDAAiC;AACjC,iEAA+C;AAC/C,qEAAmD;AACnD,sEAAoD;AACpD,oEAAkD;AAClD,iEAA+C;AAC/C,oDAAkC;AAClC,mDAAiC;AACjC,sDAAoC;AACpC,yDAAuC;AACvC,8DAA4C;AAC5C,0DAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,+CAA6B;AAC7B,yDAAuC;AACvC,wDAAsC;AACtC,+DAA6C;AAC7C,mDAAiC;AACjC,iEAA+C;AAC/C,qEAAmD;AACnD,sEAAoD;AACpD,oEAAkD;AAClD,iEAA+C;AAC/C,oDAAkC;AAClC,mDAAiC;AACjC,sDAAoC;AACpC,yDAAuC;AACvC,8DAA4C;AAC5C,0DAAwC;AACxC,qDAAmC;AACnC,6DAA2C;AAC3C,4DAA0C;AAC1C,uDAAqC;AACrC,+CAA6B;AAC7B,oDAAkC;AAClC,yDAAuC;AACvC,qDAAmC;AACnC,kDAAgC;AAChC,8CAA4B;AAC5B,qDAAmC;AACnC,oDAAkC;AAClC,6DAA2C;AAC3C,2DAAyC;AACzC,sDAAoC;A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C1C,mDAAiC;AACjC,6DAA2C;AAC3C,wDAAsC;AACtC,+CAA6B;AAC7B,gDAA8B;AAC9B,gDAA8B;AAC9B,6CAA2B;AAC3B,mDAAiC;AACjC,gEAA8C;AAC9C,yDAAuC;AACvC,mDAAiC;AACjC,6CAA2B;AAC3B,mDAAiC;AACjC,sDAAoC;AACpC,2DAAyC;AACzC,2DAAyC;AACzC,iEAA+C;AAC/C,iDAA+B;AAC/B,yDAAuC;AACvC,gDAA8B;AAC9B,uDAAqC;AACrC,2DAAyC;AACzC,6DAA2C;AAC3C,uDAAqC;AACrC,wDAAsC;AACtC,sDAAoC;AACpC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,0DAAwC;AACxC,qEAAmD;AACnD,mDAAiC;AACjC,kDAAgC;AAChC,yDAAuC;AACvC,4DAA0C;AAC1C,mDAAiC;AACjC,oDAAkC;AAClC,sDAAoC;AACpC,wDAAsC;AACtC,yDAAuC;AACvC,4DAA0C;AAC1C,0DAAwC;AACxC,sDAAoC;AACpC,oDAAkC;AAClC,0DAAwC;AACxC,gEAA8C;AAC9C,4DAA0C;AAC1C,iEAA+C;AAC/C,8CAA4B;AAC5B,8DAA4C;AAC5C,yDAAuC;AACvC,mEAAiD;AACjD,+DAA6C;AAC7C,6DAA2C"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { AddressUpdate, AddressUpdate$Outbound } from "./addressupdate.js";
|
|
5
|
+
import { CreateAccountSettings, CreateAccountSettings$Outbound } from "./createaccountsettings.js";
|
|
6
|
+
import { ManualTermsOfServiceUpdate, ManualTermsOfServiceUpdate$Outbound } from "./manualtermsofserviceupdate.js";
|
|
7
|
+
import { PatchProfile, PatchProfile$Outbound } from "./patchprofile.js";
|
|
8
|
+
import { PhoneNumber, PhoneNumber$Outbound } from "./phonenumber.js";
|
|
9
|
+
import { TermsOfServiceTokenUpdate, TermsOfServiceTokenUpdate$Outbound } from "./termsofservicetokenupdate.js";
|
|
10
|
+
export type PatchAccountTermsOfService = TermsOfServiceTokenUpdate | ManualTermsOfServiceUpdate;
|
|
11
|
+
/**
|
|
12
|
+
* User-provided information that can be displayed on credit card transactions for customers to use when
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* contacting a customer support team. This data is only allowed on a business account.
|
|
16
|
+
*/
|
|
17
|
+
export type PatchAccountCustomerSupport = {
|
|
18
|
+
phone?: PhoneNumber | undefined;
|
|
19
|
+
email?: string | undefined;
|
|
20
|
+
address?: AddressUpdate | undefined;
|
|
21
|
+
website?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Describes the fields available when patching a Moov account.
|
|
25
|
+
*/
|
|
26
|
+
export type PatchAccount = {
|
|
27
|
+
/**
|
|
28
|
+
* Describes the fields available when patching a profile.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* Each object can be patched independent of patching the other fields.
|
|
32
|
+
*/
|
|
33
|
+
profile?: PatchProfile | undefined;
|
|
34
|
+
metadata?: {
|
|
35
|
+
[k: string]: string;
|
|
36
|
+
} | null | undefined;
|
|
37
|
+
termsOfService?: TermsOfServiceTokenUpdate | ManualTermsOfServiceUpdate | undefined;
|
|
38
|
+
foreignID?: string | undefined;
|
|
39
|
+
customerSupport?: PatchAccountCustomerSupport | null | undefined;
|
|
40
|
+
settings?: CreateAccountSettings | undefined;
|
|
41
|
+
};
|
|
42
|
+
/** @internal */
|
|
43
|
+
export declare const PatchAccountTermsOfService$inboundSchema: z.ZodType<PatchAccountTermsOfService, z.ZodTypeDef, unknown>;
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type PatchAccountTermsOfService$Outbound = TermsOfServiceTokenUpdate$Outbound | ManualTermsOfServiceUpdate$Outbound;
|
|
46
|
+
/** @internal */
|
|
47
|
+
export declare const PatchAccountTermsOfService$outboundSchema: z.ZodType<PatchAccountTermsOfService$Outbound, z.ZodTypeDef, PatchAccountTermsOfService>;
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
51
|
+
*/
|
|
52
|
+
export declare namespace PatchAccountTermsOfService$ {
|
|
53
|
+
/** @deprecated use `PatchAccountTermsOfService$inboundSchema` instead. */
|
|
54
|
+
const inboundSchema: z.ZodType<PatchAccountTermsOfService, z.ZodTypeDef, unknown>;
|
|
55
|
+
/** @deprecated use `PatchAccountTermsOfService$outboundSchema` instead. */
|
|
56
|
+
const outboundSchema: z.ZodType<PatchAccountTermsOfService$Outbound, z.ZodTypeDef, PatchAccountTermsOfService>;
|
|
57
|
+
/** @deprecated use `PatchAccountTermsOfService$Outbound` instead. */
|
|
58
|
+
type Outbound = PatchAccountTermsOfService$Outbound;
|
|
59
|
+
}
|
|
60
|
+
export declare function patchAccountTermsOfServiceToJSON(patchAccountTermsOfService: PatchAccountTermsOfService): string;
|
|
61
|
+
export declare function patchAccountTermsOfServiceFromJSON(jsonString: string): SafeParseResult<PatchAccountTermsOfService, SDKValidationError>;
|
|
62
|
+
/** @internal */
|
|
63
|
+
export declare const PatchAccountCustomerSupport$inboundSchema: z.ZodType<PatchAccountCustomerSupport, z.ZodTypeDef, unknown>;
|
|
64
|
+
/** @internal */
|
|
65
|
+
export type PatchAccountCustomerSupport$Outbound = {
|
|
66
|
+
phone?: PhoneNumber$Outbound | undefined;
|
|
67
|
+
email?: string | undefined;
|
|
68
|
+
address?: AddressUpdate$Outbound | undefined;
|
|
69
|
+
website?: string | undefined;
|
|
70
|
+
};
|
|
71
|
+
/** @internal */
|
|
72
|
+
export declare const PatchAccountCustomerSupport$outboundSchema: z.ZodType<PatchAccountCustomerSupport$Outbound, z.ZodTypeDef, PatchAccountCustomerSupport>;
|
|
73
|
+
/**
|
|
74
|
+
* @internal
|
|
75
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
76
|
+
*/
|
|
77
|
+
export declare namespace PatchAccountCustomerSupport$ {
|
|
78
|
+
/** @deprecated use `PatchAccountCustomerSupport$inboundSchema` instead. */
|
|
79
|
+
const inboundSchema: z.ZodType<PatchAccountCustomerSupport, z.ZodTypeDef, unknown>;
|
|
80
|
+
/** @deprecated use `PatchAccountCustomerSupport$outboundSchema` instead. */
|
|
81
|
+
const outboundSchema: z.ZodType<PatchAccountCustomerSupport$Outbound, z.ZodTypeDef, PatchAccountCustomerSupport>;
|
|
82
|
+
/** @deprecated use `PatchAccountCustomerSupport$Outbound` instead. */
|
|
83
|
+
type Outbound = PatchAccountCustomerSupport$Outbound;
|
|
84
|
+
}
|
|
85
|
+
export declare function patchAccountCustomerSupportToJSON(patchAccountCustomerSupport: PatchAccountCustomerSupport): string;
|
|
86
|
+
export declare function patchAccountCustomerSupportFromJSON(jsonString: string): SafeParseResult<PatchAccountCustomerSupport, SDKValidationError>;
|
|
87
|
+
/** @internal */
|
|
88
|
+
export declare const PatchAccount$inboundSchema: z.ZodType<PatchAccount, z.ZodTypeDef, unknown>;
|
|
89
|
+
/** @internal */
|
|
90
|
+
export type PatchAccount$Outbound = {
|
|
91
|
+
profile?: PatchProfile$Outbound | undefined;
|
|
92
|
+
metadata?: {
|
|
93
|
+
[k: string]: string;
|
|
94
|
+
} | null | undefined;
|
|
95
|
+
termsOfService?: TermsOfServiceTokenUpdate$Outbound | ManualTermsOfServiceUpdate$Outbound | undefined;
|
|
96
|
+
foreignID?: string | undefined;
|
|
97
|
+
customerSupport?: PatchAccountCustomerSupport$Outbound | null | undefined;
|
|
98
|
+
settings?: CreateAccountSettings$Outbound | undefined;
|
|
99
|
+
};
|
|
100
|
+
/** @internal */
|
|
101
|
+
export declare const PatchAccount$outboundSchema: z.ZodType<PatchAccount$Outbound, z.ZodTypeDef, PatchAccount>;
|
|
102
|
+
/**
|
|
103
|
+
* @internal
|
|
104
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
105
|
+
*/
|
|
106
|
+
export declare namespace PatchAccount$ {
|
|
107
|
+
/** @deprecated use `PatchAccount$inboundSchema` instead. */
|
|
108
|
+
const inboundSchema: z.ZodType<PatchAccount, z.ZodTypeDef, unknown>;
|
|
109
|
+
/** @deprecated use `PatchAccount$outboundSchema` instead. */
|
|
110
|
+
const outboundSchema: z.ZodType<PatchAccount$Outbound, z.ZodTypeDef, PatchAccount>;
|
|
111
|
+
/** @deprecated use `PatchAccount$Outbound` instead. */
|
|
112
|
+
type Outbound = PatchAccount$Outbound;
|
|
113
|
+
}
|
|
114
|
+
export declare function patchAccountToJSON(patchAccount: PatchAccount): string;
|
|
115
|
+
export declare function patchAccountFromJSON(jsonString: string): SafeParseResult<PatchAccount, SDKValidationError>;
|
|
116
|
+
//# sourceMappingURL=patchaccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patchaccount.d.ts","sourceRoot":"","sources":["../../src/models/components/patchaccount.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,aAAa,EAEb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,qBAAqB,EAErB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,YAAY,EAEZ,qBAAqB,EAEtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,yBAAyB,EAEzB,kCAAkC,EAEnC,MAAM,gCAAgC,CAAC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UAAU,EACZ,OAAO,CAaP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAC5C,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC;IACtD,cAAc,CAAC,EACX,kCAAkC,GAClC,mCAAmC,GACnC,SAAS,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,eAAe,CAAC,EAAE,oCAAoC,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1E,QAAQ,CAAC,EAAE,8BAA8B,GAAG,SAAS,CAAC;CACvD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,YAAY,CAaZ,CAAC;AAEH;;;GAGG;AACH,yBAAiB,aAAa,CAAC;IAC7B,4DAA4D;IACrD,MAAM,aAAa,gDAA6B,CAAC;IACxD,6DAA6D;IACtD,MAAM,cAAc,8DAA8B,CAAC;IAC1D,uDAAuD;IACvD,KAAY,QAAQ,GAAG,qBAAqB,CAAC;CAC9C;AAED,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAErE;AAED,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAMnD"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.PatchAccount$ = exports.PatchAccount$outboundSchema = exports.PatchAccount$inboundSchema = exports.PatchAccountCustomerSupport$ = exports.PatchAccountCustomerSupport$outboundSchema = exports.PatchAccountCustomerSupport$inboundSchema = exports.PatchAccountTermsOfService$ = exports.PatchAccountTermsOfService$outboundSchema = exports.PatchAccountTermsOfService$inboundSchema = void 0;
|
|
40
|
+
exports.patchAccountTermsOfServiceToJSON = patchAccountTermsOfServiceToJSON;
|
|
41
|
+
exports.patchAccountTermsOfServiceFromJSON = patchAccountTermsOfServiceFromJSON;
|
|
42
|
+
exports.patchAccountCustomerSupportToJSON = patchAccountCustomerSupportToJSON;
|
|
43
|
+
exports.patchAccountCustomerSupportFromJSON = patchAccountCustomerSupportFromJSON;
|
|
44
|
+
exports.patchAccountToJSON = patchAccountToJSON;
|
|
45
|
+
exports.patchAccountFromJSON = patchAccountFromJSON;
|
|
46
|
+
const z = __importStar(require("zod"));
|
|
47
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
48
|
+
const addressupdate_js_1 = require("./addressupdate.js");
|
|
49
|
+
const createaccountsettings_js_1 = require("./createaccountsettings.js");
|
|
50
|
+
const manualtermsofserviceupdate_js_1 = require("./manualtermsofserviceupdate.js");
|
|
51
|
+
const patchprofile_js_1 = require("./patchprofile.js");
|
|
52
|
+
const phonenumber_js_1 = require("./phonenumber.js");
|
|
53
|
+
const termsofservicetokenupdate_js_1 = require("./termsofservicetokenupdate.js");
|
|
54
|
+
/** @internal */
|
|
55
|
+
exports.PatchAccountTermsOfService$inboundSchema = z.union([
|
|
56
|
+
termsofservicetokenupdate_js_1.TermsOfServiceTokenUpdate$inboundSchema,
|
|
57
|
+
manualtermsofserviceupdate_js_1.ManualTermsOfServiceUpdate$inboundSchema,
|
|
58
|
+
]);
|
|
59
|
+
/** @internal */
|
|
60
|
+
exports.PatchAccountTermsOfService$outboundSchema = z.union([
|
|
61
|
+
termsofservicetokenupdate_js_1.TermsOfServiceTokenUpdate$outboundSchema,
|
|
62
|
+
manualtermsofserviceupdate_js_1.ManualTermsOfServiceUpdate$outboundSchema,
|
|
63
|
+
]);
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
|
+
*/
|
|
68
|
+
var PatchAccountTermsOfService$;
|
|
69
|
+
(function (PatchAccountTermsOfService$) {
|
|
70
|
+
/** @deprecated use `PatchAccountTermsOfService$inboundSchema` instead. */
|
|
71
|
+
PatchAccountTermsOfService$.inboundSchema = exports.PatchAccountTermsOfService$inboundSchema;
|
|
72
|
+
/** @deprecated use `PatchAccountTermsOfService$outboundSchema` instead. */
|
|
73
|
+
PatchAccountTermsOfService$.outboundSchema = exports.PatchAccountTermsOfService$outboundSchema;
|
|
74
|
+
})(PatchAccountTermsOfService$ || (exports.PatchAccountTermsOfService$ = PatchAccountTermsOfService$ = {}));
|
|
75
|
+
function patchAccountTermsOfServiceToJSON(patchAccountTermsOfService) {
|
|
76
|
+
return JSON.stringify(exports.PatchAccountTermsOfService$outboundSchema.parse(patchAccountTermsOfService));
|
|
77
|
+
}
|
|
78
|
+
function patchAccountTermsOfServiceFromJSON(jsonString) {
|
|
79
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchAccountTermsOfService$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchAccountTermsOfService' from JSON`);
|
|
80
|
+
}
|
|
81
|
+
/** @internal */
|
|
82
|
+
exports.PatchAccountCustomerSupport$inboundSchema = z.object({
|
|
83
|
+
phone: phonenumber_js_1.PhoneNumber$inboundSchema.optional(),
|
|
84
|
+
email: z.string().optional(),
|
|
85
|
+
address: addressupdate_js_1.AddressUpdate$inboundSchema.optional(),
|
|
86
|
+
website: z.string().optional(),
|
|
87
|
+
});
|
|
88
|
+
/** @internal */
|
|
89
|
+
exports.PatchAccountCustomerSupport$outboundSchema = z.object({
|
|
90
|
+
phone: phonenumber_js_1.PhoneNumber$outboundSchema.optional(),
|
|
91
|
+
email: z.string().optional(),
|
|
92
|
+
address: addressupdate_js_1.AddressUpdate$outboundSchema.optional(),
|
|
93
|
+
website: z.string().optional(),
|
|
94
|
+
});
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
98
|
+
*/
|
|
99
|
+
var PatchAccountCustomerSupport$;
|
|
100
|
+
(function (PatchAccountCustomerSupport$) {
|
|
101
|
+
/** @deprecated use `PatchAccountCustomerSupport$inboundSchema` instead. */
|
|
102
|
+
PatchAccountCustomerSupport$.inboundSchema = exports.PatchAccountCustomerSupport$inboundSchema;
|
|
103
|
+
/** @deprecated use `PatchAccountCustomerSupport$outboundSchema` instead. */
|
|
104
|
+
PatchAccountCustomerSupport$.outboundSchema = exports.PatchAccountCustomerSupport$outboundSchema;
|
|
105
|
+
})(PatchAccountCustomerSupport$ || (exports.PatchAccountCustomerSupport$ = PatchAccountCustomerSupport$ = {}));
|
|
106
|
+
function patchAccountCustomerSupportToJSON(patchAccountCustomerSupport) {
|
|
107
|
+
return JSON.stringify(exports.PatchAccountCustomerSupport$outboundSchema.parse(patchAccountCustomerSupport));
|
|
108
|
+
}
|
|
109
|
+
function patchAccountCustomerSupportFromJSON(jsonString) {
|
|
110
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchAccountCustomerSupport$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchAccountCustomerSupport' from JSON`);
|
|
111
|
+
}
|
|
112
|
+
/** @internal */
|
|
113
|
+
exports.PatchAccount$inboundSchema = z.object({
|
|
114
|
+
profile: patchprofile_js_1.PatchProfile$inboundSchema.optional(),
|
|
115
|
+
metadata: z.nullable(z.record(z.string())).optional(),
|
|
116
|
+
termsOfService: z.union([
|
|
117
|
+
termsofservicetokenupdate_js_1.TermsOfServiceTokenUpdate$inboundSchema,
|
|
118
|
+
manualtermsofserviceupdate_js_1.ManualTermsOfServiceUpdate$inboundSchema,
|
|
119
|
+
]).optional(),
|
|
120
|
+
foreignID: z.string().optional(),
|
|
121
|
+
customerSupport: z.nullable(z.lazy(() => exports.PatchAccountCustomerSupport$inboundSchema)).optional(),
|
|
122
|
+
settings: createaccountsettings_js_1.CreateAccountSettings$inboundSchema.optional(),
|
|
123
|
+
});
|
|
124
|
+
/** @internal */
|
|
125
|
+
exports.PatchAccount$outboundSchema = z.object({
|
|
126
|
+
profile: patchprofile_js_1.PatchProfile$outboundSchema.optional(),
|
|
127
|
+
metadata: z.nullable(z.record(z.string())).optional(),
|
|
128
|
+
termsOfService: z.union([
|
|
129
|
+
termsofservicetokenupdate_js_1.TermsOfServiceTokenUpdate$outboundSchema,
|
|
130
|
+
manualtermsofserviceupdate_js_1.ManualTermsOfServiceUpdate$outboundSchema,
|
|
131
|
+
]).optional(),
|
|
132
|
+
foreignID: z.string().optional(),
|
|
133
|
+
customerSupport: z.nullable(z.lazy(() => exports.PatchAccountCustomerSupport$outboundSchema)).optional(),
|
|
134
|
+
settings: createaccountsettings_js_1.CreateAccountSettings$outboundSchema.optional(),
|
|
135
|
+
});
|
|
136
|
+
/**
|
|
137
|
+
* @internal
|
|
138
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
139
|
+
*/
|
|
140
|
+
var PatchAccount$;
|
|
141
|
+
(function (PatchAccount$) {
|
|
142
|
+
/** @deprecated use `PatchAccount$inboundSchema` instead. */
|
|
143
|
+
PatchAccount$.inboundSchema = exports.PatchAccount$inboundSchema;
|
|
144
|
+
/** @deprecated use `PatchAccount$outboundSchema` instead. */
|
|
145
|
+
PatchAccount$.outboundSchema = exports.PatchAccount$outboundSchema;
|
|
146
|
+
})(PatchAccount$ || (exports.PatchAccount$ = PatchAccount$ = {}));
|
|
147
|
+
function patchAccountToJSON(patchAccount) {
|
|
148
|
+
return JSON.stringify(exports.PatchAccount$outboundSchema.parse(patchAccount));
|
|
149
|
+
}
|
|
150
|
+
function patchAccountFromJSON(jsonString) {
|
|
151
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchAccount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchAccount' from JSON`);
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=patchaccount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patchaccount.js","sourceRoot":"","sources":["../../src/models/components/patchacc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,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;AACzE,CAAC;AAED,SAAgB,oBAAoB,CAClC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kCAA0B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtD,0CAA0C,CAC3C,CAAC;AACJ,CAAC"}
|
|
@@ -7,14 +7,8 @@ import { IndustryCodes, IndustryCodes$Outbound } from "./industrycodes.js";
|
|
|
7
7
|
import { PhoneNumber, PhoneNumber$Outbound } from "./phonenumber.js";
|
|
8
8
|
import { PrimaryRegulator } from "./primaryregulator.js";
|
|
9
9
|
import { TaxIDUpdate, TaxIDUpdate$Outbound } from "./taxidupdate.js";
|
|
10
|
-
export type
|
|
11
|
-
/**
|
|
12
|
-
* The legal name under which the entity is registered.
|
|
13
|
-
*/
|
|
10
|
+
export type PatchBusiness = {
|
|
14
11
|
legalBusinessName?: string | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* A registered trade name under which the business operates, if different from its legal name.
|
|
17
|
-
*/
|
|
18
12
|
doingBusinessAs?: string | undefined;
|
|
19
13
|
/**
|
|
20
14
|
* The type of entity represented by this business.
|
|
@@ -29,6 +23,7 @@ export type CreateBusinessProfileUpdate = {
|
|
|
29
23
|
* An EIN (employer identification number) for the business. For sole proprietors, an SSN can be used as the EIN.
|
|
30
24
|
*/
|
|
31
25
|
taxID?: TaxIDUpdate | undefined;
|
|
26
|
+
ownersProvided?: boolean | undefined;
|
|
32
27
|
industryCodes?: IndustryCodes | undefined;
|
|
33
28
|
/**
|
|
34
29
|
* If the business is a financial institution, this field describes its primary regulator.
|
|
@@ -36,9 +31,9 @@ export type CreateBusinessProfileUpdate = {
|
|
|
36
31
|
primaryRegulator?: PrimaryRegulator | undefined;
|
|
37
32
|
};
|
|
38
33
|
/** @internal */
|
|
39
|
-
export declare const
|
|
34
|
+
export declare const PatchBusiness$inboundSchema: z.ZodType<PatchBusiness, z.ZodTypeDef, unknown>;
|
|
40
35
|
/** @internal */
|
|
41
|
-
export type
|
|
36
|
+
export type PatchBusiness$Outbound = {
|
|
42
37
|
legalBusinessName?: string | undefined;
|
|
43
38
|
doingBusinessAs?: string | undefined;
|
|
44
39
|
businessType?: string | undefined;
|
|
@@ -48,23 +43,24 @@ export type CreateBusinessProfileUpdate$Outbound = {
|
|
|
48
43
|
website?: string | undefined;
|
|
49
44
|
description?: string | undefined;
|
|
50
45
|
taxID?: TaxIDUpdate$Outbound | undefined;
|
|
46
|
+
ownersProvided?: boolean | undefined;
|
|
51
47
|
industryCodes?: IndustryCodes$Outbound | undefined;
|
|
52
48
|
primaryRegulator?: string | undefined;
|
|
53
49
|
};
|
|
54
50
|
/** @internal */
|
|
55
|
-
export declare const
|
|
51
|
+
export declare const PatchBusiness$outboundSchema: z.ZodType<PatchBusiness$Outbound, z.ZodTypeDef, PatchBusiness>;
|
|
56
52
|
/**
|
|
57
53
|
* @internal
|
|
58
54
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
55
|
*/
|
|
60
|
-
export declare namespace
|
|
61
|
-
/** @deprecated use `
|
|
62
|
-
const inboundSchema: z.ZodType<
|
|
63
|
-
/** @deprecated use `
|
|
64
|
-
const outboundSchema: z.ZodType<
|
|
65
|
-
/** @deprecated use `
|
|
66
|
-
type Outbound =
|
|
56
|
+
export declare namespace PatchBusiness$ {
|
|
57
|
+
/** @deprecated use `PatchBusiness$inboundSchema` instead. */
|
|
58
|
+
const inboundSchema: z.ZodType<PatchBusiness, z.ZodTypeDef, unknown>;
|
|
59
|
+
/** @deprecated use `PatchBusiness$outboundSchema` instead. */
|
|
60
|
+
const outboundSchema: z.ZodType<PatchBusiness$Outbound, z.ZodTypeDef, PatchBusiness>;
|
|
61
|
+
/** @deprecated use `PatchBusiness$Outbound` instead. */
|
|
62
|
+
type Outbound = PatchBusiness$Outbound;
|
|
67
63
|
}
|
|
68
|
-
export declare function
|
|
69
|
-
export declare function
|
|
70
|
-
//# sourceMappingURL=
|
|
64
|
+
export declare function patchBusinessToJSON(patchBusiness: PatchBusiness): string;
|
|
65
|
+
export declare function patchBusinessFromJSON(jsonString: string): SafeParseResult<PatchBusiness, SDKValidationError>;
|
|
66
|
+
//# sourceMappingURL=patchbusiness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patchbusiness.d.ts","sourceRoot":"","sources":["../../src/models/components/patchbusiness.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,aAAa,EAEb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,YAAY,EAGb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,aAAa,EAEb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,gBAAgB,EAGjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,MAAM,aAAa,GAAG;IAC1B,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IACxC,OAAO,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IACpC,KAAK,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,GAAG,SAA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CAAC;IAC9B,6DAA6D;IACtD,MAAM,aAAa,iDAA8B,CAAC;IACzD,8DAA8D;IACvD,MAAM,cAAc,gEAA+B,CAAC;IAC3D,wDAAwD;IACxD,KAAY,QAAQ,GAAG,sBAAsB,CAAC;CAC/C;AAED,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAExE;AAED,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
|
|
@@ -36,9 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
39
|
+
exports.PatchBusiness$ = exports.PatchBusiness$outboundSchema = exports.PatchBusiness$inboundSchema = void 0;
|
|
40
|
+
exports.patchBusinessToJSON = patchBusinessToJSON;
|
|
41
|
+
exports.patchBusinessFromJSON = patchBusinessFromJSON;
|
|
42
42
|
const z = __importStar(require("zod"));
|
|
43
43
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
44
|
const addressupdate_js_1 = require("./addressupdate.js");
|
|
@@ -48,7 +48,7 @@ const phonenumber_js_1 = require("./phonenumber.js");
|
|
|
48
48
|
const primaryregulator_js_1 = require("./primaryregulator.js");
|
|
49
49
|
const taxidupdate_js_1 = require("./taxidupdate.js");
|
|
50
50
|
/** @internal */
|
|
51
|
-
exports.
|
|
51
|
+
exports.PatchBusiness$inboundSchema = z.object({
|
|
52
52
|
legalBusinessName: z.string().optional(),
|
|
53
53
|
doingBusinessAs: z.string().optional(),
|
|
54
54
|
businessType: businesstype_js_1.BusinessType$inboundSchema.optional(),
|
|
@@ -58,11 +58,12 @@ exports.CreateBusinessProfileUpdate$inboundSchema = z.object({
|
|
|
58
58
|
website: z.string().optional(),
|
|
59
59
|
description: z.string().optional(),
|
|
60
60
|
taxID: taxidupdate_js_1.TaxIDUpdate$inboundSchema.optional(),
|
|
61
|
+
ownersProvided: z.boolean().optional(),
|
|
61
62
|
industryCodes: industrycodes_js_1.IndustryCodes$inboundSchema.optional(),
|
|
62
63
|
primaryRegulator: primaryregulator_js_1.PrimaryRegulator$inboundSchema.optional(),
|
|
63
64
|
});
|
|
64
65
|
/** @internal */
|
|
65
|
-
exports.
|
|
66
|
+
exports.PatchBusiness$outboundSchema = z.object({
|
|
66
67
|
legalBusinessName: z.string().optional(),
|
|
67
68
|
doingBusinessAs: z.string().optional(),
|
|
68
69
|
businessType: businesstype_js_1.BusinessType$outboundSchema.optional(),
|
|
@@ -72,6 +73,7 @@ exports.CreateBusinessProfileUpdate$outboundSchema = z.object({
|
|
|
72
73
|
website: z.string().optional(),
|
|
73
74
|
description: z.string().optional(),
|
|
74
75
|
taxID: taxidupdate_js_1.TaxIDUpdate$outboundSchema.optional(),
|
|
76
|
+
ownersProvided: z.boolean().optional(),
|
|
75
77
|
industryCodes: industrycodes_js_1.IndustryCodes$outboundSchema.optional(),
|
|
76
78
|
primaryRegulator: primaryregulator_js_1.PrimaryRegulator$outboundSchema.optional(),
|
|
77
79
|
});
|
|
@@ -79,17 +81,17 @@ exports.CreateBusinessProfileUpdate$outboundSchema = z.object({
|
|
|
79
81
|
* @internal
|
|
80
82
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
81
83
|
*/
|
|
82
|
-
var
|
|
83
|
-
(function (
|
|
84
|
-
/** @deprecated use `
|
|
85
|
-
|
|
86
|
-
/** @deprecated use `
|
|
87
|
-
|
|
88
|
-
})(
|
|
89
|
-
function
|
|
90
|
-
return JSON.stringify(exports.
|
|
84
|
+
var PatchBusiness$;
|
|
85
|
+
(function (PatchBusiness$) {
|
|
86
|
+
/** @deprecated use `PatchBusiness$inboundSchema` instead. */
|
|
87
|
+
PatchBusiness$.inboundSchema = exports.PatchBusiness$inboundSchema;
|
|
88
|
+
/** @deprecated use `PatchBusiness$outboundSchema` instead. */
|
|
89
|
+
PatchBusiness$.outboundSchema = exports.PatchBusiness$outboundSchema;
|
|
90
|
+
})(PatchBusiness$ || (exports.PatchBusiness$ = PatchBusiness$ = {}));
|
|
91
|
+
function patchBusinessToJSON(patchBusiness) {
|
|
92
|
+
return JSON.stringify(exports.PatchBusiness$outboundSchema.parse(patchBusiness));
|
|
91
93
|
}
|
|
92
|
-
function
|
|
93
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
94
|
+
function patchBusinessFromJSON(jsonString) {
|
|
95
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchBusiness$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchBusiness' from JSON`);
|
|
94
96
|
}
|
|
95
|
-
//# sourceMappingURL=
|
|
97
|
+
//# sourceMappingURL=patchbusiness.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patchbusiness.js","sourceRoot":"","sources":["../../src/models/components/patchbusiness.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsIH,kDAEC;AAED,sDAQC;AAhJD,uCAAyB;AACzB,qDAAiD;AAGjD,yDAK4B;AAC5B,uDAI2B;AAC3B,yDAK4B;AAC5B,qDAK0B;AAC1B,+DAI+B;AAC/B,qDAK0B;AA0B1B,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,YAAY,EAAE,4CAA0B,CAAC,QAAQ,EAAE;IACnD,OAAO,EAAE,8CAA2B,CAAC,QAAQ,EAAE;IAC/C,KAAK,EAAE,0CAAyB,CAAC,QAAQ,EAAE;IAC3C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,C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AAc,GAAG,oCAA4B,CAAC;AAG7D,CAAC,EAPgB,cAAc,8BAAd,cAAc,QAO9B;AAED,SAAgB,mBAAmB,CAAC,aAA4B;IAC9D,OAAO,IAAI,CAAC,SAAS,CAAC,oCAA4B,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;AAC3E,CAAC;AAED,SAAgB,qBAAqB,CACnC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAA2B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvD,2CAA2C,CAC5C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { AddressUpdate, AddressUpdate$Outbound } from "./addressupdate.js";
|
|
5
|
+
import { BirthDateUpdate, BirthDateUpdate$Outbound } from "./birthdateupdate.js";
|
|
6
|
+
import { GovernmentID, GovernmentID$Outbound } from "./governmentid.js";
|
|
7
|
+
import { IndividualNameUpdate, IndividualNameUpdate$Outbound } from "./individualnameupdate.js";
|
|
8
|
+
import { PhoneNumber, PhoneNumber$Outbound } from "./phonenumber.js";
|
|
9
|
+
/**
|
|
10
|
+
* Describes the fields available when patching an individual.
|
|
11
|
+
*/
|
|
12
|
+
export type PatchIndividual = {
|
|
13
|
+
name?: IndividualNameUpdate | undefined;
|
|
14
|
+
phone?: PhoneNumber | undefined;
|
|
15
|
+
email?: string | undefined;
|
|
16
|
+
address?: AddressUpdate | undefined;
|
|
17
|
+
birthDate?: BirthDateUpdate | undefined;
|
|
18
|
+
governmentID?: GovernmentID | undefined;
|
|
19
|
+
};
|
|
20
|
+
/** @internal */
|
|
21
|
+
export declare const PatchIndividual$inboundSchema: z.ZodType<PatchIndividual, z.ZodTypeDef, unknown>;
|
|
22
|
+
/** @internal */
|
|
23
|
+
export type PatchIndividual$Outbound = {
|
|
24
|
+
name?: IndividualNameUpdate$Outbound | undefined;
|
|
25
|
+
phone?: PhoneNumber$Outbound | undefined;
|
|
26
|
+
email?: string | undefined;
|
|
27
|
+
address?: AddressUpdate$Outbound | undefined;
|
|
28
|
+
birthDate?: BirthDateUpdate$Outbound | undefined;
|
|
29
|
+
governmentID?: GovernmentID$Outbound | undefined;
|
|
30
|
+
};
|
|
31
|
+
/** @internal */
|
|
32
|
+
export declare const PatchIndividual$outboundSchema: z.ZodType<PatchIndividual$Outbound, z.ZodTypeDef, PatchIndividual>;
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
36
|
+
*/
|
|
37
|
+
export declare namespace PatchIndividual$ {
|
|
38
|
+
/** @deprecated use `PatchIndividual$inboundSchema` instead. */
|
|
39
|
+
const inboundSchema: z.ZodType<PatchIndividual, z.ZodTypeDef, unknown>;
|
|
40
|
+
/** @deprecated use `PatchIndividual$outboundSchema` instead. */
|
|
41
|
+
const outboundSchema: z.ZodType<PatchIndividual$Outbound, z.ZodTypeDef, PatchIndividual>;
|
|
42
|
+
/** @deprecated use `PatchIndividual$Outbound` instead. */
|
|
43
|
+
type Outbound = PatchIndividual$Outbound;
|
|
44
|
+
}
|
|
45
|
+
export declare function patchIndividualToJSON(patchIndividual: PatchIndividual): string;
|
|
46
|
+
export declare function patchIndividualFromJSON(jsonString: string): SafeParseResult<PatchIndividual, SDKValidationError>;
|
|
47
|
+
//# sourceMappingURL=patchindividual.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patchindividual.d.ts","sourceRoot":"","sources":["../../src/models/components/patchindividual.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAm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