@moovio/sdk 0.15.4 → 0.15.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,21 +16,21 @@ export type Status = ClosedEnum<typeof Status>;
16
16
 
17
17
  export type PushPaymentMethodId2 = {};
18
18
 
19
- export type PushPaymentMethodID = PushPaymentMethodId2 | string;
19
+ export type PushPaymentMethodID = string | PushPaymentMethodId2;
20
20
 
21
21
  export type PullPaymentMethodId2 = {};
22
22
 
23
- export type PullPaymentMethodID = PullPaymentMethodId2 | string;
23
+ export type PullPaymentMethodID = string | PullPaymentMethodId2;
24
24
 
25
25
  export type StatementDescriptor2 = {};
26
26
 
27
- export type StatementDescriptor = StatementDescriptor2 | string;
27
+ export type StatementDescriptor = string | StatementDescriptor2;
28
28
 
29
29
  export type PatchSweepConfig = {
30
30
  status?: Status | null | undefined;
31
- pushPaymentMethodID?: PushPaymentMethodId2 | string | null | undefined;
32
- pullPaymentMethodID?: PullPaymentMethodId2 | string | null | undefined;
33
- statementDescriptor?: StatementDescriptor2 | string | null | undefined;
31
+ pushPaymentMethodID?: string | PushPaymentMethodId2 | null | undefined;
32
+ pullPaymentMethodID?: string | PullPaymentMethodId2 | null | undefined;
33
+ statementDescriptor?: string | StatementDescriptor2 | null | undefined;
34
34
  minimumBalance?: string | null | undefined;
35
35
  };
36
36
 
@@ -106,19 +106,19 @@ export const PushPaymentMethodID$inboundSchema: z.ZodType<
106
106
  PushPaymentMethodID,
107
107
  z.ZodTypeDef,
108
108
  unknown
109
- > = z.union([z.lazy(() => PushPaymentMethodId2$inboundSchema), z.string()]);
109
+ > = z.union([z.string(), z.lazy(() => PushPaymentMethodId2$inboundSchema)]);
110
110
 
111
111
  /** @internal */
112
112
  export type PushPaymentMethodID$Outbound =
113
- | PushPaymentMethodId2$Outbound
114
- | string;
113
+ | string
114
+ | PushPaymentMethodId2$Outbound;
115
115
 
116
116
  /** @internal */
117
117
  export const PushPaymentMethodID$outboundSchema: z.ZodType<
118
118
  PushPaymentMethodID$Outbound,
119
119
  z.ZodTypeDef,
120
120
  PushPaymentMethodID
121
- > = z.union([z.lazy(() => PushPaymentMethodId2$outboundSchema), z.string()]);
121
+ > = z.union([z.string(), z.lazy(() => PushPaymentMethodId2$outboundSchema)]);
122
122
 
123
123
  /**
124
124
  * @internal
@@ -204,19 +204,19 @@ export const PullPaymentMethodID$inboundSchema: z.ZodType<
204
204
  PullPaymentMethodID,
205
205
  z.ZodTypeDef,
206
206
  unknown
207
- > = z.union([z.lazy(() => PullPaymentMethodId2$inboundSchema), z.string()]);
207
+ > = z.union([z.string(), z.lazy(() => PullPaymentMethodId2$inboundSchema)]);
208
208
 
209
209
  /** @internal */
210
210
  export type PullPaymentMethodID$Outbound =
211
- | PullPaymentMethodId2$Outbound
212
- | string;
211
+ | string
212
+ | PullPaymentMethodId2$Outbound;
213
213
 
214
214
  /** @internal */
215
215
  export const PullPaymentMethodID$outboundSchema: z.ZodType<
216
216
  PullPaymentMethodID$Outbound,
217
217
  z.ZodTypeDef,
218
218
  PullPaymentMethodID
219
- > = z.union([z.lazy(() => PullPaymentMethodId2$outboundSchema), z.string()]);
219
+ > = z.union([z.string(), z.lazy(() => PullPaymentMethodId2$outboundSchema)]);
220
220
 
221
221
  /**
222
222
  * @internal
@@ -302,19 +302,19 @@ export const StatementDescriptor$inboundSchema: z.ZodType<
302
302
  StatementDescriptor,
303
303
  z.ZodTypeDef,
304
304
  unknown
305
- > = z.union([z.lazy(() => StatementDescriptor2$inboundSchema), z.string()]);
305
+ > = z.union([z.string(), z.lazy(() => StatementDescriptor2$inboundSchema)]);
306
306
 
307
307
  /** @internal */
308
308
  export type StatementDescriptor$Outbound =
309
- | StatementDescriptor2$Outbound
310
- | string;
309
+ | string
310
+ | StatementDescriptor2$Outbound;
311
311
 
312
312
  /** @internal */
313
313
  export const StatementDescriptor$outboundSchema: z.ZodType<
314
314
  StatementDescriptor$Outbound,
315
315
  z.ZodTypeDef,
316
316
  StatementDescriptor
317
- > = z.union([z.lazy(() => StatementDescriptor2$outboundSchema), z.string()]);
317
+ > = z.union([z.string(), z.lazy(() => StatementDescriptor2$outboundSchema)]);
318
318
 
319
319
  /**
320
320
  * @internal
@@ -355,13 +355,13 @@ export const PatchSweepConfig$inboundSchema: z.ZodType<
355
355
  > = z.object({
356
356
  status: z.nullable(Status$inboundSchema).optional(),
357
357
  pushPaymentMethodID: z.nullable(
358
- z.union([z.lazy(() => PushPaymentMethodId2$inboundSchema), z.string()]),
358
+ z.union([z.string(), z.lazy(() => PushPaymentMethodId2$inboundSchema)]),
359
359
  ).optional(),
360
360
  pullPaymentMethodID: z.nullable(
361
- z.union([z.lazy(() => PullPaymentMethodId2$inboundSchema), z.string()]),
361
+ z.union([z.string(), z.lazy(() => PullPaymentMethodId2$inboundSchema)]),
362
362
  ).optional(),
363
363
  statementDescriptor: z.nullable(
364
- z.union([z.lazy(() => StatementDescriptor2$inboundSchema), z.string()]),
364
+ z.union([z.string(), z.lazy(() => StatementDescriptor2$inboundSchema)]),
365
365
  ).optional(),
366
366
  minimumBalance: z.nullable(z.string()).optional(),
367
367
  });
@@ -370,18 +370,18 @@ export const PatchSweepConfig$inboundSchema: z.ZodType<
370
370
  export type PatchSweepConfig$Outbound = {
371
371
  status?: string | null | undefined;
372
372
  pushPaymentMethodID?:
373
- | PushPaymentMethodId2$Outbound
374
373
  | string
374
+ | PushPaymentMethodId2$Outbound
375
375
  | null
376
376
  | undefined;
377
377
  pullPaymentMethodID?:
378
- | PullPaymentMethodId2$Outbound
379
378
  | string
379
+ | PullPaymentMethodId2$Outbound
380
380
  | null
381
381
  | undefined;
382
382
  statementDescriptor?:
383
- | StatementDescriptor2$Outbound
384
383
  | string
384
+ | StatementDescriptor2$Outbound
385
385
  | null
386
386
  | undefined;
387
387
  minimumBalance?: string | null | undefined;
@@ -395,13 +395,13 @@ export const PatchSweepConfig$outboundSchema: z.ZodType<
395
395
  > = z.object({
396
396
  status: z.nullable(Status$outboundSchema).optional(),
397
397
  pushPaymentMethodID: z.nullable(
398
- z.union([z.lazy(() => PushPaymentMethodId2$outboundSchema), z.string()]),
398
+ z.union([z.string(), z.lazy(() => PushPaymentMethodId2$outboundSchema)]),
399
399
  ).optional(),
400
400
  pullPaymentMethodID: z.nullable(
401
- z.union([z.lazy(() => PullPaymentMethodId2$outboundSchema), z.string()]),
401
+ z.union([z.string(), z.lazy(() => PullPaymentMethodId2$outboundSchema)]),
402
402
  ).optional(),
403
403
  statementDescriptor: z.nullable(
404
- z.union([z.lazy(() => StatementDescriptor2$outboundSchema), z.string()]),
404
+ z.union([z.string(), z.lazy(() => StatementDescriptor2$outboundSchema)]),
405
405
  ).optional(),
406
406
  minimumBalance: z.nullable(z.string()).optional(),
407
407
  });
@@ -6,9 +6,23 @@ import * as z from "zod";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ WalletType,
11
+ WalletType$inboundSchema,
12
+ WalletType$outboundSchema,
13
+ } from "./wallettype.js";
9
14
 
10
15
  export type PaymentMethodsWallet = {
11
16
  walletID: string;
17
+ partnerAccountID: string;
18
+ /**
19
+ * Type of a wallet.
20
+ *
21
+ * @remarks
22
+ * - `default`: The primary system-generated wallet automatically created by Moov when an account is granted the wallet capability. This generates a moov-wallet payment method that is available for use immediately. Only one default wallet exists per account.
23
+ * - `general`: A user-defined wallet created via the API to segment funds for specific use cases. Users can create multiple general wallets per account to support internal business models or financial reporting needs.
24
+ */
25
+ walletType: WalletType;
12
26
  };
13
27
 
14
28
  /** @internal */
@@ -18,11 +32,15 @@ export const PaymentMethodsWallet$inboundSchema: z.ZodType<
18
32
  unknown
19
33
  > = z.object({
20
34
  walletID: z.string(),
35
+ partnerAccountID: z.string(),
36
+ walletType: WalletType$inboundSchema,
21
37
  });
22
38
 
23
39
  /** @internal */
24
40
  export type PaymentMethodsWallet$Outbound = {
25
41
  walletID: string;
42
+ partnerAccountID: string;
43
+ walletType: string;
26
44
  };
27
45
 
28
46
  /** @internal */
@@ -32,6 +50,8 @@ export const PaymentMethodsWallet$outboundSchema: z.ZodType<
32
50
  PaymentMethodsWallet
33
51
  > = z.object({
34
52
  walletID: z.string(),
53
+ partnerAccountID: z.string(),
54
+ walletType: WalletType$outboundSchema,
35
55
  });
36
56
 
37
57
  /**
@@ -20,7 +20,7 @@ export type Phone = {
20
20
 
21
21
  export type Two = {};
22
22
 
23
- export type Email = Two | string;
23
+ export type Email = string | Two;
24
24
 
25
25
  export type UpdateRepresentativeAddress = {
26
26
  addressLine1?: string | undefined;
@@ -77,7 +77,7 @@ export type Responsibilities = {
77
77
  export type UpdateRepresentative = {
78
78
  name?: IndividualNameUpdate | undefined;
79
79
  phone?: Phone | null | undefined;
80
- email?: Two | string | null | undefined;
80
+ email?: string | Two | null | undefined;
81
81
  address?: UpdateRepresentativeAddress | null | undefined;
82
82
  birthDate?: UpdateRepresentativeBirthDate | null | undefined;
83
83
  governmentID?: UpdateRepresentativeGovernmentID | null | undefined;
@@ -174,17 +174,17 @@ export function twoFromJSON(
174
174
 
175
175
  /** @internal */
176
176
  export const Email$inboundSchema: z.ZodType<Email, z.ZodTypeDef, unknown> = z
177
- .union([z.lazy(() => Two$inboundSchema), z.string()]);
177
+ .union([z.string(), z.lazy(() => Two$inboundSchema)]);
178
178
 
179
179
  /** @internal */
180
- export type Email$Outbound = Two$Outbound | string;
180
+ export type Email$Outbound = string | Two$Outbound;
181
181
 
182
182
  /** @internal */
183
183
  export const Email$outboundSchema: z.ZodType<
184
184
  Email$Outbound,
185
185
  z.ZodTypeDef,
186
186
  Email
187
- > = z.union([z.lazy(() => Two$outboundSchema), z.string()]);
187
+ > = z.union([z.string(), z.lazy(() => Two$outboundSchema)]);
188
188
 
189
189
  /**
190
190
  * @internal
@@ -590,7 +590,7 @@ export const UpdateRepresentative$inboundSchema: z.ZodType<
590
590
  > = z.object({
591
591
  name: IndividualNameUpdate$inboundSchema.optional(),
592
592
  phone: z.nullable(z.lazy(() => Phone$inboundSchema)).optional(),
593
- email: z.nullable(z.union([z.lazy(() => Two$inboundSchema), z.string()]))
593
+ email: z.nullable(z.union([z.string(), z.lazy(() => Two$inboundSchema)]))
594
594
  .optional(),
595
595
  address: z.nullable(z.lazy(() => UpdateRepresentativeAddress$inboundSchema))
596
596
  .optional(),
@@ -608,7 +608,7 @@ export const UpdateRepresentative$inboundSchema: z.ZodType<
608
608
  export type UpdateRepresentative$Outbound = {
609
609
  name?: IndividualNameUpdate$Outbound | undefined;
610
610
  phone?: Phone$Outbound | null | undefined;
611
- email?: Two$Outbound | string | null | undefined;
611
+ email?: string | Two$Outbound | null | undefined;
612
612
  address?: UpdateRepresentativeAddress$Outbound | null | undefined;
613
613
  birthDate?: UpdateRepresentativeBirthDate$Outbound | null | undefined;
614
614
  governmentID?: UpdateRepresentativeGovernmentID$Outbound | null | undefined;
@@ -623,7 +623,7 @@ export const UpdateRepresentative$outboundSchema: z.ZodType<
623
623
  > = z.object({
624
624
  name: IndividualNameUpdate$outboundSchema.optional(),
625
625
  phone: z.nullable(z.lazy(() => Phone$outboundSchema)).optional(),
626
- email: z.nullable(z.union([z.lazy(() => Two$outboundSchema), z.string()]))
626
+ email: z.nullable(z.union([z.string(), z.lazy(() => Two$outboundSchema)]))
627
627
  .optional(),
628
628
  address: z.nullable(z.lazy(() => UpdateRepresentativeAddress$outboundSchema))
629
629
  .optional(),