lithic 0.1.0.pre.alpha.48 → 0.1.0.pre.alpha.50

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 (61) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/internal/transport/pooled_net_requester.rb +7 -10
  5. data/lib/lithic/models/account_activity_list_params.rb +5 -0
  6. data/lib/lithic/models/account_activity_list_response.rb +20 -11
  7. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +20 -11
  8. data/lib/lithic/models/auth_rules/v2_update_params.rb +17 -1
  9. data/lib/lithic/models/book_transfer_create_params.rb +4 -3
  10. data/lib/lithic/models/book_transfer_list_params.rb +5 -3
  11. data/lib/lithic/models/book_transfer_response.rb +4 -4
  12. data/lib/lithic/models/financial_account.rb +21 -1
  13. data/lib/lithic/models/financial_accounts/credit_configuration_update_params.rb +20 -1
  14. data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +21 -1
  15. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +7 -0
  16. data/lib/lithic/models/financial_transaction.rb +2 -0
  17. data/lib/lithic/models/settlement_detail.rb +7 -7
  18. data/lib/lithic/models/tokenization.rb +9 -1
  19. data/lib/lithic/models/transaction.rb +12 -1
  20. data/lib/lithic/models/transfer.rb +2 -0
  21. data/lib/lithic/resources/auth_rules/v2.rb +5 -1
  22. data/lib/lithic/resources/book_transfers.rb +1 -1
  23. data/lib/lithic/resources/financial_accounts/credit_configuration.rb +3 -1
  24. data/lib/lithic/version.rb +1 -1
  25. data/rbi/lithic/models/account_activity_list_params.rbi +22 -0
  26. data/rbi/lithic/models/account_activity_list_response.rbi +81 -36
  27. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +81 -36
  28. data/rbi/lithic/models/auth_rules/v2_update_params.rbi +22 -0
  29. data/rbi/lithic/models/book_transfer_create_params.rbi +15 -3
  30. data/rbi/lithic/models/book_transfer_list_params.rbi +18 -8
  31. data/rbi/lithic/models/book_transfer_response.rbi +12 -3
  32. data/rbi/lithic/models/financial_account.rbi +54 -3
  33. data/rbi/lithic/models/financial_accounts/credit_configuration_update_params.rbi +54 -0
  34. data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +49 -0
  35. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +35 -0
  36. data/rbi/lithic/models/financial_transaction.rbi +10 -0
  37. data/rbi/lithic/models/settlement_detail.rbi +8 -8
  38. data/rbi/lithic/models/tokenization.rbi +8 -0
  39. data/rbi/lithic/models/transaction.rbi +23 -0
  40. data/rbi/lithic/models/transfer.rbi +10 -0
  41. data/rbi/lithic/resources/auth_rules/v2.rbi +6 -0
  42. data/rbi/lithic/resources/book_transfers.rbi +0 -1
  43. data/rbi/lithic/resources/financial_accounts/credit_configuration.rbi +3 -0
  44. data/sig/lithic/models/account_activity_list_params.rbs +10 -0
  45. data/sig/lithic/models/account_activity_list_response.rbs +41 -23
  46. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +41 -23
  47. data/sig/lithic/models/auth_rules/v2_update_params.rbs +14 -0
  48. data/sig/lithic/models/book_transfer_create_params.rbs +7 -1
  49. data/sig/lithic/models/book_transfer_list_params.rbs +11 -7
  50. data/sig/lithic/models/book_transfer_response.rbs +7 -1
  51. data/sig/lithic/models/financial_account.rbs +22 -3
  52. data/sig/lithic/models/financial_accounts/credit_configuration_update_params.rbs +21 -0
  53. data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +15 -0
  54. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +14 -0
  55. data/sig/lithic/models/financial_transaction.rbs +4 -0
  56. data/sig/lithic/models/tokenization.rbs +5 -0
  57. data/sig/lithic/models/transaction.rbs +13 -0
  58. data/sig/lithic/models/transfer.rbs +4 -0
  59. data/sig/lithic/resources/auth_rules/v2.rbs +2 -0
  60. data/sig/lithic/resources/financial_accounts/credit_configuration.rbs +1 -0
  61. metadata +2 -2
@@ -13,7 +13,6 @@ module Lithic
13
13
  sig { returns(String) }
14
14
  attr_accessor :token
15
15
 
16
- # Category of the book transfer
17
16
  sig { returns(Lithic::BookTransferResponse::Category::TaggedSymbol) }
18
17
  attr_accessor :category
19
18
 
@@ -121,7 +120,6 @@ module Lithic
121
120
  # Customer-provided token that will serve as an idempotency token. This token will
122
121
  # become the transaction token.
123
122
  token:,
124
- # Category of the book transfer
125
123
  category:,
126
124
  # Date and time when the transfer occurred. UTC time zone.
127
125
  created:,
@@ -188,7 +186,6 @@ module Lithic
188
186
  def to_hash
189
187
  end
190
188
 
191
- # Category of the book transfer
192
189
  module Category
193
190
  extend Lithic::Internal::Type::Enum
194
191
 
@@ -214,8 +211,15 @@ module Lithic
214
211
  DISPUTE =
215
212
  T.let(:DISPUTE, Lithic::BookTransferResponse::Category::TaggedSymbol)
216
213
  FEE = T.let(:FEE, Lithic::BookTransferResponse::Category::TaggedSymbol)
214
+ INTERNAL =
215
+ T.let(:INTERNAL, Lithic::BookTransferResponse::Category::TaggedSymbol)
217
216
  REWARD =
218
217
  T.let(:REWARD, Lithic::BookTransferResponse::Category::TaggedSymbol)
218
+ PROGRAM_FUNDING =
219
+ T.let(
220
+ :PROGRAM_FUNDING,
221
+ Lithic::BookTransferResponse::Category::TaggedSymbol
222
+ )
219
223
  TRANSFER =
220
224
  T.let(:TRANSFER, Lithic::BookTransferResponse::Category::TaggedSymbol)
221
225
 
@@ -406,6 +410,11 @@ module Lithic
406
410
  end
407
411
  OrSymbol = T.type_alias { T.any(Symbol, String) }
408
412
 
413
+ ATM_BALANCE_INQUIRY =
414
+ T.let(
415
+ :ATM_BALANCE_INQUIRY,
416
+ Lithic::BookTransferResponse::Event::Type::TaggedSymbol
417
+ )
409
418
  ATM_WITHDRAWAL =
410
419
  T.let(
411
420
  :ATM_WITHDRAWAL,
@@ -164,6 +164,23 @@ module Lithic
164
164
  sig { returns(T.nilable(String)) }
165
165
  attr_accessor :tier
166
166
 
167
+ sig do
168
+ returns(
169
+ T.nilable(
170
+ Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration
171
+ )
172
+ )
173
+ end
174
+ attr_reader :auto_collection_configuration
175
+
176
+ sig do
177
+ params(
178
+ auto_collection_configuration:
179
+ Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration::OrHash
180
+ ).void
181
+ end
182
+ attr_writer :auto_collection_configuration
183
+
167
184
  sig do
168
185
  params(
169
186
  charged_off_reason:
@@ -178,7 +195,9 @@ module Lithic
178
195
  Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::OrSymbol
179
196
  ),
180
197
  is_spend_blocked: T::Boolean,
181
- tier: T.nilable(String)
198
+ tier: T.nilable(String),
199
+ auto_collection_configuration:
200
+ Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration::OrHash
182
201
  ).returns(T.attached_class)
183
202
  end
184
203
  def self.new(
@@ -192,7 +211,8 @@ module Lithic
192
211
  financial_account_state:,
193
212
  is_spend_blocked:,
194
213
  # Tier assigned to the financial account
195
- tier:
214
+ tier:,
215
+ auto_collection_configuration: nil
196
216
  )
197
217
  end
198
218
 
@@ -211,7 +231,9 @@ module Lithic
211
231
  Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::TaggedSymbol
212
232
  ),
213
233
  is_spend_blocked: T::Boolean,
214
- tier: T.nilable(String)
234
+ tier: T.nilable(String),
235
+ auto_collection_configuration:
236
+ Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration
215
237
  }
216
238
  )
217
239
  end
@@ -297,6 +319,35 @@ module Lithic
297
319
  def self.values
298
320
  end
299
321
  end
322
+
323
+ class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel
324
+ OrHash =
325
+ T.type_alias do
326
+ T.any(
327
+ Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration,
328
+ Lithic::Internal::AnyHash
329
+ )
330
+ end
331
+
332
+ # If auto collection is enabled for this account
333
+ sig { returns(T::Boolean) }
334
+ attr_accessor :auto_collection_enabled
335
+
336
+ sig do
337
+ params(auto_collection_enabled: T::Boolean).returns(
338
+ T.attached_class
339
+ )
340
+ end
341
+ def self.new(
342
+ # If auto collection is enabled for this account
343
+ auto_collection_enabled:
344
+ )
345
+ end
346
+
347
+ sig { override.returns({ auto_collection_enabled: T::Boolean }) }
348
+ def to_hash
349
+ end
350
+ end
300
351
  end
301
352
 
302
353
  # Status of the financial account
@@ -15,6 +15,23 @@ module Lithic
15
15
  )
16
16
  end
17
17
 
18
+ sig do
19
+ returns(
20
+ T.nilable(
21
+ Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration
22
+ )
23
+ )
24
+ end
25
+ attr_reader :auto_collection_configuration
26
+
27
+ sig do
28
+ params(
29
+ auto_collection_configuration:
30
+ Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration::OrHash
31
+ ).void
32
+ end
33
+ attr_writer :auto_collection_configuration
34
+
18
35
  sig { returns(T.nilable(Integer)) }
19
36
  attr_reader :credit_limit
20
37
 
@@ -43,6 +60,8 @@ module Lithic
43
60
 
44
61
  sig do
45
62
  params(
63
+ auto_collection_configuration:
64
+ Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration::OrHash,
46
65
  credit_limit: Integer,
47
66
  credit_product_token: String,
48
67
  external_bank_account_token: String,
@@ -51,6 +70,7 @@ module Lithic
51
70
  ).returns(T.attached_class)
52
71
  end
53
72
  def self.new(
73
+ auto_collection_configuration: nil,
54
74
  credit_limit: nil,
55
75
  # Globally unique identifier for the credit product
56
76
  credit_product_token: nil,
@@ -64,6 +84,8 @@ module Lithic
64
84
  sig do
65
85
  override.returns(
66
86
  {
87
+ auto_collection_configuration:
88
+ Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration,
67
89
  credit_limit: Integer,
68
90
  credit_product_token: String,
69
91
  external_bank_account_token: String,
@@ -74,6 +96,38 @@ module Lithic
74
96
  end
75
97
  def to_hash
76
98
  end
99
+
100
+ class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel
101
+ OrHash =
102
+ T.type_alias do
103
+ T.any(
104
+ Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration,
105
+ Lithic::Internal::AnyHash
106
+ )
107
+ end
108
+
109
+ # If auto collection is enabled for this account
110
+ sig { returns(T.nilable(T::Boolean)) }
111
+ attr_reader :auto_collection_enabled
112
+
113
+ sig { params(auto_collection_enabled: T::Boolean).void }
114
+ attr_writer :auto_collection_enabled
115
+
116
+ sig do
117
+ params(auto_collection_enabled: T::Boolean).returns(
118
+ T.attached_class
119
+ )
120
+ end
121
+ def self.new(
122
+ # If auto collection is enabled for this account
123
+ auto_collection_enabled: nil
124
+ )
125
+ end
126
+
127
+ sig { override.returns({ auto_collection_enabled: T::Boolean }) }
128
+ def to_hash
129
+ end
130
+ end
77
131
  end
78
132
  end
79
133
  end
@@ -19,6 +19,21 @@ module Lithic
19
19
  sig { returns(String) }
20
20
  attr_accessor :account_token
21
21
 
22
+ sig do
23
+ returns(
24
+ Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration
25
+ )
26
+ end
27
+ attr_reader :auto_collection_configuration
28
+
29
+ sig do
30
+ params(
31
+ auto_collection_configuration:
32
+ Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration::OrHash
33
+ ).void
34
+ end
35
+ attr_writer :auto_collection_configuration
36
+
22
37
  # Reason for the financial account being marked as Charged Off
23
38
  sig do
24
39
  returns(
@@ -57,6 +72,8 @@ module Lithic
57
72
  sig do
58
73
  params(
59
74
  account_token: String,
75
+ auto_collection_configuration:
76
+ Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration::OrHash,
60
77
  charged_off_reason:
61
78
  T.nilable(
62
79
  Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason::OrSymbol
@@ -73,6 +90,7 @@ module Lithic
73
90
  def self.new(
74
91
  # Globally unique identifier for the account
75
92
  account_token:,
93
+ auto_collection_configuration:,
76
94
  # Reason for the financial account being marked as Charged Off
77
95
  charged_off_reason:,
78
96
  credit_limit:,
@@ -91,6 +109,8 @@ module Lithic
91
109
  override.returns(
92
110
  {
93
111
  account_token: String,
112
+ auto_collection_configuration:
113
+ Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration,
94
114
  charged_off_reason:
95
115
  T.nilable(
96
116
  Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason::TaggedSymbol
@@ -108,6 +128,35 @@ module Lithic
108
128
  def to_hash
109
129
  end
110
130
 
131
+ class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel
132
+ OrHash =
133
+ T.type_alias do
134
+ T.any(
135
+ Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration,
136
+ Lithic::Internal::AnyHash
137
+ )
138
+ end
139
+
140
+ # If auto collection is enabled for this account
141
+ sig { returns(T::Boolean) }
142
+ attr_accessor :auto_collection_enabled
143
+
144
+ sig do
145
+ params(auto_collection_enabled: T::Boolean).returns(
146
+ T.attached_class
147
+ )
148
+ end
149
+ def self.new(
150
+ # If auto collection is enabled for this account
151
+ auto_collection_enabled:
152
+ )
153
+ end
154
+
155
+ sig { override.returns({ auto_collection_enabled: T::Boolean }) }
156
+ def to_hash
157
+ end
158
+ end
159
+
111
160
  # Reason for the financial account being marked as Charged Off
112
161
  module ChargedOffReason
113
162
  extend Lithic::Internal::Type::Enum
@@ -211,6 +211,31 @@ module Lithic
211
211
  :BALANCE_OR_FUNDING,
212
212
  Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category::TaggedSymbol
213
213
  )
214
+ FEE =
215
+ T.let(
216
+ :FEE,
217
+ Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category::TaggedSymbol
218
+ )
219
+ REWARD =
220
+ T.let(
221
+ :REWARD,
222
+ Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category::TaggedSymbol
223
+ )
224
+ ADJUSTMENT =
225
+ T.let(
226
+ :ADJUSTMENT,
227
+ Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category::TaggedSymbol
228
+ )
229
+ DERECOGNITION =
230
+ T.let(
231
+ :DERECOGNITION,
232
+ Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category::TaggedSymbol
233
+ )
234
+ DISPUTE =
235
+ T.let(
236
+ :DISPUTE,
237
+ Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category::TaggedSymbol
238
+ )
214
239
  CARD =
215
240
  T.let(
216
241
  :CARD,
@@ -310,6 +335,11 @@ module Lithic
310
335
  :ACH_ORIGINATION_RELEASED,
311
336
  Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
312
337
  )
338
+ ACH_ORIGINATION_REJECTED =
339
+ T.let(
340
+ :ACH_ORIGINATION_REJECTED,
341
+ Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
342
+ )
313
343
  ACH_ORIGINATION_REVIEWED =
314
344
  T.let(
315
345
  :ACH_ORIGINATION_REVIEWED,
@@ -340,6 +370,11 @@ module Lithic
340
370
  :ACH_RETURN_PROCESSED,
341
371
  Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
342
372
  )
373
+ ACH_RETURN_REJECTED =
374
+ T.let(
375
+ :ACH_RETURN_REJECTED,
376
+ Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
377
+ )
343
378
  ACH_RETURN_SETTLED =
344
379
  T.let(
345
380
  :ACH_RETURN_SETTLED,
@@ -344,6 +344,11 @@ module Lithic
344
344
  :ACH_ORIGINATION_RELEASED,
345
345
  Lithic::FinancialTransaction::Event::Type::TaggedSymbol
346
346
  )
347
+ ACH_ORIGINATION_REJECTED =
348
+ T.let(
349
+ :ACH_ORIGINATION_REJECTED,
350
+ Lithic::FinancialTransaction::Event::Type::TaggedSymbol
351
+ )
347
352
  ACH_ORIGINATION_REVIEWED =
348
353
  T.let(
349
354
  :ACH_ORIGINATION_REVIEWED,
@@ -374,6 +379,11 @@ module Lithic
374
379
  :ACH_RETURN_PROCESSED,
375
380
  Lithic::FinancialTransaction::Event::Type::TaggedSymbol
376
381
  )
382
+ ACH_RETURN_REJECTED =
383
+ T.let(
384
+ :ACH_RETURN_REJECTED,
385
+ Lithic::FinancialTransaction::Event::Type::TaggedSymbol
386
+ )
377
387
  ACH_RETURN_SETTLED =
378
388
  T.let(
379
389
  :ACH_RETURN_SETTLED,
@@ -12,17 +12,17 @@ module Lithic
12
12
  sig { returns(String) }
13
13
  attr_accessor :token
14
14
 
15
- # The most granular ID the network settles with (e.g., ICA for Mastercard, FTSRE
16
- # for Visa).
15
+ # Globally unique identifier denoting the account that the associated transaction
16
+ # occurred on.
17
17
  sig { returns(String) }
18
18
  attr_accessor :account_token
19
19
 
20
20
  # Globally unique identifier denoting the card program that the associated
21
- # Transaction occurred on.
21
+ # transaction occurred on.
22
22
  sig { returns(String) }
23
23
  attr_accessor :card_program_token
24
24
 
25
- # Globally unique identifier denoting the card that the associated Transaction
25
+ # Globally unique identifier denoting the card that the associated transaction
26
26
  # occurred on.
27
27
  sig { returns(String) }
28
28
  attr_accessor :card_token
@@ -138,13 +138,13 @@ module Lithic
138
138
  def self.new(
139
139
  # Globally unique identifier denoting the Settlement Detail.
140
140
  token:,
141
- # The most granular ID the network settles with (e.g., ICA for Mastercard, FTSRE
142
- # for Visa).
141
+ # Globally unique identifier denoting the account that the associated transaction
142
+ # occurred on.
143
143
  account_token:,
144
144
  # Globally unique identifier denoting the card program that the associated
145
- # Transaction occurred on.
145
+ # transaction occurred on.
146
146
  card_program_token:,
147
- # Globally unique identifier denoting the card that the associated Transaction
147
+ # Globally unique identifier denoting the card that the associated transaction
148
148
  # occurred on.
149
149
  card_token:,
150
150
  # Date and time when the transaction first occurred. UTC time zone.
@@ -22,6 +22,10 @@ module Lithic
22
22
  sig { returns(Time) }
23
23
  attr_accessor :created_at
24
24
 
25
+ # The device identifier associated with the tokenization.
26
+ sig { returns(T.nilable(String)) }
27
+ attr_accessor :device_id
28
+
25
29
  # The dynamic pan assigned to the token by the network.
26
30
  sig { returns(T.nilable(String)) }
27
31
  attr_accessor :dpan
@@ -74,6 +78,7 @@ module Lithic
74
78
  account_token: String,
75
79
  card_token: String,
76
80
  created_at: Time,
81
+ device_id: T.nilable(String),
77
82
  dpan: T.nilable(String),
78
83
  status: Lithic::Tokenization::Status::OrSymbol,
79
84
  token_requestor_name:
@@ -96,6 +101,8 @@ module Lithic
96
101
  card_token:,
97
102
  # Date and time when the tokenization first occurred. UTC time zone.
98
103
  created_at:,
104
+ # The device identifier associated with the tokenization.
105
+ device_id:,
99
106
  # The dynamic pan assigned to the token by the network.
100
107
  dpan:,
101
108
  # The status of the tokenization request
@@ -128,6 +135,7 @@ module Lithic
128
135
  account_token: String,
129
136
  card_token: String,
130
137
  created_at: Time,
138
+ device_id: T.nilable(String),
131
139
  dpan: T.nilable(String),
132
140
  status: Lithic::Tokenization::Status::TaggedSymbol,
133
141
  token_requestor_name:
@@ -73,6 +73,9 @@ module Lithic
73
73
  sig { returns(Time) }
74
74
  attr_accessor :created
75
75
 
76
+ sig { returns(T.nilable(String)) }
77
+ attr_accessor :financial_account_token
78
+
76
79
  sig { returns(Lithic::Transaction::Merchant) }
77
80
  attr_reader :merchant
78
81
 
@@ -156,6 +159,7 @@ module Lithic
156
159
  cardholder_authentication:
157
160
  T.nilable(Lithic::Transaction::CardholderAuthentication::OrHash),
158
161
  created: Time,
162
+ financial_account_token: T.nilable(String),
159
163
  merchant: Lithic::Transaction::Merchant::OrHash,
160
164
  merchant_amount: T.nilable(Integer),
161
165
  merchant_authorization_amount: T.nilable(Integer),
@@ -201,6 +205,7 @@ module Lithic
201
205
  cardholder_authentication:,
202
206
  # Date and time when the transaction first occurred. UTC time zone.
203
207
  created:,
208
+ financial_account_token:,
204
209
  merchant:,
205
210
  # Analogous to the 'amount', but in the merchant currency.
206
211
  merchant_amount:,
@@ -246,6 +251,7 @@ module Lithic
246
251
  cardholder_authentication:
247
252
  T.nilable(Lithic::Transaction::CardholderAuthentication),
248
253
  created: Time,
254
+ financial_account_token: T.nilable(String),
249
255
  merchant: Lithic::Transaction::Merchant,
250
256
  merchant_amount: T.nilable(Integer),
251
257
  merchant_authorization_amount: T.nilable(Integer),
@@ -1837,6 +1843,8 @@ module Lithic
1837
1843
  T.let(:FRAUD_ADVICE, Lithic::Transaction::Result::TaggedSymbol)
1838
1844
  IGNORED_TTL_EXPIRY =
1839
1845
  T.let(:IGNORED_TTL_EXPIRY, Lithic::Transaction::Result::TaggedSymbol)
1846
+ SUSPECTED_FRAUD =
1847
+ T.let(:SUSPECTED_FRAUD, Lithic::Transaction::Result::TaggedSymbol)
1840
1848
  INACTIVE_ACCOUNT =
1841
1849
  T.let(:INACTIVE_ACCOUNT, Lithic::Transaction::Result::TaggedSymbol)
1842
1850
  INCORRECT_PIN =
@@ -2636,6 +2644,11 @@ module Lithic
2636
2644
  :SINGLE_USE_CARD_REATTEMPTED,
2637
2645
  Lithic::Transaction::Event::DetailedResult::TaggedSymbol
2638
2646
  )
2647
+ SUSPECTED_FRAUD =
2648
+ T.let(
2649
+ :SUSPECTED_FRAUD,
2650
+ Lithic::Transaction::Event::DetailedResult::TaggedSymbol
2651
+ )
2639
2652
  TRANSACTION_INVALID =
2640
2653
  T.let(
2641
2654
  :TRANSACTION_INVALID,
@@ -3120,6 +3133,11 @@ module Lithic
3120
3133
  :IGNORED_TTL_EXPIRY,
3121
3134
  Lithic::Transaction::Event::Result::TaggedSymbol
3122
3135
  )
3136
+ SUSPECTED_FRAUD =
3137
+ T.let(
3138
+ :SUSPECTED_FRAUD,
3139
+ Lithic::Transaction::Event::Result::TaggedSymbol
3140
+ )
3123
3141
  INACTIVE_ACCOUNT =
3124
3142
  T.let(
3125
3143
  :INACTIVE_ACCOUNT,
@@ -3514,6 +3532,11 @@ module Lithic
3514
3532
  :SINGLE_USE_CARD_REATTEMPTED,
3515
3533
  Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
3516
3534
  )
3535
+ SUSPECTED_FRAUD =
3536
+ T.let(
3537
+ :SUSPECTED_FRAUD,
3538
+ Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
3539
+ )
3517
3540
  TRANSACTION_INVALID =
3518
3541
  T.let(
3519
3542
  :TRANSACTION_INVALID,
@@ -349,6 +349,11 @@ module Lithic
349
349
  :ACH_ORIGINATION_RELEASED,
350
350
  Lithic::Transfer::Event::Type::TaggedSymbol
351
351
  )
352
+ ACH_ORIGINATION_REJECTED =
353
+ T.let(
354
+ :ACH_ORIGINATION_REJECTED,
355
+ Lithic::Transfer::Event::Type::TaggedSymbol
356
+ )
352
357
  ACH_ORIGINATION_REVIEWED =
353
358
  T.let(
354
359
  :ACH_ORIGINATION_REVIEWED,
@@ -379,6 +384,11 @@ module Lithic
379
384
  :ACH_RETURN_PROCESSED,
380
385
  Lithic::Transfer::Event::Type::TaggedSymbol
381
386
  )
387
+ ACH_RETURN_REJECTED =
388
+ T.let(
389
+ :ACH_RETURN_REJECTED,
390
+ Lithic::Transfer::Event::Type::TaggedSymbol
391
+ )
382
392
  ACH_RETURN_SETTLED =
383
393
  T.let(
384
394
  :ACH_RETURN_SETTLED,
@@ -83,6 +83,8 @@ module Lithic
83
83
  sig do
84
84
  params(
85
85
  auth_rule_token: String,
86
+ account_tokens: T::Array[String],
87
+ business_account_tokens: T::Array[String],
86
88
  name: T.nilable(String),
87
89
  state: Lithic::AuthRules::V2UpdateParams::State::OrSymbol,
88
90
  card_tokens: T::Array[String],
@@ -94,6 +96,10 @@ module Lithic
94
96
  def update(
95
97
  # Globally unique identifier for the Auth Rule.
96
98
  auth_rule_token,
99
+ # Account tokens to which the Auth Rule applies.
100
+ account_tokens: nil,
101
+ # Business Account tokens to which the Auth Rule applies.
102
+ business_account_tokens: nil,
97
103
  # Auth Rule Name
98
104
  name: nil,
99
105
  # The desired state of the Auth Rule.
@@ -25,7 +25,6 @@ module Lithic
25
25
  # Amount to be transferred in the currency's smallest unit (e.g., cents for USD).
26
26
  # This should always be a positive value.
27
27
  amount:,
28
- # Category of the book transfer
29
28
  category:,
30
29
  # Globally unique identifier for the financial account or card that will send the
31
30
  # funds. Accepted type dependent on the program's use case.
@@ -22,6 +22,8 @@ module Lithic
22
22
  sig do
23
23
  params(
24
24
  financial_account_token: String,
25
+ auto_collection_configuration:
26
+ Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration::OrHash,
25
27
  credit_limit: Integer,
26
28
  credit_product_token: String,
27
29
  external_bank_account_token: String,
@@ -32,6 +34,7 @@ module Lithic
32
34
  def update(
33
35
  # Globally unique identifier for financial account.
34
36
  financial_account_token,
37
+ auto_collection_configuration: nil,
35
38
  credit_limit: nil,
36
39
  # Globally unique identifier for the credit product
37
40
  credit_product_token: nil,
@@ -103,6 +103,11 @@ module Lithic
103
103
  type category =
104
104
  :ACH
105
105
  | :BALANCE_OR_FUNDING
106
+ | :FEE
107
+ | :REWARD
108
+ | :ADJUSTMENT
109
+ | :DERECOGNITION
110
+ | :DISPUTE
106
111
  | :CARD
107
112
  | :EXTERNAL_ACH
108
113
  | :EXTERNAL_CHECK
@@ -120,6 +125,11 @@ module Lithic
120
125
 
121
126
  ACH: :ACH
122
127
  BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING
128
+ FEE: :FEE
129
+ REWARD: :REWARD
130
+ ADJUSTMENT: :ADJUSTMENT
131
+ DERECOGNITION: :DERECOGNITION
132
+ DISPUTE: :DISPUTE
123
133
  CARD: :CARD
124
134
  EXTERNAL_ACH: :EXTERNAL_ACH
125
135
  EXTERNAL_CHECK: :EXTERNAL_CHECK