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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +29 -0
- data/README.md +1 -1
- data/lib/lithic/models/account_activity_list_params.rb +3 -3
- data/lib/lithic/models/account_holder_list_params.rb +3 -3
- data/lib/lithic/models/account_list_params.rb +3 -3
- data/lib/lithic/models/account_update_params.rb +10 -7
- data/lib/lithic/models/auth_rules/auth_rule.rb +6 -10
- data/lib/lithic/models/auth_rules/auth_rule_version.rb +3 -5
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +91 -8
- data/lib/lithic/models/auth_rules/v2/backtest_results.rb +9 -1
- data/lib/lithic/models/auth_rules/v2_create_params.rb +12 -20
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +3 -5
- data/lib/lithic/models/auth_rules/v2_list_results_params.rb +3 -3
- data/lib/lithic/models/book_transfer_list_params.rb +3 -3
- data/lib/lithic/models/card_bulk_order_list_params.rb +3 -3
- data/lib/lithic/models/card_list_params.rb +3 -3
- data/lib/lithic/models/cards/financial_transaction_list_params.rb +3 -3
- data/lib/lithic/models/dispute_list_evidences_params.rb +3 -3
- data/lib/lithic/models/dispute_list_params.rb +3 -3
- data/lib/lithic/models/event_list_attempts_params.rb +3 -3
- data/lib/lithic/models/event_list_params.rb +3 -3
- data/lib/lithic/models/events/subscription_list_attempts_params.rb +3 -3
- data/lib/lithic/models/events/subscription_recover_params.rb +3 -3
- data/lib/lithic/models/events/subscription_replay_missing_params.rb +3 -3
- data/lib/lithic/models/external_payment_list_params.rb +3 -3
- data/lib/lithic/models/financial_accounts/financial_transaction_list_params.rb +3 -3
- data/lib/lithic/models/financial_accounts/installment_plan.rb +33 -3
- data/lib/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rb +95 -15
- data/lib/lithic/models/financial_accounts/installment_plans/statement_list_params.rb +3 -3
- data/lib/lithic/models/financial_accounts/loan_tape_list_params.rb +3 -3
- data/lib/lithic/models/financial_accounts/statement_list_params.rb +3 -3
- data/lib/lithic/models/funding_event_list_params.rb +3 -3
- data/lib/lithic/models/hold_list_params.rb +3 -3
- data/lib/lithic/models/kyb.rb +2 -0
- data/lib/lithic/models/management_operation_create_params.rb +7 -19
- data/lib/lithic/models/management_operation_list_params.rb +3 -3
- data/lib/lithic/models/network_program_list_params.rb +3 -3
- data/lib/lithic/models/payment_list_params.rb +3 -3
- data/lib/lithic/models/reports/settlement/network_total_list_params.rb +3 -3
- data/lib/lithic/models/three_ds_authentication.rb +12 -1
- data/lib/lithic/models/three_ds_authentication_challenge_webhook_event.rb +13 -1
- data/lib/lithic/models/tokenization.rb +44 -1
- data/lib/lithic/models/tokenization_list_params.rb +3 -2
- data/lib/lithic/models/transaction_list_params.rb +3 -3
- data/lib/lithic/models/transaction_monitoring/case_list_params.rb +3 -3
- data/lib/lithic/resources/account_activity.rb +1 -1
- data/lib/lithic/resources/account_holders.rb +1 -1
- data/lib/lithic/resources/accounts.rb +1 -1
- data/lib/lithic/resources/auth_rules/v2.rb +2 -2
- data/lib/lithic/resources/book_transfers.rb +1 -1
- data/lib/lithic/resources/card_bulk_orders.rb +1 -1
- data/lib/lithic/resources/cards/financial_transactions.rb +1 -1
- data/lib/lithic/resources/cards.rb +1 -1
- data/lib/lithic/resources/disputes.rb +2 -2
- data/lib/lithic/resources/events/subscriptions.rb +7 -7
- data/lib/lithic/resources/events.rb +2 -2
- data/lib/lithic/resources/external_payments.rb +1 -1
- data/lib/lithic/resources/financial_accounts/financial_transactions.rb +1 -1
- data/lib/lithic/resources/financial_accounts/installment_plans/statements.rb +1 -1
- data/lib/lithic/resources/financial_accounts/loan_tapes.rb +1 -1
- data/lib/lithic/resources/financial_accounts/statements.rb +1 -1
- data/lib/lithic/resources/funding_events.rb +1 -1
- data/lib/lithic/resources/holds.rb +1 -1
- data/lib/lithic/resources/management_operations.rb +3 -3
- data/lib/lithic/resources/network_programs.rb +1 -1
- data/lib/lithic/resources/payments.rb +1 -1
- data/lib/lithic/resources/reports/settlement/network_totals.rb +1 -1
- data/lib/lithic/resources/tokenizations.rb +1 -1
- data/lib/lithic/resources/transaction_monitoring/cases.rb +1 -1
- data/lib/lithic/resources/transactions.rb +1 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +0 -1
- data/rbi/lithic/models/account_activity_list_params.rbi +4 -4
- data/rbi/lithic/models/account_holder_list_params.rbi +4 -4
- data/rbi/lithic/models/account_list_params.rbi +4 -4
- data/rbi/lithic/models/account_update_params.rbi +20 -14
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +4 -8
- data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +2 -4
- data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +200 -20
- data/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +8 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +16 -32
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -8
- data/rbi/lithic/models/auth_rules/v2_list_results_params.rbi +4 -4
- data/rbi/lithic/models/book_transfer_list_params.rbi +4 -4
- data/rbi/lithic/models/card_bulk_order_list_params.rbi +4 -4
- data/rbi/lithic/models/card_list_params.rbi +4 -4
- data/rbi/lithic/models/cards/financial_transaction_list_params.rbi +4 -4
- data/rbi/lithic/models/dispute_list_evidences_params.rbi +4 -4
- data/rbi/lithic/models/dispute_list_params.rbi +4 -4
- data/rbi/lithic/models/event_list_attempts_params.rbi +4 -4
- data/rbi/lithic/models/event_list_params.rbi +4 -4
- data/rbi/lithic/models/events/subscription_list_attempts_params.rbi +4 -4
- data/rbi/lithic/models/events/subscription_recover_params.rbi +4 -4
- data/rbi/lithic/models/events/subscription_replay_missing_params.rbi +4 -4
- data/rbi/lithic/models/external_payment_list_params.rbi +4 -4
- data/rbi/lithic/models/financial_accounts/financial_transaction_list_params.rbi +4 -4
- data/rbi/lithic/models/financial_accounts/installment_plan.rbi +40 -6
- data/rbi/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbi +160 -24
- data/rbi/lithic/models/financial_accounts/installment_plans/statement_list_params.rbi +4 -4
- data/rbi/lithic/models/financial_accounts/loan_tape_list_params.rbi +4 -4
- data/rbi/lithic/models/financial_accounts/statement_list_params.rbi +4 -4
- data/rbi/lithic/models/funding_event_list_params.rbi +4 -4
- data/rbi/lithic/models/hold_list_params.rbi +4 -4
- data/rbi/lithic/models/kyb.rbi +4 -0
- data/rbi/lithic/models/management_operation_create_params.rbi +8 -82
- data/rbi/lithic/models/management_operation_list_params.rbi +4 -4
- data/rbi/lithic/models/network_program_list_params.rbi +4 -4
- data/rbi/lithic/models/payment_list_params.rbi +4 -4
- data/rbi/lithic/models/reports/settlement/network_total_list_params.rbi +4 -4
- data/rbi/lithic/models/three_ds_authentication.rbi +14 -0
- data/rbi/lithic/models/three_ds_authentication_challenge_webhook_event.rbi +10 -0
- data/rbi/lithic/models/tokenization.rbi +91 -3
- data/rbi/lithic/models/tokenization_list_params.rbi +7 -2
- data/rbi/lithic/models/transaction_list_params.rbi +4 -4
- data/rbi/lithic/models/transaction_monitoring/case_list_params.rbi +4 -4
- data/rbi/lithic/resources/account_activity.rbi +2 -2
- data/rbi/lithic/resources/account_holders.rbi +2 -2
- data/rbi/lithic/resources/accounts.rbi +12 -9
- data/rbi/lithic/resources/auth_rules/v2.rbi +3 -4
- data/rbi/lithic/resources/book_transfers.rbi +2 -2
- data/rbi/lithic/resources/card_bulk_orders.rbi +2 -2
- data/rbi/lithic/resources/cards/financial_transactions.rbi +2 -2
- data/rbi/lithic/resources/cards.rbi +2 -2
- data/rbi/lithic/resources/disputes.rbi +4 -4
- data/rbi/lithic/resources/events/subscriptions.rbi +10 -10
- data/rbi/lithic/resources/events.rbi +4 -4
- data/rbi/lithic/resources/external_payments.rbi +2 -2
- data/rbi/lithic/resources/financial_accounts/financial_transactions.rbi +2 -2
- data/rbi/lithic/resources/financial_accounts/installment_plans/statements.rbi +2 -2
- data/rbi/lithic/resources/financial_accounts/loan_tapes.rbi +2 -2
- data/rbi/lithic/resources/financial_accounts/statements.rbi +2 -2
- data/rbi/lithic/resources/funding_events.rbi +2 -2
- data/rbi/lithic/resources/holds.rbi +2 -2
- data/rbi/lithic/resources/management_operations.rbi +5 -3
- data/rbi/lithic/resources/network_programs.rbi +2 -2
- data/rbi/lithic/resources/payments.rbi +2 -2
- data/rbi/lithic/resources/reports/settlement/network_totals.rbi +2 -2
- data/rbi/lithic/resources/tokenizations.rbi +1 -1
- data/rbi/lithic/resources/transaction_monitoring/cases.rbi +2 -2
- data/rbi/lithic/resources/transactions.rbi +2 -2
- data/sig/lithic/models/auth_rules/auth_rule.rbs +0 -2
- data/sig/lithic/models/auth_rules/auth_rule_version.rbs +0 -1
- data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +64 -5
- data/sig/lithic/models/auth_rules/v2/backtest_results.rbs +5 -0
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +0 -4
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +0 -1
- data/sig/lithic/models/financial_accounts/installment_plan.rbs +25 -6
- data/sig/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbs +80 -21
- data/sig/lithic/models/management_operation_create_params.rbs +1 -33
- data/sig/lithic/models/three_ds_authentication.rbs +5 -0
- data/sig/lithic/models/three_ds_authentication_challenge_webhook_event.rbs +5 -0
- data/sig/lithic/models/tokenization.rbs +47 -4
- data/sig/lithic/models/tokenization_list_params.rbs +3 -1
- metadata +1 -4
- data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +0 -538
- data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +0 -1161
- 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
#
|
data/lib/lithic/version.rb
CHANGED
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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).
|
|
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.
|
|
35
|
-
#
|
|
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).
|
|
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).
|
|
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.
|
|
134
|
-
#
|
|
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).
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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::
|
|
63
|
+
extend Lithic::Internal::Type::Union
|
|
55
64
|
|
|
56
|
-
|
|
65
|
+
Variants =
|
|
57
66
|
T.type_alias do
|
|
58
|
-
T.
|
|
59
|
-
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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::
|
|
259
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::Variants
|
|
80
260
|
]
|
|
81
261
|
)
|
|
82
262
|
end
|
|
83
|
-
def self.
|
|
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
|