@moovio/sdk 0.15.1 → 0.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/README.md +7 -3
  2. package/bin/mcp-server.js +360 -49
  3. package/bin/mcp-server.js.map +20 -16
  4. package/docs/sdks/transfers/README.md +8 -6
  5. package/docs/sdks/wallets/README.md +14 -13
  6. package/docs/sdks/wallettransactions/README.md +4 -3
  7. package/examples/package-lock.json +1 -1
  8. package/funcs/transfersList.d.ts +2 -1
  9. package/funcs/transfersList.d.ts.map +1 -1
  10. package/funcs/transfersList.js +4 -1
  11. package/funcs/transfersList.js.map +1 -1
  12. package/funcs/transfersUpdate.d.ts +2 -1
  13. package/funcs/transfersUpdate.d.ts.map +1 -1
  14. package/funcs/transfersUpdate.js +4 -1
  15. package/funcs/transfersUpdate.js.map +1 -1
  16. package/funcs/walletTransactionsList.d.ts +2 -1
  17. package/funcs/walletTransactionsList.d.ts.map +1 -1
  18. package/funcs/walletTransactionsList.js +4 -1
  19. package/funcs/walletTransactionsList.js.map +1 -1
  20. package/funcs/walletsCreate.d.ts +1 -1
  21. package/funcs/walletsCreate.d.ts.map +1 -1
  22. package/funcs/walletsCreate.js +3 -1
  23. package/funcs/walletsCreate.js.map +1 -1
  24. package/funcs/walletsList.d.ts +2 -1
  25. package/funcs/walletsList.d.ts.map +1 -1
  26. package/funcs/walletsList.js +4 -1
  27. package/funcs/walletsList.js.map +1 -1
  28. package/funcs/walletsUpdate.d.ts +1 -1
  29. package/funcs/walletsUpdate.d.ts.map +1 -1
  30. package/funcs/walletsUpdate.js +3 -1
  31. package/funcs/walletsUpdate.js.map +1 -1
  32. package/jsr.json +1 -1
  33. package/lib/config.d.ts +2 -2
  34. package/lib/config.js +2 -2
  35. package/mcp-server/mcp-server.js +1 -1
  36. package/mcp-server/server.js +1 -1
  37. package/models/errors/createwalletvalidationerror.d.ts +41 -0
  38. package/models/errors/createwalletvalidationerror.d.ts.map +1 -0
  39. package/models/errors/{createwalleterror.js → createwalletvalidationerror.js} +15 -15
  40. package/models/errors/createwalletvalidationerror.js.map +1 -0
  41. package/models/errors/index.d.ts +6 -2
  42. package/models/errors/index.d.ts.map +1 -1
  43. package/models/errors/index.js +6 -2
  44. package/models/errors/index.js.map +1 -1
  45. package/models/errors/listtransfersvalidationerror.d.ts +69 -0
  46. package/models/errors/listtransfersvalidationerror.d.ts.map +1 -0
  47. package/models/errors/listtransfersvalidationerror.js +130 -0
  48. package/models/errors/listtransfersvalidationerror.js.map +1 -0
  49. package/models/errors/listwalletsvalidationerror.d.ts +45 -0
  50. package/models/errors/listwalletsvalidationerror.d.ts.map +1 -0
  51. package/models/errors/listwalletsvalidationerror.js +98 -0
  52. package/models/errors/listwalletsvalidationerror.js.map +1 -0
  53. package/models/errors/listwallettransactionsvalidationerror.d.ts +72 -0
  54. package/models/errors/listwallettransactionsvalidationerror.d.ts.map +1 -0
  55. package/models/errors/listwallettransactionsvalidationerror.js +140 -0
  56. package/models/errors/listwallettransactionsvalidationerror.js.map +1 -0
  57. package/models/errors/patchtransfervalidationerror.d.ts +39 -0
  58. package/models/errors/patchtransfervalidationerror.d.ts.map +1 -0
  59. package/models/errors/patchtransfervalidationerror.js +90 -0
  60. package/models/errors/patchtransfervalidationerror.js.map +1 -0
  61. package/models/errors/patchwalletvalidationerror.d.ts +44 -0
  62. package/models/errors/patchwalletvalidationerror.d.ts.map +1 -0
  63. package/models/errors/{patchwalleterror.js → patchwalletvalidationerror.js} +15 -15
  64. package/models/errors/patchwalletvalidationerror.js.map +1 -0
  65. package/models/errors/transfervalidationerror.d.ts +6 -12
  66. package/models/errors/transfervalidationerror.d.ts.map +1 -1
  67. package/models/errors/transfervalidationerror.js +8 -10
  68. package/models/errors/transfervalidationerror.js.map +1 -1
  69. package/package.json +1 -1
  70. package/src/funcs/transfersList.ts +8 -1
  71. package/src/funcs/transfersUpdate.ts +8 -1
  72. package/src/funcs/walletTransactionsList.ts +8 -1
  73. package/src/funcs/walletsCreate.ts +6 -4
  74. package/src/funcs/walletsList.ts +8 -1
  75. package/src/funcs/walletsUpdate.ts +6 -4
  76. package/src/lib/config.ts +2 -2
  77. package/src/mcp-server/mcp-server.ts +1 -1
  78. package/src/mcp-server/server.ts +1 -1
  79. package/src/models/errors/{createwalleterror.ts → createwalletvalidationerror.ts} +20 -20
  80. package/src/models/errors/index.ts +6 -2
  81. package/src/models/errors/listtransfersvalidationerror.ts +145 -0
  82. package/src/models/errors/listwalletsvalidationerror.ts +97 -0
  83. package/src/models/errors/listwallettransactionsvalidationerror.ts +165 -0
  84. package/src/models/errors/patchtransfervalidationerror.ts +85 -0
  85. package/src/models/errors/{patchwalleterror.ts → patchwalletvalidationerror.ts} +20 -20
  86. package/src/models/errors/transfervalidationerror.ts +12 -20
  87. package/models/errors/createwalleterror.d.ts +0 -41
  88. package/models/errors/createwalleterror.d.ts.map +0 -1
  89. package/models/errors/createwalleterror.js.map +0 -1
  90. package/models/errors/patchwalleterror.d.ts +0 -44
  91. package/models/errors/patchwalleterror.d.ts.map +0 -1
  92. package/models/errors/patchwalleterror.js.map +0 -1
@@ -0,0 +1,165 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { MoovError } from "./mooverror.js";
7
+
8
+ export type ListWalletTransactionsValidationErrorData = {
9
+ transactionType?: string | undefined;
10
+ transactionTypes?: string | undefined;
11
+ sourceType?: string | undefined;
12
+ sourceID?: string | undefined;
13
+ status?: string | undefined;
14
+ sweepID?: string | undefined;
15
+ createdStartDateTime?: string | undefined;
16
+ createdEndDateTime?: string | undefined;
17
+ completedStartDateTime?: string | undefined;
18
+ completedEndDateTime?: string | undefined;
19
+ statementDescriptor?: string | undefined;
20
+ skip?: string | undefined;
21
+ count?: string | undefined;
22
+ };
23
+
24
+ export class ListWalletTransactionsValidationError extends MoovError {
25
+ transactionType?: string | undefined;
26
+ transactionTypes?: string | undefined;
27
+ sourceType?: string | undefined;
28
+ sourceID?: string | undefined;
29
+ status?: string | undefined;
30
+ sweepID?: string | undefined;
31
+ createdStartDateTime?: string | undefined;
32
+ createdEndDateTime?: string | undefined;
33
+ completedStartDateTime?: string | undefined;
34
+ completedEndDateTime?: string | undefined;
35
+ statementDescriptor?: string | undefined;
36
+ skip?: string | undefined;
37
+ count?: string | undefined;
38
+
39
+ /** The original data that was passed to this error instance. */
40
+ data$: ListWalletTransactionsValidationErrorData;
41
+
42
+ constructor(
43
+ err: ListWalletTransactionsValidationErrorData,
44
+ httpMeta: { response: Response; request: Request; body: string },
45
+ ) {
46
+ const message = "message" in err && typeof err.message === "string"
47
+ ? err.message
48
+ : `API error occurred: ${JSON.stringify(err)}`;
49
+ super(message, httpMeta);
50
+ this.data$ = err;
51
+ if (err.transactionType != null) this.transactionType = err.transactionType;
52
+ if (err.transactionTypes != null) {
53
+ this.transactionTypes = err.transactionTypes;
54
+ }
55
+ if (err.sourceType != null) this.sourceType = err.sourceType;
56
+ if (err.sourceID != null) this.sourceID = err.sourceID;
57
+ if (err.status != null) this.status = err.status;
58
+ if (err.sweepID != null) this.sweepID = err.sweepID;
59
+ if (err.createdStartDateTime != null) {
60
+ this.createdStartDateTime = err.createdStartDateTime;
61
+ }
62
+ if (err.createdEndDateTime != null) {
63
+ this.createdEndDateTime = err.createdEndDateTime;
64
+ }
65
+ if (err.completedStartDateTime != null) {
66
+ this.completedStartDateTime = err.completedStartDateTime;
67
+ }
68
+ if (err.completedEndDateTime != null) {
69
+ this.completedEndDateTime = err.completedEndDateTime;
70
+ }
71
+ if (err.statementDescriptor != null) {
72
+ this.statementDescriptor = err.statementDescriptor;
73
+ }
74
+ if (err.skip != null) this.skip = err.skip;
75
+ if (err.count != null) this.count = err.count;
76
+
77
+ this.name = "ListWalletTransactionsValidationError";
78
+ }
79
+ }
80
+
81
+ /** @internal */
82
+ export const ListWalletTransactionsValidationError$inboundSchema: z.ZodType<
83
+ ListWalletTransactionsValidationError,
84
+ z.ZodTypeDef,
85
+ unknown
86
+ > = z.object({
87
+ transactionType: z.string().optional(),
88
+ transactionTypes: z.string().optional(),
89
+ sourceType: z.string().optional(),
90
+ sourceID: z.string().optional(),
91
+ status: z.string().optional(),
92
+ sweepID: z.string().optional(),
93
+ createdStartDateTime: z.string().optional(),
94
+ createdEndDateTime: z.string().optional(),
95
+ completedStartDateTime: z.string().optional(),
96
+ completedEndDateTime: z.string().optional(),
97
+ statementDescriptor: z.string().optional(),
98
+ skip: z.string().optional(),
99
+ count: z.string().optional(),
100
+ request$: z.instanceof(Request),
101
+ response$: z.instanceof(Response),
102
+ body$: z.string(),
103
+ })
104
+ .transform((v) => {
105
+ return new ListWalletTransactionsValidationError(v, {
106
+ request: v.request$,
107
+ response: v.response$,
108
+ body: v.body$,
109
+ });
110
+ });
111
+
112
+ /** @internal */
113
+ export type ListWalletTransactionsValidationError$Outbound = {
114
+ transactionType?: string | undefined;
115
+ transactionTypes?: string | undefined;
116
+ sourceType?: string | undefined;
117
+ sourceID?: string | undefined;
118
+ status?: string | undefined;
119
+ sweepID?: string | undefined;
120
+ createdStartDateTime?: string | undefined;
121
+ createdEndDateTime?: string | undefined;
122
+ completedStartDateTime?: string | undefined;
123
+ completedEndDateTime?: string | undefined;
124
+ statementDescriptor?: string | undefined;
125
+ skip?: string | undefined;
126
+ count?: string | undefined;
127
+ };
128
+
129
+ /** @internal */
130
+ export const ListWalletTransactionsValidationError$outboundSchema: z.ZodType<
131
+ ListWalletTransactionsValidationError$Outbound,
132
+ z.ZodTypeDef,
133
+ ListWalletTransactionsValidationError
134
+ > = z.instanceof(ListWalletTransactionsValidationError)
135
+ .transform(v => v.data$)
136
+ .pipe(z.object({
137
+ transactionType: z.string().optional(),
138
+ transactionTypes: z.string().optional(),
139
+ sourceType: z.string().optional(),
140
+ sourceID: z.string().optional(),
141
+ status: z.string().optional(),
142
+ sweepID: z.string().optional(),
143
+ createdStartDateTime: z.string().optional(),
144
+ createdEndDateTime: z.string().optional(),
145
+ completedStartDateTime: z.string().optional(),
146
+ completedEndDateTime: z.string().optional(),
147
+ statementDescriptor: z.string().optional(),
148
+ skip: z.string().optional(),
149
+ count: z.string().optional(),
150
+ }));
151
+
152
+ /**
153
+ * @internal
154
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
155
+ */
156
+ export namespace ListWalletTransactionsValidationError$ {
157
+ /** @deprecated use `ListWalletTransactionsValidationError$inboundSchema` instead. */
158
+ export const inboundSchema =
159
+ ListWalletTransactionsValidationError$inboundSchema;
160
+ /** @deprecated use `ListWalletTransactionsValidationError$outboundSchema` instead. */
161
+ export const outboundSchema =
162
+ ListWalletTransactionsValidationError$outboundSchema;
163
+ /** @deprecated use `ListWalletTransactionsValidationError$Outbound` instead. */
164
+ export type Outbound = ListWalletTransactionsValidationError$Outbound;
165
+ }
@@ -0,0 +1,85 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { MoovError } from "./mooverror.js";
7
+
8
+ export type PatchTransferValidationErrorData = {
9
+ metadata?: string | undefined;
10
+ foreignID?: string | undefined;
11
+ };
12
+
13
+ export class PatchTransferValidationError extends MoovError {
14
+ metadata?: string | undefined;
15
+ foreignID?: string | undefined;
16
+
17
+ /** The original data that was passed to this error instance. */
18
+ data$: PatchTransferValidationErrorData;
19
+
20
+ constructor(
21
+ err: PatchTransferValidationErrorData,
22
+ httpMeta: { response: Response; request: Request; body: string },
23
+ ) {
24
+ const message = "message" in err && typeof err.message === "string"
25
+ ? err.message
26
+ : `API error occurred: ${JSON.stringify(err)}`;
27
+ super(message, httpMeta);
28
+ this.data$ = err;
29
+ if (err.metadata != null) this.metadata = err.metadata;
30
+ if (err.foreignID != null) this.foreignID = err.foreignID;
31
+
32
+ this.name = "PatchTransferValidationError";
33
+ }
34
+ }
35
+
36
+ /** @internal */
37
+ export const PatchTransferValidationError$inboundSchema: z.ZodType<
38
+ PatchTransferValidationError,
39
+ z.ZodTypeDef,
40
+ unknown
41
+ > = z.object({
42
+ metadata: z.string().optional(),
43
+ foreignID: z.string().optional(),
44
+ request$: z.instanceof(Request),
45
+ response$: z.instanceof(Response),
46
+ body$: z.string(),
47
+ })
48
+ .transform((v) => {
49
+ return new PatchTransferValidationError(v, {
50
+ request: v.request$,
51
+ response: v.response$,
52
+ body: v.body$,
53
+ });
54
+ });
55
+
56
+ /** @internal */
57
+ export type PatchTransferValidationError$Outbound = {
58
+ metadata?: string | undefined;
59
+ foreignID?: string | undefined;
60
+ };
61
+
62
+ /** @internal */
63
+ export const PatchTransferValidationError$outboundSchema: z.ZodType<
64
+ PatchTransferValidationError$Outbound,
65
+ z.ZodTypeDef,
66
+ PatchTransferValidationError
67
+ > = z.instanceof(PatchTransferValidationError)
68
+ .transform(v => v.data$)
69
+ .pipe(z.object({
70
+ metadata: z.string().optional(),
71
+ foreignID: z.string().optional(),
72
+ }));
73
+
74
+ /**
75
+ * @internal
76
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
77
+ */
78
+ export namespace PatchTransferValidationError$ {
79
+ /** @deprecated use `PatchTransferValidationError$inboundSchema` instead. */
80
+ export const inboundSchema = PatchTransferValidationError$inboundSchema;
81
+ /** @deprecated use `PatchTransferValidationError$outboundSchema` instead. */
82
+ export const outboundSchema = PatchTransferValidationError$outboundSchema;
83
+ /** @deprecated use `PatchTransferValidationError$Outbound` instead. */
84
+ export type Outbound = PatchTransferValidationError$Outbound;
85
+ }
@@ -5,23 +5,23 @@
5
5
  import * as z from "zod";
6
6
  import { MoovError } from "./mooverror.js";
7
7
 
8
- export type PatchWalletErrorData = {
8
+ export type PatchWalletValidationErrorData = {
9
9
  name?: string | undefined;
10
10
  status?: string | undefined;
11
11
  description?: string | undefined;
12
12
  metadata?: string | undefined;
13
13
  };
14
14
 
15
- export class PatchWalletError extends MoovError {
15
+ export class PatchWalletValidationError extends MoovError {
16
16
  status?: string | undefined;
17
17
  description?: string | undefined;
18
18
  metadata?: string | undefined;
19
19
 
20
20
  /** The original data that was passed to this error instance. */
21
- data$: PatchWalletErrorData;
21
+ data$: PatchWalletValidationErrorData;
22
22
 
23
23
  constructor(
24
- err: PatchWalletErrorData,
24
+ err: PatchWalletValidationErrorData,
25
25
  httpMeta: { response: Response; request: Request; body: string },
26
26
  ) {
27
27
  const message = "message" in err && typeof err.message === "string"
@@ -33,13 +33,13 @@ export class PatchWalletError extends MoovError {
33
33
  if (err.description != null) this.description = err.description;
34
34
  if (err.metadata != null) this.metadata = err.metadata;
35
35
 
36
- this.name = "PatchWalletError";
36
+ this.name = "PatchWalletValidationError";
37
37
  }
38
38
  }
39
39
 
40
40
  /** @internal */
41
- export const PatchWalletError$inboundSchema: z.ZodType<
42
- PatchWalletError,
41
+ export const PatchWalletValidationError$inboundSchema: z.ZodType<
42
+ PatchWalletValidationError,
43
43
  z.ZodTypeDef,
44
44
  unknown
45
45
  > = z.object({
@@ -52,7 +52,7 @@ export const PatchWalletError$inboundSchema: z.ZodType<
52
52
  body$: z.string(),
53
53
  })
54
54
  .transform((v) => {
55
- return new PatchWalletError(v, {
55
+ return new PatchWalletValidationError(v, {
56
56
  request: v.request$,
57
57
  response: v.response$,
58
58
  body: v.body$,
@@ -60,7 +60,7 @@ export const PatchWalletError$inboundSchema: z.ZodType<
60
60
  });
61
61
 
62
62
  /** @internal */
63
- export type PatchWalletError$Outbound = {
63
+ export type PatchWalletValidationError$Outbound = {
64
64
  name?: string | undefined;
65
65
  status?: string | undefined;
66
66
  description?: string | undefined;
@@ -68,11 +68,11 @@ export type PatchWalletError$Outbound = {
68
68
  };
69
69
 
70
70
  /** @internal */
71
- export const PatchWalletError$outboundSchema: z.ZodType<
72
- PatchWalletError$Outbound,
71
+ export const PatchWalletValidationError$outboundSchema: z.ZodType<
72
+ PatchWalletValidationError$Outbound,
73
73
  z.ZodTypeDef,
74
- PatchWalletError
75
- > = z.instanceof(PatchWalletError)
74
+ PatchWalletValidationError
75
+ > = z.instanceof(PatchWalletValidationError)
76
76
  .transform(v => v.data$)
77
77
  .pipe(z.object({
78
78
  name: z.string().optional(),
@@ -85,11 +85,11 @@ export const PatchWalletError$outboundSchema: z.ZodType<
85
85
  * @internal
86
86
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
87
87
  */
88
- export namespace PatchWalletError$ {
89
- /** @deprecated use `PatchWalletError$inboundSchema` instead. */
90
- export const inboundSchema = PatchWalletError$inboundSchema;
91
- /** @deprecated use `PatchWalletError$outboundSchema` instead. */
92
- export const outboundSchema = PatchWalletError$outboundSchema;
93
- /** @deprecated use `PatchWalletError$Outbound` instead. */
94
- export type Outbound = PatchWalletError$Outbound;
88
+ export namespace PatchWalletValidationError$ {
89
+ /** @deprecated use `PatchWalletValidationError$inboundSchema` instead. */
90
+ export const inboundSchema = PatchWalletValidationError$inboundSchema;
91
+ /** @deprecated use `PatchWalletValidationError$outboundSchema` instead. */
92
+ export const outboundSchema = PatchWalletValidationError$outboundSchema;
93
+ /** @deprecated use `PatchWalletValidationError$Outbound` instead. */
94
+ export type Outbound = PatchWalletValidationError$Outbound;
95
95
  }
@@ -7,7 +7,6 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { MoovError } from "./mooverror.js";
8
8
 
9
9
  export type TransferValidationErrorData = {
10
- transfer?: string | undefined;
11
10
  amount?: string | undefined;
12
11
  source?: string | undefined;
13
12
  sourcePaymentMethodID?: string | undefined;
@@ -16,14 +15,11 @@ export type TransferValidationErrorData = {
16
15
  facilitatorFeeTotalDecimal?: string | undefined;
17
16
  facilitatorFeeMarkupDecimal?: string | undefined;
18
17
  metadata?: string | undefined;
19
- /**
20
- * Used for generic errors when invalid request data isn't attributed to a single request field.
21
- */
22
- error?: string | undefined;
18
+ salesTaxAmount?: string | undefined;
19
+ foreignID?: string | undefined;
23
20
  };
24
21
 
25
22
  export class TransferValidationError extends MoovError {
26
- transfer?: string | undefined;
27
23
  amount?: string | undefined;
28
24
  source?: string | undefined;
29
25
  sourcePaymentMethodID?: string | undefined;
@@ -32,10 +28,8 @@ export class TransferValidationError extends MoovError {
32
28
  facilitatorFeeTotalDecimal?: string | undefined;
33
29
  facilitatorFeeMarkupDecimal?: string | undefined;
34
30
  metadata?: string | undefined;
35
- /**
36
- * Used for generic errors when invalid request data isn't attributed to a single request field.
37
- */
38
- error?: string | undefined;
31
+ salesTaxAmount?: string | undefined;
32
+ foreignID?: string | undefined;
39
33
 
40
34
  /** The original data that was passed to this error instance. */
41
35
  data$: TransferValidationErrorData;
@@ -49,7 +43,6 @@ export class TransferValidationError extends MoovError {
49
43
  : `API error occurred: ${JSON.stringify(err)}`;
50
44
  super(message, httpMeta);
51
45
  this.data$ = err;
52
- if (err.transfer != null) this.transfer = err.transfer;
53
46
  if (err.amount != null) this.amount = err.amount;
54
47
  if (err.source != null) this.source = err.source;
55
48
  if (err.sourcePaymentMethodID != null) {
@@ -66,7 +59,8 @@ export class TransferValidationError extends MoovError {
66
59
  this.facilitatorFeeMarkupDecimal = err.facilitatorFeeMarkupDecimal;
67
60
  }
68
61
  if (err.metadata != null) this.metadata = err.metadata;
69
- if (err.error != null) this.error = err.error;
62
+ if (err.salesTaxAmount != null) this.salesTaxAmount = err.salesTaxAmount;
63
+ if (err.foreignID != null) this.foreignID = err.foreignID;
70
64
 
71
65
  this.name = "TransferValidationError";
72
66
  }
@@ -78,7 +72,6 @@ export const TransferValidationError$inboundSchema: z.ZodType<
78
72
  z.ZodTypeDef,
79
73
  unknown
80
74
  > = z.object({
81
- Transfer: z.string().optional(),
82
75
  amount: z.string().optional(),
83
76
  source: z.string().optional(),
84
77
  sourcePaymentMethodID: z.string().optional(),
@@ -87,14 +80,14 @@ export const TransferValidationError$inboundSchema: z.ZodType<
87
80
  "FacilitatorFee.TotalDecimal": z.string().optional(),
88
81
  "FacilitatorFee.MarkupDecimal": z.string().optional(),
89
82
  metadata: z.string().optional(),
90
- error: z.string().optional(),
83
+ salesTaxAmount: z.string().optional(),
84
+ foreignID: z.string().optional(),
91
85
  request$: z.instanceof(Request),
92
86
  response$: z.instanceof(Response),
93
87
  body$: z.string(),
94
88
  })
95
89
  .transform((v) => {
96
90
  const remapped = remap$(v, {
97
- "Transfer": "transfer",
98
91
  "FacilitatorFee.TotalDecimal": "facilitatorFeeTotalDecimal",
99
92
  "FacilitatorFee.MarkupDecimal": "facilitatorFeeMarkupDecimal",
100
93
  });
@@ -108,7 +101,6 @@ export const TransferValidationError$inboundSchema: z.ZodType<
108
101
 
109
102
  /** @internal */
110
103
  export type TransferValidationError$Outbound = {
111
- Transfer?: string | undefined;
112
104
  amount?: string | undefined;
113
105
  source?: string | undefined;
114
106
  sourcePaymentMethodID?: string | undefined;
@@ -117,7 +109,8 @@ export type TransferValidationError$Outbound = {
117
109
  "FacilitatorFee.TotalDecimal"?: string | undefined;
118
110
  "FacilitatorFee.MarkupDecimal"?: string | undefined;
119
111
  metadata?: string | undefined;
120
- error?: string | undefined;
112
+ salesTaxAmount?: string | undefined;
113
+ foreignID?: string | undefined;
121
114
  };
122
115
 
123
116
  /** @internal */
@@ -129,7 +122,6 @@ export const TransferValidationError$outboundSchema: z.ZodType<
129
122
  .transform(v => v.data$)
130
123
  .pipe(
131
124
  z.object({
132
- transfer: z.string().optional(),
133
125
  amount: z.string().optional(),
134
126
  source: z.string().optional(),
135
127
  sourcePaymentMethodID: z.string().optional(),
@@ -138,10 +130,10 @@ export const TransferValidationError$outboundSchema: z.ZodType<
138
130
  facilitatorFeeTotalDecimal: z.string().optional(),
139
131
  facilitatorFeeMarkupDecimal: z.string().optional(),
140
132
  metadata: z.string().optional(),
141
- error: z.string().optional(),
133
+ salesTaxAmount: z.string().optional(),
134
+ foreignID: z.string().optional(),
142
135
  }).transform((v) => {
143
136
  return remap$(v, {
144
- transfer: "Transfer",
145
137
  facilitatorFeeTotalDecimal: "FacilitatorFee.TotalDecimal",
146
138
  facilitatorFeeMarkupDecimal: "FacilitatorFee.MarkupDecimal",
147
139
  });
@@ -1,41 +0,0 @@
1
- import * as z from "zod";
2
- import { MoovError } from "./mooverror.js";
3
- export type CreateWalletErrorData = {
4
- name?: string | undefined;
5
- description?: string | undefined;
6
- metadata?: string | undefined;
7
- };
8
- export declare class CreateWalletError extends MoovError {
9
- description?: string | undefined;
10
- metadata?: string | undefined;
11
- /** The original data that was passed to this error instance. */
12
- data$: CreateWalletErrorData;
13
- constructor(err: CreateWalletErrorData, httpMeta: {
14
- response: Response;
15
- request: Request;
16
- body: string;
17
- });
18
- }
19
- /** @internal */
20
- export declare const CreateWalletError$inboundSchema: z.ZodType<CreateWalletError, z.ZodTypeDef, unknown>;
21
- /** @internal */
22
- export type CreateWalletError$Outbound = {
23
- name?: string | undefined;
24
- description?: string | undefined;
25
- metadata?: string | undefined;
26
- };
27
- /** @internal */
28
- export declare const CreateWalletError$outboundSchema: z.ZodType<CreateWalletError$Outbound, z.ZodTypeDef, CreateWalletError>;
29
- /**
30
- * @internal
31
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
32
- */
33
- export declare namespace CreateWalletError$ {
34
- /** @deprecated use `CreateWalletError$inboundSchema` instead. */
35
- const inboundSchema: z.ZodType<CreateWalletError, z.ZodTypeDef, unknown>;
36
- /** @deprecated use `CreateWalletError$outboundSchema` instead. */
37
- const outboundSchema: z.ZodType<CreateWalletError$Outbound, z.ZodTypeDef, CreateWalletError>;
38
- /** @deprecated use `CreateWalletError$Outbound` instead. */
39
- type Outbound = CreateWalletError$Outbound;
40
- }
41
- //# sourceMappingURL=createwalleterror.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createwalleterror.d.ts","sourceRoot":"","sources":["../../src/models/errors/createwalleterror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAA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QAAQ;QACnB,QAAQ,EAAE,CAAC,CAAC,SAAS;QACrB,IAAI,EAAE,CAAC,CAAC,KAAK;KACd,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AASL,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,UAAU,CAAC,iBAAiB,CAAC;KAChC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;KACvB,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;IACb,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC,CAAC;AAEN;;;GAGG;AACH,IAAiB,kBAAkB,CAOlC;AAPD,WAAiB,kBAAkB;IACjC,iEAAiE;IACpD,gCAAa,GAAG,uCAA+B,CAAC;IAC7D,kEAAkE;IACrD,iCAAc,GAAG,wCAAgC,CAAC;AAGjE,CAAC,EAPgB,kBAAkB,kCAAlB,kBAAkB,QAOlC"}
@@ -1,44 +0,0 @@
1
- import * as z from "zod";
2
- import { MoovError } from "./mooverror.js";
3
- export type PatchWalletErrorData = {
4
- name?: string | undefined;
5
- status?: string | undefined;
6
- description?: string | undefined;
7
- metadata?: string | undefined;
8
- };
9
- export declare class PatchWalletError extends MoovError {
10
- status?: string | undefined;
11
- description?: string | undefined;
12
- metadata?: string | undefined;
13
- /** The original data that was passed to this error instance. */
14
- data$: PatchWalletErrorData;
15
- constructor(err: PatchWalletErrorData, httpMeta: {
16
- response: Response;
17
- request: Request;
18
- body: string;
19
- });
20
- }
21
- /** @internal */
22
- export declare const PatchWalletError$inboundSchema: z.ZodType<PatchWalletError, z.ZodTypeDef, unknown>;
23
- /** @internal */
24
- export type PatchWalletError$Outbound = {
25
- name?: string | undefined;
26
- status?: string | undefined;
27
- description?: string | undefined;
28
- metadata?: string | undefined;
29
- };
30
- /** @internal */
31
- export declare const PatchWalletError$outboundSchema: z.ZodType<PatchWalletError$Outbound, z.ZodTypeDef, PatchWalletError>;
32
- /**
33
- * @internal
34
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
35
- */
36
- export declare namespace PatchWalletError$ {
37
- /** @deprecated use `PatchWalletError$inboundSchema` instead. */
38
- const inboundSchema: z.ZodType<PatchWalletError, z.ZodTypeDef, unknown>;
39
- /** @deprecated use `PatchWalletError$outboundSchema` instead. */
40
- const outboundSchema: z.ZodType<PatchWalletError$Outbound, z.ZodTypeDef, PatchWalletError>;
41
- /** @deprecated use `PatchWalletError$Outbound` instead. */
42
- type Outbound = PatchWalletError$Outbound;
43
- }
44
- //# sourceMappingURL=patchwalleterror.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"patchwalleterror.d.ts","sourceRoot":"","sources":["../../src/models/errors/patchwalleterror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,qBAAa,gBAAiB,SAAQ,SAAS;IAC7C,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE9B,gEAAgE;IAChE,KAAK,EAAE,oBAAoB,CAAC;gBAG1B,GAAG,EAAE,oBAAoB,EACzB,QAAQ,EAAE;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