@moovio/sdk 0.12.3 → 0.12.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.
Files changed (142) hide show
  1. package/README.md +54 -36
  2. package/bin/mcp-server.js +453 -202
  3. package/bin/mcp-server.js.map +31 -28
  4. package/docs/sdks/transfers/README.md +117 -2
  5. package/funcs/disputesUploadEvidenceFile.d.ts.map +1 -1
  6. package/funcs/disputesUploadEvidenceFile.js +5 -3
  7. package/funcs/disputesUploadEvidenceFile.js.map +1 -1
  8. package/funcs/filesUpload.d.ts.map +1 -1
  9. package/funcs/filesUpload.js +5 -3
  10. package/funcs/filesUpload.js.map +1 -1
  11. package/funcs/transfersGenerateOptions.d.ts +1 -1
  12. package/funcs/transfersGenerateOptions.js +1 -1
  13. package/funcs/transfersGenerateOptionsForAccount.d.ts +23 -0
  14. package/funcs/transfersGenerateOptionsForAccount.d.ts.map +1 -0
  15. package/funcs/transfersGenerateOptionsForAccount.js +133 -0
  16. package/funcs/transfersGenerateOptionsForAccount.js.map +1 -0
  17. package/funcs/transfersList.js +1 -1
  18. package/funcs/transfersList.js.map +1 -1
  19. package/jsr.json +1 -1
  20. package/lib/config.d.ts +3 -3
  21. package/lib/config.js +3 -3
  22. package/lib/files.d.ts +5 -0
  23. package/lib/files.d.ts.map +1 -1
  24. package/lib/files.js +41 -0
  25. package/lib/files.js.map +1 -1
  26. package/lib/security.d.ts +2 -2
  27. package/lib/security.d.ts.map +1 -1
  28. package/mcp-server/mcp-server.js +1 -1
  29. package/mcp-server/server.d.ts.map +1 -1
  30. package/mcp-server/server.js +3 -1
  31. package/mcp-server/server.js.map +1 -1
  32. package/mcp-server/tools/transfersGenerateOptions.js +1 -1
  33. package/mcp-server/tools/transfersGenerateOptions.js.map +1 -1
  34. package/mcp-server/tools/transfersGenerateOptionsForAccount.d.ts +8 -0
  35. package/mcp-server/tools/transfersGenerateOptionsForAccount.d.ts.map +1 -0
  36. package/mcp-server/tools/transfersGenerateOptionsForAccount.js +70 -0
  37. package/mcp-server/tools/transfersGenerateOptionsForAccount.js.map +1 -0
  38. package/models/components/createaccount.d.ts +4 -4
  39. package/models/components/createaccount.d.ts.map +1 -1
  40. package/models/components/createaccount.js +4 -4
  41. package/models/components/createaccount.js.map +1 -1
  42. package/models/components/createdtransfer.d.ts +2 -0
  43. package/models/components/createdtransfer.d.ts.map +1 -1
  44. package/models/components/createdtransfer.js +2 -0
  45. package/models/components/createdtransfer.js.map +1 -1
  46. package/models/components/createrefundresponse.d.ts +2 -2
  47. package/models/components/createrefundresponse.d.ts.map +1 -1
  48. package/models/components/createrefundresponse.js +2 -2
  49. package/models/components/createrefundresponse.js.map +1 -1
  50. package/models/components/index.d.ts +1 -1
  51. package/models/components/index.d.ts.map +1 -1
  52. package/models/components/index.js +1 -1
  53. package/models/components/index.js.map +1 -1
  54. package/models/components/transfer.d.ts +2 -2
  55. package/models/components/transfer.d.ts.map +1 -1
  56. package/models/components/transfer.js +2 -2
  57. package/models/components/transfer.js.map +1 -1
  58. package/models/components/webhookdata.d.ts +2 -2
  59. package/models/components/webhookdata.d.ts.map +1 -1
  60. package/models/components/webhookdata.js +38 -38
  61. package/models/components/webhookdata.js.map +1 -1
  62. package/models/components/webhookdatatransfercreated.d.ts +2 -5
  63. package/models/components/webhookdatatransfercreated.d.ts.map +1 -1
  64. package/models/components/webhookdatatransfercreated.js +3 -3
  65. package/models/components/webhookdatatransfercreated.js.map +1 -1
  66. package/models/components/webhookdatatransferstatus.d.ts +94 -0
  67. package/models/components/webhookdatatransferstatus.d.ts.map +1 -0
  68. package/models/components/webhookdatatransferstatus.js +82 -0
  69. package/models/components/webhookdatatransferstatus.js.map +1 -0
  70. package/models/components/webhookdatatransferupdated.d.ts +2 -5
  71. package/models/components/webhookdatatransferupdated.d.ts.map +1 -1
  72. package/models/components/webhookdatatransferupdated.js +3 -3
  73. package/models/components/webhookdatatransferupdated.js.map +1 -1
  74. package/models/components/webhookdatawallettransactionupdated.d.ts +3 -6
  75. package/models/components/webhookdatawallettransactionupdated.d.ts.map +1 -1
  76. package/models/components/webhookdatawallettransactionupdated.js +3 -3
  77. package/models/components/webhookdatawallettransactionupdated.js.map +1 -1
  78. package/models/components/webhookeventtype.d.ts +3 -0
  79. package/models/components/webhookeventtype.d.ts.map +1 -1
  80. package/models/components/webhookeventtype.js +1 -0
  81. package/models/components/webhookeventtype.js.map +1 -1
  82. package/models/errors/transfer.d.ts +3 -3
  83. package/models/errors/transfer.d.ts.map +1 -1
  84. package/models/errors/transfer.js +4 -4
  85. package/models/errors/transfer.js.map +1 -1
  86. package/models/operations/createtransfer.d.ts +4 -4
  87. package/models/operations/createtransfer.d.ts.map +1 -1
  88. package/models/operations/createtransfer.js +8 -8
  89. package/models/operations/createtransfer.js.map +1 -1
  90. package/models/operations/createtransferoptionsforaccount.d.ts +104 -0
  91. package/models/operations/createtransferoptionsforaccount.d.ts.map +1 -0
  92. package/models/operations/createtransferoptionsforaccount.js +155 -0
  93. package/models/operations/createtransferoptionsforaccount.js.map +1 -0
  94. package/models/operations/index.d.ts +1 -0
  95. package/models/operations/index.d.ts.map +1 -1
  96. package/models/operations/index.js +1 -0
  97. package/models/operations/index.js.map +1 -1
  98. package/models/operations/listtransfers.d.ts +3 -3
  99. package/models/operations/listtransfers.d.ts.map +1 -1
  100. package/models/operations/listtransfers.js +2 -2
  101. package/models/operations/listtransfers.js.map +1 -1
  102. package/package.json +1 -1
  103. package/sdk/transfers.d.ts +13 -1
  104. package/sdk/transfers.d.ts.map +1 -1
  105. package/sdk/transfers.js +16 -1
  106. package/sdk/transfers.js.map +1 -1
  107. package/src/funcs/disputesUploadEvidenceFile.ts +20 -4
  108. package/src/funcs/filesUpload.ts +20 -4
  109. package/src/funcs/transfersGenerateOptions.ts +1 -1
  110. package/src/funcs/transfersGenerateOptionsForAccount.ts +202 -0
  111. package/src/funcs/transfersList.ts +1 -1
  112. package/src/lib/config.ts +3 -3
  113. package/src/lib/files.ts +42 -0
  114. package/src/lib/security.ts +2 -2
  115. package/src/mcp-server/mcp-server.ts +1 -1
  116. package/src/mcp-server/server.ts +3 -1
  117. package/src/mcp-server/tools/transfersGenerateOptions.ts +1 -1
  118. package/src/mcp-server/tools/transfersGenerateOptionsForAccount.ts +46 -0
  119. package/src/models/components/createaccount.ts +10 -10
  120. package/src/models/components/createdtransfer.ts +4 -0
  121. package/src/models/components/createrefundresponse.ts +5 -5
  122. package/src/models/components/index.ts +1 -1
  123. package/src/models/components/transfer.ts +4 -4
  124. package/src/models/components/webhookdata.ts +76 -76
  125. package/src/models/components/webhookdatatransfercreated.ts +7 -10
  126. package/src/models/components/webhookdatatransferstatus.ts +57 -0
  127. package/src/models/components/webhookdatatransferupdated.ts +7 -10
  128. package/src/models/components/webhookdatawallettransactionupdated.ts +10 -13
  129. package/src/models/components/webhookeventtype.ts +1 -0
  130. package/src/models/errors/transfer.ts +6 -6
  131. package/src/models/operations/createtransfer.ts +16 -16
  132. package/src/models/operations/createtransferoptionsforaccount.ts +257 -0
  133. package/src/models/operations/index.ts +1 -0
  134. package/src/models/operations/listtransfers.ts +5 -5
  135. package/src/sdk/transfers.ts +24 -1
  136. package/src/types/constdatetime.ts +1 -1
  137. package/types/constdatetime.js +1 -1
  138. package/models/components/webhookwalletavailablebalance.d.ts +0 -36
  139. package/models/components/webhookwalletavailablebalance.d.ts.map +0 -1
  140. package/models/components/webhookwalletavailablebalance.js +0 -73
  141. package/models/components/webhookwalletavailablebalance.js.map +0 -1
  142. package/src/models/components/webhookwalletavailablebalance.ts +0 -79
@@ -49,8 +49,8 @@ import {
49
49
  } from "./termsofservicetoken.js";
50
50
 
51
51
  export type CreateAccountTermsOfService =
52
- | TermsOfServiceToken
53
- | ManualTermsOfService;
52
+ | ManualTermsOfService
53
+ | TermsOfServiceToken;
54
54
 
55
55
  export type CreateAccount = {
56
56
  accountType: CreateAccountType;
@@ -59,7 +59,7 @@ export type CreateAccount = {
59
59
  * Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
60
60
  */
61
61
  metadata?: { [k: string]: string } | undefined;
62
- termsOfService?: TermsOfServiceToken | ManualTermsOfService | undefined;
62
+ termsOfService?: ManualTermsOfService | TermsOfServiceToken | undefined;
63
63
  /**
64
64
  * Optional alias from a foreign/external system which can be used to reference this resource.
65
65
  */
@@ -88,14 +88,14 @@ export const CreateAccountTermsOfService$inboundSchema: z.ZodType<
88
88
  z.ZodTypeDef,
89
89
  unknown
90
90
  > = z.union([
91
- TermsOfServiceToken$inboundSchema,
92
91
  ManualTermsOfService$inboundSchema,
92
+ TermsOfServiceToken$inboundSchema,
93
93
  ]);
94
94
 
95
95
  /** @internal */
96
96
  export type CreateAccountTermsOfService$Outbound =
97
- | TermsOfServiceToken$Outbound
98
- | ManualTermsOfService$Outbound;
97
+ | ManualTermsOfService$Outbound
98
+ | TermsOfServiceToken$Outbound;
99
99
 
100
100
  /** @internal */
101
101
  export const CreateAccountTermsOfService$outboundSchema: z.ZodType<
@@ -103,8 +103,8 @@ export const CreateAccountTermsOfService$outboundSchema: z.ZodType<
103
103
  z.ZodTypeDef,
104
104
  CreateAccountTermsOfService
105
105
  > = z.union([
106
- TermsOfServiceToken$outboundSchema,
107
106
  ManualTermsOfService$outboundSchema,
107
+ TermsOfServiceToken$outboundSchema,
108
108
  ]);
109
109
 
110
110
  /**
@@ -150,8 +150,8 @@ export const CreateAccount$inboundSchema: z.ZodType<
150
150
  profile: CreateProfile$inboundSchema,
151
151
  metadata: z.record(z.string()).optional(),
152
152
  termsOfService: z.union([
153
- TermsOfServiceToken$inboundSchema,
154
153
  ManualTermsOfService$inboundSchema,
154
+ TermsOfServiceToken$inboundSchema,
155
155
  ]).optional(),
156
156
  foreignID: z.string().optional(),
157
157
  customerSupport: CustomerSupport$inboundSchema.optional(),
@@ -166,8 +166,8 @@ export type CreateAccount$Outbound = {
166
166
  profile: CreateProfile$Outbound;
167
167
  metadata?: { [k: string]: string } | undefined;
168
168
  termsOfService?:
169
- | TermsOfServiceToken$Outbound
170
169
  | ManualTermsOfService$Outbound
170
+ | TermsOfServiceToken$Outbound
171
171
  | undefined;
172
172
  foreignID?: string | undefined;
173
173
  customerSupport?: CustomerSupport$Outbound | undefined;
@@ -186,8 +186,8 @@ export const CreateAccount$outboundSchema: z.ZodType<
186
186
  profile: CreateProfile$outboundSchema,
187
187
  metadata: z.record(z.string()).optional(),
188
188
  termsOfService: z.union([
189
- TermsOfServiceToken$outboundSchema,
190
189
  ManualTermsOfService$outboundSchema,
190
+ TermsOfServiceToken$outboundSchema,
191
191
  ]).optional(),
192
192
  foreignID: z.string().optional(),
193
193
  customerSupport: CustomerSupport$outboundSchema.optional(),
@@ -113,6 +113,7 @@ export type CreatedTransfer = {
113
113
  sweepID?: string | undefined;
114
114
  scheduleID?: string | undefined;
115
115
  occurrenceID?: string | undefined;
116
+ paymentLinkCode?: string | undefined;
116
117
  /**
117
118
  * Optional sales tax amount. `transfer.amount.value` should be inclusive of any sales tax and represents the total amount charged.
118
119
  */
@@ -149,6 +150,7 @@ export const CreatedTransfer$inboundSchema: z.ZodType<
149
150
  sweepID: z.string().optional(),
150
151
  scheduleID: z.string().optional(),
151
152
  occurrenceID: z.string().optional(),
153
+ paymentLinkCode: z.string().optional(),
152
154
  salesTaxAmount: Amount$inboundSchema.optional(),
153
155
  });
154
156
 
@@ -177,6 +179,7 @@ export type CreatedTransfer$Outbound = {
177
179
  sweepID?: string | undefined;
178
180
  scheduleID?: string | undefined;
179
181
  occurrenceID?: string | undefined;
182
+ paymentLinkCode?: string | undefined;
180
183
  salesTaxAmount?: Amount$Outbound | undefined;
181
184
  };
182
185
 
@@ -209,6 +212,7 @@ export const CreatedTransfer$outboundSchema: z.ZodType<
209
212
  sweepID: z.string().optional(),
210
213
  scheduleID: z.string().optional(),
211
214
  occurrenceID: z.string().optional(),
215
+ paymentLinkCode: z.string().optional(),
212
216
  salesTaxAmount: Amount$outboundSchema.optional(),
213
217
  });
214
218
 
@@ -19,7 +19,7 @@ import {
19
19
  CardAcquiringRefund$outboundSchema,
20
20
  } from "./cardacquiringrefund.js";
21
21
 
22
- export type CreateRefundResponse = AsyncCreatedRefund | CardAcquiringRefund;
22
+ export type CreateRefundResponse = CardAcquiringRefund | AsyncCreatedRefund;
23
23
 
24
24
  /** @internal */
25
25
  export const CreateRefundResponse$inboundSchema: z.ZodType<
@@ -27,14 +27,14 @@ export const CreateRefundResponse$inboundSchema: z.ZodType<
27
27
  z.ZodTypeDef,
28
28
  unknown
29
29
  > = z.union([
30
- AsyncCreatedRefund$inboundSchema,
31
30
  CardAcquiringRefund$inboundSchema,
31
+ AsyncCreatedRefund$inboundSchema,
32
32
  ]);
33
33
 
34
34
  /** @internal */
35
35
  export type CreateRefundResponse$Outbound =
36
- | AsyncCreatedRefund$Outbound
37
- | CardAcquiringRefund$Outbound;
36
+ | CardAcquiringRefund$Outbound
37
+ | AsyncCreatedRefund$Outbound;
38
38
 
39
39
  /** @internal */
40
40
  export const CreateRefundResponse$outboundSchema: z.ZodType<
@@ -42,8 +42,8 @@ export const CreateRefundResponse$outboundSchema: z.ZodType<
42
42
  z.ZodTypeDef,
43
43
  CreateRefundResponse
44
44
  > = z.union([
45
- AsyncCreatedRefund$outboundSchema,
46
45
  CardAcquiringRefund$outboundSchema,
46
+ AsyncCreatedRefund$outboundSchema,
47
47
  ]);
48
48
 
49
49
  /**
@@ -400,11 +400,11 @@ export * from "./webhookdatasweepupdated.js";
400
400
  export * from "./webhookdataterminalapplicationcreated.js";
401
401
  export * from "./webhookdataterminalapplicationupdated.js";
402
402
  export * from "./webhookdatatransfercreated.js";
403
+ export * from "./webhookdatatransferstatus.js";
403
404
  export * from "./webhookdatatransferupdated.js";
404
405
  export * from "./webhookdatawallettransactionupdated.js";
405
406
  export * from "./webhookevent.js";
406
407
  export * from "./webhookeventtype.js";
407
408
  export * from "./webhooktransferpaymentmethoddetails.js";
408
- export * from "./webhookwalletavailablebalance.js";
409
409
  export * from "./wireinstitution.js";
410
410
  export * from "./wireservices.js";
@@ -126,7 +126,7 @@ export type Transfer = {
126
126
  sweepID?: string | undefined;
127
127
  scheduleID?: string | undefined;
128
128
  occurrenceID?: string | undefined;
129
- paymentLinkID?: string | undefined;
129
+ paymentLinkCode?: string | undefined;
130
130
  /**
131
131
  * Optional sales tax amount. `transfer.amount.value` should be inclusive of any sales tax and represents the total amount charged.
132
132
  */
@@ -164,7 +164,7 @@ export const Transfer$inboundSchema: z.ZodType<
164
164
  sweepID: z.string().optional(),
165
165
  scheduleID: z.string().optional(),
166
166
  occurrenceID: z.string().optional(),
167
- paymentLinkID: z.string().optional(),
167
+ paymentLinkCode: z.string().optional(),
168
168
  salesTaxAmount: Amount$inboundSchema.optional(),
169
169
  });
170
170
 
@@ -194,7 +194,7 @@ export type Transfer$Outbound = {
194
194
  sweepID?: string | undefined;
195
195
  scheduleID?: string | undefined;
196
196
  occurrenceID?: string | undefined;
197
- paymentLinkID?: string | undefined;
197
+ paymentLinkCode?: string | undefined;
198
198
  salesTaxAmount?: Amount$Outbound | undefined;
199
199
  };
200
200
 
@@ -228,7 +228,7 @@ export const Transfer$outboundSchema: z.ZodType<
228
228
  sweepID: z.string().optional(),
229
229
  scheduleID: z.string().optional(),
230
230
  occurrenceID: z.string().optional(),
231
- paymentLinkID: z.string().optional(),
231
+ paymentLinkCode: z.string().optional(),
232
232
  salesTaxAmount: Amount$outboundSchema.optional(),
233
233
  });
234
234
 
@@ -185,34 +185,34 @@ import {
185
185
  * The data for the webhook event. The contents are based on the event type.
186
186
  */
187
187
  export type WebhookData =
188
- | WebhookDataAccountCreated
189
- | WebhookDataAccountUpdated
190
- | WebhookDataAccountDeleted
188
+ | WebhookDataDisputeCreated
189
+ | WebhookDataDisputeUpdated
190
+ | WebhookDataTransferUpdated
191
+ | WebhookDataBankAccountUpdated
192
+ | WebhookDataRefundUpdated
193
+ | WebhookDataWalletTransactionUpdated
194
+ | WebhookDataCancellationCreated
195
+ | WebhookDataCancellationUpdated
196
+ | WebhookDataCardAutoUpdated
197
+ | WebhookDataCapabilityUpdated
198
+ | WebhookDataPaymentMethodEnabled
199
+ | WebhookDataPaymentMethodDisabled
200
+ | WebhookDataRefundCreated
201
+ | WebhookDataSweepUpdated
202
+ | WebhookDataTransferCreated
191
203
  | WebhookDataBalanceUpdated
192
204
  | WebhookDataBankAccountCreated
193
205
  | WebhookDataBankAccountDeleted
206
+ | WebhookDataCapabilityRequested
194
207
  | WebhookDataRepresentativeCreated
195
208
  | WebhookDataRepresentativeUpdated
196
209
  | WebhookDataRepresentativeDisabled
197
210
  | WebhookDataSweepCreated
198
211
  | WebhookDataTerminalApplicationCreated
199
212
  | WebhookDataTerminalApplicationUpdated
200
- | WebhookDataCancellationCreated
201
- | WebhookDataCancellationUpdated
202
- | WebhookDataCardAutoUpdated
203
- | WebhookDataCapabilityRequested
204
- | WebhookDataPaymentMethodEnabled
205
- | WebhookDataPaymentMethodDisabled
206
- | WebhookDataRefundCreated
207
- | WebhookDataTransferCreated
208
- | WebhookDataCapabilityUpdated
209
- | WebhookDataRefundUpdated
210
- | WebhookDataSweepUpdated
211
- | WebhookDataBankAccountUpdated
212
- | WebhookDataTransferUpdated
213
- | WebhookDataWalletTransactionUpdated
214
- | WebhookDataDisputeCreated
215
- | WebhookDataDisputeUpdated
213
+ | WebhookDataAccountCreated
214
+ | WebhookDataAccountUpdated
215
+ | WebhookDataAccountDeleted
216
216
  | WebhookDataNetworkIDUpdated;
217
217
 
218
218
  /** @internal */
@@ -221,67 +221,67 @@ export const WebhookData$inboundSchema: z.ZodType<
221
221
  z.ZodTypeDef,
222
222
  unknown
223
223
  > = z.union([
224
- WebhookDataAccountCreated$inboundSchema,
225
- WebhookDataAccountUpdated$inboundSchema,
226
- WebhookDataAccountDeleted$inboundSchema,
224
+ WebhookDataDisputeCreated$inboundSchema,
225
+ WebhookDataDisputeUpdated$inboundSchema,
226
+ WebhookDataTransferUpdated$inboundSchema,
227
+ WebhookDataBankAccountUpdated$inboundSchema,
228
+ WebhookDataRefundUpdated$inboundSchema,
229
+ WebhookDataWalletTransactionUpdated$inboundSchema,
230
+ WebhookDataCancellationCreated$inboundSchema,
231
+ WebhookDataCancellationUpdated$inboundSchema,
232
+ WebhookDataCardAutoUpdated$inboundSchema,
233
+ WebhookDataCapabilityUpdated$inboundSchema,
234
+ WebhookDataPaymentMethodEnabled$inboundSchema,
235
+ WebhookDataPaymentMethodDisabled$inboundSchema,
236
+ WebhookDataRefundCreated$inboundSchema,
237
+ WebhookDataSweepUpdated$inboundSchema,
238
+ WebhookDataTransferCreated$inboundSchema,
227
239
  WebhookDataBalanceUpdated$inboundSchema,
228
240
  WebhookDataBankAccountCreated$inboundSchema,
229
241
  WebhookDataBankAccountDeleted$inboundSchema,
242
+ WebhookDataCapabilityRequested$inboundSchema,
230
243
  WebhookDataRepresentativeCreated$inboundSchema,
231
244
  WebhookDataRepresentativeUpdated$inboundSchema,
232
245
  WebhookDataRepresentativeDisabled$inboundSchema,
233
246
  WebhookDataSweepCreated$inboundSchema,
234
247
  WebhookDataTerminalApplicationCreated$inboundSchema,
235
248
  WebhookDataTerminalApplicationUpdated$inboundSchema,
236
- WebhookDataCancellationCreated$inboundSchema,
237
- WebhookDataCancellationUpdated$inboundSchema,
238
- WebhookDataCardAutoUpdated$inboundSchema,
239
- WebhookDataCapabilityRequested$inboundSchema,
240
- WebhookDataPaymentMethodEnabled$inboundSchema,
241
- WebhookDataPaymentMethodDisabled$inboundSchema,
242
- WebhookDataRefundCreated$inboundSchema,
243
- WebhookDataTransferCreated$inboundSchema,
244
- WebhookDataCapabilityUpdated$inboundSchema,
245
- WebhookDataRefundUpdated$inboundSchema,
246
- WebhookDataSweepUpdated$inboundSchema,
247
- WebhookDataBankAccountUpdated$inboundSchema,
248
- WebhookDataTransferUpdated$inboundSchema,
249
- WebhookDataWalletTransactionUpdated$inboundSchema,
250
- WebhookDataDisputeCreated$inboundSchema,
251
- WebhookDataDisputeUpdated$inboundSchema,
249
+ WebhookDataAccountCreated$inboundSchema,
250
+ WebhookDataAccountUpdated$inboundSchema,
251
+ WebhookDataAccountDeleted$inboundSchema,
252
252
  WebhookDataNetworkIDUpdated$inboundSchema,
253
253
  ]);
254
254
 
255
255
  /** @internal */
256
256
  export type WebhookData$Outbound =
257
- | WebhookDataAccountCreated$Outbound
258
- | WebhookDataAccountUpdated$Outbound
259
- | WebhookDataAccountDeleted$Outbound
257
+ | WebhookDataDisputeCreated$Outbound
258
+ | WebhookDataDisputeUpdated$Outbound
259
+ | WebhookDataTransferUpdated$Outbound
260
+ | WebhookDataBankAccountUpdated$Outbound
261
+ | WebhookDataRefundUpdated$Outbound
262
+ | WebhookDataWalletTransactionUpdated$Outbound
263
+ | WebhookDataCancellationCreated$Outbound
264
+ | WebhookDataCancellationUpdated$Outbound
265
+ | WebhookDataCardAutoUpdated$Outbound
266
+ | WebhookDataCapabilityUpdated$Outbound
267
+ | WebhookDataPaymentMethodEnabled$Outbound
268
+ | WebhookDataPaymentMethodDisabled$Outbound
269
+ | WebhookDataRefundCreated$Outbound
270
+ | WebhookDataSweepUpdated$Outbound
271
+ | WebhookDataTransferCreated$Outbound
260
272
  | WebhookDataBalanceUpdated$Outbound
261
273
  | WebhookDataBankAccountCreated$Outbound
262
274
  | WebhookDataBankAccountDeleted$Outbound
275
+ | WebhookDataCapabilityRequested$Outbound
263
276
  | WebhookDataRepresentativeCreated$Outbound
264
277
  | WebhookDataRepresentativeUpdated$Outbound
265
278
  | WebhookDataRepresentativeDisabled$Outbound
266
279
  | WebhookDataSweepCreated$Outbound
267
280
  | WebhookDataTerminalApplicationCreated$Outbound
268
281
  | WebhookDataTerminalApplicationUpdated$Outbound
269
- | WebhookDataCancellationCreated$Outbound
270
- | WebhookDataCancellationUpdated$Outbound
271
- | WebhookDataCardAutoUpdated$Outbound
272
- | WebhookDataCapabilityRequested$Outbound
273
- | WebhookDataPaymentMethodEnabled$Outbound
274
- | WebhookDataPaymentMethodDisabled$Outbound
275
- | WebhookDataRefundCreated$Outbound
276
- | WebhookDataTransferCreated$Outbound
277
- | WebhookDataCapabilityUpdated$Outbound
278
- | WebhookDataRefundUpdated$Outbound
279
- | WebhookDataSweepUpdated$Outbound
280
- | WebhookDataBankAccountUpdated$Outbound
281
- | WebhookDataTransferUpdated$Outbound
282
- | WebhookDataWalletTransactionUpdated$Outbound
283
- | WebhookDataDisputeCreated$Outbound
284
- | WebhookDataDisputeUpdated$Outbound
282
+ | WebhookDataAccountCreated$Outbound
283
+ | WebhookDataAccountUpdated$Outbound
284
+ | WebhookDataAccountDeleted$Outbound
285
285
  | WebhookDataNetworkIDUpdated$Outbound;
286
286
 
287
287
  /** @internal */
@@ -290,34 +290,34 @@ export const WebhookData$outboundSchema: z.ZodType<
290
290
  z.ZodTypeDef,
291
291
  WebhookData
292
292
  > = z.union([
293
- WebhookDataAccountCreated$outboundSchema,
294
- WebhookDataAccountUpdated$outboundSchema,
295
- WebhookDataAccountDeleted$outboundSchema,
293
+ WebhookDataDisputeCreated$outboundSchema,
294
+ WebhookDataDisputeUpdated$outboundSchema,
295
+ WebhookDataTransferUpdated$outboundSchema,
296
+ WebhookDataBankAccountUpdated$outboundSchema,
297
+ WebhookDataRefundUpdated$outboundSchema,
298
+ WebhookDataWalletTransactionUpdated$outboundSchema,
299
+ WebhookDataCancellationCreated$outboundSchema,
300
+ WebhookDataCancellationUpdated$outboundSchema,
301
+ WebhookDataCardAutoUpdated$outboundSchema,
302
+ WebhookDataCapabilityUpdated$outboundSchema,
303
+ WebhookDataPaymentMethodEnabled$outboundSchema,
304
+ WebhookDataPaymentMethodDisabled$outboundSchema,
305
+ WebhookDataRefundCreated$outboundSchema,
306
+ WebhookDataSweepUpdated$outboundSchema,
307
+ WebhookDataTransferCreated$outboundSchema,
296
308
  WebhookDataBalanceUpdated$outboundSchema,
297
309
  WebhookDataBankAccountCreated$outboundSchema,
298
310
  WebhookDataBankAccountDeleted$outboundSchema,
311
+ WebhookDataCapabilityRequested$outboundSchema,
299
312
  WebhookDataRepresentativeCreated$outboundSchema,
300
313
  WebhookDataRepresentativeUpdated$outboundSchema,
301
314
  WebhookDataRepresentativeDisabled$outboundSchema,
302
315
  WebhookDataSweepCreated$outboundSchema,
303
316
  WebhookDataTerminalApplicationCreated$outboundSchema,
304
317
  WebhookDataTerminalApplicationUpdated$outboundSchema,
305
- WebhookDataCancellationCreated$outboundSchema,
306
- WebhookDataCancellationUpdated$outboundSchema,
307
- WebhookDataCardAutoUpdated$outboundSchema,
308
- WebhookDataCapabilityRequested$outboundSchema,
309
- WebhookDataPaymentMethodEnabled$outboundSchema,
310
- WebhookDataPaymentMethodDisabled$outboundSchema,
311
- WebhookDataRefundCreated$outboundSchema,
312
- WebhookDataTransferCreated$outboundSchema,
313
- WebhookDataCapabilityUpdated$outboundSchema,
314
- WebhookDataRefundUpdated$outboundSchema,
315
- WebhookDataSweepUpdated$outboundSchema,
316
- WebhookDataBankAccountUpdated$outboundSchema,
317
- WebhookDataTransferUpdated$outboundSchema,
318
- WebhookDataWalletTransactionUpdated$outboundSchema,
319
- WebhookDataDisputeCreated$outboundSchema,
320
- WebhookDataDisputeUpdated$outboundSchema,
318
+ WebhookDataAccountCreated$outboundSchema,
319
+ WebhookDataAccountUpdated$outboundSchema,
320
+ WebhookDataAccountDeleted$outboundSchema,
321
321
  WebhookDataNetworkIDUpdated$outboundSchema,
322
322
  ]);
323
323
 
@@ -7,10 +7,10 @@ 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
9
  import {
10
- TransferStatus,
11
- TransferStatus$inboundSchema,
12
- TransferStatus$outboundSchema,
13
- } from "./transferstatus.js";
10
+ WebhookDataTransferStatus,
11
+ WebhookDataTransferStatus$inboundSchema,
12
+ WebhookDataTransferStatus$outboundSchema,
13
+ } from "./webhookdatatransferstatus.js";
14
14
 
15
15
  export type WebhookDataTransferCreated = {
16
16
  /**
@@ -18,10 +18,7 @@ export type WebhookDataTransferCreated = {
18
18
  */
19
19
  accountID: string;
20
20
  transferID: string;
21
- /**
22
- * Status of a transfer.
23
- */
24
- status: TransferStatus;
21
+ status: WebhookDataTransferStatus;
25
22
  };
26
23
 
27
24
  /** @internal */
@@ -32,7 +29,7 @@ export const WebhookDataTransferCreated$inboundSchema: z.ZodType<
32
29
  > = z.object({
33
30
  accountID: z.string(),
34
31
  transferID: z.string(),
35
- status: TransferStatus$inboundSchema,
32
+ status: WebhookDataTransferStatus$inboundSchema,
36
33
  });
37
34
 
38
35
  /** @internal */
@@ -50,7 +47,7 @@ export const WebhookDataTransferCreated$outboundSchema: z.ZodType<
50
47
  > = z.object({
51
48
  accountID: z.string(),
52
49
  transferID: z.string(),
53
- status: TransferStatus$outboundSchema,
50
+ status: WebhookDataTransferStatus$outboundSchema,
54
51
  });
55
52
 
56
53
  /**
@@ -0,0 +1,57 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ export const WebhookDataTransferStatus = {
9
+ Created: "created",
10
+ Pending: "pending",
11
+ Completed: "completed",
12
+ Failed: "failed",
13
+ Reversed: "reversed",
14
+ Queued: "queued",
15
+ Canceled: "canceled",
16
+ SourceCompleted: "source.completed",
17
+ SourceCorrected: "source.corrected",
18
+ SourceInitiated: "source.initiated",
19
+ SourceReturned: "source.returned",
20
+ SourceOriginated: "source.originated",
21
+ SourceConfirmed: "source.confirmed",
22
+ SourceSettled: "source.settled",
23
+ SourceFailed: "source.failed",
24
+ SourceCanceled: "source.canceled",
25
+ DestinationCompleted: "destination.completed",
26
+ DestinationCorrected: "destination.corrected",
27
+ DestinationInitiated: "destination.initiated",
28
+ DestinationReturned: "destination.returned",
29
+ DestinationOriginated: "destination.originated",
30
+ DestinationConfirmed: "destination.confirmed",
31
+ DestinationFailed: "destination.failed",
32
+ DestinationAcceptedWithoutPosting: "destination.accepted-without-posting",
33
+ } as const;
34
+ export type WebhookDataTransferStatus = ClosedEnum<
35
+ typeof WebhookDataTransferStatus
36
+ >;
37
+
38
+ /** @internal */
39
+ export const WebhookDataTransferStatus$inboundSchema: z.ZodNativeEnum<
40
+ typeof WebhookDataTransferStatus
41
+ > = z.nativeEnum(WebhookDataTransferStatus);
42
+
43
+ /** @internal */
44
+ export const WebhookDataTransferStatus$outboundSchema: z.ZodNativeEnum<
45
+ typeof WebhookDataTransferStatus
46
+ > = WebhookDataTransferStatus$inboundSchema;
47
+
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 namespace WebhookDataTransferStatus$ {
53
+ /** @deprecated use `WebhookDataTransferStatus$inboundSchema` instead. */
54
+ export const inboundSchema = WebhookDataTransferStatus$inboundSchema;
55
+ /** @deprecated use `WebhookDataTransferStatus$outboundSchema` instead. */
56
+ export const outboundSchema = WebhookDataTransferStatus$outboundSchema;
57
+ }
@@ -7,10 +7,10 @@ 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
9
  import {
10
- TransferStatus,
11
- TransferStatus$inboundSchema,
12
- TransferStatus$outboundSchema,
13
- } from "./transferstatus.js";
10
+ WebhookDataTransferStatus,
11
+ WebhookDataTransferStatus$inboundSchema,
12
+ WebhookDataTransferStatus$outboundSchema,
13
+ } from "./webhookdatatransferstatus.js";
14
14
  import {
15
15
  WebhookTransferPaymentMethodDetails,
16
16
  WebhookTransferPaymentMethodDetails$inboundSchema,
@@ -24,10 +24,7 @@ export type WebhookDataTransferUpdated = {
24
24
  */
25
25
  accountID: string;
26
26
  transferID: string;
27
- /**
28
- * Status of a transfer.
29
- */
30
- status: TransferStatus;
27
+ status: WebhookDataTransferStatus;
31
28
  /**
32
29
  * Payment method details for the source or destination of a transfer.
33
30
  */
@@ -46,7 +43,7 @@ export const WebhookDataTransferUpdated$inboundSchema: z.ZodType<
46
43
  > = z.object({
47
44
  accountID: z.string(),
48
45
  transferID: z.string(),
49
- status: TransferStatus$inboundSchema,
46
+ status: WebhookDataTransferStatus$inboundSchema,
50
47
  source: WebhookTransferPaymentMethodDetails$inboundSchema,
51
48
  destination: WebhookTransferPaymentMethodDetails$inboundSchema,
52
49
  });
@@ -68,7 +65,7 @@ export const WebhookDataTransferUpdated$outboundSchema: z.ZodType<
68
65
  > = z.object({
69
66
  accountID: z.string(),
70
67
  transferID: z.string(),
71
- status: TransferStatus$outboundSchema,
68
+ status: WebhookDataTransferStatus$outboundSchema,
72
69
  source: WebhookTransferPaymentMethodDetails$outboundSchema,
73
70
  destination: WebhookTransferPaymentMethodDetails$outboundSchema,
74
71
  });
@@ -6,27 +6,24 @@ 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
+ WalletAvailableBalance,
11
+ WalletAvailableBalance$inboundSchema,
12
+ WalletAvailableBalance$Outbound,
13
+ WalletAvailableBalance$outboundSchema,
14
+ } from "./walletavailablebalance.js";
9
15
  import {
10
16
  WalletTransactionStatus,
11
17
  WalletTransactionStatus$inboundSchema,
12
18
  WalletTransactionStatus$outboundSchema,
13
19
  } from "./wallettransactionstatus.js";
14
- import {
15
- WebhookWalletAvailableBalance,
16
- WebhookWalletAvailableBalance$inboundSchema,
17
- WebhookWalletAvailableBalance$Outbound,
18
- WebhookWalletAvailableBalance$outboundSchema,
19
- } from "./webhookwalletavailablebalance.js";
20
20
 
21
21
  export type WebhookDataWalletTransactionUpdated = {
22
22
  accountID: string;
23
23
  walletID: string;
24
24
  transactionID: string;
25
25
  status: WalletTransactionStatus;
26
- /**
27
- * The available balance of a wallet.
28
- */
29
- availableBalance?: WebhookWalletAvailableBalance | undefined;
26
+ availableBalance?: WalletAvailableBalance | undefined;
30
27
  };
31
28
 
32
29
  /** @internal */
@@ -39,7 +36,7 @@ export const WebhookDataWalletTransactionUpdated$inboundSchema: z.ZodType<
39
36
  walletID: z.string(),
40
37
  transactionID: z.string(),
41
38
  status: WalletTransactionStatus$inboundSchema,
42
- availableBalance: WebhookWalletAvailableBalance$inboundSchema.optional(),
39
+ availableBalance: WalletAvailableBalance$inboundSchema.optional(),
43
40
  });
44
41
 
45
42
  /** @internal */
@@ -48,7 +45,7 @@ export type WebhookDataWalletTransactionUpdated$Outbound = {
48
45
  walletID: string;
49
46
  transactionID: string;
50
47
  status: string;
51
- availableBalance?: WebhookWalletAvailableBalance$Outbound | undefined;
48
+ availableBalance?: WalletAvailableBalance$Outbound | undefined;
52
49
  };
53
50
 
54
51
  /** @internal */
@@ -61,7 +58,7 @@ export const WebhookDataWalletTransactionUpdated$outboundSchema: z.ZodType<
61
58
  walletID: z.string(),
62
59
  transactionID: z.string(),
63
60
  status: WalletTransactionStatus$outboundSchema,
64
- availableBalance: WebhookWalletAvailableBalance$outboundSchema.optional(),
61
+ availableBalance: WalletAvailableBalance$outboundSchema.optional(),
65
62
  });
66
63
 
67
64
  /**
@@ -9,6 +9,7 @@ import { ClosedEnum } from "../../types/enums.js";
9
9
  * The type of event that occurred.
10
10
  */
11
11
  export const WebhookEventType = {
12
+ Wildcard: "*",
12
13
  AccountCreated: "account.created",
13
14
  AccountUpdated: "account.updated",
14
15
  AccountDeleted: "account.deleted",
@@ -61,7 +61,7 @@ export type TransferData = {
61
61
  sweepID?: string | undefined;
62
62
  scheduleID?: string | undefined;
63
63
  occurrenceID?: string | undefined;
64
- paymentLinkID?: string | undefined;
64
+ paymentLinkCode?: string | undefined;
65
65
  /**
66
66
  * Optional sales tax amount. `transfer.amount.value` should be inclusive of any sales tax and represents the total amount charged.
67
67
  */
@@ -123,7 +123,7 @@ export class Transfer extends MoovError {
123
123
  sweepID?: string | undefined;
124
124
  scheduleID?: string | undefined;
125
125
  occurrenceID?: string | undefined;
126
- paymentLinkID?: string | undefined;
126
+ paymentLinkCode?: string | undefined;
127
127
  /**
128
128
  * Optional sales tax amount. `transfer.amount.value` should be inclusive of any sales tax and represents the total amount charged.
129
129
  */
@@ -165,7 +165,7 @@ export class Transfer extends MoovError {
165
165
  if (err.sweepID != null) this.sweepID = err.sweepID;
166
166
  if (err.scheduleID != null) this.scheduleID = err.scheduleID;
167
167
  if (err.occurrenceID != null) this.occurrenceID = err.occurrenceID;
168
- if (err.paymentLinkID != null) this.paymentLinkID = err.paymentLinkID;
168
+ if (err.paymentLinkCode != null) this.paymentLinkCode = err.paymentLinkCode;
169
169
  if (err.salesTaxAmount != null) this.salesTaxAmount = err.salesTaxAmount;
170
170
 
171
171
  this.name = "Transfer";
@@ -203,7 +203,7 @@ export const Transfer$inboundSchema: z.ZodType<
203
203
  sweepID: z.string().optional(),
204
204
  scheduleID: z.string().optional(),
205
205
  occurrenceID: z.string().optional(),
206
- paymentLinkID: z.string().optional(),
206
+ paymentLinkCode: z.string().optional(),
207
207
  salesTaxAmount: components.Amount$inboundSchema.optional(),
208
208
  request$: z.instanceof(Request),
209
209
  response$: z.instanceof(Response),
@@ -243,7 +243,7 @@ export type Transfer$Outbound = {
243
243
  sweepID?: string | undefined;
244
244
  scheduleID?: string | undefined;
245
245
  occurrenceID?: string | undefined;
246
- paymentLinkID?: string | undefined;
246
+ paymentLinkCode?: string | undefined;
247
247
  salesTaxAmount?: components.Amount$Outbound | undefined;
248
248
  };
249
249
 
@@ -280,7 +280,7 @@ export const Transfer$outboundSchema: z.ZodType<
280
280
  sweepID: z.string().optional(),
281
281
  scheduleID: z.string().optional(),
282
282
  occurrenceID: z.string().optional(),
283
- paymentLinkID: z.string().optional(),
283
+ paymentLinkCode: z.string().optional(),
284
284
  salesTaxAmount: components.Amount$outboundSchema.optional(),
285
285
  }));
286
286