Skip to content

Commit 6383efa

Browse files
fix(api): [breaking] unify webhook schemas for digital_wallet.tokenization_approval_request webhooks
1 parent 1c678f6 commit 6383efa

19 files changed

Lines changed: 60 additions & 527 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: 190
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-d67717d651ba08e30f82e42f4468cfb46f87470f970ae1e19a7c0dc16c275a87.yml
3-
openapi_spec_hash: 969a03848267a110e83a696547b7f2a8
4-
config_hash: 2e69ca9699ec18d9d7337604821d3091
1+
configured_endpoints: 189
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-c37843d1525e87f47a292bf11a6fdcc277157556da21c923cc1b4a4473147ef0.yml
3+
openapi_spec_hash: 29a8c4637c8a00339aa0095a929a6096
4+
config_hash: 8799cfd589579f105ef8696a6d664c71

api.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ Types:
8484

8585
- <code><a href="./src/resources/auth-rules/v2/v2.ts">AuthRule</a></code>
8686
- <code><a href="./src/resources/auth-rules/v2/v2.ts">AuthRuleCondition</a></code>
87-
- <code><a href="./src/resources/auth-rules/v2/v2.ts">AuthRuleVersion</a></code>
8887
- <code><a href="./src/resources/auth-rules/v2/v2.ts">BacktestStats</a></code>
8988
- <code><a href="./src/resources/auth-rules/v2/v2.ts">Conditional3DSActionParameters</a></code>
9089
- <code><a href="./src/resources/auth-rules/v2/v2.ts">ConditionalACHActionParameters</a></code>
@@ -103,7 +102,6 @@ Types:
103102
- <code><a href="./src/resources/auth-rules/v2/v2.ts">VelocityLimitParams</a></code>
104103
- <code><a href="./src/resources/auth-rules/v2/v2.ts">VelocityLimitPeriod</a></code>
105104
- <code><a href="./src/resources/auth-rules/v2/v2.ts">V2ListResultsResponse</a></code>
106-
- <code><a href="./src/resources/auth-rules/v2/v2.ts">V2ListVersionsResponse</a></code>
107105
- <code><a href="./src/resources/auth-rules/v2/v2.ts">V2RetrieveFeaturesResponse</a></code>
108106
- <code><a href="./src/resources/auth-rules/v2/v2.ts">V2RetrieveReportResponse</a></code>
109107

@@ -116,7 +114,6 @@ Methods:
116114
- <code title="delete /v2/auth_rules/{auth_rule_token}">client.authRules.v2.<a href="./src/resources/auth-rules/v2/v2.ts">delete</a>(authRuleToken) -> void</code>
117115
- <code title="post /v2/auth_rules/{auth_rule_token}/draft">client.authRules.v2.<a href="./src/resources/auth-rules/v2/v2.ts">draft</a>(authRuleToken, { ...params }) -> AuthRule</code>
118116
- <code title="get /v2/auth_rules/results">client.authRules.v2.<a href="./src/resources/auth-rules/v2/v2.ts">listResults</a>({ ...params }) -> V2ListResultsResponsesCursorPage</code>
119-
- <code title="get /v2/auth_rules/{auth_rule_token}/versions">client.authRules.v2.<a href="./src/resources/auth-rules/v2/v2.ts">listVersions</a>(authRuleToken) -> V2ListVersionsResponse</code>
120117
- <code title="post /v2/auth_rules/{auth_rule_token}/promote">client.authRules.v2.<a href="./src/resources/auth-rules/v2/v2.ts">promote</a>(authRuleToken) -> AuthRule</code>
121118
- <code title="get /v2/auth_rules/{auth_rule_token}/features">client.authRules.v2.<a href="./src/resources/auth-rules/v2/v2.ts">retrieveFeatures</a>(authRuleToken, { ...params }) -> V2RetrieveFeaturesResponse</code>
122119
- <code title="get /v2/auth_rules/{auth_rule_token}/report">client.authRules.v2.<a href="./src/resources/auth-rules/v2/v2.ts">retrieveReport</a>(authRuleToken, { ...params }) -> V2RetrieveReportResponse</code>
@@ -798,7 +795,6 @@ Types:
798795
- <code><a href="./src/resources/webhooks.ts">AccountHolderVerificationWebhookEvent</a></code>
799796
- <code><a href="./src/resources/webhooks.ts">AccountHolderDocumentUpdatedWebhookEvent</a></code>
800797
- <code><a href="./src/resources/webhooks.ts">CardAuthorizationApprovalRequestWebhookEvent</a></code>
801-
- <code><a href="./src/resources/webhooks.ts">TokenizationDecisioningRequestWebhookEvent</a></code>
802798
- <code><a href="./src/resources/webhooks.ts">AuthRulesBacktestReportCreatedWebhookEvent</a></code>
803799
- <code><a href="./src/resources/webhooks.ts">BalanceUpdatedWebhookEvent</a></code>
804800
- <code><a href="./src/resources/webhooks.ts">BookTransferTransactionCreatedWebhookEvent</a></code>

src/client.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ import {
238238
ThreeDSAuthenticationCreatedWebhookEvent,
239239
ThreeDSAuthenticationUpdatedWebhookEvent,
240240
TokenizationApprovalRequestWebhookEvent,
241-
TokenizationDecisioningRequestWebhookEvent,
242241
TokenizationResultWebhookEvent,
243242
TokenizationTwoFactorAuthenticationCodeSentWebhookEvent,
244243
TokenizationTwoFactorAuthenticationCodeWebhookEvent,
@@ -1548,7 +1547,6 @@ export declare namespace Lithic {
15481547
type AccountHolderVerificationWebhookEvent as AccountHolderVerificationWebhookEvent,
15491548
type AccountHolderDocumentUpdatedWebhookEvent as AccountHolderDocumentUpdatedWebhookEvent,
15501549
type CardAuthorizationApprovalRequestWebhookEvent as CardAuthorizationApprovalRequestWebhookEvent,
1551-
type TokenizationDecisioningRequestWebhookEvent as TokenizationDecisioningRequestWebhookEvent,
15521550
type AuthRulesBacktestReportCreatedWebhookEvent as AuthRulesBacktestReportCreatedWebhookEvent,
15531551
type BalanceUpdatedWebhookEvent as BalanceUpdatedWebhookEvent,
15541552
type BookTransferTransactionCreatedWebhookEvent as BookTransferTransactionCreatedWebhookEvent,

src/resources/account-activity.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ export namespace AccountActivityListResponse {
9494
*/
9595
category:
9696
| 'ACH'
97-
| 'WIRE'
9897
| 'BALANCE_OR_FUNDING'
9998
| 'FEE'
10099
| 'REWARD'
@@ -235,7 +234,6 @@ export namespace AccountActivityRetrieveTransactionResponse {
235234
*/
236235
category:
237236
| 'ACH'
238-
| 'WIRE'
239237
| 'BALANCE_OR_FUNDING'
240238
| 'FEE'
241239
| 'REWARD'
@@ -366,7 +364,6 @@ export interface AccountActivityListParams extends CursorPageParams {
366364
*/
367365
category?:
368366
| 'ACH'
369-
| 'WIRE'
370367
| 'BALANCE_OR_FUNDING'
371368
| 'FEE'
372369
| 'REWARD'

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import * as V2API from './v2/v2';
55
import {
66
AuthRule,
77
AuthRuleCondition,
8-
AuthRuleVersion,
98
AuthRulesCursorPage,
109
BacktestStats,
1110
Conditional3DSActionParameters,
@@ -28,7 +27,6 @@ import {
2827
V2ListResultsParams,
2928
V2ListResultsResponse,
3029
V2ListResultsResponsesCursorPage,
31-
V2ListVersionsResponse,
3230
V2RetrieveFeaturesParams,
3331
V2RetrieveFeaturesResponse,
3432
V2RetrieveReportParams,
@@ -50,7 +48,6 @@ export declare namespace AuthRules {
5048
V2 as V2,
5149
type AuthRule as AuthRule,
5250
type AuthRuleCondition as AuthRuleCondition,
53-
type AuthRuleVersion as AuthRuleVersion,
5451
type BacktestStats as BacktestStats,
5552
type Conditional3DSActionParameters as Conditional3DSActionParameters,
5653
type ConditionalACHActionParameters as ConditionalACHActionParameters,
@@ -69,7 +66,6 @@ export declare namespace AuthRules {
6966
type VelocityLimitParams as VelocityLimitParams,
7067
type VelocityLimitPeriod as VelocityLimitPeriod,
7168
type V2ListResultsResponse as V2ListResultsResponse,
72-
type V2ListVersionsResponse as V2ListVersionsResponse,
7369
type V2RetrieveFeaturesResponse as V2RetrieveFeaturesResponse,
7470
type V2RetrieveReportResponse as V2RetrieveReportResponse,
7571
type AuthRulesCursorPage as AuthRulesCursorPage,

src/resources/auth-rules/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export {
55
V2,
66
type AuthRule,
77
type AuthRuleCondition,
8-
type AuthRuleVersion,
98
type BacktestStats,
109
type Conditional3DSActionParameters,
1110
type ConditionalACHActionParameters,
@@ -24,7 +23,6 @@ export {
2423
type VelocityLimitParams,
2524
type VelocityLimitPeriod,
2625
type V2ListResultsResponse,
27-
type V2ListVersionsResponse,
2826
type V2RetrieveFeaturesResponse,
2927
type V2RetrieveReportResponse,
3028
type V2CreateParams,

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,19 @@ export namespace BacktestResults {
9595

9696
export interface SimulationParameters {
9797
/**
98-
* The end time of the simulation
98+
* Auth Rule Token
9999
*/
100-
end: string;
100+
auth_rule_token?: string;
101101

102102
/**
103-
* The start time of the simulation
103+
* The end time of the simulation.
104104
*/
105-
start: string;
105+
end?: string;
106+
107+
/**
108+
* The start time of the simulation.
109+
*/
110+
start?: string;
106111
}
107112
}
108113

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export {
1111
V2,
1212
type AuthRule,
1313
type AuthRuleCondition,
14-
type AuthRuleVersion,
1514
type BacktestStats,
1615
type Conditional3DSActionParameters,
1716
type ConditionalACHActionParameters,
@@ -30,7 +29,6 @@ export {
3029
type VelocityLimitParams,
3130
type VelocityLimitPeriod,
3231
type V2ListResultsResponse,
33-
type V2ListVersionsResponse,
3432
type V2RetrieveFeaturesResponse,
3533
type V2RetrieveReportResponse,
3634
type V2CreateParams,

0 commit comments

Comments
 (0)