Skip to content

Commit 942f058

Browse files
fix(types): make comment, created_at, fraud_type, updated_at nullable in fraud transactions
1 parent 11b01a3 commit 942f058

6 files changed

Lines changed: 19 additions & 17 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 214
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-2d2600072500797474f0d7798c1a8b668bfbc4e0c6a8f076ca7b4cc7ad82058b.yml
3-
openapi_spec_hash: 7605eb6be77a3d150078916f0eb0e9ac
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-6683cf82e93cfd95e17b0386f070333486fe8e7b857b47c62e09682362d5991d.yml
3+
openapi_spec_hash: ce2c1f6201bb2036d05602238503eb6b
44
config_hash: 5bb913c05ebeb301ec925b16e75bb251

packages/mcp-server/src/local-docs-search.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4127,12 +4127,12 @@ const EMBEDDED_METHODS: MethodEntry[] = [
41274127
httpMethod: 'post',
41284128
summary: 'Respond to Authorization Challenge',
41294129
description:
4130-
"Card program's response to Authorization Challenge.\nPrograms that have Authorization Challenges configured as Out of Band receive a [card_authorization.challenge](https://docs.lithic.com/reference/post_card-authorization-challenge) webhook when an authorization attempt triggers a challenge.\nThe card program should respond using this endpoint after the cardholder completes the challenge.",
4130+
"Card program's response to Authorization Challenge.\nPrograms that have Authorization Challenges configured as Out of Band receive a [card_authorization.challenge](https://docs.lithic.com/reference/cardauthorizationchallengewebhook) webhook when an authorization attempt triggers a challenge.\nThe card program should respond using this endpoint after the cardholder completes the challenge.",
41314131
stainlessPath: '(resource) card_authorizations > (method) challenge_response',
41324132
qualified: 'client.cardAuthorizations.challengeResponse',
41334133
params: ['event_token: string;', "response: 'APPROVE' | 'DECLINE';"],
41344134
markdown:
4135-
"## challenge_response\n\n`client.cardAuthorizations.challengeResponse(event_token: string, response: 'APPROVE' | 'DECLINE'): void`\n\n**post** `/v1/card_authorizations/{event_token}/challenge_response`\n\nCard program's response to Authorization Challenge.\nPrograms that have Authorization Challenges configured as Out of Band receive a [card_authorization.challenge](https://docs.lithic.com/reference/post_card-authorization-challenge) webhook when an authorization attempt triggers a challenge.\nThe card program should respond using this endpoint after the cardholder completes the challenge.\n\n### Parameters\n\n- `event_token: string`\n\n- `response: 'APPROVE' | 'DECLINE'`\n Whether the cardholder has approved or declined the issued challenge\n\n### Example\n\n```typescript\nimport Lithic from 'lithic';\n\nconst client = new Lithic();\n\nawait client.cardAuthorizations.challengeResponse('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', { response: 'APPROVE' })\n```",
4135+
"## challenge_response\n\n`client.cardAuthorizations.challengeResponse(event_token: string, response: 'APPROVE' | 'DECLINE'): void`\n\n**post** `/v1/card_authorizations/{event_token}/challenge_response`\n\nCard program's response to Authorization Challenge.\nPrograms that have Authorization Challenges configured as Out of Band receive a [card_authorization.challenge](https://docs.lithic.com/reference/cardauthorizationchallengewebhook) webhook when an authorization attempt triggers a challenge.\nThe card program should respond using this endpoint after the cardholder completes the challenge.\n\n### Parameters\n\n- `event_token: string`\n\n- `response: 'APPROVE' | 'DECLINE'`\n Whether the cardholder has approved or declined the issued challenge\n\n### Example\n\n```typescript\nimport Lithic from 'lithic';\n\nconst client = new Lithic();\n\nawait client.cardAuthorizations.challengeResponse('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', { response: 'APPROVE' })\n```",
41364136
perLanguage: {
41374137
typescript: {
41384138
method: 'client.cardAuthorizations.challengeResponse',
@@ -9168,12 +9168,12 @@ const EMBEDDED_METHODS: MethodEntry[] = [
91689168
httpMethod: 'post',
91699169
summary: 'Respond to a Challenge Request',
91709170
description:
9171-
"Card program's response to a 3DS Challenge Request.\nChallenge Request is emitted as a webhook [three_ds_authentication.challenge](https://docs.lithic.com/reference/post_three-ds-authentication-challenge) and your Card Program needs to be configured with Out of Band (OOB) Challenges in order to receive it (see https://docs.lithic.com/docs/3ds-challenge-flow for more information).",
9171+
"Card program's response to a 3DS Challenge Request.\nChallenge Request is emitted as a webhook [three_ds_authentication.challenge](https://docs.lithic.com/reference/threedsauthenticationchallengewebhook) and your Card Program needs to be configured with Out of Band (OOB) Challenges in order to receive it (see https://docs.lithic.com/docs/3ds-challenge-flow for more information).",
91729172
stainlessPath: '(resource) three_ds.decisioning > (method) challenge_response',
91739173
qualified: 'client.threeDS.decisioning.challengeResponse',
91749174
params: ['token: string;', "challenge_response: 'APPROVE' | 'DECLINE_BY_CUSTOMER';"],
91759175
markdown:
9176-
"## challenge_response\n\n`client.threeDS.decisioning.challengeResponse(token: string, challenge_response: 'APPROVE' | 'DECLINE_BY_CUSTOMER'): void`\n\n**post** `/v1/three_ds_decisioning/challenge_response`\n\nCard program's response to a 3DS Challenge Request.\nChallenge Request is emitted as a webhook [three_ds_authentication.challenge](https://docs.lithic.com/reference/post_three-ds-authentication-challenge) and your Card Program needs to be configured with Out of Band (OOB) Challenges in order to receive it (see https://docs.lithic.com/docs/3ds-challenge-flow for more information).\n\n### Parameters\n\n- `token: string`\n Globally unique identifier for 3DS Authentication that resulted in PENDING_CHALLENGE authentication result.\n\n- `challenge_response: 'APPROVE' | 'DECLINE_BY_CUSTOMER'`\n Whether the Cardholder has approved or declined the issued Challenge\n\n### Example\n\n```typescript\nimport Lithic from 'lithic';\n\nconst client = new Lithic();\n\nawait client.threeDS.decisioning.challengeResponse({ token: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', challenge_response: 'APPROVE' })\n```",
9176+
"## challenge_response\n\n`client.threeDS.decisioning.challengeResponse(token: string, challenge_response: 'APPROVE' | 'DECLINE_BY_CUSTOMER'): void`\n\n**post** `/v1/three_ds_decisioning/challenge_response`\n\nCard program's response to a 3DS Challenge Request.\nChallenge Request is emitted as a webhook [three_ds_authentication.challenge](https://docs.lithic.com/reference/threedsauthenticationchallengewebhook) and your Card Program needs to be configured with Out of Band (OOB) Challenges in order to receive it (see https://docs.lithic.com/docs/3ds-challenge-flow for more information).\n\n### Parameters\n\n- `token: string`\n Globally unique identifier for 3DS Authentication that resulted in PENDING_CHALLENGE authentication result.\n\n- `challenge_response: 'APPROVE' | 'DECLINE_BY_CUSTOMER'`\n Whether the Cardholder has approved or declined the issued Challenge\n\n### Example\n\n```typescript\nimport Lithic from 'lithic';\n\nconst client = new Lithic();\n\nawait client.threeDS.decisioning.challengeResponse({ token: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', challenge_response: 'APPROVE' })\n```",
91779177
perLanguage: {
91789178
typescript: {
91799179
method: 'client.threeDS.decisioning.challengeResponse',

src/resources/card-authorizations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class CardAuthorizations extends APIResource {
1111
/**
1212
* Card program's response to Authorization Challenge. Programs that have
1313
* Authorization Challenges configured as Out of Band receive a
14-
* [card_authorization.challenge](https://docs.lithic.com/reference/post_card-authorization-challenge)
14+
* [card_authorization.challenge](https://docs.lithic.com/reference/cardauthorizationchallengewebhook)
1515
* webhook when an authorization attempt triggers a challenge. The card program
1616
* should respond using this endpoint after the cardholder completes the challenge.
1717
*/

src/resources/events/events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export interface Event {
207207
* event. Upon receiving this request, the Card Program should issue its own
208208
* challenge to the cardholder. After a cardholder challenge is successfully
209209
* completed, the Card Program needs to respond back to Lithic by call to
210-
* [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response).
210+
* [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse).
211211
* Then the cardholder must navigate back to the merchant checkout flow to
212212
* complete the transaction. Some merchants will include an `app_requestor_url`
213213
* for app-based purchases; Lithic recommends triggering a redirect to that URL

src/resources/fraud/transactions.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ export interface TransactionRetrieveResponse {
7171
/**
7272
* Provides additional context or details about the fraud report.
7373
*/
74-
comment?: string;
74+
comment?: string | null;
7575

7676
/**
7777
* Timestamp representing when the fraud report was created.
7878
*/
79-
created_at?: string;
79+
created_at?: string | null;
8080

8181
/**
8282
* Specifies the type or category of fraud that the transaction is suspected or
@@ -106,12 +106,13 @@ export interface TransactionRetrieveResponse {
106106
| 'ACCOUNT_TAKEOVER'
107107
| 'CARD_COMPROMISED'
108108
| 'IDENTITY_THEFT'
109-
| 'CARDHOLDER_MANIPULATION';
109+
| 'CARDHOLDER_MANIPULATION'
110+
| null;
110111

111112
/**
112113
* Timestamp representing the last update to the fraud report.
113114
*/
114-
updated_at?: string;
115+
updated_at?: string | null;
115116
}
116117

117118
export interface TransactionReportResponse {
@@ -142,12 +143,12 @@ export interface TransactionReportResponse {
142143
/**
143144
* Provides additional context or details about the fraud report.
144145
*/
145-
comment?: string;
146+
comment?: string | null;
146147

147148
/**
148149
* Timestamp representing when the fraud report was created.
149150
*/
150-
created_at?: string;
151+
created_at?: string | null;
151152

152153
/**
153154
* Specifies the type or category of fraud that the transaction is suspected or
@@ -177,12 +178,13 @@ export interface TransactionReportResponse {
177178
| 'ACCOUNT_TAKEOVER'
178179
| 'CARD_COMPROMISED'
179180
| 'IDENTITY_THEFT'
180-
| 'CARDHOLDER_MANIPULATION';
181+
| 'CARDHOLDER_MANIPULATION'
182+
| null;
181183

182184
/**
183185
* Timestamp representing the last update to the fraud report.
184186
*/
185-
updated_at?: string;
187+
updated_at?: string | null;
186188
}
187189

188190
export interface TransactionReportParams {

src/resources/three-ds/decisioning.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export class Decisioning extends APIResource {
88
/**
99
* Card program's response to a 3DS Challenge Request. Challenge Request is emitted
1010
* as a webhook
11-
* [three_ds_authentication.challenge](https://docs.lithic.com/reference/post_three-ds-authentication-challenge)
11+
* [three_ds_authentication.challenge](https://docs.lithic.com/reference/threedsauthenticationchallengewebhook)
1212
* and your Card Program needs to be configured with Out of Band (OOB) Challenges
1313
* in order to receive it (see https://docs.lithic.com/docs/3ds-challenge-flow for
1414
* more information).

0 commit comments

Comments
 (0)