Skip to content

Commit 796975f

Browse files
fix(types): make optional fields nullable in fraud transaction responses
1 parent 0543caa commit 796975f

21 files changed

Lines changed: 101 additions & 145 deletions

.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

lib/lithic/models/event.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class Event < Lithic::Internal::Type::BaseModel
131131
# event. Upon receiving this request, the Card Program should issue its own
132132
# challenge to the cardholder. After a cardholder challenge is successfully
133133
# completed, the Card Program needs to respond back to Lithic by call to
134-
# [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response).
134+
# [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse).
135135
# Then the cardholder must navigate back to the merchant checkout flow to
136136
# complete the transaction. Some merchants will include an `app_requestor_url`
137137
# for app-based purchases; Lithic recommends triggering a redirect to that URL
@@ -282,7 +282,7 @@ class Event < Lithic::Internal::Type::BaseModel
282282
# event. Upon receiving this request, the Card Program should issue its own
283283
# challenge to the cardholder. After a cardholder challenge is successfully
284284
# completed, the Card Program needs to respond back to Lithic by call to
285-
# [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response).
285+
# [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse).
286286
# Then the cardholder must navigate back to the merchant checkout flow to
287287
# complete the transaction. Some merchants will include an `app_requestor_url`
288288
# for app-based purchases; Lithic recommends triggering a redirect to that URL

lib/lithic/models/event_list_params.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class EventListParams < Lithic::Internal::Type::BaseModel
185185
# event. Upon receiving this request, the Card Program should issue its own
186186
# challenge to the cardholder. After a cardholder challenge is successfully
187187
# completed, the Card Program needs to respond back to Lithic by call to
188-
# [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response).
188+
# [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse).
189189
# Then the cardholder must navigate back to the merchant checkout flow to
190190
# complete the transaction. Some merchants will include an `app_requestor_url`
191191
# for app-based purchases; Lithic recommends triggering a redirect to that URL

lib/lithic/models/event_subscription.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class EventSubscription < Lithic::Internal::Type::BaseModel
158158
# event. Upon receiving this request, the Card Program should issue its own
159159
# challenge to the cardholder. After a cardholder challenge is successfully
160160
# completed, the Card Program needs to respond back to Lithic by call to
161-
# [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response).
161+
# [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse).
162162
# Then the cardholder must navigate back to the merchant checkout flow to
163163
# complete the transaction. Some merchants will include an `app_requestor_url`
164164
# for app-based purchases; Lithic recommends triggering a redirect to that URL

lib/lithic/models/events/subscription_create_params.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class SubscriptionCreateParams < Lithic::Internal::Type::BaseModel
160160
# event. Upon receiving this request, the Card Program should issue its own
161161
# challenge to the cardholder. After a cardholder challenge is successfully
162162
# completed, the Card Program needs to respond back to Lithic by call to
163-
# [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response).
163+
# [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse).
164164
# Then the cardholder must navigate back to the merchant checkout flow to
165165
# complete the transaction. Some merchants will include an `app_requestor_url`
166166
# for app-based purchases; Lithic recommends triggering a redirect to that URL

lib/lithic/models/events/subscription_update_params.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class SubscriptionUpdateParams < Lithic::Internal::Type::BaseModel
167167
# event. Upon receiving this request, the Card Program should issue its own
168168
# challenge to the cardholder. After a cardholder challenge is successfully
169169
# completed, the Card Program needs to respond back to Lithic by call to
170-
# [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response).
170+
# [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse).
171171
# Then the cardholder must navigate back to the merchant checkout flow to
172172
# complete the transaction. Some merchants will include an `app_requestor_url`
173173
# for app-based purchases; Lithic recommends triggering a redirect to that URL

lib/lithic/models/fraud/transaction_report_response.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ class TransactionReportResponse < Lithic::Internal::Type::BaseModel
3535
# Provides additional context or details about the fraud report.
3636
#
3737
# @return [String, nil]
38-
optional :comment, String
38+
optional :comment, String, nil?: true
3939

4040
# @!attribute created_at
4141
# Timestamp representing when the fraud report was created.
4242
#
4343
# @return [Time, nil]
44-
optional :created_at, Time
44+
optional :created_at, Time, nil?: true
4545

4646
# @!attribute fraud_type
4747
# Specifies the type or category of fraud that the transaction is suspected or
@@ -67,13 +67,13 @@ class TransactionReportResponse < Lithic::Internal::Type::BaseModel
6767
# often through social engineering tactics.
6868
#
6969
# @return [Symbol, Lithic::Models::Fraud::TransactionReportResponse::FraudType, nil]
70-
optional :fraud_type, enum: -> { Lithic::Models::Fraud::TransactionReportResponse::FraudType }
70+
optional :fraud_type, enum: -> { Lithic::Models::Fraud::TransactionReportResponse::FraudType }, nil?: true
7171

7272
# @!attribute updated_at
7373
# Timestamp representing the last update to the fraud report.
7474
#
7575
# @return [Time, nil]
76-
optional :updated_at, Time
76+
optional :updated_at, Time, nil?: true
7777

7878
# @!method initialize(fraud_status:, transaction_token:, comment: nil, created_at: nil, fraud_type: nil, updated_at: nil)
7979
# Some parameter documentations has been truncated, see
@@ -83,13 +83,13 @@ class TransactionReportResponse < Lithic::Internal::Type::BaseModel
8383
#
8484
# @param transaction_token [String] The universally unique identifier (UUID) associated with the transaction being r
8585
#
86-
# @param comment [String] Provides additional context or details about the fraud report.
86+
# @param comment [String, nil] Provides additional context or details about the fraud report.
8787
#
88-
# @param created_at [Time] Timestamp representing when the fraud report was created.
88+
# @param created_at [Time, nil] Timestamp representing when the fraud report was created.
8989
#
90-
# @param fraud_type [Symbol, Lithic::Models::Fraud::TransactionReportResponse::FraudType] Specifies the type or category of fraud that the transaction is suspected or con
90+
# @param fraud_type [Symbol, Lithic::Models::Fraud::TransactionReportResponse::FraudType, nil] Specifies the type or category of fraud that the transaction is suspected or con
9191
#
92-
# @param updated_at [Time] Timestamp representing the last update to the fraud report.
92+
# @param updated_at [Time, nil] Timestamp representing the last update to the fraud report.
9393

9494
# The fraud status of the transaction, string (enum) supporting the following
9595
# values:

lib/lithic/models/fraud/transaction_retrieve_response.rb

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ class TransactionRetrieveResponse < Lithic::Internal::Type::BaseModel
3535
# Provides additional context or details about the fraud report.
3636
#
3737
# @return [String, nil]
38-
optional :comment, String
38+
optional :comment, String, nil?: true
3939

4040
# @!attribute created_at
4141
# Timestamp representing when the fraud report was created.
4242
#
4343
# @return [Time, nil]
44-
optional :created_at, Time
44+
optional :created_at, Time, nil?: true
4545

4646
# @!attribute fraud_type
4747
# Specifies the type or category of fraud that the transaction is suspected or
@@ -67,13 +67,15 @@ class TransactionRetrieveResponse < Lithic::Internal::Type::BaseModel
6767
# often through social engineering tactics.
6868
#
6969
# @return [Symbol, Lithic::Models::Fraud::TransactionRetrieveResponse::FraudType, nil]
70-
optional :fraud_type, enum: -> { Lithic::Models::Fraud::TransactionRetrieveResponse::FraudType }
70+
optional :fraud_type,
71+
enum: -> { Lithic::Models::Fraud::TransactionRetrieveResponse::FraudType },
72+
nil?: true
7173

7274
# @!attribute updated_at
7375
# Timestamp representing the last update to the fraud report.
7476
#
7577
# @return [Time, nil]
76-
optional :updated_at, Time
78+
optional :updated_at, Time, nil?: true
7779

7880
# @!method initialize(fraud_status:, transaction_token:, comment: nil, created_at: nil, fraud_type: nil, updated_at: nil)
7981
# Some parameter documentations has been truncated, see
@@ -83,13 +85,13 @@ class TransactionRetrieveResponse < Lithic::Internal::Type::BaseModel
8385
#
8486
# @param transaction_token [String] The universally unique identifier (UUID) associated with the transaction being r
8587
#
86-
# @param comment [String] Provides additional context or details about the fraud report.
88+
# @param comment [String, nil] Provides additional context or details about the fraud report.
8789
#
88-
# @param created_at [Time] Timestamp representing when the fraud report was created.
90+
# @param created_at [Time, nil] Timestamp representing when the fraud report was created.
8991
#
90-
# @param fraud_type [Symbol, Lithic::Models::Fraud::TransactionRetrieveResponse::FraudType] Specifies the type or category of fraud that the transaction is suspected or con
92+
# @param fraud_type [Symbol, Lithic::Models::Fraud::TransactionRetrieveResponse::FraudType, nil] Specifies the type or category of fraud that the transaction is suspected or con
9193
#
92-
# @param updated_at [Time] Timestamp representing the last update to the fraud report.
94+
# @param updated_at [Time, nil] Timestamp representing the last update to the fraud report.
9395

9496
# The fraud status of the transaction, string (enum) supporting the following
9597
# values:

lib/lithic/resources/card_authorizations.rb

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

lib/lithic/resources/three_ds/decisioning.rb

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

0 commit comments

Comments
 (0)