Skip to content

Commit 0432d31

Browse files
feat(api): update via SDK Studio
1 parent 6b5a250 commit 0432d31

7 files changed

Lines changed: 2 additions & 193 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 166
1+
configured_endpoints: 165
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-9f0265b7c9be88b8617e3330b7d3ef4a6211d73fe40d6293e05812339c6ae37a.yml
33
openapi_spec_hash: b638196f623d1b2a72ea0ad387c06b6a
4-
config_hash: cbf2b90f343214bd90c39f6fa9ede6b9
4+
config_hash: c514983234ed21f8bb6ba2ced00cc42d

api.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,6 @@ Types:
460460
- <code><a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">ExternalBankAccountListResponse</a></code>
461461
- <code><a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">ExternalBankAccountRetryMicroDepositsResponse</a></code>
462462
- <code><a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">ExternalBankAccountRetryPrenoteResponse</a></code>
463-
- <code><a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">ExternalBankAccountSetVerificationMethodResponse</a></code>
464463

465464
Methods:
466465

@@ -470,7 +469,6 @@ Methods:
470469
- <code title="get /v1/external_bank_accounts">client.externalBankAccounts.<a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">list</a>({ ...params }) -> ExternalBankAccountListResponsesCursorPage</code>
471470
- <code title="post /v1/external_bank_accounts/{external_bank_account_token}/retry_micro_deposits">client.externalBankAccounts.<a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">retryMicroDeposits</a>(externalBankAccountToken, { ...params }) -> ExternalBankAccountRetryMicroDepositsResponse</code>
472471
- <code title="post /v1/external_bank_accounts/{external_bank_account_token}/retry_prenote">client.externalBankAccounts.<a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">retryPrenote</a>(externalBankAccountToken, { ...params }) -> ExternalBankAccountRetryPrenoteResponse</code>
473-
- <code title="post /v1/external_bank_accounts/{external_bank_account_token}/set_verification_method">client.externalBankAccounts.<a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">setVerificationMethod</a>(externalBankAccountToken, { ...params }) -> ExternalBankAccountSetVerificationMethodResponse</code>
474472

475473
## MicroDeposits
476474

src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,6 @@ import {
198198
ExternalBankAccountRetryMicroDepositsResponse,
199199
ExternalBankAccountRetryPrenoteParams,
200200
ExternalBankAccountRetryPrenoteResponse,
201-
ExternalBankAccountSetVerificationMethodParams,
202-
ExternalBankAccountSetVerificationMethodResponse,
203201
ExternalBankAccountUpdateParams,
204202
ExternalBankAccountUpdateResponse,
205203
ExternalBankAccounts,
@@ -715,14 +713,12 @@ export declare namespace Lithic {
715713
type ExternalBankAccountListResponse as ExternalBankAccountListResponse,
716714
type ExternalBankAccountRetryMicroDepositsResponse as ExternalBankAccountRetryMicroDepositsResponse,
717715
type ExternalBankAccountRetryPrenoteResponse as ExternalBankAccountRetryPrenoteResponse,
718-
type ExternalBankAccountSetVerificationMethodResponse as ExternalBankAccountSetVerificationMethodResponse,
719716
ExternalBankAccountListResponsesCursorPage as ExternalBankAccountListResponsesCursorPage,
720717
type ExternalBankAccountCreateParams as ExternalBankAccountCreateParams,
721718
type ExternalBankAccountUpdateParams as ExternalBankAccountUpdateParams,
722719
type ExternalBankAccountListParams as ExternalBankAccountListParams,
723720
type ExternalBankAccountRetryMicroDepositsParams as ExternalBankAccountRetryMicroDepositsParams,
724721
type ExternalBankAccountRetryPrenoteParams as ExternalBankAccountRetryPrenoteParams,
725-
type ExternalBankAccountSetVerificationMethodParams as ExternalBankAccountSetVerificationMethodParams,
726722
};
727723

728724
export {

src/resources/external-bank-accounts/external-bank-accounts.ts

Lines changed: 0 additions & 156 deletions
Original file line numberDiff line numberDiff line change
@@ -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

209185
export 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-
1096949
export 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-
14751321
ExternalBankAccounts.ExternalBankAccountListResponsesCursorPage = ExternalBankAccountListResponsesCursorPage;
14761322
ExternalBankAccounts.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 {

src/resources/external-bank-accounts/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@ export {
1212
type ExternalBankAccountListResponse,
1313
type ExternalBankAccountRetryMicroDepositsResponse,
1414
type ExternalBankAccountRetryPrenoteResponse,
15-
type ExternalBankAccountSetVerificationMethodResponse,
1615
type ExternalBankAccountCreateParams,
1716
type ExternalBankAccountUpdateParams,
1817
type ExternalBankAccountListParams,
1918
type ExternalBankAccountRetryMicroDepositsParams,
2019
type ExternalBankAccountRetryPrenoteParams,
21-
type ExternalBankAccountSetVerificationMethodParams,
2220
} from './external-bank-accounts';
2321
export {
2422
MicroDeposits,

src/resources/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,11 @@ export {
9797
type ExternalBankAccountListResponse,
9898
type ExternalBankAccountRetryMicroDepositsResponse,
9999
type ExternalBankAccountRetryPrenoteResponse,
100-
type ExternalBankAccountSetVerificationMethodResponse,
101100
type ExternalBankAccountCreateParams,
102101
type ExternalBankAccountUpdateParams,
103102
type ExternalBankAccountListParams,
104103
type ExternalBankAccountRetryMicroDepositsParams,
105104
type ExternalBankAccountRetryPrenoteParams,
106-
type ExternalBankAccountSetVerificationMethodParams,
107105
} from './external-bank-accounts/external-bank-accounts';
108106
export {
109107
ExternalPaymentsCursorPage,

tests/api-resources/external-bank-accounts/external-bank-accounts.test.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -184,29 +184,4 @@ describe('resource externalBankAccounts', () => {
184184
),
185185
).rejects.toThrow(Lithic.NotFoundError);
186186
});
187-
188-
test('setVerificationMethod: only required params', async () => {
189-
const responsePromise = client.externalBankAccounts.setVerificationMethod(
190-
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
191-
{ verification_method: 'MICRO_DEPOSIT' },
192-
);
193-
const rawResponse = await responsePromise.asResponse();
194-
expect(rawResponse).toBeInstanceOf(Response);
195-
const response = await responsePromise;
196-
expect(response).not.toBeInstanceOf(Response);
197-
const dataAndResponse = await responsePromise.withResponse();
198-
expect(dataAndResponse.data).toBe(response);
199-
expect(dataAndResponse.response).toBe(rawResponse);
200-
});
201-
202-
test('setVerificationMethod: required and optional params', async () => {
203-
const response = await client.externalBankAccounts.setVerificationMethod(
204-
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
205-
{
206-
verification_method: 'MICRO_DEPOSIT',
207-
financial_account_token: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
208-
processor_token: 'x',
209-
},
210-
);
211-
});
212187
});

0 commit comments

Comments
 (0)