Skip to content

Commit 6f5fda9

Browse files
feat(api): api update
1 parent 0432d31 commit 6f5fda9

16 files changed

Lines changed: 447 additions & 107 deletions

File tree

.stats.yml

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

api.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ Types:
7272
- <code><a href="./src/resources/auth-rules/v2/v2.ts">AuthRuleCondition</a></code>
7373
- <code><a href="./src/resources/auth-rules/v2/v2.ts">ConditionalAttribute</a></code>
7474
- <code><a href="./src/resources/auth-rules/v2/v2.ts">ConditionalBlockParameters</a></code>
75-
- <code><a href="./src/resources/auth-rules/v2/v2.ts">RuleStats</a></code>
7675
- <code><a href="./src/resources/auth-rules/v2/v2.ts">VelocityLimitParams</a></code>
7776
- <code><a href="./src/resources/auth-rules/v2/v2.ts">VelocityLimitParamsPeriodWindow</a></code>
7877
- <code><a href="./src/resources/auth-rules/v2/v2.ts">V2CreateResponse</a></code>
@@ -460,6 +459,7 @@ Types:
460459
- <code><a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">ExternalBankAccountListResponse</a></code>
461460
- <code><a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">ExternalBankAccountRetryMicroDepositsResponse</a></code>
462461
- <code><a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">ExternalBankAccountRetryPrenoteResponse</a></code>
462+
- <code><a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">ExternalBankAccountSetVerificationMethodResponse</a></code>
463463

464464
Methods:
465465

@@ -469,6 +469,7 @@ Methods:
469469
- <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>
470470
- <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>
471471
- <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>
472+
- <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>
472473

473474
## MicroDeposits
474475

@@ -522,8 +523,6 @@ Methods:
522523

523524
Types:
524525

525-
- <code><a href="./src/resources/three-ds/decisioning.ts">ChallengeResponse</a></code>
526-
- <code><a href="./src/resources/three-ds/decisioning.ts">ChallengeResult</a></code>
527526
- <code><a href="./src/resources/three-ds/decisioning.ts">DecisioningRetrieveSecretResponse</a></code>
528527

529528
Methods:

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ import {
198198
ExternalBankAccountRetryMicroDepositsResponse,
199199
ExternalBankAccountRetryPrenoteParams,
200200
ExternalBankAccountRetryPrenoteResponse,
201+
ExternalBankAccountSetVerificationMethodParams,
202+
ExternalBankAccountSetVerificationMethodResponse,
201203
ExternalBankAccountUpdateParams,
202204
ExternalBankAccountUpdateResponse,
203205
ExternalBankAccounts,
@@ -713,12 +715,14 @@ export declare namespace Lithic {
713715
type ExternalBankAccountListResponse as ExternalBankAccountListResponse,
714716
type ExternalBankAccountRetryMicroDepositsResponse as ExternalBankAccountRetryMicroDepositsResponse,
715717
type ExternalBankAccountRetryPrenoteResponse as ExternalBankAccountRetryPrenoteResponse,
718+
type ExternalBankAccountSetVerificationMethodResponse as ExternalBankAccountSetVerificationMethodResponse,
716719
ExternalBankAccountListResponsesCursorPage as ExternalBankAccountListResponsesCursorPage,
717720
type ExternalBankAccountCreateParams as ExternalBankAccountCreateParams,
718721
type ExternalBankAccountUpdateParams as ExternalBankAccountUpdateParams,
719722
type ExternalBankAccountListParams as ExternalBankAccountListParams,
720723
type ExternalBankAccountRetryMicroDepositsParams as ExternalBankAccountRetryMicroDepositsParams,
721724
type ExternalBankAccountRetryPrenoteParams as ExternalBankAccountRetryPrenoteParams,
725+
type ExternalBankAccountSetVerificationMethodParams as ExternalBankAccountSetVerificationMethodParams,
722726
};
723727

724728
export {

src/resources/auth-rules/auth-rules.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
AuthRuleCondition,
88
ConditionalAttribute,
99
ConditionalBlockParameters,
10-
RuleStats,
1110
V2,
1211
V2ApplyParams,
1312
V2ApplyResponse,
@@ -43,7 +42,6 @@ export declare namespace AuthRules {
4342
type AuthRuleCondition as AuthRuleCondition,
4443
type ConditionalAttribute as ConditionalAttribute,
4544
type ConditionalBlockParameters as ConditionalBlockParameters,
46-
type RuleStats as RuleStats,
4745
type VelocityLimitParams as VelocityLimitParams,
4846
type VelocityLimitParamsPeriodWindow as VelocityLimitParamsPeriodWindow,
4947
type V2CreateResponse as V2CreateResponse,

src/resources/auth-rules/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export {
88
type AuthRuleCondition,
99
type ConditionalAttribute,
1010
type ConditionalBlockParameters,
11-
type RuleStats,
1211
type VelocityLimitParams,
1312
type VelocityLimitParamsPeriodWindow,
1413
type V2CreateResponse,

src/resources/auth-rules/v2/backtests.ts

Lines changed: 122 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import { APIResource } from '../../../resource';
44
import * as Core from '../../../core';
5-
import * as V2API from './v2';
65

76
export class Backtests extends APIResource {
87
/**
@@ -98,9 +97,129 @@ export interface BacktestResults {
9897

9998
export namespace BacktestResults {
10099
export interface Results {
101-
current_version?: V2API.RuleStats | null;
100+
current_version?: Results.CurrentVersion | null;
102101

103-
draft_version?: V2API.RuleStats | null;
102+
draft_version?: Results.DraftVersion | null;
103+
}
104+
105+
export namespace Results {
106+
export interface CurrentVersion {
107+
/**
108+
* The total number of historical transactions approved by this rule during the
109+
* relevant period, or the number of transactions that would have been approved if
110+
* the rule was evaluated in shadow mode.
111+
*/
112+
approved?: number;
113+
114+
/**
115+
* The total number of historical transactions challenged by this rule during the
116+
* relevant period, or the number of transactions that would have been challenged
117+
* if the rule was evaluated in shadow mode. Currently applicable only for 3DS Auth
118+
* Rules.
119+
*/
120+
challenged?: number;
121+
122+
/**
123+
* The total number of historical transactions declined by this rule during the
124+
* relevant period, or the number of transactions that would have been declined if
125+
* the rule was evaluated in shadow mode.
126+
*/
127+
declined?: number;
128+
129+
/**
130+
* Example events and their outcomes.
131+
*/
132+
examples?: Array<CurrentVersion.Example>;
133+
134+
/**
135+
* The version of the rule, this is incremented whenever the rule's parameters
136+
* change.
137+
*/
138+
version?: number;
139+
}
140+
141+
export namespace CurrentVersion {
142+
export interface Example {
143+
/**
144+
* Whether the rule would have approved the request.
145+
*/
146+
approved?: boolean;
147+
148+
/**
149+
* The decision made by the rule for this event.
150+
*/
151+
decision?: 'APPROVED' | 'DECLINED' | 'CHALLENGED';
152+
153+
/**
154+
* The event token.
155+
*/
156+
event_token?: string;
157+
158+
/**
159+
* The timestamp of the event.
160+
*/
161+
timestamp?: string;
162+
}
163+
}
164+
165+
export interface DraftVersion {
166+
/**
167+
* The total number of historical transactions approved by this rule during the
168+
* relevant period, or the number of transactions that would have been approved if
169+
* the rule was evaluated in shadow mode.
170+
*/
171+
approved?: number;
172+
173+
/**
174+
* The total number of historical transactions challenged by this rule during the
175+
* relevant period, or the number of transactions that would have been challenged
176+
* if the rule was evaluated in shadow mode. Currently applicable only for 3DS Auth
177+
* Rules.
178+
*/
179+
challenged?: number;
180+
181+
/**
182+
* The total number of historical transactions declined by this rule during the
183+
* relevant period, or the number of transactions that would have been declined if
184+
* the rule was evaluated in shadow mode.
185+
*/
186+
declined?: number;
187+
188+
/**
189+
* Example events and their outcomes.
190+
*/
191+
examples?: Array<DraftVersion.Example>;
192+
193+
/**
194+
* The version of the rule, this is incremented whenever the rule's parameters
195+
* change.
196+
*/
197+
version?: number;
198+
}
199+
200+
export namespace DraftVersion {
201+
export interface Example {
202+
/**
203+
* Whether the rule would have approved the request.
204+
*/
205+
approved?: boolean;
206+
207+
/**
208+
* The decision made by the rule for this event.
209+
*/
210+
decision?: 'APPROVED' | 'DECLINED' | 'CHALLENGED';
211+
212+
/**
213+
* The event token.
214+
*/
215+
event_token?: string;
216+
217+
/**
218+
* The timestamp of the event.
219+
*/
220+
timestamp?: string;
221+
}
222+
}
104223
}
105224

106225
export interface SimulationParameters {

src/resources/auth-rules/v2/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export {
1313
type AuthRuleCondition,
1414
type ConditionalAttribute,
1515
type ConditionalBlockParameters,
16-
type RuleStats,
1716
type VelocityLimitParams,
1817
type VelocityLimitParamsPeriodWindow,
1918
type V2CreateResponse,

0 commit comments

Comments
 (0)