lithic 0.14.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +4 -0
  5. data/lib/lithic/internal/transport/base_client.rb +2 -0
  6. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +4 -4
  7. data/lib/lithic/models/auth_rules/auth_rule.rb +10 -6
  8. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +2 -2
  9. data/lib/lithic/models/auth_rules/auth_rule_version.rb +5 -3
  10. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -6
  11. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +4 -4
  12. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +52 -34
  13. data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +533 -0
  14. data/lib/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rb +18 -14
  15. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +6 -6
  16. data/lib/lithic/models/auth_rules/conditional_value.rb +3 -2
  17. data/lib/lithic/models/auth_rules/v2_create_params.rb +15 -9
  18. data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -3
  19. data/lib/lithic/models/balance.rb +8 -6
  20. data/lib/lithic/models/card_authorization.rb +1266 -0
  21. data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +3 -1253
  22. data/lib/lithic/models/card_authorization_challenge_response_params.rb +40 -0
  23. data/lib/lithic/models/card_authorization_challenge_response_webhook_event.rb +1 -0
  24. data/lib/lithic/models/card_authorization_challenge_webhook_event.rb +67 -0
  25. data/lib/lithic/models/card_program.rb +2 -2
  26. data/lib/lithic/models/event.rb +13 -4
  27. data/lib/lithic/models/event_list_params.rb +7 -2
  28. data/lib/lithic/models/event_subscription.rb +7 -2
  29. data/lib/lithic/models/events/subscription_create_params.rb +7 -2
  30. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
  31. data/lib/lithic/models/events/subscription_update_params.rb +7 -2
  32. data/lib/lithic/models/external_bank_account.rb +1 -1
  33. data/lib/lithic/models/external_bank_account_pause_params.rb +20 -0
  34. data/lib/lithic/models/financial_accounts/statement.rb +4 -4
  35. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +3 -2
  36. data/lib/lithic/models/financial_event.rb +1 -0
  37. data/lib/lithic/models/kyb_business_entity.rb +2 -2
  38. data/lib/lithic/models/parsed_webhook_event.rb +4 -1
  39. data/lib/lithic/models/settlement_detail.rb +14 -14
  40. data/lib/lithic/models/statement_totals.rb +6 -6
  41. data/lib/lithic/models/tokenization_decline_reason.rb +1 -0
  42. data/lib/lithic/models/transaction.rb +2 -2
  43. data/lib/lithic/models/transfer_limits_response.rb +12 -12
  44. data/lib/lithic/models.rb +8 -0
  45. data/lib/lithic/resources/auth_rules/v2.rb +1 -1
  46. data/lib/lithic/resources/card_authorizations.rb +45 -0
  47. data/lib/lithic/resources/external_bank_accounts.rb +19 -0
  48. data/lib/lithic/resources/webhooks.rb +1 -1
  49. data/lib/lithic/version.rb +1 -1
  50. data/lib/lithic.rb +6 -0
  51. data/rbi/lithic/client.rbi +3 -0
  52. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +6 -12
  53. data/rbi/lithic/models/auth_rules/auth_rule.rbi +8 -4
  54. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +4 -2
  55. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +9 -6
  56. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +3 -3
  57. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +75 -48
  58. data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +1147 -0
  59. data/rbi/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbi +24 -18
  60. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +6 -6
  61. data/rbi/lithic/models/auth_rules/conditional_value.rbi +1 -1
  62. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +24 -12
  63. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +8 -4
  64. data/rbi/lithic/models/balance.rbi +12 -6
  65. data/rbi/lithic/models/card_authorization.rbi +2540 -0
  66. data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +5 -2758
  67. data/rbi/lithic/models/card_authorization_challenge_response_params.rbi +93 -0
  68. data/rbi/lithic/models/card_authorization_challenge_response_webhook_event.rbi +5 -0
  69. data/rbi/lithic/models/card_authorization_challenge_webhook_event.rbi +119 -0
  70. data/rbi/lithic/models/card_program.rbi +3 -6
  71. data/rbi/lithic/models/event.rbi +23 -6
  72. data/rbi/lithic/models/event_list_params.rbi +11 -2
  73. data/rbi/lithic/models/event_subscription.rbi +11 -2
  74. data/rbi/lithic/models/events/subscription_create_params.rbi +11 -2
  75. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
  76. data/rbi/lithic/models/events/subscription_update_params.rbi +11 -2
  77. data/rbi/lithic/models/external_bank_account_pause_params.rbi +41 -0
  78. data/rbi/lithic/models/financial_accounts/statement.rbi +6 -12
  79. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +8 -6
  80. data/rbi/lithic/models/financial_event.rbi +2 -0
  81. data/rbi/lithic/models/kyb_business_entity.rbi +3 -6
  82. data/rbi/lithic/models/parsed_webhook_event.rbi +1 -0
  83. data/rbi/lithic/models/settlement_detail.rbi +15 -15
  84. data/rbi/lithic/models/statement_totals.rbi +9 -18
  85. data/rbi/lithic/models/tokenization_decline_reason.rbi +2 -0
  86. data/rbi/lithic/models/transaction.rbi +3 -3
  87. data/rbi/lithic/models/transfer_limits_response.rbi +48 -48
  88. data/rbi/lithic/models.rbi +11 -0
  89. data/rbi/lithic/resources/auth_rules/v2.rbi +2 -1
  90. data/rbi/lithic/resources/card_authorizations.rbi +35 -0
  91. data/rbi/lithic/resources/external_bank_accounts.rbi +10 -0
  92. data/rbi/lithic/resources/webhooks.rbi +4 -1
  93. data/sig/lithic/client.rbs +2 -0
  94. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +8 -12
  95. data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
  96. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -0
  97. data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +276 -0
  98. data/sig/lithic/models/auth_rules/conditional_value.rbs +1 -1
  99. data/sig/lithic/models/auth_rules/v2_create_params.rbs +3 -0
  100. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
  101. data/sig/lithic/models/balance.rbs +17 -9
  102. data/sig/lithic/models/card_authorization.rbs +1038 -0
  103. data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +7 -1013
  104. data/sig/lithic/models/card_authorization_challenge_response_params.rbs +42 -0
  105. data/sig/lithic/models/card_authorization_challenge_response_webhook_event.rbs +2 -1
  106. data/sig/lithic/models/card_authorization_challenge_webhook_event.rbs +53 -0
  107. data/sig/lithic/models/card_program.rbs +4 -6
  108. data/sig/lithic/models/event.rbs +2 -0
  109. data/sig/lithic/models/event_list_params.rbs +2 -0
  110. data/sig/lithic/models/event_subscription.rbs +2 -0
  111. data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
  112. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
  113. data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
  114. data/sig/lithic/models/external_bank_account_pause_params.rbs +24 -0
  115. data/sig/lithic/models/financial_accounts/statement.rbs +8 -12
  116. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +6 -6
  117. data/sig/lithic/models/financial_event.rbs +2 -0
  118. data/sig/lithic/models/kyb_business_entity.rbs +4 -6
  119. data/sig/lithic/models/parsed_webhook_event.rbs +1 -0
  120. data/sig/lithic/models/settlement_detail.rbs +18 -18
  121. data/sig/lithic/models/statement_totals.rbs +12 -18
  122. data/sig/lithic/models/tokenization_decline_reason.rbs +2 -0
  123. data/sig/lithic/models/transaction.rbs +4 -8
  124. data/sig/lithic/models/transfer_limits_response.rbs +24 -36
  125. data/sig/lithic/models.rbs +8 -0
  126. data/sig/lithic/resources/card_authorizations.rbs +13 -0
  127. data/sig/lithic/resources/external_bank_accounts.rbs +5 -0
  128. data/sig/lithic/resources/webhooks.rbs +1 -0
  129. metadata +20 -2
@@ -104,14 +104,14 @@ module Lithic
104
104
  # Amount originated towards limit
105
105
  #
106
106
  # @return [Integer, nil]
107
- optional :amount_originated, Integer
107
+ optional :amount_originated, Integer, nil?: true
108
108
 
109
109
  # @!method initialize(limit:, amount_originated: nil)
110
110
  # Credit limits
111
111
  #
112
112
  # @param limit [Integer] The limit amount
113
113
  #
114
- # @param amount_originated [Integer] Amount originated towards limit
114
+ # @param amount_originated [Integer, nil] Amount originated towards limit
115
115
  end
116
116
 
117
117
  # @see Lithic::Models::TransferLimitsResponse::Data::DailyLimit#debit
@@ -126,14 +126,14 @@ module Lithic
126
126
  # Amount originated towards limit
127
127
  #
128
128
  # @return [Integer, nil]
129
- optional :amount_originated, Integer
129
+ optional :amount_originated, Integer, nil?: true
130
130
 
131
131
  # @!method initialize(limit:, amount_originated: nil)
132
132
  # Debit limits
133
133
  #
134
134
  # @param limit [Integer] The limit amount
135
135
  #
136
- # @param amount_originated [Integer] Amount originated towards limit
136
+ # @param amount_originated [Integer, nil] Amount originated towards limit
137
137
  end
138
138
  end
139
139
 
@@ -170,14 +170,14 @@ module Lithic
170
170
  # Amount originated towards limit
171
171
  #
172
172
  # @return [Integer, nil]
173
- optional :amount_originated, Integer
173
+ optional :amount_originated, Integer, nil?: true
174
174
 
175
175
  # @!method initialize(limit:, amount_originated: nil)
176
176
  # Credit limits
177
177
  #
178
178
  # @param limit [Integer] The limit amount
179
179
  #
180
- # @param amount_originated [Integer] Amount originated towards limit
180
+ # @param amount_originated [Integer, nil] Amount originated towards limit
181
181
  end
182
182
 
183
183
  # @see Lithic::Models::TransferLimitsResponse::Data::MonthlyLimit#debit
@@ -192,14 +192,14 @@ module Lithic
192
192
  # Amount originated towards limit
193
193
  #
194
194
  # @return [Integer, nil]
195
- optional :amount_originated, Integer
195
+ optional :amount_originated, Integer, nil?: true
196
196
 
197
197
  # @!method initialize(limit:, amount_originated: nil)
198
198
  # Debit limits
199
199
  #
200
200
  # @param limit [Integer] The limit amount
201
201
  #
202
- # @param amount_originated [Integer] Amount originated towards limit
202
+ # @param amount_originated [Integer, nil] Amount originated towards limit
203
203
  end
204
204
  end
205
205
 
@@ -236,14 +236,14 @@ module Lithic
236
236
  # Amount originated towards limit
237
237
  #
238
238
  # @return [Integer, nil]
239
- optional :amount_originated, Integer
239
+ optional :amount_originated, Integer, nil?: true
240
240
 
241
241
  # @!method initialize(limit:, amount_originated: nil)
242
242
  # Credit limits
243
243
  #
244
244
  # @param limit [Integer] The limit amount
245
245
  #
246
- # @param amount_originated [Integer] Amount originated towards limit
246
+ # @param amount_originated [Integer, nil] Amount originated towards limit
247
247
  end
248
248
 
249
249
  # @see Lithic::Models::TransferLimitsResponse::Data::ProgramLimitPerTransaction#debit
@@ -258,14 +258,14 @@ module Lithic
258
258
  # Amount originated towards limit
259
259
  #
260
260
  # @return [Integer, nil]
261
- optional :amount_originated, Integer
261
+ optional :amount_originated, Integer, nil?: true
262
262
 
263
263
  # @!method initialize(limit:, amount_originated: nil)
264
264
  # Debit limits
265
265
  #
266
266
  # @param limit [Integer] The limit amount
267
267
  #
268
- # @param amount_originated [Integer] Amount originated towards limit
268
+ # @param amount_originated [Integer, nil] Amount originated towards limit
269
269
  end
270
270
  end
271
271
  end
data/lib/lithic/models.rb CHANGED
@@ -130,12 +130,18 @@ module Lithic
130
130
 
131
131
  Card = Lithic::Models::Card
132
132
 
133
+ CardAuthorization = Lithic::Models::CardAuthorization
134
+
133
135
  CardAuthorizationApprovalRequestWebhookEvent =
134
136
  Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent
135
137
 
138
+ CardAuthorizationChallengeResponseParams = Lithic::Models::CardAuthorizationChallengeResponseParams
139
+
136
140
  CardAuthorizationChallengeResponseWebhookEvent =
137
141
  Lithic::Models::CardAuthorizationChallengeResponseWebhookEvent
138
142
 
143
+ CardAuthorizationChallengeWebhookEvent = Lithic::Models::CardAuthorizationChallengeWebhookEvent
144
+
139
145
  CardBulkOrder = Lithic::Models::CardBulkOrder
140
146
 
141
147
  CardBulkOrderCreateParams = Lithic::Models::CardBulkOrderCreateParams
@@ -296,6 +302,8 @@ module Lithic
296
302
 
297
303
  ExternalBankAccountListParams = Lithic::Models::ExternalBankAccountListParams
298
304
 
305
+ ExternalBankAccountPauseParams = Lithic::Models::ExternalBankAccountPauseParams
306
+
299
307
  ExternalBankAccountRetrieveParams = Lithic::Models::ExternalBankAccountRetrieveParams
300
308
 
301
309
  ExternalBankAccountRetryMicroDepositsParams = Lithic::Models::ExternalBankAccountRetryMicroDepositsParams
@@ -144,7 +144,7 @@ module Lithic
144
144
  #
145
145
  # @param auth_rule_token [String]
146
146
  #
147
- # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, nil] Parameters for the Auth Rule
147
+ # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters, nil] Parameters for the Auth Rule
148
148
  #
149
149
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
150
150
  #
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Resources
5
+ class CardAuthorizations
6
+ # Some parameter documentations has been truncated, see
7
+ # {Lithic::Models::CardAuthorizationChallengeResponseParams} for more details.
8
+ #
9
+ # Card program's response to Authorization Challenge. Programs that have
10
+ # Authorization Challenges configured as Out of Band receive a
11
+ # [card_authorization.challenge](https://docs.lithic.com/reference/post_card-authorization-challenge)
12
+ # webhook when an authorization attempt triggers a challenge. The card program
13
+ # should respond using this endpoint after the cardholder completes the challenge.
14
+ #
15
+ # @overload challenge_response(event_token, response:, request_options: {})
16
+ #
17
+ # @param event_token [String] Globally unique identifier for the authorization event that triggered the challe
18
+ #
19
+ # @param response [Symbol, Lithic::Models::CardAuthorizationChallengeResponseParams::Response] Whether the cardholder has approved or declined the issued challenge
20
+ #
21
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
22
+ #
23
+ # @return [nil]
24
+ #
25
+ # @see Lithic::Models::CardAuthorizationChallengeResponseParams
26
+ def challenge_response(event_token, params)
27
+ parsed, options = Lithic::CardAuthorizationChallengeResponseParams.dump_request(params)
28
+ @client.request(
29
+ method: :post,
30
+ path: ["v1/card_authorizations/%1$s/challenge_response", event_token],
31
+ body: parsed,
32
+ model: NilClass,
33
+ options: options
34
+ )
35
+ end
36
+
37
+ # @api private
38
+ #
39
+ # @param client [Lithic::Client]
40
+ def initialize(client:)
41
+ @client = client
42
+ end
43
+ end
44
+ end
45
+ end
@@ -132,6 +132,25 @@ module Lithic
132
132
  )
133
133
  end
134
134
 
135
+ # Pause an external bank account
136
+ #
137
+ # @overload pause(external_bank_account_token, request_options: {})
138
+ #
139
+ # @param external_bank_account_token [String]
140
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
141
+ #
142
+ # @return [Lithic::Models::ExternalBankAccount]
143
+ #
144
+ # @see Lithic::Models::ExternalBankAccountPauseParams
145
+ def pause(external_bank_account_token, params = {})
146
+ @client.request(
147
+ method: :post,
148
+ path: ["v1/external_bank_accounts/%1$s/pause", external_bank_account_token],
149
+ model: Lithic::ExternalBankAccount,
150
+ options: params[:request_options]
151
+ )
152
+ end
153
+
135
154
  # Retry external bank account micro deposit verification.
136
155
  #
137
156
  # @overload retry_micro_deposits(external_bank_account_token, financial_account_token: nil, request_options: {})
@@ -9,7 +9,7 @@ module Lithic
9
9
  # @param headers [Hash{String => String}] The webhook request headers
10
10
  # @param secret [String, nil] The webhook secret. If not provided, reads from LITHIC_WEBHOOK_SECRET environment variable.
11
11
  #
12
- # @return [Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent, Lithic::Models::CardAuthorizationChallengeResponseWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardUpdatedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent] #
12
+ # @return [Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent, Lithic::Models::CardAuthorizationChallengeWebhookEvent, Lithic::Models::CardAuthorizationChallengeResponseWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardUpdatedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent] #
13
13
  # @raise [ArgumentError] if secret is not provided and LITHIC_WEBHOOK_SECRET env var is not set
14
14
  # @raise [Lithic::Errors::MissingDependencyError] if the standardwebhooks gem is not installed
15
15
  # @raise [StandardWebhooks::WebhookVerificationError] if the signature is invalid
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lithic
4
- VERSION = "0.14.0"
4
+ VERSION = "0.15.0"
5
5
  end
data/lib/lithic.rb CHANGED
@@ -61,6 +61,7 @@ require_relative "lithic/models/auth_rules/velocity_limit_filters"
61
61
  require_relative "lithic/models/auth_rules/v2/backtest_results"
62
62
  require_relative "lithic/models/book_transfer_response"
63
63
  require_relative "lithic/models/non_pci_card"
64
+ require_relative "lithic/models/card_authorization"
64
65
  require_relative "lithic/models/transactions/events/enhanced_data"
65
66
  require_relative "lithic/models/dispute_evidence"
66
67
  require_relative "lithic/models/dispute_v2"
@@ -125,6 +126,7 @@ require_relative "lithic/models/auth_rules/conditional_3ds_action_parameters"
125
126
  require_relative "lithic/models/auth_rules/conditional_ach_action_parameters"
126
127
  require_relative "lithic/models/auth_rules/conditional_attribute"
127
128
  require_relative "lithic/models/auth_rules/conditional_authorization_action_parameters"
129
+ require_relative "lithic/models/auth_rules/conditional_authorization_adjustment_parameters"
128
130
  require_relative "lithic/models/auth_rules/conditional_block_parameters"
129
131
  require_relative "lithic/models/auth_rules/conditional_card_transaction_update_action_parameters"
130
132
  require_relative "lithic/models/auth_rules/conditional_operation"
@@ -172,7 +174,9 @@ require_relative "lithic/models/book_transfer_transaction_created_webhook_event"
172
174
  require_relative "lithic/models/book_transfer_transaction_updated_webhook_event"
173
175
  require_relative "lithic/models/card"
174
176
  require_relative "lithic/models/card_authorization_approval_request_webhook_event"
177
+ require_relative "lithic/models/card_authorization_challenge_response_params"
175
178
  require_relative "lithic/models/card_authorization_challenge_response_webhook_event"
179
+ require_relative "lithic/models/card_authorization_challenge_webhook_event"
176
180
  require_relative "lithic/models/card_bulk_order"
177
181
  require_relative "lithic/models/card_bulk_order_create_params"
178
182
  require_relative "lithic/models/card_bulk_order_list_params"
@@ -269,6 +273,7 @@ require_relative "lithic/models/external_bank_account_create_params"
269
273
  require_relative "lithic/models/external_bank_account_create_response"
270
274
  require_relative "lithic/models/external_bank_account_list_params"
271
275
  require_relative "lithic/models/external_bank_account_list_response"
276
+ require_relative "lithic/models/external_bank_account_pause_params"
272
277
  require_relative "lithic/models/external_bank_account_retrieve_params"
273
278
  require_relative "lithic/models/external_bank_account_retrieve_response"
274
279
  require_relative "lithic/models/external_bank_account_retry_micro_deposits_params"
@@ -476,6 +481,7 @@ require_relative "lithic/resources/auth_rules/v2/backtests"
476
481
  require_relative "lithic/resources/auth_stream_enrollment"
477
482
  require_relative "lithic/resources/balances"
478
483
  require_relative "lithic/resources/book_transfers"
484
+ require_relative "lithic/resources/card_authorizations"
479
485
  require_relative "lithic/resources/card_bulk_orders"
480
486
  require_relative "lithic/resources/card_programs"
481
487
  require_relative "lithic/resources/cards"
@@ -46,6 +46,9 @@ module Lithic
46
46
  sig { returns(Lithic::Resources::Cards) }
47
47
  attr_reader :cards
48
48
 
49
+ sig { returns(Lithic::Resources::CardAuthorizations) }
50
+ attr_reader :card_authorizations
51
+
49
52
  sig { returns(Lithic::Resources::CardBulkOrders) }
50
53
  attr_reader :card_bulk_orders
51
54
 
@@ -124,10 +124,7 @@ module Lithic
124
124
  # Customer-provided token that indicates a relationship with an object outside of
125
125
  # the Lithic ecosystem.
126
126
  sig { returns(T.nilable(String)) }
127
- attr_reader :external_id
128
-
129
- sig { params(external_id: String).void }
130
- attr_writer :external_id
127
+ attr_accessor :external_id
131
128
 
132
129
  # Only present when user_type == "INDIVIDUAL". Information about the individual
133
130
  # for which the account is being opened and KYC is being run.
@@ -151,10 +148,7 @@ module Lithic
151
148
  # Only present when user_type == "BUSINESS". 6-digit North American Industry
152
149
  # Classification System (NAICS) code for the business.
153
150
  sig { returns(T.nilable(String)) }
154
- attr_reader :naics_code
155
-
156
- sig { params(naics_code: String).void }
157
- attr_writer :naics_code
151
+ attr_accessor :naics_code
158
152
 
159
153
  # Only present when user_type == "BUSINESS". User-submitted description of the
160
154
  # business.
@@ -296,10 +290,10 @@ module Lithic
296
290
  T.nilable(
297
291
  Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ExemptionType::OrSymbol
298
292
  ),
299
- external_id: String,
293
+ external_id: T.nilable(String),
300
294
  individual:
301
295
  Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual::OrHash,
302
- naics_code: String,
296
+ naics_code: T.nilable(String),
303
297
  nature_of_business: String,
304
298
  phone_number: String,
305
299
  required_documents: T::Array[Lithic::RequiredDocument::OrHash],
@@ -417,10 +411,10 @@ module Lithic
417
411
  T.nilable(
418
412
  Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ExemptionType::TaggedSymbol
419
413
  ),
420
- external_id: String,
414
+ external_id: T.nilable(String),
421
415
  individual:
422
416
  Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual,
423
- naics_code: String,
417
+ naics_code: T.nilable(String),
424
418
  nature_of_business: String,
425
419
  phone_number: String,
426
420
  required_documents: T::Array[Lithic::RequiredDocument],
@@ -235,7 +235,8 @@ module Lithic
235
235
  Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
236
236
  Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
237
237
  Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::OrHash,
238
- Lithic::AuthRules::TypescriptCodeParameters::OrHash
238
+ Lithic::AuthRules::TypescriptCodeParameters::OrHash,
239
+ Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::OrHash
239
240
  ),
240
241
  version: Integer
241
242
  ).returns(T.attached_class)
@@ -276,7 +277,8 @@ module Lithic
276
277
  Lithic::AuthRules::ConditionalACHActionParameters,
277
278
  Lithic::AuthRules::ConditionalTokenizationActionParameters,
278
279
  Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters,
279
- Lithic::AuthRules::TypescriptCodeParameters
280
+ Lithic::AuthRules::TypescriptCodeParameters,
281
+ Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
280
282
  )
281
283
  end
282
284
 
@@ -349,7 +351,8 @@ module Lithic
349
351
  Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
350
352
  Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
351
353
  Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::OrHash,
352
- Lithic::AuthRules::TypescriptCodeParameters::OrHash
354
+ Lithic::AuthRules::TypescriptCodeParameters::OrHash,
355
+ Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::OrHash
353
356
  ),
354
357
  state: Lithic::AuthRules::AuthRule::DraftVersion::State::OrSymbol,
355
358
  version: Integer
@@ -408,7 +411,8 @@ module Lithic
408
411
  Lithic::AuthRules::ConditionalACHActionParameters,
409
412
  Lithic::AuthRules::ConditionalTokenizationActionParameters,
410
413
  Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters,
411
- Lithic::AuthRules::TypescriptCodeParameters
414
+ Lithic::AuthRules::TypescriptCodeParameters,
415
+ Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
412
416
  )
413
417
  end
414
418
 
@@ -43,7 +43,8 @@ module Lithic
43
43
  Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
44
44
  Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
45
45
  Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::OrHash,
46
- Lithic::AuthRules::TypescriptCodeParameters::OrHash
46
+ Lithic::AuthRules::TypescriptCodeParameters::OrHash,
47
+ Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::OrHash
47
48
  ),
48
49
  state: Lithic::AuthRules::AuthRuleVersion::State::OrSymbol,
49
50
  version: Integer
@@ -91,7 +92,8 @@ module Lithic
91
92
  Lithic::AuthRules::ConditionalACHActionParameters,
92
93
  Lithic::AuthRules::ConditionalTokenizationActionParameters,
93
94
  Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters,
94
- Lithic::AuthRules::TypescriptCodeParameters
95
+ Lithic::AuthRules::TypescriptCodeParameters,
96
+ Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
95
97
  )
96
98
  end
97
99
 
@@ -122,9 +122,10 @@ module Lithic
122
122
  # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
123
123
  # fee field in the settlement/cardholder billing currency. This is the amount
124
124
  # the issuer should authorize against unless the issuer is paying the acquirer
125
- # fee on behalf of the cardholder.
125
+ # fee on behalf of the cardholder. Use an integer value.
126
126
  # - `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication
127
- # risk level, with a higher value indicating a higher amount of risk.
127
+ # risk level, with a higher value indicating a higher amount of risk. Use an
128
+ # integer value.
128
129
  # - `MESSAGE_CATEGORY`: The category of the authentication being processed.
129
130
  # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
130
131
  # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
@@ -170,9 +171,10 @@ module Lithic
170
171
  # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
171
172
  # fee field in the settlement/cardholder billing currency. This is the amount
172
173
  # the issuer should authorize against unless the issuer is paying the acquirer
173
- # fee on behalf of the cardholder.
174
+ # fee on behalf of the cardholder. Use an integer value.
174
175
  # - `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication
175
- # risk level, with a higher value indicating a higher amount of risk.
176
+ # risk level, with a higher value indicating a higher amount of risk. Use an
177
+ # integer value.
176
178
  # - `MESSAGE_CATEGORY`: The category of the authentication being processed.
177
179
  # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
178
180
  # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
@@ -215,9 +217,10 @@ module Lithic
215
217
  # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
216
218
  # fee field in the settlement/cardholder billing currency. This is the amount
217
219
  # the issuer should authorize against unless the issuer is paying the acquirer
218
- # fee on behalf of the cardholder.
220
+ # fee on behalf of the cardholder. Use an integer value.
219
221
  # - `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication
220
- # risk level, with a higher value indicating a higher amount of risk.
222
+ # risk level, with a higher value indicating a higher amount of risk. Use an
223
+ # integer value.
221
224
  # - `MESSAGE_CATEGORY`: The category of the authentication being processed.
222
225
  # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
223
226
  # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
@@ -648,7 +648,7 @@ module Lithic
648
648
  # ID) of the entity initiating the ACH transaction.
649
649
  # - `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
650
650
  # - `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units
651
- # (cents).
651
+ # (cents). Use an integer value.
652
652
  # - `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
653
653
  # Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
654
654
  # (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
@@ -687,7 +687,7 @@ module Lithic
687
687
  # ID) of the entity initiating the ACH transaction.
688
688
  # - `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
689
689
  # - `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units
690
- # (cents).
690
+ # (cents). Use an integer value.
691
691
  # - `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
692
692
  # Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
693
693
  # (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
@@ -723,7 +723,7 @@ module Lithic
723
723
  # ID) of the entity initiating the ACH transaction.
724
724
  # - `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
725
725
  # - `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units
726
- # (cents).
726
+ # (cents). Use an integer value.
727
727
  # - `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
728
728
  # Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
729
729
  # (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL