@moovio/sdk 0.3.4 → 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/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/index.d.ts +4 -7
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -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/{achpaymentsettingsupdate.js → patchprofile.js} +23 -19
- package/models/components/patchprofile.js.map +1 -0
- 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/src/funcs/accountsUpdate.ts +1 -3
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +4 -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/updateaccount.ts +6 -6
- 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 +0 -77
- 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 +0 -73
- 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
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
AddressUpdate,
|
|
11
|
+
AddressUpdate$inboundSchema,
|
|
12
|
+
AddressUpdate$Outbound,
|
|
13
|
+
AddressUpdate$outboundSchema,
|
|
14
|
+
} from "./addressupdate.js";
|
|
15
|
+
import {
|
|
16
|
+
CreateAccountSettings,
|
|
17
|
+
CreateAccountSettings$inboundSchema,
|
|
18
|
+
CreateAccountSettings$Outbound,
|
|
19
|
+
CreateAccountSettings$outboundSchema,
|
|
20
|
+
} from "./createaccountsettings.js";
|
|
21
|
+
import {
|
|
22
|
+
ManualTermsOfServiceUpdate,
|
|
23
|
+
ManualTermsOfServiceUpdate$inboundSchema,
|
|
24
|
+
ManualTermsOfServiceUpdate$Outbound,
|
|
25
|
+
ManualTermsOfServiceUpdate$outboundSchema,
|
|
26
|
+
} from "./manualtermsofserviceupdate.js";
|
|
27
|
+
import {
|
|
28
|
+
PatchProfile,
|
|
29
|
+
PatchProfile$inboundSchema,
|
|
30
|
+
PatchProfile$Outbound,
|
|
31
|
+
PatchProfile$outboundSchema,
|
|
32
|
+
} from "./patchprofile.js";
|
|
33
|
+
import {
|
|
34
|
+
PhoneNumber,
|
|
35
|
+
PhoneNumber$inboundSchema,
|
|
36
|
+
PhoneNumber$Outbound,
|
|
37
|
+
PhoneNumber$outboundSchema,
|
|
38
|
+
} from "./phonenumber.js";
|
|
39
|
+
import {
|
|
40
|
+
TermsOfServiceTokenUpdate,
|
|
41
|
+
TermsOfServiceTokenUpdate$inboundSchema,
|
|
42
|
+
TermsOfServiceTokenUpdate$Outbound,
|
|
43
|
+
TermsOfServiceTokenUpdate$outboundSchema,
|
|
44
|
+
} from "./termsofservicetokenupdate.js";
|
|
45
|
+
|
|
46
|
+
export type PatchAccountTermsOfService =
|
|
47
|
+
| TermsOfServiceTokenUpdate
|
|
48
|
+
| ManualTermsOfServiceUpdate;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* User-provided information that can be displayed on credit card transactions for customers to use when
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* contacting a customer support team. This data is only allowed on a business account.
|
|
55
|
+
*/
|
|
56
|
+
export type PatchAccountCustomerSupport = {
|
|
57
|
+
phone?: PhoneNumber | undefined;
|
|
58
|
+
email?: string | undefined;
|
|
59
|
+
address?: AddressUpdate | undefined;
|
|
60
|
+
website?: string | undefined;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Describes the fields available when patching a Moov account.
|
|
65
|
+
*/
|
|
66
|
+
export type PatchAccount = {
|
|
67
|
+
/**
|
|
68
|
+
* Describes the fields available when patching a profile.
|
|
69
|
+
*
|
|
70
|
+
* @remarks
|
|
71
|
+
* Each object can be patched independent of patching the other fields.
|
|
72
|
+
*/
|
|
73
|
+
profile?: PatchProfile | undefined;
|
|
74
|
+
metadata?: { [k: string]: string } | null | undefined;
|
|
75
|
+
termsOfService?:
|
|
76
|
+
| TermsOfServiceTokenUpdate
|
|
77
|
+
| ManualTermsOfServiceUpdate
|
|
78
|
+
| undefined;
|
|
79
|
+
foreignID?: string | undefined;
|
|
80
|
+
customerSupport?: PatchAccountCustomerSupport | null | undefined;
|
|
81
|
+
settings?: CreateAccountSettings | undefined;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const PatchAccountTermsOfService$inboundSchema: z.ZodType<
|
|
86
|
+
PatchAccountTermsOfService,
|
|
87
|
+
z.ZodTypeDef,
|
|
88
|
+
unknown
|
|
89
|
+
> = z.union([
|
|
90
|
+
TermsOfServiceTokenUpdate$inboundSchema,
|
|
91
|
+
ManualTermsOfServiceUpdate$inboundSchema,
|
|
92
|
+
]);
|
|
93
|
+
|
|
94
|
+
/** @internal */
|
|
95
|
+
export type PatchAccountTermsOfService$Outbound =
|
|
96
|
+
| TermsOfServiceTokenUpdate$Outbound
|
|
97
|
+
| ManualTermsOfServiceUpdate$Outbound;
|
|
98
|
+
|
|
99
|
+
/** @internal */
|
|
100
|
+
export const PatchAccountTermsOfService$outboundSchema: z.ZodType<
|
|
101
|
+
PatchAccountTermsOfService$Outbound,
|
|
102
|
+
z.ZodTypeDef,
|
|
103
|
+
PatchAccountTermsOfService
|
|
104
|
+
> = z.union([
|
|
105
|
+
TermsOfServiceTokenUpdate$outboundSchema,
|
|
106
|
+
ManualTermsOfServiceUpdate$outboundSchema,
|
|
107
|
+
]);
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @internal
|
|
111
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
112
|
+
*/
|
|
113
|
+
export namespace PatchAccountTermsOfService$ {
|
|
114
|
+
/** @deprecated use `PatchAccountTermsOfService$inboundSchema` instead. */
|
|
115
|
+
export const inboundSchema = PatchAccountTermsOfService$inboundSchema;
|
|
116
|
+
/** @deprecated use `PatchAccountTermsOfService$outboundSchema` instead. */
|
|
117
|
+
export const outboundSchema = PatchAccountTermsOfService$outboundSchema;
|
|
118
|
+
/** @deprecated use `PatchAccountTermsOfService$Outbound` instead. */
|
|
119
|
+
export type Outbound = PatchAccountTermsOfService$Outbound;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function patchAccountTermsOfServiceToJSON(
|
|
123
|
+
patchAccountTermsOfService: PatchAccountTermsOfService,
|
|
124
|
+
): string {
|
|
125
|
+
return JSON.stringify(
|
|
126
|
+
PatchAccountTermsOfService$outboundSchema.parse(patchAccountTermsOfService),
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function patchAccountTermsOfServiceFromJSON(
|
|
131
|
+
jsonString: string,
|
|
132
|
+
): SafeParseResult<PatchAccountTermsOfService, SDKValidationError> {
|
|
133
|
+
return safeParse(
|
|
134
|
+
jsonString,
|
|
135
|
+
(x) => PatchAccountTermsOfService$inboundSchema.parse(JSON.parse(x)),
|
|
136
|
+
`Failed to parse 'PatchAccountTermsOfService' from JSON`,
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/** @internal */
|
|
141
|
+
export const PatchAccountCustomerSupport$inboundSchema: z.ZodType<
|
|
142
|
+
PatchAccountCustomerSupport,
|
|
143
|
+
z.ZodTypeDef,
|
|
144
|
+
unknown
|
|
145
|
+
> = z.object({
|
|
146
|
+
phone: PhoneNumber$inboundSchema.optional(),
|
|
147
|
+
email: z.string().optional(),
|
|
148
|
+
address: AddressUpdate$inboundSchema.optional(),
|
|
149
|
+
website: z.string().optional(),
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
/** @internal */
|
|
153
|
+
export type PatchAccountCustomerSupport$Outbound = {
|
|
154
|
+
phone?: PhoneNumber$Outbound | undefined;
|
|
155
|
+
email?: string | undefined;
|
|
156
|
+
address?: AddressUpdate$Outbound | undefined;
|
|
157
|
+
website?: string | undefined;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
/** @internal */
|
|
161
|
+
export const PatchAccountCustomerSupport$outboundSchema: z.ZodType<
|
|
162
|
+
PatchAccountCustomerSupport$Outbound,
|
|
163
|
+
z.ZodTypeDef,
|
|
164
|
+
PatchAccountCustomerSupport
|
|
165
|
+
> = z.object({
|
|
166
|
+
phone: PhoneNumber$outboundSchema.optional(),
|
|
167
|
+
email: z.string().optional(),
|
|
168
|
+
address: AddressUpdate$outboundSchema.optional(),
|
|
169
|
+
website: z.string().optional(),
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* @internal
|
|
174
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
175
|
+
*/
|
|
176
|
+
export namespace PatchAccountCustomerSupport$ {
|
|
177
|
+
/** @deprecated use `PatchAccountCustomerSupport$inboundSchema` instead. */
|
|
178
|
+
export const inboundSchema = PatchAccountCustomerSupport$inboundSchema;
|
|
179
|
+
/** @deprecated use `PatchAccountCustomerSupport$outboundSchema` instead. */
|
|
180
|
+
export const outboundSchema = PatchAccountCustomerSupport$outboundSchema;
|
|
181
|
+
/** @deprecated use `PatchAccountCustomerSupport$Outbound` instead. */
|
|
182
|
+
export type Outbound = PatchAccountCustomerSupport$Outbound;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export function patchAccountCustomerSupportToJSON(
|
|
186
|
+
patchAccountCustomerSupport: PatchAccountCustomerSupport,
|
|
187
|
+
): string {
|
|
188
|
+
return JSON.stringify(
|
|
189
|
+
PatchAccountCustomerSupport$outboundSchema.parse(
|
|
190
|
+
patchAccountCustomerSupport,
|
|
191
|
+
),
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export function patchAccountCustomerSupportFromJSON(
|
|
196
|
+
jsonString: string,
|
|
197
|
+
): SafeParseResult<PatchAccountCustomerSupport, SDKValidationError> {
|
|
198
|
+
return safeParse(
|
|
199
|
+
jsonString,
|
|
200
|
+
(x) => PatchAccountCustomerSupport$inboundSchema.parse(JSON.parse(x)),
|
|
201
|
+
`Failed to parse 'PatchAccountCustomerSupport' from JSON`,
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/** @internal */
|
|
206
|
+
export const PatchAccount$inboundSchema: z.ZodType<
|
|
207
|
+
PatchAccount,
|
|
208
|
+
z.ZodTypeDef,
|
|
209
|
+
unknown
|
|
210
|
+
> = z.object({
|
|
211
|
+
profile: PatchProfile$inboundSchema.optional(),
|
|
212
|
+
metadata: z.nullable(z.record(z.string())).optional(),
|
|
213
|
+
termsOfService: z.union([
|
|
214
|
+
TermsOfServiceTokenUpdate$inboundSchema,
|
|
215
|
+
ManualTermsOfServiceUpdate$inboundSchema,
|
|
216
|
+
]).optional(),
|
|
217
|
+
foreignID: z.string().optional(),
|
|
218
|
+
customerSupport: z.nullable(
|
|
219
|
+
z.lazy(() => PatchAccountCustomerSupport$inboundSchema),
|
|
220
|
+
).optional(),
|
|
221
|
+
settings: CreateAccountSettings$inboundSchema.optional(),
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
/** @internal */
|
|
225
|
+
export type PatchAccount$Outbound = {
|
|
226
|
+
profile?: PatchProfile$Outbound | undefined;
|
|
227
|
+
metadata?: { [k: string]: string } | null | undefined;
|
|
228
|
+
termsOfService?:
|
|
229
|
+
| TermsOfServiceTokenUpdate$Outbound
|
|
230
|
+
| ManualTermsOfServiceUpdate$Outbound
|
|
231
|
+
| undefined;
|
|
232
|
+
foreignID?: string | undefined;
|
|
233
|
+
customerSupport?: PatchAccountCustomerSupport$Outbound | null | undefined;
|
|
234
|
+
settings?: CreateAccountSettings$Outbound | undefined;
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
/** @internal */
|
|
238
|
+
export const PatchAccount$outboundSchema: z.ZodType<
|
|
239
|
+
PatchAccount$Outbound,
|
|
240
|
+
z.ZodTypeDef,
|
|
241
|
+
PatchAccount
|
|
242
|
+
> = z.object({
|
|
243
|
+
profile: PatchProfile$outboundSchema.optional(),
|
|
244
|
+
metadata: z.nullable(z.record(z.string())).optional(),
|
|
245
|
+
termsOfService: z.union([
|
|
246
|
+
TermsOfServiceTokenUpdate$outboundSchema,
|
|
247
|
+
ManualTermsOfServiceUpdate$outboundSchema,
|
|
248
|
+
]).optional(),
|
|
249
|
+
foreignID: z.string().optional(),
|
|
250
|
+
customerSupport: z.nullable(
|
|
251
|
+
z.lazy(() => PatchAccountCustomerSupport$outboundSchema),
|
|
252
|
+
).optional(),
|
|
253
|
+
settings: CreateAccountSettings$outboundSchema.optional(),
|
|
254
|
+
});
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* @internal
|
|
258
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
259
|
+
*/
|
|
260
|
+
export namespace PatchAccount$ {
|
|
261
|
+
/** @deprecated use `PatchAccount$inboundSchema` instead. */
|
|
262
|
+
export const inboundSchema = PatchAccount$inboundSchema;
|
|
263
|
+
/** @deprecated use `PatchAccount$outboundSchema` instead. */
|
|
264
|
+
export const outboundSchema = PatchAccount$outboundSchema;
|
|
265
|
+
/** @deprecated use `PatchAccount$Outbound` instead. */
|
|
266
|
+
export type Outbound = PatchAccount$Outbound;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export function patchAccountToJSON(patchAccount: PatchAccount): string {
|
|
270
|
+
return JSON.stringify(PatchAccount$outboundSchema.parse(patchAccount));
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export function patchAccountFromJSON(
|
|
274
|
+
jsonString: string,
|
|
275
|
+
): SafeParseResult<PatchAccount, SDKValidationError> {
|
|
276
|
+
return safeParse(
|
|
277
|
+
jsonString,
|
|
278
|
+
(x) => PatchAccount$inboundSchema.parse(JSON.parse(x)),
|
|
279
|
+
`Failed to parse 'PatchAccount' from JSON`,
|
|
280
|
+
);
|
|
281
|
+
}
|
|
@@ -41,14 +41,8 @@ import {
|
|
|
41
41
|
TaxIDUpdate$outboundSchema,
|
|
42
42
|
} from "./taxidupdate.js";
|
|
43
43
|
|
|
44
|
-
export type
|
|
45
|
-
/**
|
|
46
|
-
* The legal name under which the entity is registered.
|
|
47
|
-
*/
|
|
44
|
+
export type PatchBusiness = {
|
|
48
45
|
legalBusinessName?: string | undefined;
|
|
49
|
-
/**
|
|
50
|
-
* A registered trade name under which the business operates, if different from its legal name.
|
|
51
|
-
*/
|
|
52
46
|
doingBusinessAs?: string | undefined;
|
|
53
47
|
/**
|
|
54
48
|
* The type of entity represented by this business.
|
|
@@ -63,6 +57,7 @@ export type CreateBusinessProfileUpdate = {
|
|
|
63
57
|
* An EIN (employer identification number) for the business. For sole proprietors, an SSN can be used as the EIN.
|
|
64
58
|
*/
|
|
65
59
|
taxID?: TaxIDUpdate | undefined;
|
|
60
|
+
ownersProvided?: boolean | undefined;
|
|
66
61
|
industryCodes?: IndustryCodes | undefined;
|
|
67
62
|
/**
|
|
68
63
|
* If the business is a financial institution, this field describes its primary regulator.
|
|
@@ -71,8 +66,8 @@ export type CreateBusinessProfileUpdate = {
|
|
|
71
66
|
};
|
|
72
67
|
|
|
73
68
|
/** @internal */
|
|
74
|
-
export const
|
|
75
|
-
|
|
69
|
+
export const PatchBusiness$inboundSchema: z.ZodType<
|
|
70
|
+
PatchBusiness,
|
|
76
71
|
z.ZodTypeDef,
|
|
77
72
|
unknown
|
|
78
73
|
> = z.object({
|
|
@@ -85,12 +80,13 @@ export const CreateBusinessProfileUpdate$inboundSchema: z.ZodType<
|
|
|
85
80
|
website: z.string().optional(),
|
|
86
81
|
description: z.string().optional(),
|
|
87
82
|
taxID: TaxIDUpdate$inboundSchema.optional(),
|
|
83
|
+
ownersProvided: z.boolean().optional(),
|
|
88
84
|
industryCodes: IndustryCodes$inboundSchema.optional(),
|
|
89
85
|
primaryRegulator: PrimaryRegulator$inboundSchema.optional(),
|
|
90
86
|
});
|
|
91
87
|
|
|
92
88
|
/** @internal */
|
|
93
|
-
export type
|
|
89
|
+
export type PatchBusiness$Outbound = {
|
|
94
90
|
legalBusinessName?: string | undefined;
|
|
95
91
|
doingBusinessAs?: string | undefined;
|
|
96
92
|
businessType?: string | undefined;
|
|
@@ -100,15 +96,16 @@ export type CreateBusinessProfileUpdate$Outbound = {
|
|
|
100
96
|
website?: string | undefined;
|
|
101
97
|
description?: string | undefined;
|
|
102
98
|
taxID?: TaxIDUpdate$Outbound | undefined;
|
|
99
|
+
ownersProvided?: boolean | undefined;
|
|
103
100
|
industryCodes?: IndustryCodes$Outbound | undefined;
|
|
104
101
|
primaryRegulator?: string | undefined;
|
|
105
102
|
};
|
|
106
103
|
|
|
107
104
|
/** @internal */
|
|
108
|
-
export const
|
|
109
|
-
|
|
105
|
+
export const PatchBusiness$outboundSchema: z.ZodType<
|
|
106
|
+
PatchBusiness$Outbound,
|
|
110
107
|
z.ZodTypeDef,
|
|
111
|
-
|
|
108
|
+
PatchBusiness
|
|
112
109
|
> = z.object({
|
|
113
110
|
legalBusinessName: z.string().optional(),
|
|
114
111
|
doingBusinessAs: z.string().optional(),
|
|
@@ -119,6 +116,7 @@ export const CreateBusinessProfileUpdate$outboundSchema: z.ZodType<
|
|
|
119
116
|
website: z.string().optional(),
|
|
120
117
|
description: z.string().optional(),
|
|
121
118
|
taxID: TaxIDUpdate$outboundSchema.optional(),
|
|
119
|
+
ownersProvided: z.boolean().optional(),
|
|
122
120
|
industryCodes: IndustryCodes$outboundSchema.optional(),
|
|
123
121
|
primaryRegulator: PrimaryRegulator$outboundSchema.optional(),
|
|
124
122
|
});
|
|
@@ -127,31 +125,25 @@ export const CreateBusinessProfileUpdate$outboundSchema: z.ZodType<
|
|
|
127
125
|
* @internal
|
|
128
126
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
129
127
|
*/
|
|
130
|
-
export namespace
|
|
131
|
-
/** @deprecated use `
|
|
132
|
-
export const inboundSchema =
|
|
133
|
-
/** @deprecated use `
|
|
134
|
-
export const outboundSchema =
|
|
135
|
-
/** @deprecated use `
|
|
136
|
-
export type Outbound =
|
|
128
|
+
export namespace PatchBusiness$ {
|
|
129
|
+
/** @deprecated use `PatchBusiness$inboundSchema` instead. */
|
|
130
|
+
export const inboundSchema = PatchBusiness$inboundSchema;
|
|
131
|
+
/** @deprecated use `PatchBusiness$outboundSchema` instead. */
|
|
132
|
+
export const outboundSchema = PatchBusiness$outboundSchema;
|
|
133
|
+
/** @deprecated use `PatchBusiness$Outbound` instead. */
|
|
134
|
+
export type Outbound = PatchBusiness$Outbound;
|
|
137
135
|
}
|
|
138
136
|
|
|
139
|
-
export function
|
|
140
|
-
|
|
141
|
-
): string {
|
|
142
|
-
return JSON.stringify(
|
|
143
|
-
CreateBusinessProfileUpdate$outboundSchema.parse(
|
|
144
|
-
createBusinessProfileUpdate,
|
|
145
|
-
),
|
|
146
|
-
);
|
|
137
|
+
export function patchBusinessToJSON(patchBusiness: PatchBusiness): string {
|
|
138
|
+
return JSON.stringify(PatchBusiness$outboundSchema.parse(patchBusiness));
|
|
147
139
|
}
|
|
148
140
|
|
|
149
|
-
export function
|
|
141
|
+
export function patchBusinessFromJSON(
|
|
150
142
|
jsonString: string,
|
|
151
|
-
): SafeParseResult<
|
|
143
|
+
): SafeParseResult<PatchBusiness, SDKValidationError> {
|
|
152
144
|
return safeParse(
|
|
153
145
|
jsonString,
|
|
154
|
-
(x) =>
|
|
155
|
-
`Failed to parse '
|
|
146
|
+
(x) => PatchBusiness$inboundSchema.parse(JSON.parse(x)),
|
|
147
|
+
`Failed to parse 'PatchBusiness' from JSON`,
|
|
156
148
|
);
|
|
157
149
|
}
|
|
@@ -37,7 +37,10 @@ import {
|
|
|
37
37
|
PhoneNumber$outboundSchema,
|
|
38
38
|
} from "./phonenumber.js";
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
/**
|
|
41
|
+
* Describes the fields available when patching an individual.
|
|
42
|
+
*/
|
|
43
|
+
export type PatchIndividual = {
|
|
41
44
|
name?: IndividualNameUpdate | undefined;
|
|
42
45
|
phone?: PhoneNumber | undefined;
|
|
43
46
|
email?: string | undefined;
|
|
@@ -47,8 +50,8 @@ export type CreateIndividualProfileUpdate = {
|
|
|
47
50
|
};
|
|
48
51
|
|
|
49
52
|
/** @internal */
|
|
50
|
-
export const
|
|
51
|
-
|
|
53
|
+
export const PatchIndividual$inboundSchema: z.ZodType<
|
|
54
|
+
PatchIndividual,
|
|
52
55
|
z.ZodTypeDef,
|
|
53
56
|
unknown
|
|
54
57
|
> = z.object({
|
|
@@ -61,7 +64,7 @@ export const CreateIndividualProfileUpdate$inboundSchema: z.ZodType<
|
|
|
61
64
|
});
|
|
62
65
|
|
|
63
66
|
/** @internal */
|
|
64
|
-
export type
|
|
67
|
+
export type PatchIndividual$Outbound = {
|
|
65
68
|
name?: IndividualNameUpdate$Outbound | undefined;
|
|
66
69
|
phone?: PhoneNumber$Outbound | undefined;
|
|
67
70
|
email?: string | undefined;
|
|
@@ -71,10 +74,10 @@ export type CreateIndividualProfileUpdate$Outbound = {
|
|
|
71
74
|
};
|
|
72
75
|
|
|
73
76
|
/** @internal */
|
|
74
|
-
export const
|
|
75
|
-
|
|
77
|
+
export const PatchIndividual$outboundSchema: z.ZodType<
|
|
78
|
+
PatchIndividual$Outbound,
|
|
76
79
|
z.ZodTypeDef,
|
|
77
|
-
|
|
80
|
+
PatchIndividual
|
|
78
81
|
> = z.object({
|
|
79
82
|
name: IndividualNameUpdate$outboundSchema.optional(),
|
|
80
83
|
phone: PhoneNumber$outboundSchema.optional(),
|
|
@@ -88,31 +91,27 @@ export const CreateIndividualProfileUpdate$outboundSchema: z.ZodType<
|
|
|
88
91
|
* @internal
|
|
89
92
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
90
93
|
*/
|
|
91
|
-
export namespace
|
|
92
|
-
/** @deprecated use `
|
|
93
|
-
export const inboundSchema =
|
|
94
|
-
/** @deprecated use `
|
|
95
|
-
export const outboundSchema =
|
|
96
|
-
/** @deprecated use `
|
|
97
|
-
export type Outbound =
|
|
94
|
+
export namespace PatchIndividual$ {
|
|
95
|
+
/** @deprecated use `PatchIndividual$inboundSchema` instead. */
|
|
96
|
+
export const inboundSchema = PatchIndividual$inboundSchema;
|
|
97
|
+
/** @deprecated use `PatchIndividual$outboundSchema` instead. */
|
|
98
|
+
export const outboundSchema = PatchIndividual$outboundSchema;
|
|
99
|
+
/** @deprecated use `PatchIndividual$Outbound` instead. */
|
|
100
|
+
export type Outbound = PatchIndividual$Outbound;
|
|
98
101
|
}
|
|
99
102
|
|
|
100
|
-
export function
|
|
101
|
-
|
|
103
|
+
export function patchIndividualToJSON(
|
|
104
|
+
patchIndividual: PatchIndividual,
|
|
102
105
|
): string {
|
|
103
|
-
return JSON.stringify(
|
|
104
|
-
CreateIndividualProfileUpdate$outboundSchema.parse(
|
|
105
|
-
createIndividualProfileUpdate,
|
|
106
|
-
),
|
|
107
|
-
);
|
|
106
|
+
return JSON.stringify(PatchIndividual$outboundSchema.parse(patchIndividual));
|
|
108
107
|
}
|
|
109
108
|
|
|
110
|
-
export function
|
|
109
|
+
export function patchIndividualFromJSON(
|
|
111
110
|
jsonString: string,
|
|
112
|
-
): SafeParseResult<
|
|
111
|
+
): SafeParseResult<PatchIndividual, SDKValidationError> {
|
|
113
112
|
return safeParse(
|
|
114
113
|
jsonString,
|
|
115
|
-
(x) =>
|
|
116
|
-
`Failed to parse '
|
|
114
|
+
(x) => PatchIndividual$inboundSchema.parse(JSON.parse(x)),
|
|
115
|
+
`Failed to parse 'PatchIndividual' from JSON`,
|
|
117
116
|
);
|
|
118
117
|
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
PatchBusiness,
|
|
11
|
+
PatchBusiness$inboundSchema,
|
|
12
|
+
PatchBusiness$Outbound,
|
|
13
|
+
PatchBusiness$outboundSchema,
|
|
14
|
+
} from "./patchbusiness.js";
|
|
15
|
+
import {
|
|
16
|
+
PatchIndividual,
|
|
17
|
+
PatchIndividual$inboundSchema,
|
|
18
|
+
PatchIndividual$Outbound,
|
|
19
|
+
PatchIndividual$outboundSchema,
|
|
20
|
+
} from "./patchindividual.js";
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Describes the fields available when patching a profile.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* Each object can be patched independent of patching the other fields.
|
|
27
|
+
*/
|
|
28
|
+
export type PatchProfile = {
|
|
29
|
+
/**
|
|
30
|
+
* Describes the fields available when patching an individual.
|
|
31
|
+
*/
|
|
32
|
+
individual?: PatchIndividual | undefined;
|
|
33
|
+
business?: PatchBusiness | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const PatchProfile$inboundSchema: z.ZodType<
|
|
38
|
+
PatchProfile,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
unknown
|
|
41
|
+
> = z.object({
|
|
42
|
+
individual: PatchIndividual$inboundSchema.optional(),
|
|
43
|
+
business: PatchBusiness$inboundSchema.optional(),
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type PatchProfile$Outbound = {
|
|
48
|
+
individual?: PatchIndividual$Outbound | undefined;
|
|
49
|
+
business?: PatchBusiness$Outbound | undefined;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const PatchProfile$outboundSchema: z.ZodType<
|
|
54
|
+
PatchProfile$Outbound,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
PatchProfile
|
|
57
|
+
> = z.object({
|
|
58
|
+
individual: PatchIndividual$outboundSchema.optional(),
|
|
59
|
+
business: PatchBusiness$outboundSchema.optional(),
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
65
|
+
*/
|
|
66
|
+
export namespace PatchProfile$ {
|
|
67
|
+
/** @deprecated use `PatchProfile$inboundSchema` instead. */
|
|
68
|
+
export const inboundSchema = PatchProfile$inboundSchema;
|
|
69
|
+
/** @deprecated use `PatchProfile$outboundSchema` instead. */
|
|
70
|
+
export const outboundSchema = PatchProfile$outboundSchema;
|
|
71
|
+
/** @deprecated use `PatchProfile$Outbound` instead. */
|
|
72
|
+
export type Outbound = PatchProfile$Outbound;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function patchProfileToJSON(patchProfile: PatchProfile): string {
|
|
76
|
+
return JSON.stringify(PatchProfile$outboundSchema.parse(patchProfile));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function patchProfileFromJSON(
|
|
80
|
+
jsonString: string,
|
|
81
|
+
): SafeParseResult<PatchProfile, SDKValidationError> {
|
|
82
|
+
return safeParse(
|
|
83
|
+
jsonString,
|
|
84
|
+
(x) => PatchProfile$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
+
`Failed to parse 'PatchProfile' from JSON`,
|
|
86
|
+
);
|
|
87
|
+
}
|
|
@@ -28,7 +28,7 @@ export type UpdateAccountGlobals = {
|
|
|
28
28
|
|
|
29
29
|
export type UpdateAccountRequest = {
|
|
30
30
|
accountID: string;
|
|
31
|
-
|
|
31
|
+
patchAccount: components.PatchAccount;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
export type UpdateAccountResponse = {
|
|
@@ -105,17 +105,17 @@ export const UpdateAccountRequest$inboundSchema: z.ZodType<
|
|
|
105
105
|
unknown
|
|
106
106
|
> = z.object({
|
|
107
107
|
accountID: z.string(),
|
|
108
|
-
|
|
108
|
+
PatchAccount: components.PatchAccount$inboundSchema,
|
|
109
109
|
}).transform((v) => {
|
|
110
110
|
return remap$(v, {
|
|
111
|
-
"
|
|
111
|
+
"PatchAccount": "patchAccount",
|
|
112
112
|
});
|
|
113
113
|
});
|
|
114
114
|
|
|
115
115
|
/** @internal */
|
|
116
116
|
export type UpdateAccountRequest$Outbound = {
|
|
117
117
|
accountID: string;
|
|
118
|
-
|
|
118
|
+
PatchAccount: components.PatchAccount$Outbound;
|
|
119
119
|
};
|
|
120
120
|
|
|
121
121
|
/** @internal */
|
|
@@ -125,10 +125,10 @@ export const UpdateAccountRequest$outboundSchema: z.ZodType<
|
|
|
125
125
|
UpdateAccountRequest
|
|
126
126
|
> = z.object({
|
|
127
127
|
accountID: z.string(),
|
|
128
|
-
|
|
128
|
+
patchAccount: components.PatchAccount$outboundSchema,
|
|
129
129
|
}).transform((v) => {
|
|
130
130
|
return remap$(v, {
|
|
131
|
-
|
|
131
|
+
patchAccount: "PatchAccount",
|
|
132
132
|
});
|
|
133
133
|
});
|
|
134
134
|
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
export type ACHPaymentSettingsUpdate = {
|
|
5
|
-
/**
|
|
6
|
-
* The description that shows up on ACH transactions. This will default to the account's display name on account creation.
|
|
7
|
-
*/
|
|
8
|
-
companyName?: string | undefined;
|
|
9
|
-
};
|
|
10
|
-
/** @internal */
|
|
11
|
-
export declare const ACHPaymentSettingsUpdate$inboundSchema: z.ZodType<ACHPaymentSettingsUpdate, z.ZodTypeDef, unknown>;
|
|
12
|
-
/** @internal */
|
|
13
|
-
export type ACHPaymentSettingsUpdate$Outbound = {
|
|
14
|
-
companyName?: string | undefined;
|
|
15
|
-
};
|
|
16
|
-
/** @internal */
|
|
17
|
-
export declare const ACHPaymentSettingsUpdate$outboundSchema: z.ZodType<ACHPaymentSettingsUpdate$Outbound, z.ZodTypeDef, ACHPaymentSettingsUpdate>;
|
|
18
|
-
/**
|
|
19
|
-
* @internal
|
|
20
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
21
|
-
*/
|
|
22
|
-
export declare namespace ACHPaymentSettingsUpdate$ {
|
|
23
|
-
/** @deprecated use `ACHPaymentSettingsUpdate$inboundSchema` instead. */
|
|
24
|
-
const inboundSchema: z.ZodType<ACHPaymentSettingsUpdate, z.ZodTypeDef, unknown>;
|
|
25
|
-
/** @deprecated use `ACHPaymentSettingsUpdate$outboundSchema` instead. */
|
|
26
|
-
const outboundSchema: z.ZodType<ACHPaymentSettingsUpdate$Outbound, z.ZodTypeDef, ACHPaymentSettingsUpdate>;
|
|
27
|
-
/** @deprecated use `ACHPaymentSettingsUpdate$Outbound` instead. */
|
|
28
|
-
type Outbound = ACHPaymentSettingsUpdate$Outbound;
|
|
29
|
-
}
|
|
30
|
-
export declare function achPaymentSettingsUpdateToJSON(achPaymentSettingsUpdate: ACHPaymentSettingsUpdate): string;
|
|
31
|
-
export declare function achPaymentSettingsUpdateFromJSON(jsonString: string): SafeParseResult<ACHPaymentSettingsUpdate, SDKValidationError>;
|
|
32
|
-
//# sourceMappingURL=achpaymentsettingsupdate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"achpaymentsettingsupdate.d.ts","sourceRoot":"","sources":["../../src/models/components/achpaymentsettingsupdate.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;AAErE,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,iCAAiC,GAAG;IAC9C,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,wBAAwB,CAGxB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,yBAAyB,CAAC;IACzC,wEAAwE;IACjE,MAAM,aAAa,4DAAyC,CAAC;IACpE,yEAAyE;IAClE,MAAM,cAAc,sFAA0C,CAAC;IACtE,mEAAmE;IACnE,KAAY,QAAQ,GAAG,iCAAiC,CAAC;CAC1D;AAED,wBAAgB,8BAA8B,CAC5C,wBAAwB,EAAE,wBAAwB,GACjD,MAAM,CAIR;AAED,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"achpaymentsettingsupdate.js","sourceRoot":"","sources":["../../src/models/components/achpaymentsettingsupdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDH,wEAMC;AAED,4EAQC;AAhED,uCAAyB;AACzB,qDAAiD;AAWjD,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,yBAAyB,CAOzC;AAPD,WAAiB,yBAAyB;IACxC,wEAAwE;IAC3D,uCAAa,GAAG,8CAAsC,CAAC;IACpE,yEAAyE;IAC5D,wCAAc,GAAG,+CAAuC,CAAC;AAGxE,CAAC,EAPgB,yBAAyB,yCAAzB,yBAAyB,QAOzC;AAED,SAAgB,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,+CAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC;AAED,SAAgB,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8CAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
|