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
|
@@ -95,68 +95,48 @@ module Lithic
|
|
|
95
95
|
# external accounts that are associated with the program, account_token field
|
|
96
96
|
# returned will be null
|
|
97
97
|
sig { returns(T.nilable(String)) }
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
sig { params(account_token: String).void }
|
|
101
|
-
attr_writer :account_token
|
|
98
|
+
attr_accessor :account_token
|
|
102
99
|
|
|
103
100
|
# Address
|
|
104
101
|
sig { returns(T.nilable(Lithic::ExternalBankAccountAddress)) }
|
|
105
102
|
attr_reader :address
|
|
106
103
|
|
|
107
|
-
sig
|
|
104
|
+
sig do
|
|
105
|
+
params(
|
|
106
|
+
address: T.nilable(Lithic::ExternalBankAccountAddress::OrHash)
|
|
107
|
+
).void
|
|
108
|
+
end
|
|
108
109
|
attr_writer :address
|
|
109
110
|
|
|
110
111
|
# Optional field that helps identify bank accounts in receipts
|
|
111
112
|
sig { returns(T.nilable(String)) }
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
sig { params(company_id: String).void }
|
|
115
|
-
attr_writer :company_id
|
|
113
|
+
attr_accessor :company_id
|
|
116
114
|
|
|
117
115
|
# Date of Birth of the Individual that owns the external bank account
|
|
118
116
|
sig { returns(T.nilable(Date)) }
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
sig { params(dob: Date).void }
|
|
122
|
-
attr_writer :dob
|
|
117
|
+
attr_accessor :dob
|
|
123
118
|
|
|
124
119
|
# Doing Business As
|
|
125
120
|
sig { returns(T.nilable(String)) }
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
sig { params(doing_business_as: String).void }
|
|
129
|
-
attr_writer :doing_business_as
|
|
121
|
+
attr_accessor :doing_business_as
|
|
130
122
|
|
|
131
123
|
# The financial account token of the operating account to fund the micro deposits
|
|
132
124
|
sig { returns(T.nilable(String)) }
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
sig { params(financial_account_token: String).void }
|
|
136
|
-
attr_writer :financial_account_token
|
|
125
|
+
attr_accessor :financial_account_token
|
|
137
126
|
|
|
138
127
|
# The nickname for this External Bank Account
|
|
139
128
|
sig { returns(T.nilable(String)) }
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
sig { params(name: String).void }
|
|
143
|
-
attr_writer :name
|
|
129
|
+
attr_accessor :name
|
|
144
130
|
|
|
145
131
|
# User Defined ID
|
|
146
132
|
sig { returns(T.nilable(String)) }
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
sig { params(user_defined_id: String).void }
|
|
150
|
-
attr_writer :user_defined_id
|
|
133
|
+
attr_accessor :user_defined_id
|
|
151
134
|
|
|
152
135
|
# Optional free text description of the reason for the failed verification. For
|
|
153
136
|
# ACH micro-deposits returned, this field will display the reason return code sent
|
|
154
137
|
# by the ACH network
|
|
155
138
|
sig { returns(T.nilable(String)) }
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
sig { params(verification_failed_reason: String).void }
|
|
159
|
-
attr_writer :verification_failed_reason
|
|
139
|
+
attr_accessor :verification_failed_reason
|
|
160
140
|
|
|
161
141
|
sig do
|
|
162
142
|
params(
|
|
@@ -178,15 +158,15 @@ module Lithic
|
|
|
178
158
|
Lithic::Models::ExternalBankAccounts::MicroDepositCreateResponse::VerificationMethod::OrSymbol,
|
|
179
159
|
verification_state:
|
|
180
160
|
Lithic::Models::ExternalBankAccounts::MicroDepositCreateResponse::VerificationState::OrSymbol,
|
|
181
|
-
account_token: String,
|
|
182
|
-
address: Lithic::ExternalBankAccountAddress::OrHash,
|
|
183
|
-
company_id: String,
|
|
184
|
-
dob: Date,
|
|
185
|
-
doing_business_as: String,
|
|
186
|
-
financial_account_token: String,
|
|
187
|
-
name: String,
|
|
188
|
-
user_defined_id: String,
|
|
189
|
-
verification_failed_reason: String
|
|
161
|
+
account_token: T.nilable(String),
|
|
162
|
+
address: T.nilable(Lithic::ExternalBankAccountAddress::OrHash),
|
|
163
|
+
company_id: T.nilable(String),
|
|
164
|
+
dob: T.nilable(Date),
|
|
165
|
+
doing_business_as: T.nilable(String),
|
|
166
|
+
financial_account_token: T.nilable(String),
|
|
167
|
+
name: T.nilable(String),
|
|
168
|
+
user_defined_id: T.nilable(String),
|
|
169
|
+
verification_failed_reason: T.nilable(String)
|
|
190
170
|
).returns(T.attached_class)
|
|
191
171
|
end
|
|
192
172
|
def self.new(
|
|
@@ -269,15 +249,15 @@ module Lithic
|
|
|
269
249
|
Lithic::Models::ExternalBankAccounts::MicroDepositCreateResponse::VerificationMethod::TaggedSymbol,
|
|
270
250
|
verification_state:
|
|
271
251
|
Lithic::Models::ExternalBankAccounts::MicroDepositCreateResponse::VerificationState::TaggedSymbol,
|
|
272
|
-
account_token: String,
|
|
273
|
-
address: Lithic::ExternalBankAccountAddress,
|
|
274
|
-
company_id: String,
|
|
275
|
-
dob: Date,
|
|
276
|
-
doing_business_as: String,
|
|
277
|
-
financial_account_token: String,
|
|
278
|
-
name: String,
|
|
279
|
-
user_defined_id: String,
|
|
280
|
-
verification_failed_reason: String
|
|
252
|
+
account_token: T.nilable(String),
|
|
253
|
+
address: T.nilable(Lithic::ExternalBankAccountAddress),
|
|
254
|
+
company_id: T.nilable(String),
|
|
255
|
+
dob: T.nilable(Date),
|
|
256
|
+
doing_business_as: T.nilable(String),
|
|
257
|
+
financial_account_token: T.nilable(String),
|
|
258
|
+
name: T.nilable(String),
|
|
259
|
+
user_defined_id: T.nilable(String),
|
|
260
|
+
verification_failed_reason: T.nilable(String)
|
|
281
261
|
}
|
|
282
262
|
)
|
|
283
263
|
end
|
|
@@ -90,10 +90,7 @@ module Lithic
|
|
|
90
90
|
attr_writer :settled_amount
|
|
91
91
|
|
|
92
92
|
sig { returns(T.nilable(String)) }
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
sig { params(user_defined_id: String).void }
|
|
96
|
-
attr_writer :user_defined_id
|
|
93
|
+
attr_accessor :user_defined_id
|
|
97
94
|
|
|
98
95
|
sig do
|
|
99
96
|
params(
|
|
@@ -110,7 +107,7 @@ module Lithic
|
|
|
110
107
|
pending_amount: Integer,
|
|
111
108
|
result: Lithic::ExternalPayment::Result::OrSymbol,
|
|
112
109
|
settled_amount: Integer,
|
|
113
|
-
user_defined_id: String
|
|
110
|
+
user_defined_id: T.nilable(String)
|
|
114
111
|
).returns(T.attached_class)
|
|
115
112
|
end
|
|
116
113
|
def self.new(
|
|
@@ -152,7 +149,7 @@ module Lithic
|
|
|
152
149
|
pending_amount: Integer,
|
|
153
150
|
result: Lithic::ExternalPayment::Result::TaggedSymbol,
|
|
154
151
|
settled_amount: Integer,
|
|
155
|
-
user_defined_id: String
|
|
152
|
+
user_defined_id: T.nilable(String)
|
|
156
153
|
}
|
|
157
154
|
)
|
|
158
155
|
end
|
|
@@ -175,6 +172,8 @@ module Lithic
|
|
|
175
172
|
T.let(:REVERSED, Lithic::ExternalPayment::Status::TaggedSymbol)
|
|
176
173
|
CANCELED =
|
|
177
174
|
T.let(:CANCELED, Lithic::ExternalPayment::Status::TaggedSymbol)
|
|
175
|
+
RETURNED =
|
|
176
|
+
T.let(:RETURNED, Lithic::ExternalPayment::Status::TaggedSymbol)
|
|
178
177
|
|
|
179
178
|
sig do
|
|
180
179
|
override.returns(
|
|
@@ -129,7 +129,9 @@ module Lithic
|
|
|
129
129
|
|
|
130
130
|
sig do
|
|
131
131
|
returns(
|
|
132
|
-
|
|
132
|
+
T.nilable(
|
|
133
|
+
Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration
|
|
134
|
+
)
|
|
133
135
|
)
|
|
134
136
|
end
|
|
135
137
|
attr_reader :auto_collection_configuration
|
|
@@ -137,7 +139,9 @@ module Lithic
|
|
|
137
139
|
sig do
|
|
138
140
|
params(
|
|
139
141
|
auto_collection_configuration:
|
|
140
|
-
|
|
142
|
+
T.nilable(
|
|
143
|
+
Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration::OrHash
|
|
144
|
+
)
|
|
141
145
|
).void
|
|
142
146
|
end
|
|
143
147
|
attr_writer :auto_collection_configuration
|
|
@@ -156,49 +160,16 @@ module Lithic
|
|
|
156
160
|
sig { returns(T.nilable(String)) }
|
|
157
161
|
attr_accessor :tier
|
|
158
162
|
|
|
159
|
-
# Reason for the financial account being marked as Charged Off
|
|
160
|
-
sig do
|
|
161
|
-
returns(
|
|
162
|
-
T.nilable(
|
|
163
|
-
Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason::TaggedSymbol
|
|
164
|
-
)
|
|
165
|
-
)
|
|
166
|
-
end
|
|
167
|
-
attr_accessor :charged_off_reason
|
|
168
|
-
|
|
169
|
-
# State of the financial account
|
|
170
|
-
sig do
|
|
171
|
-
returns(
|
|
172
|
-
T.nilable(
|
|
173
|
-
Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::TaggedSymbol
|
|
174
|
-
)
|
|
175
|
-
)
|
|
176
|
-
end
|
|
177
|
-
attr_accessor :financial_account_state
|
|
178
|
-
|
|
179
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
180
|
-
attr_reader :is_spend_blocked
|
|
181
|
-
|
|
182
|
-
sig { params(is_spend_blocked: T::Boolean).void }
|
|
183
|
-
attr_writer :is_spend_blocked
|
|
184
|
-
|
|
185
163
|
sig do
|
|
186
164
|
params(
|
|
187
165
|
auto_collection_configuration:
|
|
188
|
-
|
|
166
|
+
T.nilable(
|
|
167
|
+
Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration::OrHash
|
|
168
|
+
),
|
|
189
169
|
credit_limit: T.nilable(Integer),
|
|
190
170
|
credit_product_token: T.nilable(String),
|
|
191
171
|
external_bank_account_token: T.nilable(String),
|
|
192
|
-
tier: T.nilable(String)
|
|
193
|
-
charged_off_reason:
|
|
194
|
-
T.nilable(
|
|
195
|
-
Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason::OrSymbol
|
|
196
|
-
),
|
|
197
|
-
financial_account_state:
|
|
198
|
-
T.nilable(
|
|
199
|
-
Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::OrSymbol
|
|
200
|
-
),
|
|
201
|
-
is_spend_blocked: T::Boolean
|
|
172
|
+
tier: T.nilable(String)
|
|
202
173
|
).returns(T.attached_class)
|
|
203
174
|
end
|
|
204
175
|
def self.new(
|
|
@@ -208,12 +179,7 @@ module Lithic
|
|
|
208
179
|
credit_product_token:,
|
|
209
180
|
external_bank_account_token:,
|
|
210
181
|
# Tier assigned to the financial account
|
|
211
|
-
tier
|
|
212
|
-
# Reason for the financial account being marked as Charged Off
|
|
213
|
-
charged_off_reason: nil,
|
|
214
|
-
# State of the financial account
|
|
215
|
-
financial_account_state: nil,
|
|
216
|
-
is_spend_blocked: nil
|
|
182
|
+
tier:
|
|
217
183
|
)
|
|
218
184
|
end
|
|
219
185
|
|
|
@@ -221,20 +187,13 @@ module Lithic
|
|
|
221
187
|
override.returns(
|
|
222
188
|
{
|
|
223
189
|
auto_collection_configuration:
|
|
224
|
-
|
|
190
|
+
T.nilable(
|
|
191
|
+
Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration
|
|
192
|
+
),
|
|
225
193
|
credit_limit: T.nilable(Integer),
|
|
226
194
|
credit_product_token: T.nilable(String),
|
|
227
195
|
external_bank_account_token: T.nilable(String),
|
|
228
|
-
tier: T.nilable(String)
|
|
229
|
-
charged_off_reason:
|
|
230
|
-
T.nilable(
|
|
231
|
-
Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason::TaggedSymbol
|
|
232
|
-
),
|
|
233
|
-
financial_account_state:
|
|
234
|
-
T.nilable(
|
|
235
|
-
Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::TaggedSymbol
|
|
236
|
-
),
|
|
237
|
-
is_spend_blocked: T::Boolean
|
|
196
|
+
tier: T.nilable(String)
|
|
238
197
|
}
|
|
239
198
|
)
|
|
240
199
|
end
|
|
@@ -269,86 +228,6 @@ module Lithic
|
|
|
269
228
|
def to_hash
|
|
270
229
|
end
|
|
271
230
|
end
|
|
272
|
-
|
|
273
|
-
# Reason for the financial account being marked as Charged Off
|
|
274
|
-
module ChargedOffReason
|
|
275
|
-
extend Lithic::Internal::Type::Enum
|
|
276
|
-
|
|
277
|
-
TaggedSymbol =
|
|
278
|
-
T.type_alias do
|
|
279
|
-
T.all(
|
|
280
|
-
Symbol,
|
|
281
|
-
Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason
|
|
282
|
-
)
|
|
283
|
-
end
|
|
284
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
285
|
-
|
|
286
|
-
DELINQUENT =
|
|
287
|
-
T.let(
|
|
288
|
-
:DELINQUENT,
|
|
289
|
-
Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason::TaggedSymbol
|
|
290
|
-
)
|
|
291
|
-
FRAUD =
|
|
292
|
-
T.let(
|
|
293
|
-
:FRAUD,
|
|
294
|
-
Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason::TaggedSymbol
|
|
295
|
-
)
|
|
296
|
-
|
|
297
|
-
sig do
|
|
298
|
-
override.returns(
|
|
299
|
-
T::Array[
|
|
300
|
-
Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason::TaggedSymbol
|
|
301
|
-
]
|
|
302
|
-
)
|
|
303
|
-
end
|
|
304
|
-
def self.values
|
|
305
|
-
end
|
|
306
|
-
end
|
|
307
|
-
|
|
308
|
-
# State of the financial account
|
|
309
|
-
module FinancialAccountState
|
|
310
|
-
extend Lithic::Internal::Type::Enum
|
|
311
|
-
|
|
312
|
-
TaggedSymbol =
|
|
313
|
-
T.type_alias do
|
|
314
|
-
T.all(
|
|
315
|
-
Symbol,
|
|
316
|
-
Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState
|
|
317
|
-
)
|
|
318
|
-
end
|
|
319
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
320
|
-
|
|
321
|
-
PENDING =
|
|
322
|
-
T.let(
|
|
323
|
-
:PENDING,
|
|
324
|
-
Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::TaggedSymbol
|
|
325
|
-
)
|
|
326
|
-
CURRENT =
|
|
327
|
-
T.let(
|
|
328
|
-
:CURRENT,
|
|
329
|
-
Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::TaggedSymbol
|
|
330
|
-
)
|
|
331
|
-
DELINQUENT =
|
|
332
|
-
T.let(
|
|
333
|
-
:DELINQUENT,
|
|
334
|
-
Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::TaggedSymbol
|
|
335
|
-
)
|
|
336
|
-
CHARGED_OFF =
|
|
337
|
-
T.let(
|
|
338
|
-
:CHARGED_OFF,
|
|
339
|
-
Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::TaggedSymbol
|
|
340
|
-
)
|
|
341
|
-
|
|
342
|
-
sig do
|
|
343
|
-
override.returns(
|
|
344
|
-
T::Array[
|
|
345
|
-
Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::TaggedSymbol
|
|
346
|
-
]
|
|
347
|
-
)
|
|
348
|
-
end
|
|
349
|
-
def self.values
|
|
350
|
-
end
|
|
351
|
-
end
|
|
352
231
|
end
|
|
353
232
|
|
|
354
233
|
# Status of the financial account
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module FinancialAccounts
|
|
6
|
+
class CategoryBalances < Lithic::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Lithic::FinancialAccounts::CategoryBalances,
|
|
11
|
+
Lithic::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
sig { returns(Integer) }
|
|
16
|
+
attr_accessor :fees
|
|
17
|
+
|
|
18
|
+
sig { returns(Integer) }
|
|
19
|
+
attr_accessor :interest
|
|
20
|
+
|
|
21
|
+
sig { returns(Integer) }
|
|
22
|
+
attr_accessor :principal
|
|
23
|
+
|
|
24
|
+
sig do
|
|
25
|
+
params(fees: Integer, interest: Integer, principal: Integer).returns(
|
|
26
|
+
T.attached_class
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
def self.new(fees:, interest:, principal:)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
sig do
|
|
33
|
+
override.returns(
|
|
34
|
+
{ fees: Integer, interest: Integer, principal: Integer }
|
|
35
|
+
)
|
|
36
|
+
end
|
|
37
|
+
def to_hash
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -48,40 +48,6 @@ module Lithic
|
|
|
48
48
|
sig { returns(T.nilable(String)) }
|
|
49
49
|
attr_accessor :tier
|
|
50
50
|
|
|
51
|
-
# Reason for the financial account being marked as Charged Off
|
|
52
|
-
sig do
|
|
53
|
-
returns(
|
|
54
|
-
T.nilable(
|
|
55
|
-
Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason::TaggedSymbol
|
|
56
|
-
)
|
|
57
|
-
)
|
|
58
|
-
end
|
|
59
|
-
attr_accessor :charged_off_reason
|
|
60
|
-
|
|
61
|
-
# State of the financial account
|
|
62
|
-
sig do
|
|
63
|
-
returns(
|
|
64
|
-
T.nilable(
|
|
65
|
-
Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::TaggedSymbol
|
|
66
|
-
)
|
|
67
|
-
)
|
|
68
|
-
end
|
|
69
|
-
attr_reader :financial_account_state
|
|
70
|
-
|
|
71
|
-
sig do
|
|
72
|
-
params(
|
|
73
|
-
financial_account_state:
|
|
74
|
-
Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::OrSymbol
|
|
75
|
-
).void
|
|
76
|
-
end
|
|
77
|
-
attr_writer :financial_account_state
|
|
78
|
-
|
|
79
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
80
|
-
attr_reader :is_spend_blocked
|
|
81
|
-
|
|
82
|
-
sig { params(is_spend_blocked: T::Boolean).void }
|
|
83
|
-
attr_writer :is_spend_blocked
|
|
84
|
-
|
|
85
51
|
sig do
|
|
86
52
|
params(
|
|
87
53
|
account_token: String,
|
|
@@ -90,14 +56,7 @@ module Lithic
|
|
|
90
56
|
credit_limit: T.nilable(Integer),
|
|
91
57
|
credit_product_token: T.nilable(String),
|
|
92
58
|
external_bank_account_token: T.nilable(String),
|
|
93
|
-
tier: T.nilable(String)
|
|
94
|
-
charged_off_reason:
|
|
95
|
-
T.nilable(
|
|
96
|
-
Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason::OrSymbol
|
|
97
|
-
),
|
|
98
|
-
financial_account_state:
|
|
99
|
-
Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::OrSymbol,
|
|
100
|
-
is_spend_blocked: T::Boolean
|
|
59
|
+
tier: T.nilable(String)
|
|
101
60
|
).returns(T.attached_class)
|
|
102
61
|
end
|
|
103
62
|
def self.new(
|
|
@@ -109,12 +68,7 @@ module Lithic
|
|
|
109
68
|
credit_product_token:,
|
|
110
69
|
external_bank_account_token:,
|
|
111
70
|
# Tier assigned to the financial account
|
|
112
|
-
tier
|
|
113
|
-
# Reason for the financial account being marked as Charged Off
|
|
114
|
-
charged_off_reason: nil,
|
|
115
|
-
# State of the financial account
|
|
116
|
-
financial_account_state: nil,
|
|
117
|
-
is_spend_blocked: nil
|
|
71
|
+
tier:
|
|
118
72
|
)
|
|
119
73
|
end
|
|
120
74
|
|
|
@@ -127,14 +81,7 @@ module Lithic
|
|
|
127
81
|
credit_limit: T.nilable(Integer),
|
|
128
82
|
credit_product_token: T.nilable(String),
|
|
129
83
|
external_bank_account_token: T.nilable(String),
|
|
130
|
-
tier: T.nilable(String)
|
|
131
|
-
charged_off_reason:
|
|
132
|
-
T.nilable(
|
|
133
|
-
Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason::TaggedSymbol
|
|
134
|
-
),
|
|
135
|
-
financial_account_state:
|
|
136
|
-
Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::TaggedSymbol,
|
|
137
|
-
is_spend_blocked: T::Boolean
|
|
84
|
+
tier: T.nilable(String)
|
|
138
85
|
}
|
|
139
86
|
)
|
|
140
87
|
end
|
|
@@ -169,86 +116,6 @@ module Lithic
|
|
|
169
116
|
def to_hash
|
|
170
117
|
end
|
|
171
118
|
end
|
|
172
|
-
|
|
173
|
-
# Reason for the financial account being marked as Charged Off
|
|
174
|
-
module ChargedOffReason
|
|
175
|
-
extend Lithic::Internal::Type::Enum
|
|
176
|
-
|
|
177
|
-
TaggedSymbol =
|
|
178
|
-
T.type_alias do
|
|
179
|
-
T.all(
|
|
180
|
-
Symbol,
|
|
181
|
-
Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason
|
|
182
|
-
)
|
|
183
|
-
end
|
|
184
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
185
|
-
|
|
186
|
-
DELINQUENT =
|
|
187
|
-
T.let(
|
|
188
|
-
:DELINQUENT,
|
|
189
|
-
Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason::TaggedSymbol
|
|
190
|
-
)
|
|
191
|
-
FRAUD =
|
|
192
|
-
T.let(
|
|
193
|
-
:FRAUD,
|
|
194
|
-
Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason::TaggedSymbol
|
|
195
|
-
)
|
|
196
|
-
|
|
197
|
-
sig do
|
|
198
|
-
override.returns(
|
|
199
|
-
T::Array[
|
|
200
|
-
Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason::TaggedSymbol
|
|
201
|
-
]
|
|
202
|
-
)
|
|
203
|
-
end
|
|
204
|
-
def self.values
|
|
205
|
-
end
|
|
206
|
-
end
|
|
207
|
-
|
|
208
|
-
# State of the financial account
|
|
209
|
-
module FinancialAccountState
|
|
210
|
-
extend Lithic::Internal::Type::Enum
|
|
211
|
-
|
|
212
|
-
TaggedSymbol =
|
|
213
|
-
T.type_alias do
|
|
214
|
-
T.all(
|
|
215
|
-
Symbol,
|
|
216
|
-
Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState
|
|
217
|
-
)
|
|
218
|
-
end
|
|
219
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
220
|
-
|
|
221
|
-
PENDING =
|
|
222
|
-
T.let(
|
|
223
|
-
:PENDING,
|
|
224
|
-
Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::TaggedSymbol
|
|
225
|
-
)
|
|
226
|
-
CURRENT =
|
|
227
|
-
T.let(
|
|
228
|
-
:CURRENT,
|
|
229
|
-
Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::TaggedSymbol
|
|
230
|
-
)
|
|
231
|
-
DELINQUENT =
|
|
232
|
-
T.let(
|
|
233
|
-
:DELINQUENT,
|
|
234
|
-
Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::TaggedSymbol
|
|
235
|
-
)
|
|
236
|
-
CHARGED_OFF =
|
|
237
|
-
T.let(
|
|
238
|
-
:CHARGED_OFF,
|
|
239
|
-
Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::TaggedSymbol
|
|
240
|
-
)
|
|
241
|
-
|
|
242
|
-
sig do
|
|
243
|
-
override.returns(
|
|
244
|
-
T::Array[
|
|
245
|
-
Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::TaggedSymbol
|
|
246
|
-
]
|
|
247
|
-
)
|
|
248
|
-
end
|
|
249
|
-
def self.values
|
|
250
|
-
end
|
|
251
|
-
end
|
|
252
119
|
end
|
|
253
120
|
end
|
|
254
121
|
end
|