lithic 0.1.0.pre.alpha.54 → 0.1.0.pre.alpha.56
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 +39 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/models/account_activity_list_response.rb +60 -148
- data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +60 -151
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +2 -2
- data/lib/lithic/models/account_holder_update_response.rb +4 -4
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +8 -51
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -51
- data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +260 -0
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +207 -0
- data/lib/lithic/models/auth_rules/conditional_operation.rb +26 -0
- data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +254 -0
- data/lib/lithic/models/auth_rules/conditional_value.rb +27 -0
- data/lib/lithic/models/auth_rules/v2_create_params.rb +46 -283
- data/lib/lithic/models/auth_rules/v2_create_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +6 -248
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_list_params.rb +3 -0
- data/lib/lithic/models/auth_rules/v2_list_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +4 -11
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_update_response.rb +23 -510
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +4 -7
- data/lib/lithic/models/auth_rules/velocity_limit_period.rb +154 -0
- data/lib/lithic/models/book_transfer_response.rb +6 -5
- data/lib/lithic/models/category_details.rb +27 -0
- data/lib/lithic/models/dispute_v2.rb +555 -0
- data/lib/lithic/models/disputes_v2_list_params.rb +84 -0
- data/lib/lithic/models/disputes_v2_retrieve_params.rb +14 -0
- data/lib/lithic/models/event.rb +213 -69
- data/lib/lithic/models/event_list_params.rb +112 -6
- data/lib/lithic/models/event_subscription.rb +112 -6
- data/lib/lithic/models/events/subscription_create_params.rb +112 -6
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +12 -6
- data/lib/lithic/models/events/subscription_update_params.rb +112 -6
- data/lib/lithic/models/external_bank_account_address.rb +2 -2
- data/lib/lithic/models/external_bank_account_create_response.rb +18 -18
- data/lib/lithic/models/external_bank_account_list_response.rb +18 -18
- data/lib/lithic/models/external_bank_account_retrieve_response.rb +18 -18
- data/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rb +18 -18
- data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +18 -18
- data/lib/lithic/models/external_bank_account_unpause_params.rb +14 -0
- data/lib/lithic/models/external_bank_account_unpause_response.rb +242 -0
- data/lib/lithic/models/external_bank_account_update_response.rb +18 -18
- data/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rb +18 -18
- data/lib/lithic/models/external_payment.rb +3 -2
- data/lib/lithic/models/external_payment_list_params.rb +1 -0
- data/lib/lithic/models/financial_account.rb +5 -68
- data/lib/lithic/models/financial_accounts/category_balances.rb +29 -0
- data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +1 -64
- data/lib/lithic/models/financial_accounts/loan_tape.rb +35 -424
- data/lib/lithic/models/financial_accounts/statement.rb +73 -211
- data/lib/lithic/models/financial_event.rb +148 -0
- data/lib/lithic/models/financial_transaction.rb +3 -146
- data/lib/lithic/models/management_operation_list_params.rb +1 -0
- data/lib/lithic/models/management_operation_transaction.rb +5 -4
- data/lib/lithic/models/merchant.rb +70 -0
- data/lib/lithic/models/payment.rb +16 -14
- data/lib/lithic/models/payment_return_params.rb +62 -0
- data/lib/lithic/models/payment_simulate_action_params.rb +17 -1
- data/lib/lithic/models/statement_totals.rb +100 -0
- data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +9 -9
- data/lib/lithic/models/tokenization.rb +189 -23
- data/lib/lithic/models/transaction.rb +15 -185
- data/lib/lithic/models/transactions/events/enhanced_data.rb +52 -43
- data/lib/lithic/models/transfer.rb +3 -146
- data/lib/lithic/models.rb +18 -0
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -5
- data/lib/lithic/resources/auth_rules/v2.rb +13 -56
- data/lib/lithic/resources/disputes_v2.rb +74 -0
- data/lib/lithic/resources/external_bank_accounts.rb +19 -0
- data/lib/lithic/resources/payments.rb +53 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +18 -3
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/models/account_activity_list_response.rbi +121 -544
- data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +121 -544
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +3 -6
- data/rbi/lithic/models/account_holder_update_response.rbi +6 -12
- data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +13 -139
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +13 -153
- data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +789 -0
- data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +437 -0
- data/rbi/lithic/models/auth_rules/conditional_operation.rbi +74 -0
- data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +674 -0
- data/rbi/lithic/models/auth_rules/conditional_value.rbi +28 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +112 -680
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +12 -575
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +15 -0
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +9 -22
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +17 -29
- data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +223 -0
- data/rbi/lithic/models/book_transfer_response.rbi +16 -11
- data/rbi/lithic/models/category_details.rbi +43 -0
- data/rbi/lithic/models/dispute_v2.rbi +965 -0
- data/rbi/lithic/models/disputes_v2_list_params.rbi +129 -0
- data/rbi/lithic/models/disputes_v2_retrieve_params.rbi +27 -0
- data/rbi/lithic/models/event.rbi +348 -111
- data/rbi/lithic/models/event_list_params.rbi +155 -25
- data/rbi/lithic/models/event_subscription.rbi +155 -25
- data/rbi/lithic/models/events/subscription_create_params.rbi +155 -25
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +55 -25
- data/rbi/lithic/models/events/subscription_update_params.rbi +155 -25
- data/rbi/lithic/models/external_bank_account_address.rbi +3 -6
- data/rbi/lithic/models/external_bank_account_create_response.rbi +31 -51
- data/rbi/lithic/models/external_bank_account_list_response.rbi +31 -51
- data/rbi/lithic/models/external_bank_account_retrieve_response.rbi +31 -51
- data/rbi/lithic/models/external_bank_account_retry_micro_deposits_response.rbi +31 -51
- data/rbi/lithic/models/external_bank_account_retry_prenote_response.rbi +31 -51
- data/rbi/lithic/models/external_bank_account_unpause_params.rbi +30 -0
- data/rbi/lithic/models/external_bank_account_unpause_response.rbi +375 -0
- data/rbi/lithic/models/external_bank_account_update_response.rbi +31 -51
- data/rbi/lithic/models/external_bank_accounts/micro_deposit_create_response.rbi +31 -51
- data/rbi/lithic/models/external_payment.rbi +5 -6
- data/rbi/lithic/models/external_payment_list_params.rbi +5 -0
- data/rbi/lithic/models/financial_account.rbi +15 -136
- data/rbi/lithic/models/financial_accounts/category_balances.rbi +42 -0
- data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +3 -136
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +47 -679
- data/rbi/lithic/models/financial_accounts/statement.rbi +118 -348
- data/rbi/lithic/models/financial_event.rbi +409 -0
- data/rbi/lithic/models/financial_transaction.rbi +3 -509
- data/rbi/lithic/models/management_operation_list_params.rbi +5 -0
- data/rbi/lithic/models/management_operation_transaction.rbi +11 -12
- data/rbi/lithic/models/merchant.rbi +89 -0
- data/rbi/lithic/models/payment.rbi +27 -21
- data/rbi/lithic/models/payment_return_params.rbi +85 -0
- data/rbi/lithic/models/payment_simulate_action_params.rbi +22 -0
- data/rbi/lithic/models/statement_totals.rbi +128 -0
- data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +12 -12
- data/rbi/lithic/models/tokenization.rbi +429 -34
- data/rbi/lithic/models/transaction.rbi +26 -336
- data/rbi/lithic/models/transactions/events/enhanced_data.rbi +77 -136
- data/rbi/lithic/models/transfer.rbi +4 -436
- data/rbi/lithic/models.rbi +19 -0
- data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +0 -3
- data/rbi/lithic/resources/auth_rules/v2.rbi +29 -72
- data/rbi/lithic/resources/disputes_v2.rbi +64 -0
- data/rbi/lithic/resources/external_bank_accounts.rbi +10 -0
- data/rbi/lithic/resources/payments.rbi +52 -0
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/models/account_activity_list_response.rbs +67 -221
- data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +67 -221
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +4 -6
- data/sig/lithic/models/account_holder_update_response.rbs +8 -12
- data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +10 -61
- data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -61
- data/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs +293 -0
- data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +112 -0
- data/sig/lithic/models/auth_rules/conditional_operation.rbs +34 -0
- data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +237 -0
- data/sig/lithic/models/auth_rules/conditional_value.rbs +15 -0
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +32 -188
- data/sig/lithic/models/auth_rules/v2_create_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +3 -159
- data/sig/lithic/models/auth_rules/v2_draft_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_list_params.rbs +9 -1
- data/sig/lithic/models/auth_rules/v2_list_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_promote_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -4
- data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_update_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -4
- data/sig/lithic/models/auth_rules/velocity_limit_period.rbs +91 -0
- data/sig/lithic/models/book_transfer_response.rbs +10 -8
- data/sig/lithic/models/category_details.rbs +26 -0
- data/sig/lithic/models/dispute_v2.rbs +438 -0
- data/sig/lithic/models/disputes_v2_list_params.rbs +77 -0
- data/sig/lithic/models/disputes_v2_retrieve_params.rbs +15 -0
- data/sig/lithic/models/event.rbs +25 -13
- data/sig/lithic/models/event_list_params.rbs +25 -13
- data/sig/lithic/models/event_subscription.rbs +25 -13
- data/sig/lithic/models/events/subscription_create_params.rbs +25 -13
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +25 -13
- data/sig/lithic/models/events/subscription_update_params.rbs +25 -13
- data/sig/lithic/models/external_bank_account_address.rbs +4 -6
- data/sig/lithic/models/external_bank_account_create_response.rbs +36 -56
- data/sig/lithic/models/external_bank_account_list_response.rbs +36 -56
- data/sig/lithic/models/external_bank_account_retrieve_response.rbs +36 -56
- data/sig/lithic/models/external_bank_account_retry_micro_deposits_response.rbs +36 -56
- data/sig/lithic/models/external_bank_account_retry_prenote_response.rbs +36 -56
- data/sig/lithic/models/external_bank_account_unpause_params.rbs +15 -0
- data/sig/lithic/models/external_bank_account_unpause_response.rbs +162 -0
- data/sig/lithic/models/external_bank_account_update_response.rbs +36 -56
- data/sig/lithic/models/external_bank_accounts/micro_deposit_create_response.rbs +36 -56
- data/sig/lithic/models/external_payment.rbs +7 -7
- data/sig/lithic/models/external_payment_list_params.rbs +3 -1
- data/sig/lithic/models/financial_account.rbs +7 -49
- data/sig/lithic/models/financial_accounts/category_balances.rbs +24 -0
- data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +3 -49
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +48 -386
- data/sig/lithic/models/financial_accounts/statement.rbs +59 -192
- data/sig/lithic/models/financial_event.rbs +216 -0
- data/sig/lithic/models/financial_transaction.rbs +4 -217
- data/sig/lithic/models/management_operation_list_params.rbs +3 -1
- data/sig/lithic/models/management_operation_transaction.rbs +11 -13
- data/sig/lithic/models/merchant.rbs +50 -0
- data/sig/lithic/models/payment.rbs +17 -15
- data/sig/lithic/models/payment_return_params.rbs +46 -0
- data/sig/lithic/models/payment_simulate_action_params.rbs +14 -0
- data/sig/lithic/models/statement_totals.rbs +76 -0
- data/sig/lithic/models/tokenization.rbs +160 -13
- data/sig/lithic/models/transaction.rbs +17 -145
- data/sig/lithic/models/transactions/events/enhanced_data.rbs +78 -124
- data/sig/lithic/models/transfer.rbs +6 -219
- data/sig/lithic/models.rbs +18 -0
- data/sig/lithic/resources/auth_rules/v2.rbs +2 -12
- data/sig/lithic/resources/disputes_v2.rbs +24 -0
- data/sig/lithic/resources/external_bank_accounts.rbs +5 -0
- data/sig/lithic/resources/payments.rbs +12 -0
- metadata +56 -11
- data/lib/lithic/models/auth_rules/v2_apply_params.rb +0 -56
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +0 -766
- data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +0 -248
- data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +0 -86
- data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +0 -1638
- data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +0 -557
- data/sig/lithic/models/auth_rules/v2_apply_params.rbs +0 -54
- data/sig/lithic/models/auth_rules/v2_apply_response.rbs +0 -509
- data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +0 -223
|
@@ -22,20 +22,15 @@ module Lithic
|
|
|
22
22
|
end
|
|
23
23
|
attr_writer :filters
|
|
24
24
|
|
|
25
|
-
#
|
|
26
|
-
#
|
|
27
|
-
# The size of the trailing window to calculate Spend Velocity over in seconds. The
|
|
28
|
-
# minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
|
|
25
|
+
# Velocity over the current day since 00:00 / 12 AM in Eastern Time
|
|
29
26
|
sig do
|
|
30
27
|
returns(
|
|
31
28
|
T.any(
|
|
32
|
-
|
|
33
|
-
Lithic::AuthRules::
|
|
34
|
-
Lithic::AuthRules::
|
|
35
|
-
Lithic::AuthRules::
|
|
36
|
-
Lithic::AuthRules::
|
|
37
|
-
Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth,
|
|
38
|
-
Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear
|
|
29
|
+
Lithic::AuthRules::VelocityLimitPeriod::TrailingWindowObject,
|
|
30
|
+
Lithic::AuthRules::VelocityLimitPeriod::FixedWindowDay,
|
|
31
|
+
Lithic::AuthRules::VelocityLimitPeriod::FixedWindowWeek,
|
|
32
|
+
Lithic::AuthRules::VelocityLimitPeriod::FixedWindowMonth,
|
|
33
|
+
Lithic::AuthRules::VelocityLimitPeriod::FixedWindowYear
|
|
39
34
|
)
|
|
40
35
|
)
|
|
41
36
|
end
|
|
@@ -64,13 +59,11 @@ module Lithic
|
|
|
64
59
|
filters: Lithic::AuthRules::VelocityLimitParams::Filters::OrHash,
|
|
65
60
|
period:
|
|
66
61
|
T.any(
|
|
67
|
-
|
|
68
|
-
Lithic::AuthRules::
|
|
69
|
-
Lithic::AuthRules::
|
|
70
|
-
Lithic::AuthRules::
|
|
71
|
-
Lithic::AuthRules::
|
|
72
|
-
Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::OrHash,
|
|
73
|
-
Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::OrHash
|
|
62
|
+
Lithic::AuthRules::VelocityLimitPeriod::TrailingWindowObject::OrHash,
|
|
63
|
+
Lithic::AuthRules::VelocityLimitPeriod::FixedWindowDay::OrHash,
|
|
64
|
+
Lithic::AuthRules::VelocityLimitPeriod::FixedWindowWeek::OrHash,
|
|
65
|
+
Lithic::AuthRules::VelocityLimitPeriod::FixedWindowMonth::OrHash,
|
|
66
|
+
Lithic::AuthRules::VelocityLimitPeriod::FixedWindowYear::OrHash
|
|
74
67
|
),
|
|
75
68
|
scope: Lithic::AuthRules::VelocityLimitParams::Scope::OrSymbol,
|
|
76
69
|
limit_amount: T.nilable(Integer),
|
|
@@ -79,10 +72,7 @@ module Lithic
|
|
|
79
72
|
end
|
|
80
73
|
def self.new(
|
|
81
74
|
filters:,
|
|
82
|
-
#
|
|
83
|
-
#
|
|
84
|
-
# The size of the trailing window to calculate Spend Velocity over in seconds. The
|
|
85
|
-
# minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
|
|
75
|
+
# Velocity over the current day since 00:00 / 12 AM in Eastern Time
|
|
86
76
|
period:,
|
|
87
77
|
# The scope the velocity is calculated for
|
|
88
78
|
scope:,
|
|
@@ -105,13 +95,11 @@ module Lithic
|
|
|
105
95
|
filters: Lithic::AuthRules::VelocityLimitParams::Filters,
|
|
106
96
|
period:
|
|
107
97
|
T.any(
|
|
108
|
-
|
|
109
|
-
Lithic::AuthRules::
|
|
110
|
-
Lithic::AuthRules::
|
|
111
|
-
Lithic::AuthRules::
|
|
112
|
-
Lithic::AuthRules::
|
|
113
|
-
Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth,
|
|
114
|
-
Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear
|
|
98
|
+
Lithic::AuthRules::VelocityLimitPeriod::TrailingWindowObject,
|
|
99
|
+
Lithic::AuthRules::VelocityLimitPeriod::FixedWindowDay,
|
|
100
|
+
Lithic::AuthRules::VelocityLimitPeriod::FixedWindowWeek,
|
|
101
|
+
Lithic::AuthRules::VelocityLimitPeriod::FixedWindowMonth,
|
|
102
|
+
Lithic::AuthRules::VelocityLimitPeriod::FixedWindowYear
|
|
115
103
|
),
|
|
116
104
|
scope: Lithic::AuthRules::VelocityLimitParams::Scope::OrSymbol,
|
|
117
105
|
limit_amount: T.nilable(Integer),
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module AuthRules
|
|
6
|
+
# Velocity over the current day since 00:00 / 12 AM in Eastern Time
|
|
7
|
+
module VelocityLimitPeriod
|
|
8
|
+
extend Lithic::Internal::Type::Union
|
|
9
|
+
|
|
10
|
+
Variants =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Lithic::AuthRules::VelocityLimitPeriod::TrailingWindowObject,
|
|
14
|
+
Lithic::AuthRules::VelocityLimitPeriod::FixedWindowDay,
|
|
15
|
+
Lithic::AuthRules::VelocityLimitPeriod::FixedWindowWeek,
|
|
16
|
+
Lithic::AuthRules::VelocityLimitPeriod::FixedWindowMonth,
|
|
17
|
+
Lithic::AuthRules::VelocityLimitPeriod::FixedWindowYear
|
|
18
|
+
)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
class TrailingWindowObject < Lithic::Internal::Type::BaseModel
|
|
22
|
+
OrHash =
|
|
23
|
+
T.type_alias do
|
|
24
|
+
T.any(
|
|
25
|
+
Lithic::AuthRules::VelocityLimitPeriod::TrailingWindowObject,
|
|
26
|
+
Lithic::Internal::AnyHash
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# The size of the trailing window to calculate Spend Velocity over in seconds. The
|
|
31
|
+
# minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
|
|
32
|
+
sig { returns(Integer) }
|
|
33
|
+
attr_accessor :duration
|
|
34
|
+
|
|
35
|
+
sig { returns(Symbol) }
|
|
36
|
+
attr_accessor :type
|
|
37
|
+
|
|
38
|
+
sig do
|
|
39
|
+
params(duration: Integer, type: Symbol).returns(T.attached_class)
|
|
40
|
+
end
|
|
41
|
+
def self.new(
|
|
42
|
+
# The size of the trailing window to calculate Spend Velocity over in seconds. The
|
|
43
|
+
# minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
|
|
44
|
+
duration:,
|
|
45
|
+
type: :CUSTOM
|
|
46
|
+
)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
sig { override.returns({ duration: Integer, type: Symbol }) }
|
|
50
|
+
def to_hash
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
class FixedWindowDay < Lithic::Internal::Type::BaseModel
|
|
55
|
+
OrHash =
|
|
56
|
+
T.type_alias do
|
|
57
|
+
T.any(
|
|
58
|
+
Lithic::AuthRules::VelocityLimitPeriod::FixedWindowDay,
|
|
59
|
+
Lithic::Internal::AnyHash
|
|
60
|
+
)
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
sig { returns(Symbol) }
|
|
64
|
+
attr_accessor :type
|
|
65
|
+
|
|
66
|
+
# Velocity over the current day since 00:00 / 12 AM in Eastern Time
|
|
67
|
+
sig { params(type: Symbol).returns(T.attached_class) }
|
|
68
|
+
def self.new(type: :DAY)
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
sig { override.returns({ type: Symbol }) }
|
|
72
|
+
def to_hash
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
class FixedWindowWeek < Lithic::Internal::Type::BaseModel
|
|
77
|
+
OrHash =
|
|
78
|
+
T.type_alias do
|
|
79
|
+
T.any(
|
|
80
|
+
Lithic::AuthRules::VelocityLimitPeriod::FixedWindowWeek,
|
|
81
|
+
Lithic::Internal::AnyHash
|
|
82
|
+
)
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
sig { returns(Symbol) }
|
|
86
|
+
attr_accessor :type
|
|
87
|
+
|
|
88
|
+
# The day of the week to start the week from. Following ISO-8601, 1 is Monday and
|
|
89
|
+
# 7 is Sunday. Defaults to Monday if not specified.
|
|
90
|
+
sig { returns(T.nilable(Integer)) }
|
|
91
|
+
attr_reader :day_of_week
|
|
92
|
+
|
|
93
|
+
sig { params(day_of_week: Integer).void }
|
|
94
|
+
attr_writer :day_of_week
|
|
95
|
+
|
|
96
|
+
# Velocity over the current week since 00:00 / 12 AM in Eastern Time on specified
|
|
97
|
+
# `day_of_week`
|
|
98
|
+
sig do
|
|
99
|
+
params(day_of_week: Integer, type: Symbol).returns(T.attached_class)
|
|
100
|
+
end
|
|
101
|
+
def self.new(
|
|
102
|
+
# The day of the week to start the week from. Following ISO-8601, 1 is Monday and
|
|
103
|
+
# 7 is Sunday. Defaults to Monday if not specified.
|
|
104
|
+
day_of_week: nil,
|
|
105
|
+
type: :WEEK
|
|
106
|
+
)
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
sig { override.returns({ type: Symbol, day_of_week: Integer }) }
|
|
110
|
+
def to_hash
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
class FixedWindowMonth < Lithic::Internal::Type::BaseModel
|
|
115
|
+
OrHash =
|
|
116
|
+
T.type_alias do
|
|
117
|
+
T.any(
|
|
118
|
+
Lithic::AuthRules::VelocityLimitPeriod::FixedWindowMonth,
|
|
119
|
+
Lithic::Internal::AnyHash
|
|
120
|
+
)
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
sig { returns(Symbol) }
|
|
124
|
+
attr_accessor :type
|
|
125
|
+
|
|
126
|
+
# The day of the month to start from. Accepts values from 1 to 31, and will reset
|
|
127
|
+
# at the end of the month if the day exceeds the number of days in the month.
|
|
128
|
+
# Defaults to the 1st of the month if not specified.
|
|
129
|
+
sig { returns(T.nilable(Integer)) }
|
|
130
|
+
attr_reader :day_of_month
|
|
131
|
+
|
|
132
|
+
sig { params(day_of_month: Integer).void }
|
|
133
|
+
attr_writer :day_of_month
|
|
134
|
+
|
|
135
|
+
# Velocity over the current month since 00:00 / 12 AM in Eastern Time on specified
|
|
136
|
+
# `day_of_month`.
|
|
137
|
+
sig do
|
|
138
|
+
params(day_of_month: Integer, type: Symbol).returns(
|
|
139
|
+
T.attached_class
|
|
140
|
+
)
|
|
141
|
+
end
|
|
142
|
+
def self.new(
|
|
143
|
+
# The day of the month to start from. Accepts values from 1 to 31, and will reset
|
|
144
|
+
# at the end of the month if the day exceeds the number of days in the month.
|
|
145
|
+
# Defaults to the 1st of the month if not specified.
|
|
146
|
+
day_of_month: nil,
|
|
147
|
+
type: :MONTH
|
|
148
|
+
)
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
sig { override.returns({ type: Symbol, day_of_month: Integer }) }
|
|
152
|
+
def to_hash
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
class FixedWindowYear < Lithic::Internal::Type::BaseModel
|
|
157
|
+
OrHash =
|
|
158
|
+
T.type_alias do
|
|
159
|
+
T.any(
|
|
160
|
+
Lithic::AuthRules::VelocityLimitPeriod::FixedWindowYear,
|
|
161
|
+
Lithic::Internal::AnyHash
|
|
162
|
+
)
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
sig { returns(Symbol) }
|
|
166
|
+
attr_accessor :type
|
|
167
|
+
|
|
168
|
+
# The day of the month to start from. Defaults to the 1st of the month if not
|
|
169
|
+
# specified.
|
|
170
|
+
sig { returns(T.nilable(Integer)) }
|
|
171
|
+
attr_reader :day_of_month
|
|
172
|
+
|
|
173
|
+
sig { params(day_of_month: Integer).void }
|
|
174
|
+
attr_writer :day_of_month
|
|
175
|
+
|
|
176
|
+
# The month to start from. 1 is January and 12 is December. Defaults to January if
|
|
177
|
+
# not specified.
|
|
178
|
+
sig { returns(T.nilable(Integer)) }
|
|
179
|
+
attr_reader :month
|
|
180
|
+
|
|
181
|
+
sig { params(month: Integer).void }
|
|
182
|
+
attr_writer :month
|
|
183
|
+
|
|
184
|
+
# Velocity over the current year since 00:00 / 12 AM in Eastern Time on specified
|
|
185
|
+
# `month` and `day_of_month`. This validates the month and day of the year to
|
|
186
|
+
# start from is a real date. In the event that February 29th is selected, in
|
|
187
|
+
# non-leap years, the window will start from February 28th.
|
|
188
|
+
sig do
|
|
189
|
+
params(day_of_month: Integer, month: Integer, type: Symbol).returns(
|
|
190
|
+
T.attached_class
|
|
191
|
+
)
|
|
192
|
+
end
|
|
193
|
+
def self.new(
|
|
194
|
+
# The day of the month to start from. Defaults to the 1st of the month if not
|
|
195
|
+
# specified.
|
|
196
|
+
day_of_month: nil,
|
|
197
|
+
# The month to start from. 1 is January and 12 is December. Defaults to January if
|
|
198
|
+
# not specified.
|
|
199
|
+
month: nil,
|
|
200
|
+
type: :YEAR
|
|
201
|
+
)
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
sig do
|
|
205
|
+
override.returns(
|
|
206
|
+
{ type: Symbol, day_of_month: Integer, month: Integer }
|
|
207
|
+
)
|
|
208
|
+
end
|
|
209
|
+
def to_hash
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
sig do
|
|
214
|
+
override.returns(
|
|
215
|
+
T::Array[Lithic::AuthRules::VelocityLimitPeriod::Variants]
|
|
216
|
+
)
|
|
217
|
+
end
|
|
218
|
+
def self.variants
|
|
219
|
+
end
|
|
220
|
+
end
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
end
|
|
@@ -255,7 +255,9 @@ module Lithic
|
|
|
255
255
|
|
|
256
256
|
sig do
|
|
257
257
|
returns(
|
|
258
|
-
|
|
258
|
+
T::Array[
|
|
259
|
+
Lithic::BookTransferResponse::Event::DetailedResult::TaggedSymbol
|
|
260
|
+
]
|
|
259
261
|
)
|
|
260
262
|
end
|
|
261
263
|
attr_accessor :detailed_results
|
|
@@ -286,7 +288,9 @@ module Lithic
|
|
|
286
288
|
amount: Integer,
|
|
287
289
|
created: Time,
|
|
288
290
|
detailed_results:
|
|
289
|
-
|
|
291
|
+
T::Array[
|
|
292
|
+
Lithic::BookTransferResponse::Event::DetailedResult::OrSymbol
|
|
293
|
+
],
|
|
290
294
|
memo: String,
|
|
291
295
|
result: Lithic::BookTransferResponse::Event::Result::OrSymbol,
|
|
292
296
|
subtype: String,
|
|
@@ -321,7 +325,9 @@ module Lithic
|
|
|
321
325
|
amount: Integer,
|
|
322
326
|
created: Time,
|
|
323
327
|
detailed_results:
|
|
324
|
-
|
|
328
|
+
T::Array[
|
|
329
|
+
Lithic::BookTransferResponse::Event::DetailedResult::TaggedSymbol
|
|
330
|
+
],
|
|
325
331
|
memo: String,
|
|
326
332
|
result: Lithic::BookTransferResponse::Event::Result::TaggedSymbol,
|
|
327
333
|
subtype: String,
|
|
@@ -332,33 +338,30 @@ module Lithic
|
|
|
332
338
|
def to_hash
|
|
333
339
|
end
|
|
334
340
|
|
|
335
|
-
module
|
|
341
|
+
module DetailedResult
|
|
336
342
|
extend Lithic::Internal::Type::Enum
|
|
337
343
|
|
|
338
344
|
TaggedSymbol =
|
|
339
345
|
T.type_alias do
|
|
340
|
-
T.all(
|
|
341
|
-
Symbol,
|
|
342
|
-
Lithic::BookTransferResponse::Event::DetailedResults
|
|
343
|
-
)
|
|
346
|
+
T.all(Symbol, Lithic::BookTransferResponse::Event::DetailedResult)
|
|
344
347
|
end
|
|
345
348
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
346
349
|
|
|
347
350
|
APPROVED =
|
|
348
351
|
T.let(
|
|
349
352
|
:APPROVED,
|
|
350
|
-
Lithic::BookTransferResponse::Event::
|
|
353
|
+
Lithic::BookTransferResponse::Event::DetailedResult::TaggedSymbol
|
|
351
354
|
)
|
|
352
355
|
FUNDS_INSUFFICIENT =
|
|
353
356
|
T.let(
|
|
354
357
|
:FUNDS_INSUFFICIENT,
|
|
355
|
-
Lithic::BookTransferResponse::Event::
|
|
358
|
+
Lithic::BookTransferResponse::Event::DetailedResult::TaggedSymbol
|
|
356
359
|
)
|
|
357
360
|
|
|
358
361
|
sig do
|
|
359
362
|
override.returns(
|
|
360
363
|
T::Array[
|
|
361
|
-
Lithic::BookTransferResponse::Event::
|
|
364
|
+
Lithic::BookTransferResponse::Event::DetailedResult::TaggedSymbol
|
|
362
365
|
]
|
|
363
366
|
)
|
|
364
367
|
end
|
|
@@ -634,6 +637,8 @@ module Lithic
|
|
|
634
637
|
T.let(:REVERSED, Lithic::BookTransferResponse::Status::TaggedSymbol)
|
|
635
638
|
CANCELED =
|
|
636
639
|
T.let(:CANCELED, Lithic::BookTransferResponse::Status::TaggedSymbol)
|
|
640
|
+
RETURNED =
|
|
641
|
+
T.let(:RETURNED, Lithic::BookTransferResponse::Status::TaggedSymbol)
|
|
637
642
|
|
|
638
643
|
sig do
|
|
639
644
|
override.returns(
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class CategoryDetails < Lithic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Lithic::CategoryDetails, Lithic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
sig { returns(String) }
|
|
12
|
+
attr_accessor :balance_transfers
|
|
13
|
+
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :cash_advances
|
|
16
|
+
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :purchases
|
|
19
|
+
|
|
20
|
+
sig do
|
|
21
|
+
params(
|
|
22
|
+
balance_transfers: String,
|
|
23
|
+
cash_advances: String,
|
|
24
|
+
purchases: String
|
|
25
|
+
).returns(T.attached_class)
|
|
26
|
+
end
|
|
27
|
+
def self.new(balance_transfers:, cash_advances:, purchases:)
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
override.returns(
|
|
32
|
+
{
|
|
33
|
+
balance_transfers: String,
|
|
34
|
+
cash_advances: String,
|
|
35
|
+
purchases: String
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
def to_hash
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|