lithic 0.23.0 → 0.24.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 (158) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +29 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/models/account_activity_list_params.rb +3 -3
  5. data/lib/lithic/models/account_holder_list_params.rb +3 -3
  6. data/lib/lithic/models/account_list_params.rb +3 -3
  7. data/lib/lithic/models/account_update_params.rb +10 -7
  8. data/lib/lithic/models/auth_rules/auth_rule.rb +6 -10
  9. data/lib/lithic/models/auth_rules/auth_rule_version.rb +3 -5
  10. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +91 -8
  11. data/lib/lithic/models/auth_rules/v2/backtest_results.rb +9 -1
  12. data/lib/lithic/models/auth_rules/v2_create_params.rb +12 -20
  13. data/lib/lithic/models/auth_rules/v2_draft_params.rb +3 -5
  14. data/lib/lithic/models/auth_rules/v2_list_results_params.rb +3 -3
  15. data/lib/lithic/models/book_transfer_list_params.rb +3 -3
  16. data/lib/lithic/models/card_bulk_order_list_params.rb +3 -3
  17. data/lib/lithic/models/card_list_params.rb +3 -3
  18. data/lib/lithic/models/cards/financial_transaction_list_params.rb +3 -3
  19. data/lib/lithic/models/dispute_list_evidences_params.rb +3 -3
  20. data/lib/lithic/models/dispute_list_params.rb +3 -3
  21. data/lib/lithic/models/event_list_attempts_params.rb +3 -3
  22. data/lib/lithic/models/event_list_params.rb +3 -3
  23. data/lib/lithic/models/events/subscription_list_attempts_params.rb +3 -3
  24. data/lib/lithic/models/events/subscription_recover_params.rb +3 -3
  25. data/lib/lithic/models/events/subscription_replay_missing_params.rb +3 -3
  26. data/lib/lithic/models/external_payment_list_params.rb +3 -3
  27. data/lib/lithic/models/financial_accounts/financial_transaction_list_params.rb +3 -3
  28. data/lib/lithic/models/financial_accounts/installment_plan.rb +33 -3
  29. data/lib/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rb +95 -15
  30. data/lib/lithic/models/financial_accounts/installment_plans/statement_list_params.rb +3 -3
  31. data/lib/lithic/models/financial_accounts/loan_tape_list_params.rb +3 -3
  32. data/lib/lithic/models/financial_accounts/statement_list_params.rb +3 -3
  33. data/lib/lithic/models/funding_event_list_params.rb +3 -3
  34. data/lib/lithic/models/hold_list_params.rb +3 -3
  35. data/lib/lithic/models/kyb.rb +2 -0
  36. data/lib/lithic/models/management_operation_create_params.rb +7 -19
  37. data/lib/lithic/models/management_operation_list_params.rb +3 -3
  38. data/lib/lithic/models/network_program_list_params.rb +3 -3
  39. data/lib/lithic/models/payment_list_params.rb +3 -3
  40. data/lib/lithic/models/reports/settlement/network_total_list_params.rb +3 -3
  41. data/lib/lithic/models/three_ds_authentication.rb +12 -1
  42. data/lib/lithic/models/three_ds_authentication_challenge_webhook_event.rb +13 -1
  43. data/lib/lithic/models/tokenization.rb +44 -1
  44. data/lib/lithic/models/tokenization_list_params.rb +3 -2
  45. data/lib/lithic/models/transaction_list_params.rb +3 -3
  46. data/lib/lithic/models/transaction_monitoring/case_list_params.rb +3 -3
  47. data/lib/lithic/resources/account_activity.rb +1 -1
  48. data/lib/lithic/resources/account_holders.rb +1 -1
  49. data/lib/lithic/resources/accounts.rb +1 -1
  50. data/lib/lithic/resources/auth_rules/v2.rb +2 -2
  51. data/lib/lithic/resources/book_transfers.rb +1 -1
  52. data/lib/lithic/resources/card_bulk_orders.rb +1 -1
  53. data/lib/lithic/resources/cards/financial_transactions.rb +1 -1
  54. data/lib/lithic/resources/cards.rb +1 -1
  55. data/lib/lithic/resources/disputes.rb +2 -2
  56. data/lib/lithic/resources/events/subscriptions.rb +7 -7
  57. data/lib/lithic/resources/events.rb +2 -2
  58. data/lib/lithic/resources/external_payments.rb +1 -1
  59. data/lib/lithic/resources/financial_accounts/financial_transactions.rb +1 -1
  60. data/lib/lithic/resources/financial_accounts/installment_plans/statements.rb +1 -1
  61. data/lib/lithic/resources/financial_accounts/loan_tapes.rb +1 -1
  62. data/lib/lithic/resources/financial_accounts/statements.rb +1 -1
  63. data/lib/lithic/resources/funding_events.rb +1 -1
  64. data/lib/lithic/resources/holds.rb +1 -1
  65. data/lib/lithic/resources/management_operations.rb +3 -3
  66. data/lib/lithic/resources/network_programs.rb +1 -1
  67. data/lib/lithic/resources/payments.rb +1 -1
  68. data/lib/lithic/resources/reports/settlement/network_totals.rb +1 -1
  69. data/lib/lithic/resources/tokenizations.rb +1 -1
  70. data/lib/lithic/resources/transaction_monitoring/cases.rb +1 -1
  71. data/lib/lithic/resources/transactions.rb +1 -1
  72. data/lib/lithic/version.rb +1 -1
  73. data/lib/lithic.rb +0 -1
  74. data/rbi/lithic/models/account_activity_list_params.rbi +4 -4
  75. data/rbi/lithic/models/account_holder_list_params.rbi +4 -4
  76. data/rbi/lithic/models/account_list_params.rbi +4 -4
  77. data/rbi/lithic/models/account_update_params.rbi +20 -14
  78. data/rbi/lithic/models/auth_rules/auth_rule.rbi +4 -8
  79. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +2 -4
  80. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +200 -20
  81. data/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +8 -0
  82. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +16 -32
  83. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -8
  84. data/rbi/lithic/models/auth_rules/v2_list_results_params.rbi +4 -4
  85. data/rbi/lithic/models/book_transfer_list_params.rbi +4 -4
  86. data/rbi/lithic/models/card_bulk_order_list_params.rbi +4 -4
  87. data/rbi/lithic/models/card_list_params.rbi +4 -4
  88. data/rbi/lithic/models/cards/financial_transaction_list_params.rbi +4 -4
  89. data/rbi/lithic/models/dispute_list_evidences_params.rbi +4 -4
  90. data/rbi/lithic/models/dispute_list_params.rbi +4 -4
  91. data/rbi/lithic/models/event_list_attempts_params.rbi +4 -4
  92. data/rbi/lithic/models/event_list_params.rbi +4 -4
  93. data/rbi/lithic/models/events/subscription_list_attempts_params.rbi +4 -4
  94. data/rbi/lithic/models/events/subscription_recover_params.rbi +4 -4
  95. data/rbi/lithic/models/events/subscription_replay_missing_params.rbi +4 -4
  96. data/rbi/lithic/models/external_payment_list_params.rbi +4 -4
  97. data/rbi/lithic/models/financial_accounts/financial_transaction_list_params.rbi +4 -4
  98. data/rbi/lithic/models/financial_accounts/installment_plan.rbi +40 -6
  99. data/rbi/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbi +160 -24
  100. data/rbi/lithic/models/financial_accounts/installment_plans/statement_list_params.rbi +4 -4
  101. data/rbi/lithic/models/financial_accounts/loan_tape_list_params.rbi +4 -4
  102. data/rbi/lithic/models/financial_accounts/statement_list_params.rbi +4 -4
  103. data/rbi/lithic/models/funding_event_list_params.rbi +4 -4
  104. data/rbi/lithic/models/hold_list_params.rbi +4 -4
  105. data/rbi/lithic/models/kyb.rbi +4 -0
  106. data/rbi/lithic/models/management_operation_create_params.rbi +8 -82
  107. data/rbi/lithic/models/management_operation_list_params.rbi +4 -4
  108. data/rbi/lithic/models/network_program_list_params.rbi +4 -4
  109. data/rbi/lithic/models/payment_list_params.rbi +4 -4
  110. data/rbi/lithic/models/reports/settlement/network_total_list_params.rbi +4 -4
  111. data/rbi/lithic/models/three_ds_authentication.rbi +14 -0
  112. data/rbi/lithic/models/three_ds_authentication_challenge_webhook_event.rbi +10 -0
  113. data/rbi/lithic/models/tokenization.rbi +91 -3
  114. data/rbi/lithic/models/tokenization_list_params.rbi +7 -2
  115. data/rbi/lithic/models/transaction_list_params.rbi +4 -4
  116. data/rbi/lithic/models/transaction_monitoring/case_list_params.rbi +4 -4
  117. data/rbi/lithic/resources/account_activity.rbi +2 -2
  118. data/rbi/lithic/resources/account_holders.rbi +2 -2
  119. data/rbi/lithic/resources/accounts.rbi +12 -9
  120. data/rbi/lithic/resources/auth_rules/v2.rbi +3 -4
  121. data/rbi/lithic/resources/book_transfers.rbi +2 -2
  122. data/rbi/lithic/resources/card_bulk_orders.rbi +2 -2
  123. data/rbi/lithic/resources/cards/financial_transactions.rbi +2 -2
  124. data/rbi/lithic/resources/cards.rbi +2 -2
  125. data/rbi/lithic/resources/disputes.rbi +4 -4
  126. data/rbi/lithic/resources/events/subscriptions.rbi +10 -10
  127. data/rbi/lithic/resources/events.rbi +4 -4
  128. data/rbi/lithic/resources/external_payments.rbi +2 -2
  129. data/rbi/lithic/resources/financial_accounts/financial_transactions.rbi +2 -2
  130. data/rbi/lithic/resources/financial_accounts/installment_plans/statements.rbi +2 -2
  131. data/rbi/lithic/resources/financial_accounts/loan_tapes.rbi +2 -2
  132. data/rbi/lithic/resources/financial_accounts/statements.rbi +2 -2
  133. data/rbi/lithic/resources/funding_events.rbi +2 -2
  134. data/rbi/lithic/resources/holds.rbi +2 -2
  135. data/rbi/lithic/resources/management_operations.rbi +5 -3
  136. data/rbi/lithic/resources/network_programs.rbi +2 -2
  137. data/rbi/lithic/resources/payments.rbi +2 -2
  138. data/rbi/lithic/resources/reports/settlement/network_totals.rbi +2 -2
  139. data/rbi/lithic/resources/tokenizations.rbi +1 -1
  140. data/rbi/lithic/resources/transaction_monitoring/cases.rbi +2 -2
  141. data/rbi/lithic/resources/transactions.rbi +2 -2
  142. data/sig/lithic/models/auth_rules/auth_rule.rbs +0 -2
  143. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +0 -1
  144. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +64 -5
  145. data/sig/lithic/models/auth_rules/v2/backtest_results.rbs +5 -0
  146. data/sig/lithic/models/auth_rules/v2_create_params.rbs +0 -4
  147. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +0 -1
  148. data/sig/lithic/models/financial_accounts/installment_plan.rbs +25 -6
  149. data/sig/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbs +80 -21
  150. data/sig/lithic/models/management_operation_create_params.rbs +1 -33
  151. data/sig/lithic/models/three_ds_authentication.rbs +5 -0
  152. data/sig/lithic/models/three_ds_authentication_challenge_webhook_event.rbs +5 -0
  153. data/sig/lithic/models/tokenization.rbs +47 -4
  154. data/sig/lithic/models/tokenization_list_params.rbs +3 -1
  155. metadata +1 -4
  156. data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +0 -538
  157. data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +0 -1161
  158. data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +0 -278
@@ -14,8 +14,8 @@ module Lithic
14
14
  )
15
15
  end
16
16
 
17
- # Date string in RFC 3339 format. Only entries created after the specified time
18
- # will be included. UTC time zone.
17
+ # Date string in RFC 3339 format. Only entries created on or after the specified
18
+ # time will be included. UTC time zone.
19
19
  sig { returns(T.nilable(Time)) }
20
20
  attr_reader :begin_
21
21
 
@@ -112,8 +112,8 @@ module Lithic
112
112
  ).returns(T.attached_class)
113
113
  end
114
114
  def self.new(
115
- # Date string in RFC 3339 format. Only entries created after the specified time
116
- # will be included. UTC time zone.
115
+ # Date string in RFC 3339 format. Only entries created on or after the specified
116
+ # time will be included. UTC time zone.
117
117
  begin_: nil,
118
118
  business_account_token: nil,
119
119
  # Management operation category to be returned.
@@ -11,8 +11,8 @@ module Lithic
11
11
  T.any(Lithic::NetworkProgramListParams, Lithic::Internal::AnyHash)
12
12
  end
13
13
 
14
- # Date string in RFC 3339 format. Only entries created after the specified time
15
- # will be included. UTC time zone.
14
+ # Date string in RFC 3339 format. Only entries created on or after the specified
15
+ # time will be included. UTC time zone.
16
16
  sig { returns(T.nilable(Time)) }
17
17
  attr_reader :begin_
18
18
 
@@ -43,8 +43,8 @@ module Lithic
43
43
  ).returns(T.attached_class)
44
44
  end
45
45
  def self.new(
46
- # Date string in RFC 3339 format. Only entries created after the specified time
47
- # will be included. UTC time zone.
46
+ # Date string in RFC 3339 format. Only entries created on or after the specified
47
+ # time will be included. UTC time zone.
48
48
  begin_: nil,
49
49
  # Date string in RFC 3339 format. Only entries created before the specified time
50
50
  # will be included. UTC time zone.
@@ -17,8 +17,8 @@ module Lithic
17
17
  sig { params(account_token: String).void }
18
18
  attr_writer :account_token
19
19
 
20
- # Date string in RFC 3339 format. Only entries created after the specified time
21
- # will be included. UTC time zone.
20
+ # Date string in RFC 3339 format. Only entries created on or after the specified
21
+ # time will be included. UTC time zone.
22
22
  sig { returns(T.nilable(Time)) }
23
23
  attr_reader :begin_
24
24
 
@@ -106,8 +106,8 @@ module Lithic
106
106
  end
107
107
  def self.new(
108
108
  account_token: nil,
109
- # Date string in RFC 3339 format. Only entries created after the specified time
110
- # will be included. UTC time zone.
109
+ # Date string in RFC 3339 format. Only entries created on or after the specified
110
+ # time will be included. UTC time zone.
111
111
  begin_: nil,
112
112
  business_account_token: nil,
113
113
  category: nil,
@@ -16,8 +16,8 @@ module Lithic
16
16
  )
17
17
  end
18
18
 
19
- # Datetime in RFC 3339 format. Only entries created after the specified time will
20
- # be included. UTC time zone.
19
+ # Datetime in RFC 3339 format. Only entries created on or after the specified time
20
+ # will be included. UTC time zone.
21
21
  sig { returns(T.nilable(Time)) }
22
22
  attr_reader :begin_
23
23
 
@@ -127,8 +127,8 @@ module Lithic
127
127
  ).returns(T.attached_class)
128
128
  end
129
129
  def self.new(
130
- # Datetime in RFC 3339 format. Only entries created after the specified time will
131
- # be included. UTC time zone.
130
+ # Datetime in RFC 3339 format. Only entries created on or after the specified time
131
+ # will be included. UTC time zone.
132
132
  begin_: nil,
133
133
  # Datetime in RFC 3339 format. Only entries created before the specified time will
134
134
  # be included. UTC time zone.
@@ -98,6 +98,13 @@ module Lithic
98
98
  end
99
99
  attr_accessor :three_ds_requestor_challenge_indicator
100
100
 
101
+ # Date and time when the authentication was last updated in Lithic's system. Equal
102
+ # to `created` until the authentication is updated (e.g. a challenge is
103
+ # completed). Permitted values: Date string in the ISO 8601 format
104
+ # yyyy-MM-dd'T'hh:mm:ssZ.
105
+ sig { returns(Time) }
106
+ attr_accessor :updated
107
+
101
108
  # Object containing additional data about the 3DS request that is beyond the EMV
102
109
  # 3DS standard spec (e.g., specific fields that only certain card networks send
103
110
  # but are not required across all 3DS requests).
@@ -243,6 +250,7 @@ module Lithic
243
250
  Lithic::ThreeDSAuthentication::MessageCategory::OrSymbol,
244
251
  three_ds_requestor_challenge_indicator:
245
252
  Lithic::ThreeDSAuthentication::ThreeDSRequestorChallengeIndicator::OrSymbol,
253
+ updated: Time,
246
254
  additional_data:
247
255
  T.nilable(Lithic::ThreeDSAuthentication::AdditionalData::OrHash),
248
256
  app: T.nilable(Lithic::ThreeDSAuthentication::App::OrHash),
@@ -310,6 +318,11 @@ module Lithic
310
318
  # - `DATA_SHARE_ONLY` - No Challenge requested (Data Share Only)
311
319
  # - `OTHER` - Other indicators not captured by above. These are rarely used
312
320
  three_ds_requestor_challenge_indicator:,
321
+ # Date and time when the authentication was last updated in Lithic's system. Equal
322
+ # to `created` until the authentication is updated (e.g. a challenge is
323
+ # completed). Permitted values: Date string in the ISO 8601 format
324
+ # yyyy-MM-dd'T'hh:mm:ssZ.
325
+ updated:,
313
326
  # Object containing additional data about the 3DS request that is beyond the EMV
314
327
  # 3DS standard spec (e.g., specific fields that only certain card networks send
315
328
  # but are not required across all 3DS requests).
@@ -372,6 +385,7 @@ module Lithic
372
385
  Lithic::ThreeDSAuthentication::MessageCategory::TaggedSymbol,
373
386
  three_ds_requestor_challenge_indicator:
374
387
  Lithic::ThreeDSAuthentication::ThreeDSRequestorChallengeIndicator::TaggedSymbol,
388
+ updated: Time,
375
389
  additional_data:
376
390
  T.nilable(Lithic::ThreeDSAuthentication::AdditionalData),
377
391
  app: T.nilable(Lithic::ThreeDSAuthentication::App),
@@ -36,6 +36,11 @@ module Lithic
36
36
  end
37
37
  attr_writer :challenge
38
38
 
39
+ # Date and time when the challenge event was emitted. Permitted values: Date
40
+ # string in the ISO 8601 format yyyy-MM-dd'T'hh:mm:ssZ.
41
+ sig { returns(Time) }
42
+ attr_accessor :created
43
+
39
44
  sig { returns(Symbol) }
40
45
  attr_accessor :event_type
41
46
 
@@ -44,6 +49,7 @@ module Lithic
44
49
  authentication_object: Lithic::ThreeDSAuthentication::OrHash,
45
50
  challenge:
46
51
  Lithic::ThreeDSAuthenticationChallengeWebhookEvent::Challenge::OrHash,
52
+ created: Time,
47
53
  event_type: Symbol
48
54
  ).returns(T.attached_class)
49
55
  end
@@ -52,6 +58,9 @@ module Lithic
52
58
  authentication_object:,
53
59
  # Represents a challenge object for 3DS authentication
54
60
  challenge:,
61
+ # Date and time when the challenge event was emitted. Permitted values: Date
62
+ # string in the ISO 8601 format yyyy-MM-dd'T'hh:mm:ssZ.
63
+ created:,
55
64
  event_type: :"three_ds_authentication.challenge"
56
65
  )
57
66
  end
@@ -62,6 +71,7 @@ module Lithic
62
71
  authentication_object: Lithic::ThreeDSAuthentication,
63
72
  challenge:
64
73
  Lithic::ThreeDSAuthenticationChallengeWebhookEvent::Challenge,
74
+ created: Time,
65
75
  event_type: Symbol
66
76
  }
67
77
  )
@@ -70,6 +70,19 @@ module Lithic
70
70
  sig { returns(T.nilable(String)) }
71
71
  attr_accessor :payment_account_reference_id
72
72
 
73
+ # Available authentication methods for an agent tokenization pending two-factor
74
+ # authentication. Empty when no methods are available or authentication is no
75
+ # longer pending
76
+ sig { returns(T.nilable(T::Array[Lithic::Tokenization::TfaMethod])) }
77
+ attr_reader :tfa_methods
78
+
79
+ sig do
80
+ params(
81
+ tfa_methods: T::Array[Lithic::Tokenization::TfaMethod::OrHash]
82
+ ).void
83
+ end
84
+ attr_writer :tfa_methods
85
+
73
86
  sig do
74
87
  params(
75
88
  token: String,
@@ -87,7 +100,8 @@ module Lithic
87
100
  device_id: T.nilable(String),
88
101
  digital_card_art_token: T.nilable(String),
89
102
  events: T::Array[Lithic::Tokenization::Event::OrHash],
90
- payment_account_reference_id: T.nilable(String)
103
+ payment_account_reference_id: T.nilable(String),
104
+ tfa_methods: T::Array[Lithic::Tokenization::TfaMethod::OrHash]
91
105
  ).returns(T.attached_class)
92
106
  end
93
107
  def self.new(
@@ -123,7 +137,11 @@ module Lithic
123
137
  # A list of events related to the tokenization.
124
138
  events: nil,
125
139
  # The network's unique reference for the card that is tokenized.
126
- payment_account_reference_id: nil
140
+ payment_account_reference_id: nil,
141
+ # Available authentication methods for an agent tokenization pending two-factor
142
+ # authentication. Empty when no methods are available or authentication is no
143
+ # longer pending
144
+ tfa_methods: nil
127
145
  )
128
146
  end
129
147
 
@@ -145,7 +163,8 @@ module Lithic
145
163
  device_id: T.nilable(String),
146
164
  digital_card_art_token: T.nilable(String),
147
165
  events: T::Array[Lithic::Tokenization::Event],
148
- payment_account_reference_id: T.nilable(String)
166
+ payment_account_reference_id: T.nilable(String),
167
+ tfa_methods: T::Array[Lithic::Tokenization::TfaMethod]
149
168
  }
150
169
  )
151
170
  end
@@ -288,6 +307,11 @@ module Lithic
288
307
  :MERCHANT,
289
308
  Lithic::Tokenization::TokenizationChannel::TaggedSymbol
290
309
  )
310
+ AGENT_PAY =
311
+ T.let(
312
+ :AGENT_PAY,
313
+ Lithic::Tokenization::TokenizationChannel::TaggedSymbol
314
+ )
291
315
 
292
316
  sig do
293
317
  override.returns(
@@ -545,6 +569,70 @@ module Lithic
545
569
  end
546
570
  end
547
571
  end
572
+
573
+ class TfaMethod < Lithic::Internal::Type::BaseModel
574
+ OrHash =
575
+ T.type_alias do
576
+ T.any(Lithic::Tokenization::TfaMethod, Lithic::Internal::AnyHash)
577
+ end
578
+
579
+ # Destination for the authentication code, as provided by the card network
580
+ sig { returns(String) }
581
+ attr_accessor :destination
582
+
583
+ # Method used to deliver the one-time authentication code
584
+ sig { returns(Lithic::Tokenization::TfaMethod::Method::TaggedSymbol) }
585
+ attr_accessor :method_
586
+
587
+ sig do
588
+ params(
589
+ destination: String,
590
+ method_: Lithic::Tokenization::TfaMethod::Method::OrSymbol
591
+ ).returns(T.attached_class)
592
+ end
593
+ def self.new(
594
+ # Destination for the authentication code, as provided by the card network
595
+ destination:,
596
+ # Method used to deliver the one-time authentication code
597
+ method_:
598
+ )
599
+ end
600
+
601
+ sig do
602
+ override.returns(
603
+ {
604
+ destination: String,
605
+ method_: Lithic::Tokenization::TfaMethod::Method::TaggedSymbol
606
+ }
607
+ )
608
+ end
609
+ def to_hash
610
+ end
611
+
612
+ # Method used to deliver the one-time authentication code
613
+ module Method
614
+ extend Lithic::Internal::Type::Enum
615
+
616
+ TaggedSymbol =
617
+ T.type_alias do
618
+ T.all(Symbol, Lithic::Tokenization::TfaMethod::Method)
619
+ end
620
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
621
+
622
+ SMS =
623
+ T.let(:SMS, Lithic::Tokenization::TfaMethod::Method::TaggedSymbol)
624
+ EMAIL =
625
+ T.let(:EMAIL, Lithic::Tokenization::TfaMethod::Method::TaggedSymbol)
626
+
627
+ sig do
628
+ override.returns(
629
+ T::Array[Lithic::Tokenization::TfaMethod::Method::TaggedSymbol]
630
+ )
631
+ end
632
+ def self.values
633
+ end
634
+ end
635
+ end
548
636
  end
549
637
  end
550
638
  end
@@ -18,7 +18,7 @@ module Lithic
18
18
  sig { params(account_token: String).void }
19
19
  attr_writer :account_token
20
20
 
21
- # Filter for tokenizations created after this date.
21
+ # Filter for tokenizations created on or after this date.
22
22
  sig { returns(T.nilable(Date)) }
23
23
  attr_reader :begin_
24
24
 
@@ -98,7 +98,7 @@ module Lithic
98
98
  def self.new(
99
99
  # Filters for tokenizations associated with a specific account.
100
100
  account_token: nil,
101
- # Filter for tokenizations created after this date.
101
+ # Filter for tokenizations created on or after this date.
102
102
  begin_: nil,
103
103
  # Filters for tokenizations associated with a specific card.
104
104
  card_token: nil,
@@ -159,6 +159,11 @@ module Lithic
159
159
  :MERCHANT,
160
160
  Lithic::TokenizationListParams::TokenizationChannel::TaggedSymbol
161
161
  )
162
+ AGENT_PAY =
163
+ T.let(
164
+ :AGENT_PAY,
165
+ Lithic::TokenizationListParams::TokenizationChannel::TaggedSymbol
166
+ )
162
167
  ALL =
163
168
  T.let(
164
169
  :ALL,
@@ -18,8 +18,8 @@ module Lithic
18
18
  sig { params(account_token: String).void }
19
19
  attr_writer :account_token
20
20
 
21
- # Date string in RFC 3339 format. Only entries created after the specified time
22
- # will be included. UTC time zone.
21
+ # Date string in RFC 3339 format. Only entries created on or after the specified
22
+ # time will be included. UTC time zone.
23
23
  sig { returns(T.nilable(Time)) }
24
24
  attr_reader :begin_
25
25
 
@@ -104,8 +104,8 @@ module Lithic
104
104
  def self.new(
105
105
  # Filters for transactions associated with a specific account.
106
106
  account_token: nil,
107
- # Date string in RFC 3339 format. Only entries created after the specified time
108
- # will be included. UTC time zone.
107
+ # Date string in RFC 3339 format. Only entries created on or after the specified
108
+ # time will be included. UTC time zone.
109
109
  begin_: nil,
110
110
  # Filters for transactions associated with a specific card.
111
111
  card_token: nil,
@@ -30,8 +30,8 @@ module Lithic
30
30
  sig { params(assignee: String).void }
31
31
  attr_writer :assignee
32
32
 
33
- # Date string in RFC 3339 format. Only entries created after the specified time
34
- # will be included. UTC time zone.
33
+ # Date string in RFC 3339 format. Only entries created on or after the specified
34
+ # time will be included. UTC time zone.
35
35
  sig { returns(T.nilable(Time)) }
36
36
  attr_reader :begin_
37
37
 
@@ -161,8 +161,8 @@ module Lithic
161
161
  # Only return cases assigned to the provided value. Pass an empty string to return
162
162
  # only unassigned cases.
163
163
  assignee: nil,
164
- # Date string in RFC 3339 format. Only entries created after the specified time
165
- # will be included. UTC time zone.
164
+ # Date string in RFC 3339 format. Only entries created on or after the specified
165
+ # time will be included. UTC time zone.
166
166
  begin_: nil,
167
167
  # Only return cases that include transactions on the provided card.
168
168
  card_token: nil,
@@ -27,8 +27,8 @@ module Lithic
27
27
  def list(
28
28
  # Filter by account token
29
29
  account_token: nil,
30
- # Date string in RFC 3339 format. Only entries created after the specified time
31
- # will be included. UTC time zone.
30
+ # Date string in RFC 3339 format. Only entries created on or after the specified
31
+ # time will be included. UTC time zone.
32
32
  begin_: nil,
33
33
  # Filter by business account token
34
34
  business_account_token: nil,
@@ -94,8 +94,8 @@ module Lithic
94
94
  ).returns(Lithic::Internal::SinglePage[Lithic::AccountHolder])
95
95
  end
96
96
  def list(
97
- # Date string in RFC 3339 format. Only entries created after the specified time
98
- # will be included. UTC time zone.
97
+ # Date string in RFC 3339 format. Only entries created on or after the specified
98
+ # time will be included. UTC time zone.
99
99
  begin_: nil,
100
100
  # Email address of the account holder. The query must be an exact match, case
101
101
  # insensitive.
@@ -41,18 +41,21 @@ module Lithic
41
41
  # Additional context or information related to the account.
42
42
  comment: nil,
43
43
  # Amount (in cents) for the account's daily spend limit (e.g. 100000 would be a
44
- # $1,000 limit). By default the daily spend limit is set to $1,250.
44
+ # $1,000 limit). A spend limit of 0 means that no daily spend limit is enforced.
45
+ # Clients onboarded on or after February 1, 2026 have no default account spend
46
+ # limits. For clients onboarded before that date that do not use Auth Stream
47
+ # Access, new accounts have a default daily spend limit of $1,250
45
48
  daily_spend_limit: nil,
46
49
  # Amount (in cents) for the account's lifetime spend limit (e.g. 100000 would be a
47
50
  # $1,000 limit). Once this limit is reached, no transactions will be accepted on
48
- # any card created for this account until the limit is updated. Note that a spend
49
- # limit of 0 is effectively no limit, and should only be used to reset or remove a
50
- # prior limit. Only a limit of 1 or above will result in declined transactions due
51
- # to checks against the account limit. This behavior differs from the daily spend
52
- # limit and the monthly spend limit.
51
+ # any card created for this account until the limit is updated. A spend limit of 0
52
+ # means that no lifetime spend limit is enforced
53
53
  lifetime_spend_limit: nil,
54
54
  # Amount (in cents) for the account's monthly spend limit (e.g. 100000 would be a
55
- # $1,000 limit). By default the monthly spend limit is set to $5,000.
55
+ # $1,000 limit). A spend limit of 0 means that no monthly spend limit is enforced.
56
+ # Clients onboarded on or after February 1, 2026 have no default account spend
57
+ # limits. For clients onboarded before that date that do not use Auth Stream
58
+ # Access, new accounts have a default monthly spend limit of $5,000
56
59
  monthly_spend_limit: nil,
57
60
  # Account states.
58
61
  state: nil,
@@ -105,8 +108,8 @@ module Lithic
105
108
  ).returns(Lithic::Internal::CursorPage[Lithic::Account])
106
109
  end
107
110
  def list(
108
- # Date string in RFC 3339 format. Only entries created after the specified time
109
- # will be included. UTC time zone.
111
+ # Date string in RFC 3339 format. Only entries created on or after the specified
112
+ # time will be included. UTC time zone.
110
113
  begin_: nil,
111
114
  # Date string in RFC 3339 format. Only entries created before the specified time
112
115
  # will be included. UTC time zone.
@@ -136,8 +136,7 @@ module Lithic
136
136
  Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
137
137
  Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::OrHash,
138
138
  Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::OrHash,
139
- Lithic::AuthRules::TypescriptCodeParameters::OrHash,
140
- Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::OrHash
139
+ Lithic::AuthRules::TypescriptCodeParameters::OrHash
141
140
  )
142
141
  ),
143
142
  request_options: Lithic::RequestOptions::OrHash
@@ -178,8 +177,8 @@ module Lithic
178
177
  def list_results(
179
178
  # Filter by Auth Rule token
180
179
  auth_rule_token: nil,
181
- # Date string in RFC 3339 format. Only events evaluated after the specified time
182
- # will be included. UTC time zone.
180
+ # Date string in RFC 3339 format. Only events evaluated on or after the specified
181
+ # time will be included. UTC time zone.
183
182
  begin_: nil,
184
183
  # Date string in RFC 3339 format. Only events evaluated before the specified time
185
184
  # will be included. UTC time zone.
@@ -85,8 +85,8 @@ module Lithic
85
85
  end
86
86
  def list(
87
87
  account_token: nil,
88
- # Date string in RFC 3339 format. Only entries created after the specified time
89
- # will be included. UTC time zone.
88
+ # Date string in RFC 3339 format. Only entries created on or after the specified
89
+ # time will be included. UTC time zone.
90
90
  begin_: nil,
91
91
  business_account_token: nil,
92
92
  # Book Transfer category to be returned.
@@ -74,8 +74,8 @@ module Lithic
74
74
  ).returns(Lithic::Internal::CursorPage[Lithic::CardBulkOrder])
75
75
  end
76
76
  def list(
77
- # Date string in RFC 3339 format. Only entries created after the specified time
78
- # will be included. UTC time zone.
77
+ # Date string in RFC 3339 format. Only entries created on or after the specified
78
+ # time will be included. UTC time zone.
79
79
  begin_: nil,
80
80
  # Date string in RFC 3339 format. Only entries created before the specified time
81
81
  # will be included. UTC time zone.
@@ -40,8 +40,8 @@ module Lithic
40
40
  end
41
41
  def list(
42
42
  card_token,
43
- # Date string in RFC 3339 format. Only entries created after the specified time
44
- # will be included. UTC time zone.
43
+ # Date string in RFC 3339 format. Only entries created on or after the specified
44
+ # time will be included. UTC time zone.
45
45
  begin_: nil,
46
46
  # Financial Transaction category to be returned.
47
47
  category: nil,
@@ -330,8 +330,8 @@ module Lithic
330
330
  def list(
331
331
  # Returns cards associated with the specified account.
332
332
  account_token: nil,
333
- # Date string in RFC 3339 format. Only entries created after the specified time
334
- # will be included. UTC time zone.
333
+ # Date string in RFC 3339 format. Only entries created on or after the specified
334
+ # time will be included. UTC time zone.
335
335
  begin_: nil,
336
336
  # Date string in RFC 3339 format. Only entries created before the specified time
337
337
  # will be included. UTC time zone.
@@ -78,8 +78,8 @@ module Lithic
78
78
  ).returns(Lithic::Internal::CursorPage[Lithic::Dispute])
79
79
  end
80
80
  def list(
81
- # Date string in RFC 3339 format. Only entries created after the specified time
82
- # will be included. UTC time zone.
81
+ # Date string in RFC 3339 format. Only entries created on or after the specified
82
+ # time will be included. UTC time zone.
83
83
  begin_: nil,
84
84
  # Date string in RFC 3339 format. Only entries created before the specified time
85
85
  # will be included. UTC time zone.
@@ -156,8 +156,8 @@ module Lithic
156
156
  end
157
157
  def list_evidences(
158
158
  dispute_token,
159
- # Date string in RFC 3339 format. Only entries created after the specified time
160
- # will be included. UTC time zone.
159
+ # Date string in RFC 3339 format. Only entries created on or after the specified
160
+ # time will be included. UTC time zone.
161
161
  begin_: nil,
162
162
  # Date string in RFC 3339 format. Only entries created before the specified time
163
163
  # will be included. UTC time zone.
@@ -118,8 +118,8 @@ module Lithic
118
118
  end
119
119
  def list_attempts(
120
120
  event_subscription_token,
121
- # Date string in RFC 3339 format. Only entries created after the specified time
122
- # will be included. UTC time zone.
121
+ # Date string in RFC 3339 format. Only entries created on or after the specified
122
+ # time will be included. UTC time zone.
123
123
  begin_: nil,
124
124
  # Date string in RFC 3339 format. Only entries created before the specified time
125
125
  # will be included. UTC time zone.
@@ -148,8 +148,8 @@ module Lithic
148
148
  end
149
149
  def recover(
150
150
  event_subscription_token,
151
- # Date string in RFC 3339 format. Only entries created after the specified time
152
- # will be included. UTC time zone.
151
+ # Date string in RFC 3339 format. Only entries created on or after the specified
152
+ # time will be included. UTC time zone.
153
153
  begin_: nil,
154
154
  # Date string in RFC 3339 format. Only entries created before the specified time
155
155
  # will be included. UTC time zone.
@@ -158,10 +158,10 @@ module Lithic
158
158
  )
159
159
  end
160
160
 
161
- # Replays messages to the endpoint. Only messages that were created after `begin`
162
- # will be sent. Messages that were previously sent to the endpoint are not resent.
163
- # Message will be retried if endpoint responds with a non-2xx status code. See
164
- # [Retry Schedule](https://docs.lithic.com/docs/events-api#retry-schedule) for
161
+ # Replays messages to the endpoint. Only messages that were created on or after
162
+ # `begin` will be sent. Messages that were previously sent to the endpoint are not
163
+ # resent. Message will be retried if endpoint responds with a non-2xx status code.
164
+ # See [Retry Schedule](https://docs.lithic.com/docs/events-api#retry-schedule) for
165
165
  # details.
166
166
  sig do
167
167
  params(
@@ -173,8 +173,8 @@ module Lithic
173
173
  end
174
174
  def replay_missing(
175
175
  event_subscription_token,
176
- # Date string in RFC 3339 format. Only entries created after the specified time
177
- # will be included. UTC time zone.
176
+ # Date string in RFC 3339 format. Only entries created on or after the specified
177
+ # time will be included. UTC time zone.
178
178
  begin_: nil,
179
179
  # Date string in RFC 3339 format. Only entries created before the specified time
180
180
  # will be included. UTC time zone.
@@ -33,8 +33,8 @@ module Lithic
33
33
  ).returns(Lithic::Internal::CursorPage[Lithic::Event])
34
34
  end
35
35
  def list(
36
- # Date string in RFC 3339 format. Only entries created after the specified time
37
- # will be included. UTC time zone.
36
+ # Date string in RFC 3339 format. Only entries created on or after the specified
37
+ # time will be included. UTC time zone.
38
38
  begin_: nil,
39
39
  # Date string in RFC 3339 format. Only entries created before the specified time
40
40
  # will be included. UTC time zone.
@@ -70,8 +70,8 @@ module Lithic
70
70
  end
71
71
  def list_attempts(
72
72
  event_token,
73
- # Date string in RFC 3339 format. Only entries created after the specified time
74
- # will be included. UTC time zone.
73
+ # Date string in RFC 3339 format. Only entries created on or after the specified
74
+ # time will be included. UTC time zone.
75
75
  begin_: nil,
76
76
  # Date string in RFC 3339 format. Only entries created before the specified time
77
77
  # will be included. UTC time zone.
@@ -67,8 +67,8 @@ module Lithic
67
67
  ).returns(Lithic::Internal::CursorPage[Lithic::ExternalPayment])
68
68
  end
69
69
  def list(
70
- # Date string in RFC 3339 format. Only entries created after the specified time
71
- # will be included. UTC time zone.
70
+ # Date string in RFC 3339 format. Only entries created on or after the specified
71
+ # time will be included. UTC time zone.
72
72
  begin_: nil,
73
73
  business_account_token: nil,
74
74
  # The external rail the funds moved on
@@ -42,8 +42,8 @@ module Lithic
42
42
  def list(
43
43
  # Globally unique identifier for financial account.
44
44
  financial_account_token,
45
- # Date string in RFC 3339 format. Only entries created after the specified time
46
- # will be included. UTC time zone.
45
+ # Date string in RFC 3339 format. Only entries created on or after the specified
46
+ # time will be included. UTC time zone.
47
47
  begin_: nil,
48
48
  # Financial Transaction category to be returned.
49
49
  category: nil,
@@ -53,8 +53,8 @@ module Lithic
53
53
  installment_plan_token,
54
54
  # Path param: Globally unique identifier for financial account.
55
55
  financial_account_token:,
56
- # Query param: Date string in RFC 3339 format. Only entries created after the
57
- # specified date will be included.
56
+ # Query param: Date string in RFC 3339 format. Only entries created on or after
57
+ # the specified date will be included.
58
58
  begin_: nil,
59
59
  # Query param: Date string in RFC 3339 format. Only entries created before the
60
60
  # specified date will be included.
@@ -38,8 +38,8 @@ module Lithic
38
38
  def list(
39
39
  # Globally unique identifier for financial account.
40
40
  financial_account_token,
41
- # Date string in RFC 3339 format. Only entries created after the specified date
42
- # will be included.
41
+ # Date string in RFC 3339 format. Only entries created on or after the specified
42
+ # date will be included.
43
43
  begin_: nil,
44
44
  # Date string in RFC 3339 format. Only entries created before the specified date
45
45
  # will be included.