@oatfi/oatfi-sdk-ts 0.11.54 → 0.11.55

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 (161) hide show
  1. package/README.md +0 -2
  2. package/dist/commonjs/funcs/applicationFilesUpload.js +1 -1
  3. package/dist/commonjs/funcs/applicationFilesUpload.js.map +1 -1
  4. package/dist/commonjs/funcs/applicationsList.js.map +1 -1
  5. package/dist/commonjs/funcs/businessFilesUpload.js +1 -1
  6. package/dist/commonjs/funcs/businessFilesUpload.js.map +1 -1
  7. package/dist/commonjs/funcs/businessesList.js.map +1 -1
  8. package/dist/commonjs/funcs/filesList.js.map +1 -1
  9. package/dist/commonjs/funcs/filesUpload.js +1 -1
  10. package/dist/commonjs/funcs/filesUpload.js.map +1 -1
  11. package/dist/commonjs/funcs/financialAccountsList.js.map +1 -1
  12. package/dist/commonjs/funcs/originationsList.js.map +1 -1
  13. package/dist/commonjs/funcs/originationsSearch.js.map +1 -1
  14. package/dist/commonjs/funcs/paymentIntentsGetAll.js.map +1 -1
  15. package/dist/commonjs/funcs/personsList.js.map +1 -1
  16. package/dist/commonjs/funcs/platformsList.js.map +1 -1
  17. package/dist/commonjs/funcs/programsList.js.map +1 -1
  18. package/dist/commonjs/funcs/usersList.js.map +1 -1
  19. package/dist/commonjs/lib/config.d.ts +3 -3
  20. package/dist/commonjs/lib/config.js +3 -3
  21. package/dist/commonjs/models/businesspaymentmethoddto.d.ts +17 -0
  22. package/dist/commonjs/models/businesspaymentmethoddto.d.ts.map +1 -1
  23. package/dist/commonjs/models/businesspaymentmethoddto.js +15 -1
  24. package/dist/commonjs/models/businesspaymentmethoddto.js.map +1 -1
  25. package/dist/commonjs/models/createfinancialaccountdto.d.ts +6 -0
  26. package/dist/commonjs/models/createfinancialaccountdto.d.ts.map +1 -1
  27. package/dist/commonjs/models/createfinancialaccountdto.js +2 -0
  28. package/dist/commonjs/models/createfinancialaccountdto.js.map +1 -1
  29. package/dist/commonjs/models/createplatformfinancialaccountdto.d.ts +6 -0
  30. package/dist/commonjs/models/createplatformfinancialaccountdto.d.ts.map +1 -1
  31. package/dist/commonjs/models/createplatformfinancialaccountdto.js +2 -0
  32. package/dist/commonjs/models/createplatformfinancialaccountdto.js.map +1 -1
  33. package/dist/commonjs/models/financialaccountresponsedto.d.ts +5 -0
  34. package/dist/commonjs/models/financialaccountresponsedto.d.ts.map +1 -1
  35. package/dist/commonjs/models/financialaccountresponsedto.js +3 -0
  36. package/dist/commonjs/models/financialaccountresponsedto.js.map +1 -1
  37. package/dist/commonjs/models/financialaccountverificationdto.d.ts +35 -0
  38. package/dist/commonjs/models/financialaccountverificationdto.d.ts.map +1 -0
  39. package/dist/commonjs/models/financialaccountverificationdto.js +66 -0
  40. package/dist/commonjs/models/financialaccountverificationdto.js.map +1 -0
  41. package/dist/commonjs/models/financialaccountverificationresponsedto.d.ts +37 -0
  42. package/dist/commonjs/models/financialaccountverificationresponsedto.d.ts.map +1 -0
  43. package/dist/commonjs/models/financialaccountverificationresponsedto.js +68 -0
  44. package/dist/commonjs/models/financialaccountverificationresponsedto.js.map +1 -0
  45. package/dist/commonjs/models/index.d.ts +2 -0
  46. package/dist/commonjs/models/index.d.ts.map +1 -1
  47. package/dist/commonjs/models/index.js +2 -0
  48. package/dist/commonjs/models/index.js.map +1 -1
  49. package/dist/commonjs/models/updatefinancialaccountdto.d.ts +6 -0
  50. package/dist/commonjs/models/updatefinancialaccountdto.d.ts.map +1 -1
  51. package/dist/commonjs/models/updatefinancialaccountdto.js +2 -0
  52. package/dist/commonjs/models/updatefinancialaccountdto.js.map +1 -1
  53. package/dist/commonjs/models/updateplatformfinancialaccountdto.d.ts +6 -0
  54. package/dist/commonjs/models/updateplatformfinancialaccountdto.d.ts.map +1 -1
  55. package/dist/commonjs/models/updateplatformfinancialaccountdto.js +2 -0
  56. package/dist/commonjs/models/updateplatformfinancialaccountdto.js.map +1 -1
  57. package/dist/commonjs/sdk/financialaccounts.d.ts +0 -4
  58. package/dist/commonjs/sdk/financialaccounts.d.ts.map +1 -1
  59. package/dist/commonjs/sdk/financialaccounts.js +0 -7
  60. package/dist/commonjs/sdk/financialaccounts.js.map +1 -1
  61. package/dist/esm/funcs/applicationFilesUpload.js +1 -1
  62. package/dist/esm/funcs/applicationFilesUpload.js.map +1 -1
  63. package/dist/esm/funcs/applicationsList.js.map +1 -1
  64. package/dist/esm/funcs/businessFilesUpload.js +1 -1
  65. package/dist/esm/funcs/businessFilesUpload.js.map +1 -1
  66. package/dist/esm/funcs/businessesList.js.map +1 -1
  67. package/dist/esm/funcs/filesList.js.map +1 -1
  68. package/dist/esm/funcs/filesUpload.js +1 -1
  69. package/dist/esm/funcs/filesUpload.js.map +1 -1
  70. package/dist/esm/funcs/financialAccountsList.js.map +1 -1
  71. package/dist/esm/funcs/originationsList.js.map +1 -1
  72. package/dist/esm/funcs/originationsSearch.js.map +1 -1
  73. package/dist/esm/funcs/paymentIntentsGetAll.js.map +1 -1
  74. package/dist/esm/funcs/personsList.js.map +1 -1
  75. package/dist/esm/funcs/platformsList.js.map +1 -1
  76. package/dist/esm/funcs/programsList.js.map +1 -1
  77. package/dist/esm/funcs/usersList.js.map +1 -1
  78. package/dist/esm/lib/config.d.ts +3 -3
  79. package/dist/esm/lib/config.js +3 -3
  80. package/dist/esm/models/businesspaymentmethoddto.d.ts +17 -0
  81. package/dist/esm/models/businesspaymentmethoddto.d.ts.map +1 -1
  82. package/dist/esm/models/businesspaymentmethoddto.js +12 -0
  83. package/dist/esm/models/businesspaymentmethoddto.js.map +1 -1
  84. package/dist/esm/models/createfinancialaccountdto.d.ts +6 -0
  85. package/dist/esm/models/createfinancialaccountdto.d.ts.map +1 -1
  86. package/dist/esm/models/createfinancialaccountdto.js +2 -0
  87. package/dist/esm/models/createfinancialaccountdto.js.map +1 -1
  88. package/dist/esm/models/createplatformfinancialaccountdto.d.ts +6 -0
  89. package/dist/esm/models/createplatformfinancialaccountdto.d.ts.map +1 -1
  90. package/dist/esm/models/createplatformfinancialaccountdto.js +2 -0
  91. package/dist/esm/models/createplatformfinancialaccountdto.js.map +1 -1
  92. package/dist/esm/models/financialaccountresponsedto.d.ts +5 -0
  93. package/dist/esm/models/financialaccountresponsedto.d.ts.map +1 -1
  94. package/dist/esm/models/financialaccountresponsedto.js +3 -0
  95. package/dist/esm/models/financialaccountresponsedto.js.map +1 -1
  96. package/dist/esm/models/financialaccountverificationdto.d.ts +35 -0
  97. package/dist/esm/models/financialaccountverificationdto.d.ts.map +1 -0
  98. package/dist/esm/models/financialaccountverificationdto.js +29 -0
  99. package/dist/esm/models/financialaccountverificationdto.js.map +1 -0
  100. package/dist/esm/models/financialaccountverificationresponsedto.d.ts +37 -0
  101. package/dist/esm/models/financialaccountverificationresponsedto.d.ts.map +1 -0
  102. package/dist/esm/models/financialaccountverificationresponsedto.js +31 -0
  103. package/dist/esm/models/financialaccountverificationresponsedto.js.map +1 -0
  104. package/dist/esm/models/index.d.ts +2 -0
  105. package/dist/esm/models/index.d.ts.map +1 -1
  106. package/dist/esm/models/index.js +2 -0
  107. package/dist/esm/models/index.js.map +1 -1
  108. package/dist/esm/models/updatefinancialaccountdto.d.ts +6 -0
  109. package/dist/esm/models/updatefinancialaccountdto.d.ts.map +1 -1
  110. package/dist/esm/models/updatefinancialaccountdto.js +2 -0
  111. package/dist/esm/models/updatefinancialaccountdto.js.map +1 -1
  112. package/dist/esm/models/updateplatformfinancialaccountdto.d.ts +6 -0
  113. package/dist/esm/models/updateplatformfinancialaccountdto.d.ts.map +1 -1
  114. package/dist/esm/models/updateplatformfinancialaccountdto.js +2 -0
  115. package/dist/esm/models/updateplatformfinancialaccountdto.js.map +1 -1
  116. package/dist/esm/sdk/financialaccounts.d.ts +0 -4
  117. package/dist/esm/sdk/financialaccounts.d.ts.map +1 -1
  118. package/dist/esm/sdk/financialaccounts.js +0 -7
  119. package/dist/esm/sdk/financialaccounts.js.map +1 -1
  120. package/jsr.json +1 -1
  121. package/package.json +1 -1
  122. package/src/funcs/applicationFilesUpload.ts +1 -1
  123. package/src/funcs/applicationsList.ts +1 -1
  124. package/src/funcs/businessFilesUpload.ts +1 -1
  125. package/src/funcs/businessesList.ts +1 -1
  126. package/src/funcs/filesList.ts +1 -1
  127. package/src/funcs/filesUpload.ts +1 -1
  128. package/src/funcs/financialAccountsList.ts +1 -1
  129. package/src/funcs/originationsList.ts +1 -1
  130. package/src/funcs/originationsSearch.ts +1 -1
  131. package/src/funcs/paymentIntentsGetAll.ts +1 -1
  132. package/src/funcs/personsList.ts +1 -1
  133. package/src/funcs/platformsList.ts +1 -1
  134. package/src/funcs/programsList.ts +1 -1
  135. package/src/funcs/usersList.ts +1 -1
  136. package/src/lib/config.ts +3 -3
  137. package/src/models/businesspaymentmethoddto.ts +41 -0
  138. package/src/models/createfinancialaccountdto.ts +11 -0
  139. package/src/models/createplatformfinancialaccountdto.ts +11 -0
  140. package/src/models/financialaccountresponsedto.ts +10 -0
  141. package/src/models/financialaccountverificationdto.ts +67 -0
  142. package/src/models/financialaccountverificationresponsedto.ts +86 -0
  143. package/src/models/index.ts +2 -0
  144. package/src/models/updatefinancialaccountdto.ts +11 -0
  145. package/src/models/updateplatformfinancialaccountdto.ts +11 -0
  146. package/src/sdk/financialaccounts.ts +0 -15
  147. package/.devcontainer/devcontainer.json +0 -45
  148. package/_speakeasy/.github/action-inputs-config.json +0 -53
  149. package/_speakeasy/.github/action-security-config.json +0 -88
  150. package/dist/commonjs/funcs/financialAccountsCreate.d.ts +0 -14
  151. package/dist/commonjs/funcs/financialAccountsCreate.d.ts.map +0 -1
  152. package/dist/commonjs/funcs/financialAccountsCreate.js +0 -121
  153. package/dist/commonjs/funcs/financialAccountsCreate.js.map +0 -1
  154. package/dist/esm/funcs/financialAccountsCreate.d.ts +0 -14
  155. package/dist/esm/funcs/financialAccountsCreate.d.ts.map +0 -1
  156. package/dist/esm/funcs/financialAccountsCreate.js +0 -85
  157. package/dist/esm/funcs/financialAccountsCreate.js.map +0 -1
  158. package/examples/package-lock.json +0 -612
  159. package/examples/package.json +0 -18
  160. package/src/funcs/financialAccountsCreate.ts +0 -167
  161. package/tsconfig.json +0 -40
@@ -94,7 +94,7 @@ async function $do(
94
94
  const body = new FormData();
95
95
 
96
96
  appendForm(body, "file_type", payload.UploadFilesDto.file_type);
97
- for (const fileItem of payload.UploadFilesDto.files) {
97
+ for (const fileItem of payload.UploadFilesDto.files ?? []) {
98
98
  if (isBlobLike(fileItem)) {
99
99
  appendForm(body, "files[]", fileItem);
100
100
  } else if (isReadableStream(fileItem.content)) {
@@ -227,7 +227,7 @@ async function $do(
227
227
  financialAccountsList(
228
228
  client,
229
229
  {
230
- ...request,
230
+ ...request!,
231
231
  startingAfter: nextCursor,
232
232
  },
233
233
  options,
@@ -227,7 +227,7 @@ async function $do(
227
227
  originationsList(
228
228
  client,
229
229
  {
230
- ...request,
230
+ ...request!,
231
231
  startingAfter: nextCursor,
232
232
  },
233
233
  options,
@@ -226,7 +226,7 @@ async function $do(
226
226
  originationsSearch(
227
227
  client,
228
228
  {
229
- ...request,
229
+ ...request!,
230
230
  startingAfter: nextCursor,
231
231
  },
232
232
  options,
@@ -227,7 +227,7 @@ async function $do(
227
227
  paymentIntentsGetAll(
228
228
  client,
229
229
  {
230
- ...request,
230
+ ...request!,
231
231
  startingAfter: nextCursor,
232
232
  },
233
233
  options,
@@ -227,7 +227,7 @@ async function $do(
227
227
  personsList(
228
228
  client,
229
229
  {
230
- ...request,
230
+ ...request!,
231
231
  startingAfter: nextCursor,
232
232
  },
233
233
  options,
@@ -226,7 +226,7 @@ async function $do(
226
226
  platformsList(
227
227
  client,
228
228
  {
229
- ...request,
229
+ ...request!,
230
230
  startingAfter: nextCursor,
231
231
  },
232
232
  options,
@@ -225,7 +225,7 @@ async function $do(
225
225
  programsList(
226
226
  client,
227
227
  {
228
- ...request,
228
+ ...request!,
229
229
  startingAfter: nextCursor,
230
230
  },
231
231
  options,
@@ -224,7 +224,7 @@ async function $do(
224
224
  usersList(
225
225
  client,
226
226
  {
227
- ...request,
227
+ ...request!,
228
228
  startingAfter: nextCursor,
229
229
  },
230
230
  options,
package/src/lib/config.ts CHANGED
@@ -69,8 +69,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
69
69
  export const SDK_METADATA = {
70
70
  language: "typescript",
71
71
  openapiDocVersion: "3.0.0",
72
- sdkVersion: "0.11.54",
73
- genVersion: "2.832.9",
72
+ sdkVersion: "0.11.55",
73
+ genVersion: "2.845.1",
74
74
  userAgent:
75
- "speakeasy-sdk/typescript 0.11.54 2.832.9 3.0.0 @oatfi/oatfi-sdk-ts",
75
+ "speakeasy-sdk/typescript 0.11.55 2.845.1 3.0.0 @oatfi/oatfi-sdk-ts",
76
76
  } as const;
@@ -24,6 +24,11 @@ import {
24
24
  TransferTypeEnum$outboundSchema,
25
25
  } from "./transfertypeenum.js";
26
26
 
27
+ /**
28
+ * Verification and consent data
29
+ */
30
+ export type Verification = {};
31
+
27
32
  export type BusinessPaymentMethodDto = {
28
33
  /**
29
34
  * Partner associated to the business
@@ -57,8 +62,41 @@ export type BusinessPaymentMethodDto = {
57
62
  * The type of payment method
58
63
  */
59
64
  type: TransferMethodEnum;
65
+ /**
66
+ * Verification and consent data
67
+ */
68
+ verification?: Verification | undefined;
60
69
  };
61
70
 
71
+ /** @internal */
72
+ export const Verification$inboundSchema: z.ZodType<
73
+ Verification,
74
+ z.ZodTypeDef,
75
+ unknown
76
+ > = z.object({});
77
+ /** @internal */
78
+ export type Verification$Outbound = {};
79
+
80
+ /** @internal */
81
+ export const Verification$outboundSchema: z.ZodType<
82
+ Verification$Outbound,
83
+ z.ZodTypeDef,
84
+ Verification
85
+ > = z.object({});
86
+
87
+ export function verificationToJSON(verification: Verification): string {
88
+ return JSON.stringify(Verification$outboundSchema.parse(verification));
89
+ }
90
+ export function verificationFromJSON(
91
+ jsonString: string,
92
+ ): SafeParseResult<Verification, SDKValidationError> {
93
+ return safeParse(
94
+ jsonString,
95
+ (x) => Verification$inboundSchema.parse(JSON.parse(x)),
96
+ `Failed to parse 'Verification' from JSON`,
97
+ );
98
+ }
99
+
62
100
  /** @internal */
63
101
  export const BusinessPaymentMethodDto$inboundSchema: z.ZodType<
64
102
  BusinessPaymentMethodDto,
@@ -73,6 +111,7 @@ export const BusinessPaymentMethodDto$inboundSchema: z.ZodType<
73
111
  scheduled_repayment: z.boolean().optional(),
74
112
  is_default: z.boolean().optional(),
75
113
  type: TransferMethodEnum$inboundSchema,
114
+ verification: z.lazy(() => Verification$inboundSchema).optional(),
76
115
  }).transform((v) => {
77
116
  return remap$(v, {
78
117
  "transaction_type": "transactionType",
@@ -90,6 +129,7 @@ export type BusinessPaymentMethodDto$Outbound = {
90
129
  scheduled_repayment?: boolean | undefined;
91
130
  is_default?: boolean | undefined;
92
131
  type: string;
132
+ verification?: Verification$Outbound | undefined;
93
133
  };
94
134
 
95
135
  /** @internal */
@@ -106,6 +146,7 @@ export const BusinessPaymentMethodDto$outboundSchema: z.ZodType<
106
146
  scheduledRepayment: z.boolean().optional(),
107
147
  isDefault: z.boolean().optional(),
108
148
  type: TransferMethodEnum$outboundSchema,
149
+ verification: z.lazy(() => Verification$outboundSchema).optional(),
109
150
  }).transform((v) => {
110
151
  return remap$(v, {
111
152
  transactionType: "transaction_type",
@@ -9,6 +9,11 @@ import {
9
9
  FinancialAccountDataDto$Outbound,
10
10
  FinancialAccountDataDto$outboundSchema,
11
11
  } from "./financialaccountdatadto.js";
12
+ import {
13
+ FinancialAccountVerificationDto,
14
+ FinancialAccountVerificationDto$Outbound,
15
+ FinancialAccountVerificationDto$outboundSchema,
16
+ } from "./financialaccountverificationdto.js";
12
17
  import {
13
18
  TransferMethodEnum,
14
19
  TransferMethodEnum$outboundSchema,
@@ -76,6 +81,10 @@ export type CreateFinancialAccountDto = {
76
81
  * The type of payment method
77
82
  */
78
83
  type?: TransferMethodEnum | undefined;
84
+ /**
85
+ * Verification consent data
86
+ */
87
+ verification?: FinancialAccountVerificationDto | undefined;
79
88
  };
80
89
 
81
90
  /** @internal */
@@ -114,6 +123,7 @@ export type CreateFinancialAccountDto$Outbound = {
114
123
  scheduled_repayment?: boolean | undefined;
115
124
  is_default?: boolean | undefined;
116
125
  type?: string | undefined;
126
+ verification?: FinancialAccountVerificationDto$Outbound | undefined;
117
127
  };
118
128
 
119
129
  /** @internal */
@@ -135,6 +145,7 @@ export const CreateFinancialAccountDto$outboundSchema: z.ZodType<
135
145
  scheduledRepayment: z.boolean().optional(),
136
146
  isDefault: z.boolean().optional(),
137
147
  type: TransferMethodEnum$outboundSchema.optional(),
148
+ verification: FinancialAccountVerificationDto$outboundSchema.optional(),
138
149
  }).transform((v) => {
139
150
  return remap$(v, {
140
151
  transactionType: "transaction_type",
@@ -9,6 +9,11 @@ import {
9
9
  FinancialAccountDataDto$Outbound,
10
10
  FinancialAccountDataDto$outboundSchema,
11
11
  } from "./financialaccountdatadto.js";
12
+ import {
13
+ FinancialAccountVerificationDto,
14
+ FinancialAccountVerificationDto$Outbound,
15
+ FinancialAccountVerificationDto$outboundSchema,
16
+ } from "./financialaccountverificationdto.js";
12
17
  import {
13
18
  TransferMethodEnum,
14
19
  TransferMethodEnum$outboundSchema,
@@ -64,6 +69,10 @@ export type CreatePlatformFinancialAccountDto = {
64
69
  * The type of payment method
65
70
  */
66
71
  type?: TransferMethodEnum | undefined;
72
+ /**
73
+ * Verification consent data
74
+ */
75
+ verification?: FinancialAccountVerificationDto | undefined;
67
76
  };
68
77
 
69
78
  /** @internal */
@@ -99,6 +108,7 @@ export type CreatePlatformFinancialAccountDto$Outbound = {
99
108
  scheduled_repayment?: boolean | undefined;
100
109
  is_default?: boolean | undefined;
101
110
  type?: string | undefined;
111
+ verification?: FinancialAccountVerificationDto$Outbound | undefined;
102
112
  };
103
113
 
104
114
  /** @internal */
@@ -117,6 +127,7 @@ export const CreatePlatformFinancialAccountDto$outboundSchema: z.ZodType<
117
127
  scheduledRepayment: z.boolean().optional(),
118
128
  isDefault: z.boolean().optional(),
119
129
  type: TransferMethodEnum$outboundSchema.optional(),
130
+ verification: FinancialAccountVerificationDto$outboundSchema.optional(),
120
131
  }).transform((v) => {
121
132
  return remap$(v, {
122
133
  transactionType: "transaction_type",
@@ -12,6 +12,10 @@ import {
12
12
  FinancialAccountDataDto,
13
13
  FinancialAccountDataDto$inboundSchema,
14
14
  } from "./financialaccountdatadto.js";
15
+ import {
16
+ FinancialAccountVerificationResponseDto,
17
+ FinancialAccountVerificationResponseDto$inboundSchema,
18
+ } from "./financialaccountverificationresponsedto.js";
15
19
 
16
20
  /**
17
21
  * Payment Method Type
@@ -85,6 +89,10 @@ export type FinancialAccountResponseDto = {
85
89
  * Payment rail data
86
90
  */
87
91
  data: FinancialAccountDataDto;
92
+ /**
93
+ * Verification data
94
+ */
95
+ verification?: FinancialAccountVerificationResponseDto | undefined;
88
96
  };
89
97
 
90
98
  /** @internal */
@@ -111,6 +119,8 @@ export const FinancialAccountResponseDto$inboundSchema: z.ZodType<
111
119
  scheduled_repayment: z.boolean().optional(),
112
120
  alias: z.string().optional(),
113
121
  data: FinancialAccountDataDto$inboundSchema,
122
+ verification: FinancialAccountVerificationResponseDto$inboundSchema
123
+ .optional(),
114
124
  }).transform((v) => {
115
125
  return remap$(v, {
116
126
  "transaction_type": "transactionType",
@@ -0,0 +1,67 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { ClosedEnum } from "../types/enums.js";
8
+
9
+ /**
10
+ * Source of consent
11
+ */
12
+ export const ConsentSource = {
13
+ Embedded: "EMBEDDED",
14
+ Hosted: "HOSTED",
15
+ PartnerApi: "PARTNER_API",
16
+ } as const;
17
+ /**
18
+ * Source of consent
19
+ */
20
+ export type ConsentSource = ClosedEnum<typeof ConsentSource>;
21
+
22
+ export type FinancialAccountVerificationDto = {
23
+ /**
24
+ * Whether consent given for ACH verification
25
+ */
26
+ consentGiven: boolean;
27
+ /**
28
+ * Source of consent
29
+ */
30
+ consentSource: ConsentSource;
31
+ };
32
+
33
+ /** @internal */
34
+ export const ConsentSource$outboundSchema: z.ZodNativeEnum<
35
+ typeof ConsentSource
36
+ > = z.nativeEnum(ConsentSource);
37
+
38
+ /** @internal */
39
+ export type FinancialAccountVerificationDto$Outbound = {
40
+ consent_given: boolean;
41
+ consent_source: string;
42
+ };
43
+
44
+ /** @internal */
45
+ export const FinancialAccountVerificationDto$outboundSchema: z.ZodType<
46
+ FinancialAccountVerificationDto$Outbound,
47
+ z.ZodTypeDef,
48
+ FinancialAccountVerificationDto
49
+ > = z.object({
50
+ consentGiven: z.boolean(),
51
+ consentSource: ConsentSource$outboundSchema,
52
+ }).transform((v) => {
53
+ return remap$(v, {
54
+ consentGiven: "consent_given",
55
+ consentSource: "consent_source",
56
+ });
57
+ });
58
+
59
+ export function financialAccountVerificationDtoToJSON(
60
+ financialAccountVerificationDto: FinancialAccountVerificationDto,
61
+ ): string {
62
+ return JSON.stringify(
63
+ FinancialAccountVerificationDto$outboundSchema.parse(
64
+ financialAccountVerificationDto,
65
+ ),
66
+ );
67
+ }
@@ -0,0 +1,86 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../types/fp.js";
9
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
10
+
11
+ export type FinancialAccountVerificationResponseDto = {
12
+ /**
13
+ * Whether consent given for ACH verification
14
+ */
15
+ consentGiven: boolean;
16
+ /**
17
+ * Source of consent
18
+ */
19
+ consentSource: string;
20
+ /**
21
+ * Timestamp when consent was given
22
+ */
23
+ consentTimestamp?: Date | undefined;
24
+ /**
25
+ * Credit verification status
26
+ */
27
+ creditVerificationStatus?: string | undefined;
28
+ /**
29
+ * Credit verification timestamp
30
+ */
31
+ creditVerificationTimestamp?: Date | undefined;
32
+ /**
33
+ * Debit verification status
34
+ */
35
+ debitVerificationStatus?: string | undefined;
36
+ /**
37
+ * Debit verification timestamp
38
+ */
39
+ debitVerificationTimestamp?: Date | undefined;
40
+ };
41
+
42
+ /** @internal */
43
+ export const FinancialAccountVerificationResponseDto$inboundSchema: z.ZodType<
44
+ FinancialAccountVerificationResponseDto,
45
+ z.ZodTypeDef,
46
+ unknown
47
+ > = z.object({
48
+ consent_given: z.boolean(),
49
+ consent_source: z.string(),
50
+ consent_timestamp: z.string().datetime({ offset: true }).transform(v =>
51
+ new Date(v)
52
+ ).optional(),
53
+ credit_verification_status: z.string().optional(),
54
+ credit_verification_timestamp: z.string().datetime({ offset: true })
55
+ .transform(v => new Date(v)).optional(),
56
+ debit_verification_status: z.string().optional(),
57
+ debit_verification_timestamp: z.string().datetime({ offset: true }).transform(
58
+ v => new Date(v)
59
+ ).optional(),
60
+ }).transform((v) => {
61
+ return remap$(v, {
62
+ "consent_given": "consentGiven",
63
+ "consent_source": "consentSource",
64
+ "consent_timestamp": "consentTimestamp",
65
+ "credit_verification_status": "creditVerificationStatus",
66
+ "credit_verification_timestamp": "creditVerificationTimestamp",
67
+ "debit_verification_status": "debitVerificationStatus",
68
+ "debit_verification_timestamp": "debitVerificationTimestamp",
69
+ });
70
+ });
71
+
72
+ export function financialAccountVerificationResponseDtoFromJSON(
73
+ jsonString: string,
74
+ ): SafeParseResult<
75
+ FinancialAccountVerificationResponseDto,
76
+ SDKValidationError
77
+ > {
78
+ return safeParse(
79
+ jsonString,
80
+ (x) =>
81
+ FinancialAccountVerificationResponseDto$inboundSchema.parse(
82
+ JSON.parse(x),
83
+ ),
84
+ `Failed to parse 'FinancialAccountVerificationResponseDto' from JSON`,
85
+ );
86
+ }
@@ -70,6 +70,8 @@ export * from "./fileresponsedto.js";
70
70
  export * from "./filetype.js";
71
71
  export * from "./financialaccountdatadto.js";
72
72
  export * from "./financialaccountresponsedto.js";
73
+ export * from "./financialaccountverificationdto.js";
74
+ export * from "./financialaccountverificationresponsedto.js";
73
75
  export * from "./forgotpassworddto.js";
74
76
  export * from "./holdreleasebalanceupdaterequest.js";
75
77
  export * from "./holdresponsedto.js";
@@ -9,6 +9,11 @@ import {
9
9
  FinancialAccountDataDto$Outbound,
10
10
  FinancialAccountDataDto$outboundSchema,
11
11
  } from "./financialaccountdatadto.js";
12
+ import {
13
+ FinancialAccountVerificationDto,
14
+ FinancialAccountVerificationDto$Outbound,
15
+ FinancialAccountVerificationDto$outboundSchema,
16
+ } from "./financialaccountverificationdto.js";
12
17
  import {
13
18
  PaymentMethodSourceEnum,
14
19
  PaymentMethodSourceEnum$outboundSchema,
@@ -80,6 +85,10 @@ export type UpdateFinancialAccountDto = {
80
85
  * The type of payment method
81
86
  */
82
87
  type?: TransferMethodEnum | undefined;
88
+ /**
89
+ * Verification consent data
90
+ */
91
+ verification?: FinancialAccountVerificationDto | undefined;
83
92
  };
84
93
 
85
94
  /** @internal */
@@ -118,6 +127,7 @@ export type UpdateFinancialAccountDto$Outbound = {
118
127
  scheduled_repayment?: boolean | undefined;
119
128
  is_default?: boolean | undefined;
120
129
  type?: string | undefined;
130
+ verification?: FinancialAccountVerificationDto$Outbound | undefined;
121
131
  };
122
132
 
123
133
  /** @internal */
@@ -139,6 +149,7 @@ export const UpdateFinancialAccountDto$outboundSchema: z.ZodType<
139
149
  scheduledRepayment: z.boolean().optional(),
140
150
  isDefault: z.boolean().optional(),
141
151
  type: TransferMethodEnum$outboundSchema.optional(),
152
+ verification: FinancialAccountVerificationDto$outboundSchema.optional(),
142
153
  }).transform((v) => {
143
154
  return remap$(v, {
144
155
  transactionType: "transaction_type",
@@ -9,6 +9,11 @@ import {
9
9
  FinancialAccountDataDto$Outbound,
10
10
  FinancialAccountDataDto$outboundSchema,
11
11
  } from "./financialaccountdatadto.js";
12
+ import {
13
+ FinancialAccountVerificationDto,
14
+ FinancialAccountVerificationDto$Outbound,
15
+ FinancialAccountVerificationDto$outboundSchema,
16
+ } from "./financialaccountverificationdto.js";
12
17
  import {
13
18
  PaymentMethodSourceEnum,
14
19
  PaymentMethodSourceEnum$outboundSchema,
@@ -68,6 +73,10 @@ export type UpdatePlatformFinancialAccountDto = {
68
73
  * The type of payment method
69
74
  */
70
75
  type?: TransferMethodEnum | undefined;
76
+ /**
77
+ * Verification consent data
78
+ */
79
+ verification?: FinancialAccountVerificationDto | undefined;
71
80
  };
72
81
 
73
82
  /** @internal */
@@ -103,6 +112,7 @@ export type UpdatePlatformFinancialAccountDto$Outbound = {
103
112
  scheduled_repayment?: boolean | undefined;
104
113
  is_default?: boolean | undefined;
105
114
  type?: string | undefined;
115
+ verification?: FinancialAccountVerificationDto$Outbound | undefined;
106
116
  };
107
117
 
108
118
  /** @internal */
@@ -121,6 +131,7 @@ export const UpdatePlatformFinancialAccountDto$outboundSchema: z.ZodType<
121
131
  scheduledRepayment: z.boolean().optional(),
122
132
  isDefault: z.boolean().optional(),
123
133
  type: TransferMethodEnum$outboundSchema.optional(),
134
+ verification: FinancialAccountVerificationDto$outboundSchema.optional(),
124
135
  }).transform((v) => {
125
136
  return remap$(v, {
126
137
  transactionType: "transaction_type",
@@ -2,7 +2,6 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { financialAccountsCreate } from "../funcs/financialAccountsCreate.js";
6
5
  import { financialAccountsDelete } from "../funcs/financialAccountsDelete.js";
7
6
  import { financialAccountsGet } from "../funcs/financialAccountsGet.js";
8
7
  import { financialAccountsList } from "../funcs/financialAccountsList.js";
@@ -14,20 +13,6 @@ import { unwrapAsync } from "../types/fp.js";
14
13
  import { PageIterator, unwrapResultIterator } from "../types/operations.js";
15
14
 
16
15
  export class FinancialAccounts extends ClientSDK {
17
- /**
18
- * Create a new financial account
19
- */
20
- async create(
21
- request: models.CreateFinancialAccountDto,
22
- options?: RequestOptions,
23
- ): Promise<models.FinancialAccountResponseDto> {
24
- return unwrapAsync(financialAccountsCreate(
25
- this,
26
- request,
27
- options,
28
- ));
29
- }
30
-
31
16
  /**
32
17
  * List all financial accounts
33
18
  */
@@ -1,45 +0,0 @@
1
- // For format details, see https://aka.ms/devcontainer.json. For config options, see the
2
- // README at: https://github.com/devcontainers/images/tree/main/src/typescript-node
3
- {
4
- "name": "TypeScript",
5
- "image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye",
6
- // Features to add to the dev container. More info: https://containers.dev/features.
7
- // "features": {},
8
- // Use 'forwardPorts' to make a list of ports inside the container available locally.
9
- // "forwardPorts": [],
10
- // Use 'postCreateCommand' to run commands after the container is created.
11
- "postCreateCommand": "sudo chmod +x ./.devcontainer/setup.sh && ./.devcontainer/setup.sh",
12
- "customizations": {
13
- "vscode": {
14
- "extensions": [
15
- "ms-vscode.vscode-typescript-tslint-plugin",
16
- "esbenp.prettier-vscode",
17
- "github.vscode-pull-request-github"
18
- ],
19
- "settings": {
20
- "files.eol": "\n",
21
- "editor.formatOnSave": true,
22
- "typescript.tsc.autoDetect": "on",
23
- "typescript.updateImportsOnFileMove.enabled": "always",
24
- "typescript.preferences.importModuleSpecifier": "relative",
25
- "[typescript]": {
26
- "editor.codeActionsOnSave": {
27
- "source.organizeImports": true
28
- }
29
- },
30
- "[typescriptreact]": {
31
- "editor.codeActionsOnSave": {
32
- "source.organizeImports": true
33
- }
34
- }
35
- }
36
- },
37
- "codespaces": {
38
- "openFiles": [
39
- ".devcontainer/README.md"
40
- ]
41
- }
42
- }
43
- // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
44
- // "remoteUser": "root"
45
- }
@@ -1,53 +0,0 @@
1
- [
2
- {
3
- "name": "mode",
4
- "validation_regex": "/^(direct|pr)$/.source",
5
- "validation_message": "Must be `direct` or `pr`"
6
- },
7
- {
8
- "name": "speakeasy_version",
9
- "validation_regex": "/^[\\w.\\-]+$/.source",
10
- "validation_message": "Letters, numbers, or .-_ only"
11
- },
12
- {
13
- "name": "openapi_doc_location",
14
- "validation_regex": "/^((https?):\\/\\/([\\w\\-]+\\.)+\\w+(\\/.*)?|[\\w.\\-\\/]+)$/i.source",
15
- "validation_message": "Must be a valid server URL or file path containing letters, numbers, or .-_/ only"
16
- },
17
- {
18
- "name": "openapi_doc_auth_header",
19
- "validation_regex": "/^[A-Za-z\\-]+$/.source",
20
- "validation_message": "Letters or - only"
21
- },
22
- {
23
- "name": "create_release"
24
- },
25
- {
26
- "name": "publish_python",
27
- "language": "python"
28
- },
29
- {
30
- "name": "publish_typescript",
31
- "language": "typescript"
32
- },
33
- {
34
- "name": "publish_java",
35
- "language": "java"
36
- },
37
- {
38
- "name": "publish_php",
39
- "language": "php"
40
- },
41
- {
42
- "name": "publish_ruby",
43
- "language": "ruby"
44
- },
45
- {
46
- "name": "publish_csharp",
47
- "language": "csharp"
48
- },
49
- {
50
- "name": "publish_terraform",
51
- "language": "terraform"
52
- }
53
- ]