lithic 0.23.1 → 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 +22 -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
@@ -30,7 +30,7 @@ module Lithic
30
30
  #
31
31
  # @overload list(begin_: nil, end_: nil, page_size: nil, request_options: {})
32
32
  #
33
- # @param begin_ [Time] Date string in RFC 3339 format. Only entries created after the specified time wi
33
+ # @param begin_ [Time] Date string in RFC 3339 format. Only entries created on or after the specified t
34
34
  #
35
35
  # @param end_ [Time] Date string in RFC 3339 format. Only entries created before the specified time w
36
36
  #
@@ -81,7 +81,7 @@ module Lithic
81
81
  #
82
82
  # @param account_token [String]
83
83
  #
84
- # @param begin_ [Time] Date string in RFC 3339 format. Only entries created after the specified time wi
84
+ # @param begin_ [Time] Date string in RFC 3339 format. Only entries created on or after the specified t
85
85
  #
86
86
  # @param business_account_token [String]
87
87
  #
@@ -32,7 +32,7 @@ module Lithic
32
32
  #
33
33
  # @overload list(begin_: nil, end_: nil, ending_before: nil, institution_id: nil, network: nil, page_size: nil, report_date: nil, report_date_begin: nil, report_date_end: nil, settlement_institution_id: nil, starting_after: nil, request_options: {})
34
34
  #
35
- # @param begin_ [Time] Datetime in RFC 3339 format. Only entries created after the specified time will
35
+ # @param begin_ [Time] Datetime in RFC 3339 format. Only entries created on or after the specified time
36
36
  #
37
37
  # @param end_ [Time] Datetime in RFC 3339 format. Only entries created before the specified time will
38
38
  #
@@ -32,7 +32,7 @@ module Lithic
32
32
  #
33
33
  # @param account_token [String] Filters for tokenizations associated with a specific account.
34
34
  #
35
- # @param begin_ [Date] Filter for tokenizations created after this date.
35
+ # @param begin_ [Date] Filter for tokenizations created on or after this date.
36
36
  #
37
37
  # @param card_token [String] Filters for tokenizations associated with a specific card.
38
38
  #
@@ -84,7 +84,7 @@ module Lithic
84
84
  #
85
85
  # @param assignee [String] Only return cases assigned to the provided value. Pass an empty string to return
86
86
  #
87
- # @param begin_ [Time] Date string in RFC 3339 format. Only entries created after the specified time wi
87
+ # @param begin_ [Time] Date string in RFC 3339 format. Only entries created on or after the specified t
88
88
  #
89
89
  # @param card_token [String] Only return cases that include transactions on the provided card.
90
90
  #
@@ -40,7 +40,7 @@ module Lithic
40
40
  #
41
41
  # @param account_token [String] Filters for transactions associated with a specific account.
42
42
  #
43
- # @param begin_ [Time] Date string in RFC 3339 format. Only entries created after the specified time wi
43
+ # @param begin_ [Time] Date string in RFC 3339 format. Only entries created on or after the specified t
44
44
  #
45
45
  # @param card_token [String] Filters for transactions associated with a specific card.
46
46
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lithic
4
- VERSION = "0.23.1"
4
+ VERSION = "0.24.0"
5
5
  end
data/lib/lithic.rb CHANGED
@@ -131,7 +131,6 @@ require_relative "lithic/models/auth_rules/conditional_ach_action_parameters"
131
131
  require_relative "lithic/models/auth_rules/conditional_ach_payment_update_action_parameters"
132
132
  require_relative "lithic/models/auth_rules/conditional_attribute"
133
133
  require_relative "lithic/models/auth_rules/conditional_authorization_action_parameters"
134
- require_relative "lithic/models/auth_rules/conditional_authorization_adjustment_parameters"
135
134
  require_relative "lithic/models/auth_rules/conditional_card_transaction_update_action_parameters"
136
135
  require_relative "lithic/models/auth_rules/conditional_operation"
137
136
  require_relative "lithic/models/auth_rules/conditional_tokenization_action_parameters"
@@ -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
 
@@ -127,8 +127,8 @@ module Lithic
127
127
  def self.new(
128
128
  # Filter by account token
129
129
  account_token: nil,
130
- # Date string in RFC 3339 format. Only entries created after the specified time
131
- # will be included. UTC time zone.
130
+ # Date string in RFC 3339 format. Only entries created on or after the specified
131
+ # time will be included. UTC time zone.
132
132
  begin_: nil,
133
133
  # Filter by business account token
134
134
  business_account_token: nil,
@@ -11,8 +11,8 @@ module Lithic
11
11
  T.any(Lithic::AccountHolderListParams, 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
 
@@ -113,8 +113,8 @@ module Lithic
113
113
  ).returns(T.attached_class)
114
114
  end
115
115
  def self.new(
116
- # Date string in RFC 3339 format. Only entries created after the specified time
117
- # will be included. UTC time zone.
116
+ # Date string in RFC 3339 format. Only entries created on or after the specified
117
+ # time will be included. UTC time zone.
118
118
  begin_: nil,
119
119
  # Email address of the account holder. The query must be an exact match, case
120
120
  # insensitive.
@@ -11,8 +11,8 @@ module Lithic
11
11
  T.any(Lithic::AccountListParams, 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
 
@@ -61,8 +61,8 @@ module Lithic
61
61
  ).returns(T.attached_class)
62
62
  end
63
63
  def self.new(
64
- # Date string in RFC 3339 format. Only entries created after the specified time
65
- # will be included. UTC time zone.
64
+ # Date string in RFC 3339 format. Only entries created on or after the specified
65
+ # time will be included. UTC time zone.
66
66
  begin_: nil,
67
67
  # Date string in RFC 3339 format. Only entries created before the specified time
68
68
  # will be included. UTC time zone.
@@ -22,7 +22,10 @@ module Lithic
22
22
  attr_writer :comment
23
23
 
24
24
  # Amount (in cents) for the account's daily spend limit (e.g. 100000 would be a
25
- # $1,000 limit). By default the daily spend limit is set to $1,250.
25
+ # $1,000 limit). A spend limit of 0 means that no daily spend limit is enforced.
26
+ # Clients onboarded on or after February 1, 2026 have no default account spend
27
+ # limits. For clients onboarded before that date that do not use Auth Stream
28
+ # Access, new accounts have a default daily spend limit of $1,250
26
29
  sig { returns(T.nilable(Integer)) }
27
30
  attr_reader :daily_spend_limit
28
31
 
@@ -31,11 +34,8 @@ module Lithic
31
34
 
32
35
  # Amount (in cents) for the account's lifetime spend limit (e.g. 100000 would be a
33
36
  # $1,000 limit). Once this limit is reached, no transactions will be accepted on
34
- # any card created for this account until the limit is updated. Note that a spend
35
- # limit of 0 is effectively no limit, and should only be used to reset or remove a
36
- # prior limit. Only a limit of 1 or above will result in declined transactions due
37
- # to checks against the account limit. This behavior differs from the daily spend
38
- # limit and the monthly spend limit.
37
+ # any card created for this account until the limit is updated. A spend limit of 0
38
+ # means that no lifetime spend limit is enforced
39
39
  sig { returns(T.nilable(Integer)) }
40
40
  attr_reader :lifetime_spend_limit
41
41
 
@@ -43,7 +43,10 @@ module Lithic
43
43
  attr_writer :lifetime_spend_limit
44
44
 
45
45
  # Amount (in cents) for the account's monthly spend limit (e.g. 100000 would be a
46
- # $1,000 limit). By default the monthly spend limit is set to $5,000.
46
+ # $1,000 limit). A spend limit of 0 means that no monthly spend limit is enforced.
47
+ # Clients onboarded on or after February 1, 2026 have no default account spend
48
+ # limits. For clients onboarded before that date that do not use Auth Stream
49
+ # Access, new accounts have a default monthly spend limit of $5,000
47
50
  sig { returns(T.nilable(Integer)) }
48
51
  attr_reader :monthly_spend_limit
49
52
 
@@ -126,18 +129,21 @@ module Lithic
126
129
  # Additional context or information related to the account.
127
130
  comment: nil,
128
131
  # Amount (in cents) for the account's daily spend limit (e.g. 100000 would be a
129
- # $1,000 limit). By default the daily spend limit is set to $1,250.
132
+ # $1,000 limit). A spend limit of 0 means that no daily spend limit is enforced.
133
+ # Clients onboarded on or after February 1, 2026 have no default account spend
134
+ # limits. For clients onboarded before that date that do not use Auth Stream
135
+ # Access, new accounts have a default daily spend limit of $1,250
130
136
  daily_spend_limit: nil,
131
137
  # Amount (in cents) for the account's lifetime spend limit (e.g. 100000 would be a
132
138
  # $1,000 limit). Once this limit is reached, no transactions will be accepted on
133
- # any card created for this account until the limit is updated. Note that a spend
134
- # limit of 0 is effectively no limit, and should only be used to reset or remove a
135
- # prior limit. Only a limit of 1 or above will result in declined transactions due
136
- # to checks against the account limit. This behavior differs from the daily spend
137
- # limit and the monthly spend limit.
139
+ # any card created for this account until the limit is updated. A spend limit of 0
140
+ # means that no lifetime spend limit is enforced
138
141
  lifetime_spend_limit: nil,
139
142
  # Amount (in cents) for the account's monthly spend limit (e.g. 100000 would be a
140
- # $1,000 limit). By default the monthly spend limit is set to $5,000.
143
+ # $1,000 limit). A spend limit of 0 means that no monthly spend limit is enforced.
144
+ # Clients onboarded on or after February 1, 2026 have no default account spend
145
+ # limits. For clients onboarded before that date that do not use Auth Stream
146
+ # Access, new accounts have a default monthly spend limit of $5,000
141
147
  monthly_spend_limit: nil,
142
148
  # Account states.
143
149
  state: nil,
@@ -286,8 +286,7 @@ module Lithic
286
286
  Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
287
287
  Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::OrHash,
288
288
  Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::OrHash,
289
- Lithic::AuthRules::TypescriptCodeParameters::OrHash,
290
- Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::OrHash
289
+ Lithic::AuthRules::TypescriptCodeParameters::OrHash
291
290
  ),
292
291
  version: Integer
293
292
  ).returns(T.attached_class)
@@ -328,8 +327,7 @@ module Lithic
328
327
  Lithic::AuthRules::ConditionalTokenizationActionParameters,
329
328
  Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters,
330
329
  Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters,
331
- Lithic::AuthRules::TypescriptCodeParameters,
332
- Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
330
+ Lithic::AuthRules::TypescriptCodeParameters
333
331
  )
334
332
  end
335
333
 
@@ -402,8 +400,7 @@ module Lithic
402
400
  Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
403
401
  Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::OrHash,
404
402
  Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::OrHash,
405
- Lithic::AuthRules::TypescriptCodeParameters::OrHash,
406
- Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::OrHash
403
+ Lithic::AuthRules::TypescriptCodeParameters::OrHash
407
404
  ),
408
405
  state: Lithic::AuthRules::AuthRule::DraftVersion::State::OrSymbol,
409
406
  version: Integer
@@ -462,8 +459,7 @@ module Lithic
462
459
  Lithic::AuthRules::ConditionalTokenizationActionParameters,
463
460
  Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters,
464
461
  Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters,
465
- Lithic::AuthRules::TypescriptCodeParameters,
466
- Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
462
+ Lithic::AuthRules::TypescriptCodeParameters
467
463
  )
468
464
  end
469
465
 
@@ -43,8 +43,7 @@ module Lithic
43
43
  Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
44
44
  Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::OrHash,
45
45
  Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::OrHash,
46
- Lithic::AuthRules::TypescriptCodeParameters::OrHash,
47
- Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::OrHash
46
+ Lithic::AuthRules::TypescriptCodeParameters::OrHash
48
47
  ),
49
48
  state: Lithic::AuthRules::AuthRuleVersion::State::OrSymbol,
50
49
  version: Integer
@@ -92,8 +91,7 @@ module Lithic
92
91
  Lithic::AuthRules::ConditionalTokenizationActionParameters,
93
92
  Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters,
94
93
  Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters,
95
- Lithic::AuthRules::TypescriptCodeParameters,
96
- Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
94
+ Lithic::AuthRules::TypescriptCodeParameters
97
95
  )
98
96
  end
99
97
 
@@ -15,7 +15,10 @@ module Lithic
15
15
  # The action to take if the conditions are met.
16
16
  sig do
17
17
  returns(
18
- Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::OrSymbol
18
+ T.any(
19
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::AuthorizationAction::OrSymbol,
20
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction
21
+ )
19
22
  )
20
23
  end
21
24
  attr_accessor :action
@@ -26,7 +29,10 @@ module Lithic
26
29
  sig do
27
30
  params(
28
31
  action:
29
- Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::OrSymbol,
32
+ T.any(
33
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::AuthorizationAction::OrSymbol,
34
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::OrHash
35
+ ),
30
36
  conditions: T::Array[Lithic::AuthRules::AuthRuleCondition::OrHash]
31
37
  ).returns(T.attached_class)
32
38
  end
@@ -41,7 +47,10 @@ module Lithic
41
47
  override.returns(
42
48
  {
43
49
  action:
44
- Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::OrSymbol,
50
+ T.any(
51
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::AuthorizationAction::OrSymbol,
52
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction
53
+ ),
45
54
  conditions: T::Array[Lithic::AuthRules::AuthRuleCondition]
46
55
  }
47
56
  )
@@ -51,36 +60,207 @@ module Lithic
51
60
 
52
61
  # The action to take if the conditions are met.
53
62
  module Action
54
- extend Lithic::Internal::Type::Enum
63
+ extend Lithic::Internal::Type::Union
55
64
 
56
- TaggedSymbol =
65
+ Variants =
57
66
  T.type_alias do
58
- T.all(
59
- Symbol,
60
- Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action
67
+ T.any(
68
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::AuthorizationAction::TaggedSymbol,
69
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction
61
70
  )
62
71
  end
63
- OrSymbol = T.type_alias { T.any(Symbol, String) }
64
72
 
65
- DECLINE =
66
- T.let(
67
- :DECLINE,
68
- Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
69
- )
70
- CHALLENGE =
71
- T.let(
72
- :CHALLENGE,
73
- Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
73
+ module AuthorizationAction
74
+ extend Lithic::Internal::Type::Enum
75
+
76
+ TaggedSymbol =
77
+ T.type_alias do
78
+ T.all(
79
+ Symbol,
80
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::AuthorizationAction
81
+ )
82
+ end
83
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
84
+
85
+ DECLINE =
86
+ T.let(
87
+ :DECLINE,
88
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::AuthorizationAction::TaggedSymbol
89
+ )
90
+ CHALLENGE =
91
+ T.let(
92
+ :CHALLENGE,
93
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::AuthorizationAction::TaggedSymbol
94
+ )
95
+
96
+ sig do
97
+ override.returns(
98
+ T::Array[
99
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::AuthorizationAction::TaggedSymbol
100
+ ]
101
+ )
102
+ end
103
+ def self.values
104
+ end
105
+ end
106
+
107
+ class HoldAdjustmentAction < Lithic::Internal::Type::BaseModel
108
+ OrHash =
109
+ T.type_alias do
110
+ T.any(
111
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction,
112
+ Lithic::Internal::AnyHash
113
+ )
114
+ end
115
+
116
+ # The mode of the hold adjustment, determining how the value is interpreted:
117
+ #
118
+ # - `REPLACE_WITH_AMOUNT`: The value is the approved hold amount in cents.
119
+ # - `ADD_PERCENTAGE`: The value adjusts the hold amount by a percentage. 1000
120
+ # represents a 10% increase, 0 represents no change.
121
+ # - `ADD_AMOUNT`: The value is added to the hold amount in cents.
122
+ sig do
123
+ returns(
124
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::Mode::OrSymbol
125
+ )
126
+ end
127
+ attr_accessor :mode
128
+
129
+ # The type of adjustment to apply
130
+ sig do
131
+ returns(
132
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::Type::OrSymbol
133
+ )
134
+ end
135
+ attr_accessor :type
136
+
137
+ # The value used for the hold adjustment, interpreted based on the mode
138
+ sig { returns(Integer) }
139
+ attr_accessor :value
140
+
141
+ # The hold adjustment to apply if the conditions are met.
142
+ sig do
143
+ params(
144
+ mode:
145
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::Mode::OrSymbol,
146
+ type:
147
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::Type::OrSymbol,
148
+ value: Integer
149
+ ).returns(T.attached_class)
150
+ end
151
+ def self.new(
152
+ # The mode of the hold adjustment, determining how the value is interpreted:
153
+ #
154
+ # - `REPLACE_WITH_AMOUNT`: The value is the approved hold amount in cents.
155
+ # - `ADD_PERCENTAGE`: The value adjusts the hold amount by a percentage. 1000
156
+ # represents a 10% increase, 0 represents no change.
157
+ # - `ADD_AMOUNT`: The value is added to the hold amount in cents.
158
+ mode:,
159
+ # The type of adjustment to apply
160
+ type:,
161
+ # The value used for the hold adjustment, interpreted based on the mode
162
+ value:
74
163
  )
164
+ end
165
+
166
+ sig do
167
+ override.returns(
168
+ {
169
+ mode:
170
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::Mode::OrSymbol,
171
+ type:
172
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::Type::OrSymbol,
173
+ value: Integer
174
+ }
175
+ )
176
+ end
177
+ def to_hash
178
+ end
179
+
180
+ # The mode of the hold adjustment, determining how the value is interpreted:
181
+ #
182
+ # - `REPLACE_WITH_AMOUNT`: The value is the approved hold amount in cents.
183
+ # - `ADD_PERCENTAGE`: The value adjusts the hold amount by a percentage. 1000
184
+ # represents a 10% increase, 0 represents no change.
185
+ # - `ADD_AMOUNT`: The value is added to the hold amount in cents.
186
+ module Mode
187
+ extend Lithic::Internal::Type::Enum
188
+
189
+ TaggedSymbol =
190
+ T.type_alias do
191
+ T.all(
192
+ Symbol,
193
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::Mode
194
+ )
195
+ end
196
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
197
+
198
+ REPLACE_WITH_AMOUNT =
199
+ T.let(
200
+ :REPLACE_WITH_AMOUNT,
201
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::Mode::TaggedSymbol
202
+ )
203
+ ADD_PERCENTAGE =
204
+ T.let(
205
+ :ADD_PERCENTAGE,
206
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::Mode::TaggedSymbol
207
+ )
208
+ ADD_AMOUNT =
209
+ T.let(
210
+ :ADD_AMOUNT,
211
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::Mode::TaggedSymbol
212
+ )
213
+
214
+ sig do
215
+ override.returns(
216
+ T::Array[
217
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::Mode::TaggedSymbol
218
+ ]
219
+ )
220
+ end
221
+ def self.values
222
+ end
223
+ end
224
+
225
+ # The type of adjustment to apply
226
+ module Type
227
+ extend Lithic::Internal::Type::Enum
228
+
229
+ TaggedSymbol =
230
+ T.type_alias do
231
+ T.all(
232
+ Symbol,
233
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::Type
234
+ )
235
+ end
236
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
237
+
238
+ HOLD_ADJUSTMENT =
239
+ T.let(
240
+ :HOLD_ADJUSTMENT,
241
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::Type::TaggedSymbol
242
+ )
243
+
244
+ sig do
245
+ override.returns(
246
+ T::Array[
247
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::Type::TaggedSymbol
248
+ ]
249
+ )
250
+ end
251
+ def self.values
252
+ end
253
+ end
254
+ end
75
255
 
76
256
  sig do
77
257
  override.returns(
78
258
  T::Array[
79
- Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
259
+ Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::Variants
80
260
  ]
81
261
  )
82
262
  end
83
- def self.values
263
+ def self.variants
84
264
  end
85
265
  end
86
266
  end
@@ -17,6 +17,10 @@ module Lithic
17
17
  sig { returns(String) }
18
18
  attr_accessor :backtest_token
19
19
 
20
+ # Date and time when the backtest was requested
21
+ sig { returns(Time) }
22
+ attr_accessor :created
23
+
20
24
  sig { returns(Lithic::AuthRules::V2::BacktestResults::Results) }
21
25
  attr_reader :results
22
26
 
@@ -45,6 +49,7 @@ module Lithic
45
49
  sig do
46
50
  params(
47
51
  backtest_token: String,
52
+ created: Time,
48
53
  results: Lithic::AuthRules::V2::BacktestResults::Results::OrHash,
49
54
  simulation_parameters:
50
55
  Lithic::AuthRules::V2::BacktestResults::SimulationParameters::OrHash
@@ -53,6 +58,8 @@ module Lithic
53
58
  def self.new(
54
59
  # Auth Rule Backtest Token
55
60
  backtest_token:,
61
+ # Date and time when the backtest was requested
62
+ created:,
56
63
  results:,
57
64
  simulation_parameters:
58
65
  )
@@ -62,6 +69,7 @@ module Lithic
62
69
  override.returns(
63
70
  {
64
71
  backtest_token: String,
72
+ created: Time,
65
73
  results: Lithic::AuthRules::V2::BacktestResults::Results,
66
74
  simulation_parameters:
67
75
  Lithic::AuthRules::V2::BacktestResults::SimulationParameters