Skip to content

Commit a270862

Browse files
feat(api): Add authorization challenge response endpoint and webhook
1 parent c8a51d0 commit a270862

48 files changed

Lines changed: 5419 additions & 5031 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 193
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-edd62262c633378b046a4c774cb9a824e2f6bf8f6c0cec613d3fb56e96ba1a29.yml
3-
openapi_spec_hash: e90bfadcd60afbaf9e0c9ebaea4e374e
4-
config_hash: 265a2b679964f4ad5706de101ad2a942
1+
configured_endpoints: 194
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-19240135588c2012b39cde86218a05c471b3e7831b57c736704e3fbca109e3a9.yml
3+
openapi_spec_hash: c6a5c719b89e08de52aea005b39fd5a6
4+
config_hash: 1c5c139a2aa0d1d45c063f953a9bc803

lib/lithic.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
require_relative "lithic/models/auth_rules/v2/backtest_results"
6262
require_relative "lithic/models/book_transfer_response"
6363
require_relative "lithic/models/non_pci_card"
64+
require_relative "lithic/models/card_authorization"
6465
require_relative "lithic/models/transactions/events/enhanced_data"
6566
require_relative "lithic/models/dispute_evidence"
6667
require_relative "lithic/models/dispute_v2"
@@ -172,7 +173,9 @@
172173
require_relative "lithic/models/book_transfer_transaction_updated_webhook_event"
173174
require_relative "lithic/models/card"
174175
require_relative "lithic/models/card_authorization_approval_request_webhook_event"
176+
require_relative "lithic/models/card_authorization_challenge_response_params"
175177
require_relative "lithic/models/card_authorization_challenge_response_webhook_event"
178+
require_relative "lithic/models/card_authorization_challenge_webhook_event"
176179
require_relative "lithic/models/card_bulk_order"
177180
require_relative "lithic/models/card_bulk_order_create_params"
178181
require_relative "lithic/models/card_bulk_order_list_params"
@@ -476,6 +479,7 @@
476479
require_relative "lithic/resources/auth_stream_enrollment"
477480
require_relative "lithic/resources/balances"
478481
require_relative "lithic/resources/book_transfers"
482+
require_relative "lithic/resources/card_authorizations"
479483
require_relative "lithic/resources/card_bulk_orders"
480484
require_relative "lithic/resources/card_programs"
481485
require_relative "lithic/resources/cards"

lib/lithic/client.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ class Client < Lithic::Internal::Transport::BaseClient
4747
# @return [Lithic::Resources::Cards]
4848
attr_reader :cards
4949

50+
# @return [Lithic::Resources::CardAuthorizations]
51+
attr_reader :card_authorizations
52+
5053
# @return [Lithic::Resources::CardBulkOrders]
5154
attr_reader :card_bulk_orders
5255

@@ -222,6 +225,7 @@ def initialize(
222225
@tokenization_decisioning = Lithic::Resources::TokenizationDecisioning.new(client: self)
223226
@tokenizations = Lithic::Resources::Tokenizations.new(client: self)
224227
@cards = Lithic::Resources::Cards.new(client: self)
228+
@card_authorizations = Lithic::Resources::CardAuthorizations.new(client: self)
225229
@card_bulk_orders = Lithic::Resources::CardBulkOrders.new(client: self)
226230
@balances = Lithic::Resources::Balances.new(client: self)
227231
@disputes = Lithic::Resources::Disputes.new(client: self)

lib/lithic/models.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,18 @@ module Lithic
130130

131131
Card = Lithic::Models::Card
132132

133+
CardAuthorization = Lithic::Models::CardAuthorization
134+
133135
CardAuthorizationApprovalRequestWebhookEvent =
134136
Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent
135137

138+
CardAuthorizationChallengeResponseParams = Lithic::Models::CardAuthorizationChallengeResponseParams
139+
136140
CardAuthorizationChallengeResponseWebhookEvent =
137141
Lithic::Models::CardAuthorizationChallengeResponseWebhookEvent
138142

143+
CardAuthorizationChallengeWebhookEvent = Lithic::Models::CardAuthorizationChallengeWebhookEvent
144+
139145
CardBulkOrder = Lithic::Models::CardBulkOrder
140146

141147
CardBulkOrderCreateParams = Lithic::Models::CardBulkOrderCreateParams

0 commit comments

Comments
 (0)