lithic 0.2.0 → 0.3.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 (91) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +38 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +5 -10
  5. data/lib/lithic/internal/transport/pooled_net_requester.rb +12 -10
  6. data/lib/lithic/internal/util.rb +7 -2
  7. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +5 -0
  8. data/lib/lithic/models/book_transfer_retry_params.rb +26 -0
  9. data/lib/lithic/models/{asa_request_webhook_event.rb → card_authorization_approval_request_webhook_event.rb} +151 -129
  10. data/lib/lithic/models/external_payment_create_params.rb +15 -1
  11. data/lib/lithic/models/financial_account.rb +33 -25
  12. data/lib/lithic/models/financial_account_update_status_params.rb +9 -1
  13. data/lib/lithic/models/financial_accounts/loan_tape.rb +52 -3
  14. data/lib/lithic/models/management_operation_create_params.rb +6 -1
  15. data/lib/lithic/models/parsed_webhook_event.rb +3 -4
  16. data/lib/lithic/models/payment.rb +10 -1
  17. data/lib/lithic/models/three_ds_authentication_approval_request_webhook_event.rb +17 -0
  18. data/lib/lithic/models/transaction.rb +2 -0
  19. data/lib/lithic/models/transfer_limit_list_params.rb +22 -0
  20. data/lib/lithic/models/transfer_limits_response.rb +274 -0
  21. data/lib/lithic/models.rb +12 -6
  22. data/lib/lithic/resources/book_transfers.rb +27 -0
  23. data/lib/lithic/resources/cards.rb +1 -5
  24. data/lib/lithic/resources/external_payments.rb +13 -1
  25. data/lib/lithic/resources/financial_accounts.rb +3 -1
  26. data/lib/lithic/resources/management_operations.rb +4 -1
  27. data/lib/lithic/resources/transfer_limits.rb +37 -0
  28. data/lib/lithic/resources/webhooks.rb +3 -2
  29. data/lib/lithic/version.rb +1 -1
  30. data/lib/lithic.rb +6 -7
  31. data/rbi/lithic/client.rbi +3 -3
  32. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +11 -0
  33. data/rbi/lithic/models/book_transfer_retry_params.rbi +42 -0
  34. data/rbi/lithic/models/{asa_request_webhook_event.rbi → card_authorization_approval_request_webhook_event.rbi} +394 -256
  35. data/rbi/lithic/models/external_payment_create_params.rbi +4 -0
  36. data/rbi/lithic/models/financial_account.rbi +62 -54
  37. data/rbi/lithic/models/financial_account_update_status_params.rbi +11 -0
  38. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +93 -4
  39. data/rbi/lithic/models/management_operation_create_params.rbi +4 -0
  40. data/rbi/lithic/models/parsed_webhook_event.rbi +2 -2
  41. data/rbi/lithic/models/payment.rbi +13 -3
  42. data/rbi/lithic/models/three_ds_authentication_approval_request_webhook_event.rbi +27 -0
  43. data/rbi/lithic/models/transaction.rbi +10 -0
  44. data/rbi/lithic/models/transfer_limit_list_params.rbi +43 -0
  45. data/rbi/lithic/models/transfer_limits_response.rbi +604 -0
  46. data/rbi/lithic/models.rbi +12 -6
  47. data/rbi/lithic/resources/book_transfers.rbi +18 -0
  48. data/rbi/lithic/resources/cards.rbi +1 -4
  49. data/rbi/lithic/resources/external_payments.rbi +2 -0
  50. data/rbi/lithic/resources/financial_accounts.rbi +3 -0
  51. data/rbi/lithic/resources/management_operations.rbi +2 -0
  52. data/rbi/lithic/resources/transfer_limits.rbi +28 -0
  53. data/rbi/lithic/resources/webhooks.rbi +2 -124
  54. data/sig/lithic/client.rbs +2 -2
  55. data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +2 -0
  56. data/sig/lithic/models/book_transfer_retry_params.rbs +23 -0
  57. data/sig/lithic/models/{asa_request_webhook_event.rbs → card_authorization_approval_request_webhook_event.rbs} +161 -156
  58. data/sig/lithic/models/financial_account.rbs +32 -27
  59. data/sig/lithic/models/financial_account_update_status_params.rbs +8 -1
  60. data/sig/lithic/models/financial_accounts/loan_tape.rbs +46 -4
  61. data/sig/lithic/models/parsed_webhook_event.rbs +2 -2
  62. data/sig/lithic/models/payment.rbs +10 -3
  63. data/sig/lithic/models/three_ds_authentication_approval_request_webhook_event.rbs +22 -0
  64. data/sig/lithic/models/transaction.rbs +4 -0
  65. data/sig/lithic/models/transfer_limit_list_params.rbs +22 -0
  66. data/sig/lithic/models/transfer_limits_response.rbs +232 -0
  67. data/sig/lithic/models.rbs +10 -6
  68. data/sig/lithic/resources/book_transfers.rbs +6 -0
  69. data/sig/lithic/resources/cards.rbs +0 -2
  70. data/sig/lithic/resources/financial_accounts.rbs +1 -0
  71. data/sig/lithic/resources/transfer_limits.rbs +12 -0
  72. data/sig/lithic/resources/webhooks.rbs +2 -116
  73. metadata +20 -23
  74. data/lib/lithic/models/aggregate_balance.rb +0 -113
  75. data/lib/lithic/models/aggregate_balance_list_params.rb +0 -35
  76. data/lib/lithic/models/cards/aggregate_balance_list_params.rb +0 -32
  77. data/lib/lithic/models/cards/aggregate_balance_list_response.rb +0 -92
  78. data/lib/lithic/resources/aggregate_balances.rb +0 -38
  79. data/lib/lithic/resources/cards/aggregate_balances.rb +0 -41
  80. data/rbi/lithic/models/aggregate_balance.rbi +0 -164
  81. data/rbi/lithic/models/aggregate_balance_list_params.rbi +0 -104
  82. data/rbi/lithic/models/cards/aggregate_balance_list_params.rbi +0 -62
  83. data/rbi/lithic/models/cards/aggregate_balance_list_response.rbi +0 -115
  84. data/rbi/lithic/resources/aggregate_balances.rbi +0 -28
  85. data/rbi/lithic/resources/cards/aggregate_balances.rbi +0 -35
  86. data/sig/lithic/models/aggregate_balance.rbs +0 -78
  87. data/sig/lithic/models/aggregate_balance_list_params.rbs +0 -43
  88. data/sig/lithic/models/cards/aggregate_balance_list_params.rbs +0 -34
  89. data/sig/lithic/models/cards/aggregate_balance_list_response.rbs +0 -62
  90. data/sig/lithic/resources/aggregate_balances.rbs +0 -12
  91. data/sig/lithic/resources/cards/aggregate_balances.rbs +0 -15
@@ -28,6 +28,8 @@ module Lithic
28
28
  end
29
29
  attr_accessor :payment_type
30
30
 
31
+ # Customer-provided token that will serve as an idempotency token. This token will
32
+ # become the transaction token.
31
33
  sig { returns(T.nilable(String)) }
32
34
  attr_reader :token
33
35
 
@@ -82,6 +84,8 @@ module Lithic
82
84
  effective_date:,
83
85
  financial_account_token:,
84
86
  payment_type:,
87
+ # Customer-provided token that will serve as an idempotency token. This token will
88
+ # become the transaction token.
85
89
  token: nil,
86
90
  memo: nil,
87
91
  progress_to: nil,
@@ -40,24 +40,28 @@ module Lithic
40
40
  sig { returns(Lithic::FinancialAccount::Status::TaggedSymbol) }
41
41
  attr_accessor :status
42
42
 
43
+ # Substatus for the financial account
44
+ sig do
45
+ returns(T.nilable(Lithic::FinancialAccount::Substatus::TaggedSymbol))
46
+ end
47
+ attr_accessor :substatus
48
+
43
49
  sig { returns(Lithic::FinancialAccount::Type::TaggedSymbol) }
44
50
  attr_accessor :type
45
51
 
46
52
  sig { returns(Time) }
47
53
  attr_accessor :updated
48
54
 
55
+ # User-defined status for the financial account
56
+ sig { returns(T.nilable(String)) }
57
+ attr_accessor :user_defined_status
58
+
49
59
  sig { returns(T.nilable(String)) }
50
60
  attr_accessor :account_number
51
61
 
52
62
  sig { returns(T.nilable(String)) }
53
63
  attr_accessor :routing_number
54
64
 
55
- # Substatus for the financial account
56
- sig do
57
- returns(T.nilable(Lithic::FinancialAccount::Substatus::TaggedSymbol))
58
- end
59
- attr_accessor :substatus
60
-
61
65
  sig do
62
66
  params(
63
67
  token: String,
@@ -68,11 +72,12 @@ module Lithic
68
72
  is_for_benefit_of: T::Boolean,
69
73
  nickname: T.nilable(String),
70
74
  status: Lithic::FinancialAccount::Status::OrSymbol,
75
+ substatus: T.nilable(Lithic::FinancialAccount::Substatus::OrSymbol),
71
76
  type: Lithic::FinancialAccount::Type::OrSymbol,
72
77
  updated: Time,
78
+ user_defined_status: T.nilable(String),
73
79
  account_number: T.nilable(String),
74
- routing_number: T.nilable(String),
75
- substatus: T.nilable(Lithic::FinancialAccount::Substatus::OrSymbol)
80
+ routing_number: T.nilable(String)
76
81
  ).returns(T.attached_class)
77
82
  end
78
83
  def self.new(
@@ -86,12 +91,14 @@ module Lithic
86
91
  nickname:,
87
92
  # Status of the financial account
88
93
  status:,
94
+ # Substatus for the financial account
95
+ substatus:,
89
96
  type:,
90
97
  updated:,
98
+ # User-defined status for the financial account
99
+ user_defined_status:,
91
100
  account_number: nil,
92
- routing_number: nil,
93
- # Substatus for the financial account
94
- substatus: nil
101
+ routing_number: nil
95
102
  )
96
103
  end
97
104
 
@@ -106,12 +113,13 @@ module Lithic
106
113
  is_for_benefit_of: T::Boolean,
107
114
  nickname: T.nilable(String),
108
115
  status: Lithic::FinancialAccount::Status::TaggedSymbol,
116
+ substatus:
117
+ T.nilable(Lithic::FinancialAccount::Substatus::TaggedSymbol),
109
118
  type: Lithic::FinancialAccount::Type::TaggedSymbol,
110
119
  updated: Time,
120
+ user_defined_status: T.nilable(String),
111
121
  account_number: T.nilable(String),
112
- routing_number: T.nilable(String),
113
- substatus:
114
- T.nilable(Lithic::FinancialAccount::Substatus::TaggedSymbol)
122
+ routing_number: T.nilable(String)
115
123
  }
116
124
  )
117
125
  end
@@ -254,6 +262,46 @@ module Lithic
254
262
  end
255
263
  end
256
264
 
265
+ # Substatus for the financial account
266
+ module Substatus
267
+ extend Lithic::Internal::Type::Enum
268
+
269
+ TaggedSymbol =
270
+ T.type_alias { T.all(Symbol, Lithic::FinancialAccount::Substatus) }
271
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
272
+
273
+ CHARGED_OFF_DELINQUENT =
274
+ T.let(
275
+ :CHARGED_OFF_DELINQUENT,
276
+ Lithic::FinancialAccount::Substatus::TaggedSymbol
277
+ )
278
+ CHARGED_OFF_FRAUD =
279
+ T.let(
280
+ :CHARGED_OFF_FRAUD,
281
+ Lithic::FinancialAccount::Substatus::TaggedSymbol
282
+ )
283
+ END_USER_REQUEST =
284
+ T.let(
285
+ :END_USER_REQUEST,
286
+ Lithic::FinancialAccount::Substatus::TaggedSymbol
287
+ )
288
+ BANK_REQUEST =
289
+ T.let(
290
+ :BANK_REQUEST,
291
+ Lithic::FinancialAccount::Substatus::TaggedSymbol
292
+ )
293
+ DELINQUENT =
294
+ T.let(:DELINQUENT, Lithic::FinancialAccount::Substatus::TaggedSymbol)
295
+
296
+ sig do
297
+ override.returns(
298
+ T::Array[Lithic::FinancialAccount::Substatus::TaggedSymbol]
299
+ )
300
+ end
301
+ def self.values
302
+ end
303
+ end
304
+
257
305
  module Type
258
306
  extend Lithic::Internal::Type::Enum
259
307
 
@@ -300,46 +348,6 @@ module Lithic
300
348
  def self.values
301
349
  end
302
350
  end
303
-
304
- # Substatus for the financial account
305
- module Substatus
306
- extend Lithic::Internal::Type::Enum
307
-
308
- TaggedSymbol =
309
- T.type_alias { T.all(Symbol, Lithic::FinancialAccount::Substatus) }
310
- OrSymbol = T.type_alias { T.any(Symbol, String) }
311
-
312
- CHARGED_OFF_DELINQUENT =
313
- T.let(
314
- :CHARGED_OFF_DELINQUENT,
315
- Lithic::FinancialAccount::Substatus::TaggedSymbol
316
- )
317
- CHARGED_OFF_FRAUD =
318
- T.let(
319
- :CHARGED_OFF_FRAUD,
320
- Lithic::FinancialAccount::Substatus::TaggedSymbol
321
- )
322
- END_USER_REQUEST =
323
- T.let(
324
- :END_USER_REQUEST,
325
- Lithic::FinancialAccount::Substatus::TaggedSymbol
326
- )
327
- BANK_REQUEST =
328
- T.let(
329
- :BANK_REQUEST,
330
- Lithic::FinancialAccount::Substatus::TaggedSymbol
331
- )
332
- DELINQUENT =
333
- T.let(:DELINQUENT, Lithic::FinancialAccount::Substatus::TaggedSymbol)
334
-
335
- sig do
336
- override.returns(
337
- T::Array[Lithic::FinancialAccount::Substatus::TaggedSymbol]
338
- )
339
- end
340
- def self.values
341
- end
342
- end
343
351
  end
344
352
  end
345
353
  end
@@ -30,6 +30,13 @@ module Lithic
30
30
  end
31
31
  attr_accessor :substatus
32
32
 
33
+ # User-defined status for the financial account
34
+ sig { returns(T.nilable(String)) }
35
+ attr_reader :user_defined_status
36
+
37
+ sig { params(user_defined_status: String).void }
38
+ attr_writer :user_defined_status
39
+
33
40
  sig do
34
41
  params(
35
42
  status: Lithic::FinancialAccountUpdateStatusParams::Status::OrSymbol,
@@ -37,6 +44,7 @@ module Lithic
37
44
  T.nilable(
38
45
  Lithic::FinancialAccountUpdateStatusParams::Substatus::OrSymbol
39
46
  ),
47
+ user_defined_status: String,
40
48
  request_options: Lithic::RequestOptions::OrHash
41
49
  ).returns(T.attached_class)
42
50
  end
@@ -45,6 +53,8 @@ module Lithic
45
53
  status:,
46
54
  # Substatus for the financial account
47
55
  substatus:,
56
+ # User-defined status for the financial account
57
+ user_defined_status: nil,
48
58
  request_options: {}
49
59
  )
50
60
  end
@@ -58,6 +68,7 @@ module Lithic
58
68
  T.nilable(
59
69
  Lithic::FinancialAccountUpdateStatusParams::Substatus::OrSymbol
60
70
  ),
71
+ user_defined_status: String,
61
72
  request_options: Lithic::RequestOptions
62
73
  }
63
74
  )
@@ -109,13 +109,13 @@ module Lithic
109
109
  end
110
110
  attr_writer :minimum_payment_balance
111
111
 
112
- sig { returns(Lithic::FinancialAccounts::CategoryBalances) }
112
+ sig { returns(Lithic::FinancialAccounts::LoanTape::PaymentAllocation) }
113
113
  attr_reader :payment_allocation
114
114
 
115
115
  sig do
116
116
  params(
117
117
  payment_allocation:
118
- Lithic::FinancialAccounts::CategoryBalances::OrHash
118
+ Lithic::FinancialAccounts::LoanTape::PaymentAllocation::OrHash
119
119
  ).void
120
120
  end
121
121
  attr_writer :payment_allocation
@@ -183,7 +183,7 @@ module Lithic
183
183
  minimum_payment_balance:
184
184
  Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance::OrHash,
185
185
  payment_allocation:
186
- Lithic::FinancialAccounts::CategoryBalances::OrHash,
186
+ Lithic::FinancialAccounts::LoanTape::PaymentAllocation::OrHash,
187
187
  period_totals: Lithic::StatementTotals::OrHash,
188
188
  previous_statement_balance:
189
189
  Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance::OrHash,
@@ -257,7 +257,8 @@ module Lithic
257
257
  T.nilable(Lithic::FinancialAccounts::LoanTape::InterestDetails),
258
258
  minimum_payment_balance:
259
259
  Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance,
260
- payment_allocation: Lithic::FinancialAccounts::CategoryBalances,
260
+ payment_allocation:
261
+ Lithic::FinancialAccounts::LoanTape::PaymentAllocation,
261
262
  period_totals: Lithic::StatementTotals,
262
263
  previous_statement_balance:
263
264
  Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance,
@@ -824,6 +825,94 @@ module Lithic
824
825
  end
825
826
  end
826
827
 
828
+ class PaymentAllocation < Lithic::Internal::Type::BaseModel
829
+ OrHash =
830
+ T.type_alias do
831
+ T.any(
832
+ Lithic::FinancialAccounts::LoanTape::PaymentAllocation,
833
+ Lithic::Internal::AnyHash
834
+ )
835
+ end
836
+
837
+ sig { returns(T.nilable(Lithic::CategoryDetails)) }
838
+ attr_reader :fee_details
839
+
840
+ sig do
841
+ params(fee_details: T.nilable(Lithic::CategoryDetails::OrHash)).void
842
+ end
843
+ attr_writer :fee_details
844
+
845
+ # Amount allocated to fees in cents
846
+ sig { returns(Integer) }
847
+ attr_accessor :fees
848
+
849
+ # Amount allocated to interest in cents
850
+ sig { returns(Integer) }
851
+ attr_accessor :interest
852
+
853
+ sig { returns(T.nilable(Lithic::CategoryDetails)) }
854
+ attr_reader :interest_details
855
+
856
+ sig do
857
+ params(
858
+ interest_details: T.nilable(Lithic::CategoryDetails::OrHash)
859
+ ).void
860
+ end
861
+ attr_writer :interest_details
862
+
863
+ # Amount allocated to principal in cents
864
+ sig { returns(Integer) }
865
+ attr_accessor :principal
866
+
867
+ sig { returns(T.nilable(Lithic::CategoryDetails)) }
868
+ attr_reader :principal_details
869
+
870
+ sig do
871
+ params(
872
+ principal_details: T.nilable(Lithic::CategoryDetails::OrHash)
873
+ ).void
874
+ end
875
+ attr_writer :principal_details
876
+
877
+ sig do
878
+ params(
879
+ fee_details: T.nilable(Lithic::CategoryDetails::OrHash),
880
+ fees: Integer,
881
+ interest: Integer,
882
+ interest_details: T.nilable(Lithic::CategoryDetails::OrHash),
883
+ principal: Integer,
884
+ principal_details: T.nilable(Lithic::CategoryDetails::OrHash)
885
+ ).returns(T.attached_class)
886
+ end
887
+ def self.new(
888
+ fee_details:,
889
+ # Amount allocated to fees in cents
890
+ fees:,
891
+ # Amount allocated to interest in cents
892
+ interest:,
893
+ interest_details:,
894
+ # Amount allocated to principal in cents
895
+ principal:,
896
+ principal_details:
897
+ )
898
+ end
899
+
900
+ sig do
901
+ override.returns(
902
+ {
903
+ fee_details: T.nilable(Lithic::CategoryDetails),
904
+ fees: Integer,
905
+ interest: Integer,
906
+ interest_details: T.nilable(Lithic::CategoryDetails),
907
+ principal: Integer,
908
+ principal_details: T.nilable(Lithic::CategoryDetails)
909
+ }
910
+ )
911
+ end
912
+ def to_hash
913
+ end
914
+ end
915
+
827
916
  class PreviousStatementBalance < Lithic::Internal::Type::BaseModel
828
917
  OrHash =
829
918
  T.type_alias do
@@ -38,6 +38,8 @@ module Lithic
38
38
  sig { returns(String) }
39
39
  attr_accessor :financial_account_token
40
40
 
41
+ # Customer-provided token that will serve as an idempotency token. This token will
42
+ # become the transaction token.
41
43
  sig { returns(T.nilable(String)) }
42
44
  attr_reader :token
43
45
 
@@ -106,6 +108,8 @@ module Lithic
106
108
  effective_date:,
107
109
  event_type:,
108
110
  financial_account_token:,
111
+ # Customer-provided token that will serve as an idempotency token. This token will
112
+ # become the transaction token.
109
113
  token: nil,
110
114
  memo: nil,
111
115
  # What to do if the financial account is closed when posting an operation
@@ -15,7 +15,7 @@ module Lithic
15
15
  Lithic::ParsedWebhookEvent::LegacyPayload,
16
16
  Lithic::AccountHolderVerificationWebhookEvent,
17
17
  Lithic::AccountHolderDocumentUpdatedWebhookEvent,
18
- Lithic::AsaRequestWebhookEvent,
18
+ Lithic::CardAuthorizationApprovalRequestWebhookEvent,
19
19
  Lithic::TokenizationDecisioningRequestWebhookEvent,
20
20
  Lithic::AuthRulesBacktestReportCreatedWebhookEvent,
21
21
  Lithic::BalanceUpdatedWebhookEvent,
@@ -63,7 +63,7 @@ module Lithic
63
63
  Lithic::TokenizationTwoFactorAuthenticationCodeWebhookEvent,
64
64
  Lithic::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent,
65
65
  Lithic::TokenizationUpdatedWebhookEvent,
66
- Lithic::ThreeDSAuthentication,
66
+ Lithic::ThreeDSAuthenticationApprovalRequestWebhookEvent,
67
67
  Lithic::DisputeTransactionCreatedWebhookEvent,
68
68
  Lithic::DisputeTransactionUpdatedWebhookEvent
69
69
  )
@@ -357,6 +357,10 @@ module Lithic
357
357
  end
358
358
  attr_writer :detailed_results
359
359
 
360
+ # Payment event external ID, for example, ACH trace number.
361
+ sig { returns(T.nilable(String)) }
362
+ attr_accessor :external_id
363
+
360
364
  # Payment Event
361
365
  sig do
362
366
  params(
@@ -366,7 +370,8 @@ module Lithic
366
370
  result: Lithic::Payment::Event::Result::OrSymbol,
367
371
  type: Lithic::Payment::Event::Type::OrSymbol,
368
372
  detailed_results:
369
- T::Array[Lithic::Payment::Event::DetailedResult::OrSymbol]
373
+ T::Array[Lithic::Payment::Event::DetailedResult::OrSymbol],
374
+ external_id: T.nilable(String)
370
375
  ).returns(T.attached_class)
371
376
  end
372
377
  def self.new(
@@ -406,7 +411,9 @@ module Lithic
406
411
  # Financial Institution.
407
412
  type:,
408
413
  # More detailed reasons for the event
409
- detailed_results: nil
414
+ detailed_results: nil,
415
+ # Payment event external ID, for example, ACH trace number.
416
+ external_id: nil
410
417
  )
411
418
  end
412
419
 
@@ -419,7 +426,8 @@ module Lithic
419
426
  result: Lithic::Payment::Event::Result::TaggedSymbol,
420
427
  type: Lithic::Payment::Event::Type::TaggedSymbol,
421
428
  detailed_results:
422
- T::Array[Lithic::Payment::Event::DetailedResult::TaggedSymbol]
429
+ T::Array[Lithic::Payment::Event::DetailedResult::TaggedSymbol],
430
+ external_id: T.nilable(String)
423
431
  }
424
432
  )
425
433
  end
@@ -1053,6 +1061,8 @@ module Lithic
1053
1061
  T.let(:WIRE_OUTBOUND_PAYMENT, Lithic::Payment::Type::TaggedSymbol)
1054
1062
  WIRE_OUTBOUND_ADMIN =
1055
1063
  T.let(:WIRE_OUTBOUND_ADMIN, Lithic::Payment::Type::TaggedSymbol)
1064
+ WIRE_DRAWDOWN_REQUEST =
1065
+ T.let(:WIRE_DRAWDOWN_REQUEST, Lithic::Payment::Type::TaggedSymbol)
1056
1066
 
1057
1067
  sig { override.returns(T::Array[Lithic::Payment::Type::TaggedSymbol]) }
1058
1068
  def self.values
@@ -0,0 +1,27 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ class ThreeDSAuthenticationApprovalRequestWebhookEvent < Lithic::Models::ThreeDSAuthentication
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ Lithic::ThreeDSAuthenticationApprovalRequestWebhookEvent,
10
+ Lithic::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ sig { returns(Symbol) }
15
+ attr_accessor :event_type
16
+
17
+ # Represents a 3DS authentication
18
+ sig { params(event_type: Symbol).returns(T.attached_class) }
19
+ def self.new(event_type: :"three_ds_authentication.approval_request")
20
+ end
21
+
22
+ sig { override.returns({ event_type: Symbol }) }
23
+ def to_hash
24
+ end
25
+ end
26
+ end
27
+ end
@@ -1762,6 +1762,11 @@ module Lithic
1762
1762
  :AUTH_RULE_BLOCKED_MCC,
1763
1763
  Lithic::Transaction::Event::DetailedResult::TaggedSymbol
1764
1764
  )
1765
+ AUTH_RULE =
1766
+ T.let(
1767
+ :AUTH_RULE,
1768
+ Lithic::Transaction::Event::DetailedResult::TaggedSymbol
1769
+ )
1765
1770
  CARD_CLOSED =
1766
1771
  T.let(
1767
1772
  :CARD_CLOSED,
@@ -2660,6 +2665,11 @@ module Lithic
2660
2665
  :AUTH_RULE_BLOCKED_MCC,
2661
2666
  Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
2662
2667
  )
2668
+ AUTH_RULE =
2669
+ T.let(
2670
+ :AUTH_RULE,
2671
+ Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
2672
+ )
2663
2673
  CARD_CLOSED =
2664
2674
  T.let(
2665
2675
  :CARD_CLOSED,
@@ -0,0 +1,43 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ class TransferLimitListParams < Lithic::Internal::Type::BaseModel
6
+ extend Lithic::Internal::Type::RequestParameters::Converter
7
+ include Lithic::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(Lithic::TransferLimitListParams, Lithic::Internal::AnyHash)
12
+ end
13
+
14
+ # Date for which to retrieve transfer limits (ISO 8601 format)
15
+ sig { returns(T.nilable(Date)) }
16
+ attr_reader :date
17
+
18
+ sig { params(date: Date).void }
19
+ attr_writer :date
20
+
21
+ sig do
22
+ params(
23
+ date: Date,
24
+ request_options: Lithic::RequestOptions::OrHash
25
+ ).returns(T.attached_class)
26
+ end
27
+ def self.new(
28
+ # Date for which to retrieve transfer limits (ISO 8601 format)
29
+ date: nil,
30
+ request_options: {}
31
+ )
32
+ end
33
+
34
+ sig do
35
+ override.returns(
36
+ { date: Date, request_options: Lithic::RequestOptions }
37
+ )
38
+ end
39
+ def to_hash
40
+ end
41
+ end
42
+ end
43
+ end