@@ -180,30 +180,6 @@ export class ExternalBankAccounts extends APIResource {
180180 ...options ,
181181 } ) ;
182182 }
183-
184- /**
185- * Update the verification method for an external bank account. Verification method
186- * can only be updated if the `verification_state` is `PENDING`.
187- *
188- * @example
189- * ```ts
190- * const response =
191- * await client.externalBankAccounts.setVerificationMethod(
192- * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
193- * { verification_method: 'MICRO_DEPOSIT' },
194- * );
195- * ```
196- */
197- setVerificationMethod (
198- externalBankAccountToken : string ,
199- body : ExternalBankAccountSetVerificationMethodParams ,
200- options ?: Core . RequestOptions ,
201- ) : Core . APIPromise < ExternalBankAccountSetVerificationMethodResponse > {
202- return this . _client . post (
203- `/v1/external_bank_accounts/${ externalBankAccountToken } /set_verification_method` ,
204- { body, ...options } ,
205- ) ;
206- }
207183}
208184
209185export class ExternalBankAccountListResponsesCursorPage extends CursorPage < ExternalBankAccountListResponse > { }
@@ -970,129 +946,6 @@ export interface ExternalBankAccountRetryPrenoteResponse {
970946 verification_failed_reason ?: string ;
971947}
972948
973- export interface ExternalBankAccountSetVerificationMethodResponse {
974- /**
975- * A globally unique identifier for this record of an external bank account
976- * association. If a program links an external bank account to more than one
977- * end-user or to both the program and the end-user, then Lithic will return each
978- * record of the association
979- */
980- token : string ;
981-
982- /**
983- * The country that the bank account is located in using ISO 3166-1. We will only
984- * accept USA bank accounts e.g., USA
985- */
986- country : string ;
987-
988- /**
989- * An ISO 8601 string representing when this funding source was added to the Lithic
990- * account.
991- */
992- created : string ;
993-
994- /**
995- * currency of the external account 3-character alphabetic ISO 4217 code
996- */
997- currency : string ;
998-
999- /**
1000- * The last 4 digits of the bank account. Derived by Lithic from the account number
1001- * passed
1002- */
1003- last_four : string ;
1004-
1005- /**
1006- * Legal Name of the business or individual who owns the external account. This
1007- * will appear in statements
1008- */
1009- owner : string ;
1010-
1011- /**
1012- * Owner Type
1013- */
1014- owner_type : OwnerType ;
1015-
1016- /**
1017- * Routing Number
1018- */
1019- routing_number : string ;
1020-
1021- /**
1022- * Account State
1023- */
1024- state : 'ENABLED' | 'CLOSED' | 'PAUSED' ;
1025-
1026- /**
1027- * Account Type
1028- */
1029- type : 'CHECKING' | 'SAVINGS' ;
1030-
1031- /**
1032- * The number of attempts at verification
1033- */
1034- verification_attempts : number ;
1035-
1036- /**
1037- * Verification Method
1038- */
1039- verification_method : VerificationMethod ;
1040-
1041- /**
1042- * Verification State
1043- */
1044- verification_state : 'PENDING' | 'ENABLED' | 'FAILED_VERIFICATION' | 'INSUFFICIENT_FUNDS' ;
1045-
1046- /**
1047- * Indicates which Lithic account the external account is associated with. For
1048- * external accounts that are associated with the program, account_token field
1049- * returned will be null
1050- */
1051- account_token ?: string ;
1052-
1053- /**
1054- * Address
1055- */
1056- address ?: ExternalBankAccountAddress ;
1057-
1058- /**
1059- * Optional field that helps identify bank accounts in receipts
1060- */
1061- company_id ?: string ;
1062-
1063- /**
1064- * Date of Birth of the Individual that owns the external bank account
1065- */
1066- dob ?: string ;
1067-
1068- /**
1069- * Doing Business As
1070- */
1071- doing_business_as ?: string ;
1072-
1073- /**
1074- * The financial account token of the operating account to fund the micro deposits
1075- */
1076- financial_account_token ?: string ;
1077-
1078- /**
1079- * The nickname for this External Bank Account
1080- */
1081- name ?: string ;
1082-
1083- /**
1084- * User Defined ID
1085- */
1086- user_defined_id ?: string ;
1087-
1088- /**
1089- * Optional free text description of the reason for the failed verification. For
1090- * ACH micro-deposits returned, this field will display the reason return code sent
1091- * by the ACH network
1092- */
1093- verification_failed_reason ?: string ;
1094- }
1095-
1096949export type ExternalBankAccountCreateParams =
1097950 | ExternalBankAccountCreateParams . BankVerifiedCreateBankAccountAPIRequest
1098951 | ExternalBankAccountCreateParams . PlaidCreateBankAccountAPIRequest
@@ -1465,13 +1318,6 @@ export interface ExternalBankAccountRetryPrenoteParams {
14651318 financial_account_token ?: string ;
14661319}
14671320
1468- export type ExternalBankAccountSetVerificationMethodParams =
1469- ExternalBankAccountSetVerificationMethodParams . Body ;
1470-
1471- export namespace ExternalBankAccountSetVerificationMethodParams {
1472- export interface Body { }
1473- }
1474-
14751321ExternalBankAccounts . ExternalBankAccountListResponsesCursorPage = ExternalBankAccountListResponsesCursorPage ;
14761322ExternalBankAccounts . MicroDeposits = MicroDeposits ;
14771323
@@ -1486,14 +1332,12 @@ export declare namespace ExternalBankAccounts {
14861332 type ExternalBankAccountListResponse as ExternalBankAccountListResponse ,
14871333 type ExternalBankAccountRetryMicroDepositsResponse as ExternalBankAccountRetryMicroDepositsResponse ,
14881334 type ExternalBankAccountRetryPrenoteResponse as ExternalBankAccountRetryPrenoteResponse ,
1489- type ExternalBankAccountSetVerificationMethodResponse as ExternalBankAccountSetVerificationMethodResponse ,
14901335 ExternalBankAccountListResponsesCursorPage as ExternalBankAccountListResponsesCursorPage ,
14911336 type ExternalBankAccountCreateParams as ExternalBankAccountCreateParams ,
14921337 type ExternalBankAccountUpdateParams as ExternalBankAccountUpdateParams ,
14931338 type ExternalBankAccountListParams as ExternalBankAccountListParams ,
14941339 type ExternalBankAccountRetryMicroDepositsParams as ExternalBankAccountRetryMicroDepositsParams ,
14951340 type ExternalBankAccountRetryPrenoteParams as ExternalBankAccountRetryPrenoteParams ,
1496- type ExternalBankAccountSetVerificationMethodParams as ExternalBankAccountSetVerificationMethodParams ,
14971341 } ;
14981342
14991343 export {
0 commit comments