lithic 0.1.0 → 0.3.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 +51 -0
- data/README.md +36 -1
- data/lib/lithic/client.rb +9 -10
- data/lib/lithic/errors.rb +15 -0
- data/lib/lithic/internal/transport/pooled_net_requester.rb +12 -10
- data/lib/lithic/internal/util.rb +7 -2
- data/lib/lithic/models/account_holder_created_webhook_event.rb +75 -0
- data/lib/lithic/models/account_holder_document_updated_webhook_event.rb +191 -0
- data/lib/lithic/models/account_holder_updated_webhook_event.rb +702 -0
- data/lib/lithic/models/account_holder_verification_webhook_event.rb +69 -0
- data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +5 -0
- data/lib/lithic/models/auth_rules_backtest_report_created_webhook_event.rb +16 -0
- data/lib/lithic/models/balance_updated_webhook_event.rb +23 -0
- data/lib/lithic/models/book_transfer_retry_params.rb +26 -0
- data/lib/lithic/models/book_transfer_transaction_created_webhook_event.rb +18 -0
- data/lib/lithic/models/book_transfer_transaction_updated_webhook_event.rb +18 -0
- data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +1032 -0
- data/lib/lithic/models/card_converted_webhook_event.rb +24 -0
- data/lib/lithic/models/card_created_webhook_event.rb +32 -0
- data/lib/lithic/models/card_reissued_webhook_event.rb +24 -0
- data/lib/lithic/models/card_renewed_webhook_event.rb +56 -0
- data/lib/lithic/models/card_shipped_webhook_event.rb +70 -0
- data/lib/lithic/models/card_transaction_enhanced_data_created_webhook_event.rb +16 -0
- data/lib/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/card_transaction_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rb +253 -0
- data/lib/lithic/models/digital_wallet_tokenization_result_webhook_event.rb +145 -0
- data/lib/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event.rb +100 -0
- data/lib/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event.rb +108 -0
- data/lib/lithic/models/digital_wallet_tokenization_updated_webhook_event.rb +47 -0
- data/lib/lithic/models/dispute_evidence_upload_failed_webhook_event.rb +18 -0
- data/lib/lithic/models/dispute_transaction_created_webhook_event.rb +18 -0
- data/lib/lithic/models/dispute_transaction_updated_webhook_event.rb +18 -0
- data/lib/lithic/models/dispute_updated_webhook_event.rb +18 -0
- data/lib/lithic/models/external_bank_account_created_webhook_event.rb +16 -0
- data/lib/lithic/models/external_bank_account_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/external_payment_create_params.rb +15 -1
- data/lib/lithic/models/external_payment_created_webhook_event.rb +16 -0
- data/lib/lithic/models/external_payment_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/financial_account.rb +33 -25
- data/lib/lithic/models/financial_account_created_webhook_event.rb +16 -0
- data/lib/lithic/models/financial_account_update_status_params.rb +9 -1
- data/lib/lithic/models/financial_account_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/financial_accounts/loan_tape.rb +52 -3
- data/lib/lithic/models/funding_event_created_webhook_event.rb +16 -0
- data/lib/lithic/models/internal_transaction_created_webhook_event.rb +16 -0
- data/lib/lithic/models/internal_transaction_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/loan_tape_created_webhook_event.rb +16 -0
- data/lib/lithic/models/loan_tape_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/management_operation_create_params.rb +6 -1
- data/lib/lithic/models/management_operation_created_webhook_event.rb +16 -0
- data/lib/lithic/models/management_operation_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/network_total_created_webhook_event.rb +16 -0
- data/lib/lithic/models/network_total_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/parsed_webhook_event.rb +817 -0
- data/lib/lithic/models/payment.rb +10 -1
- data/lib/lithic/models/payment_transaction_created_webhook_event.rb +18 -0
- data/lib/lithic/models/payment_transaction_updated_webhook_event.rb +18 -0
- data/lib/lithic/models/settlement_report_updated_webhook_event.rb +16 -0
- data/lib/lithic/models/statements_created_webhook_event.rb +16 -0
- data/lib/lithic/models/three_ds_authentication_approval_request_webhook_event.rb +17 -0
- data/lib/lithic/models/three_ds_authentication_challenge_webhook_event.rb +89 -0
- data/lib/lithic/models/three_ds_authentication_created_webhook_event.rb +18 -0
- data/lib/lithic/models/three_ds_authentication_updated_webhook_event.rb +18 -0
- data/lib/lithic/models/tokenization_approval_request_webhook_event.rb +249 -0
- data/lib/lithic/models/tokenization_decisioning_request_webhook_event.rb +159 -0
- data/lib/lithic/models/tokenization_result_webhook_event.rb +141 -0
- data/lib/lithic/models/tokenization_two_factor_authentication_code_sent_webhook_event.rb +100 -0
- data/lib/lithic/models/tokenization_two_factor_authentication_code_webhook_event.rb +108 -0
- data/lib/lithic/models/tokenization_updated_webhook_event.rb +47 -0
- data/lib/lithic/models/transaction.rb +2 -0
- data/lib/lithic/models/transfer_limit_list_params.rb +22 -0
- data/lib/lithic/models/transfer_limits_response.rb +274 -0
- data/lib/lithic/models/webhook_parsed_params.rb +14 -0
- data/lib/lithic/models.rb +130 -4
- data/lib/lithic/resources/book_transfers.rb +27 -0
- data/lib/lithic/resources/cards.rb +1 -5
- data/lib/lithic/resources/external_payments.rb +13 -1
- data/lib/lithic/resources/financial_accounts.rb +3 -1
- data/lib/lithic/resources/management_operations.rb +4 -1
- data/lib/lithic/resources/transfer_limits.rb +37 -0
- data/lib/lithic/resources/webhooks.rb +88 -0
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +79 -23
- data/rbi/lithic/client.rbi +6 -3
- data/rbi/lithic/models/account_holder_created_webhook_event.rbi +149 -0
- data/rbi/lithic/models/account_holder_document_updated_webhook_event.rbi +479 -0
- data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +1274 -0
- data/rbi/lithic/models/account_holder_verification_webhook_event.rbi +143 -0
- data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +11 -0
- data/rbi/lithic/models/auth_rules_backtest_report_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/balance_updated_webhook_event.rbi +43 -0
- data/rbi/lithic/models/book_transfer_retry_params.rbi +42 -0
- data/rbi/lithic/models/book_transfer_transaction_created_webhook_event.rbi +31 -0
- data/rbi/lithic/models/book_transfer_transaction_updated_webhook_event.rbi +31 -0
- data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +2367 -0
- data/rbi/lithic/models/card_converted_webhook_event.rbi +35 -0
- data/rbi/lithic/models/card_created_webhook_event.rbi +53 -0
- data/rbi/lithic/models/card_reissued_webhook_event.rbi +38 -0
- data/rbi/lithic/models/card_renewed_webhook_event.rbi +92 -0
- data/rbi/lithic/models/card_shipped_webhook_event.rbi +150 -0
- data/rbi/lithic/models/card_transaction_enhanced_data_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/card_transaction_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/digital_wallet_token_metadata.rbi +2 -2
- data/rbi/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbi +548 -0
- data/rbi/lithic/models/digital_wallet_tokenization_result_webhook_event.rbi +295 -0
- data/rbi/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event.rbi +186 -0
- data/rbi/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event.rbi +194 -0
- data/rbi/lithic/models/digital_wallet_tokenization_updated_webhook_event.rbi +73 -0
- data/rbi/lithic/models/dispute_evidence_upload_failed_webhook_event.rbi +31 -0
- data/rbi/lithic/models/dispute_transaction_created_webhook_event.rbi +31 -0
- data/rbi/lithic/models/dispute_transaction_updated_webhook_event.rbi +31 -0
- data/rbi/lithic/models/dispute_updated_webhook_event.rbi +28 -0
- data/rbi/lithic/models/external_bank_account_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/external_bank_account_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/external_payment_create_params.rbi +4 -0
- data/rbi/lithic/models/external_payment_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/external_payment_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/financial_account.rbi +62 -54
- data/rbi/lithic/models/financial_account_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/financial_account_update_status_params.rbi +11 -0
- data/rbi/lithic/models/financial_account_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +93 -4
- data/rbi/lithic/models/funding_event_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/internal_transaction.rbi +15 -10
- data/rbi/lithic/models/internal_transaction_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/internal_transaction_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/loan_tape_created_webhook_event.rbi +27 -0
- data/rbi/lithic/models/loan_tape_updated_webhook_event.rbi +27 -0
- data/rbi/lithic/models/management_operation_create_params.rbi +4 -0
- data/rbi/lithic/models/management_operation_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/management_operation_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/network_total_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/network_total_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/parsed_webhook_event.rbi +1310 -0
- data/rbi/lithic/models/payment.rbi +13 -3
- data/rbi/lithic/models/payment_transaction_created_webhook_event.rbi +31 -0
- data/rbi/lithic/models/payment_transaction_updated_webhook_event.rbi +31 -0
- data/rbi/lithic/models/settlement_report_updated_webhook_event.rbi +30 -0
- data/rbi/lithic/models/statements_created_webhook_event.rbi +30 -0
- data/rbi/lithic/models/three_ds_authentication_approval_request_webhook_event.rbi +27 -0
- data/rbi/lithic/models/three_ds_authentication_challenge_webhook_event.rbi +175 -0
- data/rbi/lithic/models/three_ds_authentication_created_webhook_event.rbi +31 -0
- data/rbi/lithic/models/three_ds_authentication_updated_webhook_event.rbi +31 -0
- data/rbi/lithic/models/tokenization_approval_request_webhook_event.rbi +548 -0
- data/rbi/lithic/models/tokenization_decisioning_request_webhook_event.rbi +333 -0
- data/rbi/lithic/models/tokenization_result_webhook_event.rbi +295 -0
- data/rbi/lithic/models/tokenization_two_factor_authentication_code_sent_webhook_event.rbi +186 -0
- data/rbi/lithic/models/tokenization_two_factor_authentication_code_webhook_event.rbi +194 -0
- data/rbi/lithic/models/tokenization_updated_webhook_event.rbi +73 -0
- data/rbi/lithic/models/transaction.rbi +10 -0
- data/rbi/lithic/models/transfer_limit_list_params.rbi +43 -0
- data/rbi/lithic/models/transfer_limits_response.rbi +604 -0
- data/rbi/lithic/models/webhook_parsed_params.rbi +27 -0
- data/rbi/lithic/models.rbi +165 -4
- data/rbi/lithic/resources/book_transfers.rbi +18 -0
- data/rbi/lithic/resources/cards.rbi +1 -4
- data/rbi/lithic/resources/external_payments.rbi +2 -0
- data/rbi/lithic/resources/financial_accounts.rbi +3 -0
- data/rbi/lithic/resources/management_operations.rbi +2 -0
- data/rbi/lithic/resources/transfer_limits.rbi +28 -0
- data/rbi/lithic/resources/webhooks.rbi +36 -0
- data/sig/lithic/client.rbs +4 -2
- data/sig/lithic/models/account_holder_created_webhook_event.rbs +77 -0
- data/sig/lithic/models/account_holder_document_updated_webhook_event.rbs +219 -0
- data/sig/lithic/models/account_holder_updated_webhook_event.rbs +587 -0
- data/sig/lithic/models/account_holder_verification_webhook_event.rbs +69 -0
- data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +2 -0
- data/sig/lithic/models/auth_rules_backtest_report_created_webhook_event.rbs +20 -0
- data/sig/lithic/models/balance_updated_webhook_event.rbs +25 -0
- data/sig/lithic/models/book_transfer_retry_params.rbs +23 -0
- data/sig/lithic/models/book_transfer_transaction_created_webhook_event.rbs +20 -0
- data/sig/lithic/models/book_transfer_transaction_updated_webhook_event.rbs +20 -0
- data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +886 -0
- data/sig/lithic/models/card_converted_webhook_event.rbs +19 -0
- data/sig/lithic/models/card_created_webhook_event.rbs +30 -0
- data/sig/lithic/models/card_reissued_webhook_event.rbs +21 -0
- data/sig/lithic/models/card_renewed_webhook_event.rbs +55 -0
- data/sig/lithic/models/card_shipped_webhook_event.rbs +71 -0
- data/sig/lithic/models/card_transaction_enhanced_data_created_webhook_event.rbs +20 -0
- data/sig/lithic/models/card_transaction_enhanced_data_updated_webhook_event.rbs +20 -0
- data/sig/lithic/models/card_transaction_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbs +223 -0
- data/sig/lithic/models/digital_wallet_tokenization_result_webhook_event.rbs +133 -0
- data/sig/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_sent_webhook_event.rbs +78 -0
- data/sig/lithic/models/digital_wallet_tokenization_two_factor_authentication_code_webhook_event.rbs +83 -0
- data/sig/lithic/models/digital_wallet_tokenization_updated_webhook_event.rbs +40 -0
- data/sig/lithic/models/dispute_evidence_upload_failed_webhook_event.rbs +18 -0
- data/sig/lithic/models/dispute_transaction_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/dispute_transaction_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/dispute_updated_webhook_event.rbs +15 -0
- data/sig/lithic/models/external_bank_account_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/external_bank_account_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/external_payment_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/external_payment_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/financial_account.rbs +32 -27
- data/sig/lithic/models/financial_account_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/financial_account_update_status_params.rbs +8 -1
- data/sig/lithic/models/financial_account_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +46 -4
- data/sig/lithic/models/funding_event_created_webhook_event.rbs +16 -0
- data/sig/lithic/models/internal_transaction_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/internal_transaction_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/loan_tape_created_webhook_event.rbs +15 -0
- data/sig/lithic/models/loan_tape_updated_webhook_event.rbs +15 -0
- data/sig/lithic/models/management_operation_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/management_operation_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/network_total_created_webhook_event.rbs +16 -0
- data/sig/lithic/models/network_total_updated_webhook_event.rbs +16 -0
- data/sig/lithic/models/parsed_webhook_event.rbs +641 -0
- data/sig/lithic/models/payment.rbs +10 -3
- data/sig/lithic/models/payment_transaction_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/payment_transaction_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/settlement_report_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/statements_created_webhook_event.rbs +16 -0
- data/sig/lithic/models/three_ds_authentication_approval_request_webhook_event.rbs +22 -0
- data/sig/lithic/models/three_ds_authentication_challenge_webhook_event.rbs +72 -0
- data/sig/lithic/models/three_ds_authentication_created_webhook_event.rbs +18 -0
- data/sig/lithic/models/three_ds_authentication_updated_webhook_event.rbs +18 -0
- data/sig/lithic/models/tokenization_approval_request_webhook_event.rbs +223 -0
- data/sig/lithic/models/tokenization_decisioning_request_webhook_event.rbs +134 -0
- data/sig/lithic/models/tokenization_result_webhook_event.rbs +133 -0
- data/sig/lithic/models/tokenization_two_factor_authentication_code_sent_webhook_event.rbs +78 -0
- data/sig/lithic/models/tokenization_two_factor_authentication_code_webhook_event.rbs +83 -0
- data/sig/lithic/models/tokenization_updated_webhook_event.rbs +40 -0
- data/sig/lithic/models/transaction.rbs +4 -0
- data/sig/lithic/models/transfer_limit_list_params.rbs +22 -0
- data/sig/lithic/models/transfer_limits_response.rbs +232 -0
- data/sig/lithic/models/webhook_parsed_params.rbs +15 -0
- data/sig/lithic/models.rbs +120 -4
- data/sig/lithic/resources/book_transfers.rbs +6 -0
- data/sig/lithic/resources/cards.rbs +0 -2
- data/sig/lithic/resources/financial_accounts.rbs +1 -0
- data/sig/lithic/resources/transfer_limits.rbs +12 -0
- data/sig/lithic/resources/webhooks.rbs +21 -0
- metadata +188 -20
- data/lib/lithic/models/aggregate_balance.rb +0 -113
- data/lib/lithic/models/aggregate_balance_list_params.rb +0 -35
- data/lib/lithic/models/cards/aggregate_balance_list_params.rb +0 -32
- data/lib/lithic/models/cards/aggregate_balance_list_response.rb +0 -92
- data/lib/lithic/resources/aggregate_balances.rb +0 -38
- data/lib/lithic/resources/cards/aggregate_balances.rb +0 -41
- data/rbi/lithic/models/aggregate_balance.rbi +0 -164
- data/rbi/lithic/models/aggregate_balance_list_params.rbi +0 -104
- data/rbi/lithic/models/cards/aggregate_balance_list_params.rbi +0 -62
- data/rbi/lithic/models/cards/aggregate_balance_list_response.rbi +0 -115
- data/rbi/lithic/resources/aggregate_balances.rbi +0 -28
- data/rbi/lithic/resources/cards/aggregate_balances.rbi +0 -35
- data/sig/lithic/models/aggregate_balance.rbs +0 -78
- data/sig/lithic/models/aggregate_balance_list_params.rbs +0 -43
- data/sig/lithic/models/cards/aggregate_balance_list_params.rbs +0 -34
- data/sig/lithic/models/cards/aggregate_balance_list_response.rbs +0 -62
- data/sig/lithic/resources/aggregate_balances.rbs +0 -12
- data/sig/lithic/resources/cards/aggregate_balances.rbs +0 -15
|
@@ -109,13 +109,13 @@ module Lithic
|
|
|
109
109
|
end
|
|
110
110
|
attr_writer :minimum_payment_balance
|
|
111
111
|
|
|
112
|
-
sig { returns(Lithic::FinancialAccounts::
|
|
112
|
+
sig { returns(Lithic::FinancialAccounts::LoanTape::PaymentAllocation) }
|
|
113
113
|
attr_reader :payment_allocation
|
|
114
114
|
|
|
115
115
|
sig do
|
|
116
116
|
params(
|
|
117
117
|
payment_allocation:
|
|
118
|
-
Lithic::FinancialAccounts::
|
|
118
|
+
Lithic::FinancialAccounts::LoanTape::PaymentAllocation::OrHash
|
|
119
119
|
).void
|
|
120
120
|
end
|
|
121
121
|
attr_writer :payment_allocation
|
|
@@ -183,7 +183,7 @@ module Lithic
|
|
|
183
183
|
minimum_payment_balance:
|
|
184
184
|
Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance::OrHash,
|
|
185
185
|
payment_allocation:
|
|
186
|
-
Lithic::FinancialAccounts::
|
|
186
|
+
Lithic::FinancialAccounts::LoanTape::PaymentAllocation::OrHash,
|
|
187
187
|
period_totals: Lithic::StatementTotals::OrHash,
|
|
188
188
|
previous_statement_balance:
|
|
189
189
|
Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance::OrHash,
|
|
@@ -257,7 +257,8 @@ module Lithic
|
|
|
257
257
|
T.nilable(Lithic::FinancialAccounts::LoanTape::InterestDetails),
|
|
258
258
|
minimum_payment_balance:
|
|
259
259
|
Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance,
|
|
260
|
-
payment_allocation:
|
|
260
|
+
payment_allocation:
|
|
261
|
+
Lithic::FinancialAccounts::LoanTape::PaymentAllocation,
|
|
261
262
|
period_totals: Lithic::StatementTotals,
|
|
262
263
|
previous_statement_balance:
|
|
263
264
|
Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance,
|
|
@@ -824,6 +825,94 @@ module Lithic
|
|
|
824
825
|
end
|
|
825
826
|
end
|
|
826
827
|
|
|
828
|
+
class PaymentAllocation < Lithic::Internal::Type::BaseModel
|
|
829
|
+
OrHash =
|
|
830
|
+
T.type_alias do
|
|
831
|
+
T.any(
|
|
832
|
+
Lithic::FinancialAccounts::LoanTape::PaymentAllocation,
|
|
833
|
+
Lithic::Internal::AnyHash
|
|
834
|
+
)
|
|
835
|
+
end
|
|
836
|
+
|
|
837
|
+
sig { returns(T.nilable(Lithic::CategoryDetails)) }
|
|
838
|
+
attr_reader :fee_details
|
|
839
|
+
|
|
840
|
+
sig do
|
|
841
|
+
params(fee_details: T.nilable(Lithic::CategoryDetails::OrHash)).void
|
|
842
|
+
end
|
|
843
|
+
attr_writer :fee_details
|
|
844
|
+
|
|
845
|
+
# Amount allocated to fees in cents
|
|
846
|
+
sig { returns(Integer) }
|
|
847
|
+
attr_accessor :fees
|
|
848
|
+
|
|
849
|
+
# Amount allocated to interest in cents
|
|
850
|
+
sig { returns(Integer) }
|
|
851
|
+
attr_accessor :interest
|
|
852
|
+
|
|
853
|
+
sig { returns(T.nilable(Lithic::CategoryDetails)) }
|
|
854
|
+
attr_reader :interest_details
|
|
855
|
+
|
|
856
|
+
sig do
|
|
857
|
+
params(
|
|
858
|
+
interest_details: T.nilable(Lithic::CategoryDetails::OrHash)
|
|
859
|
+
).void
|
|
860
|
+
end
|
|
861
|
+
attr_writer :interest_details
|
|
862
|
+
|
|
863
|
+
# Amount allocated to principal in cents
|
|
864
|
+
sig { returns(Integer) }
|
|
865
|
+
attr_accessor :principal
|
|
866
|
+
|
|
867
|
+
sig { returns(T.nilable(Lithic::CategoryDetails)) }
|
|
868
|
+
attr_reader :principal_details
|
|
869
|
+
|
|
870
|
+
sig do
|
|
871
|
+
params(
|
|
872
|
+
principal_details: T.nilable(Lithic::CategoryDetails::OrHash)
|
|
873
|
+
).void
|
|
874
|
+
end
|
|
875
|
+
attr_writer :principal_details
|
|
876
|
+
|
|
877
|
+
sig do
|
|
878
|
+
params(
|
|
879
|
+
fee_details: T.nilable(Lithic::CategoryDetails::OrHash),
|
|
880
|
+
fees: Integer,
|
|
881
|
+
interest: Integer,
|
|
882
|
+
interest_details: T.nilable(Lithic::CategoryDetails::OrHash),
|
|
883
|
+
principal: Integer,
|
|
884
|
+
principal_details: T.nilable(Lithic::CategoryDetails::OrHash)
|
|
885
|
+
).returns(T.attached_class)
|
|
886
|
+
end
|
|
887
|
+
def self.new(
|
|
888
|
+
fee_details:,
|
|
889
|
+
# Amount allocated to fees in cents
|
|
890
|
+
fees:,
|
|
891
|
+
# Amount allocated to interest in cents
|
|
892
|
+
interest:,
|
|
893
|
+
interest_details:,
|
|
894
|
+
# Amount allocated to principal in cents
|
|
895
|
+
principal:,
|
|
896
|
+
principal_details:
|
|
897
|
+
)
|
|
898
|
+
end
|
|
899
|
+
|
|
900
|
+
sig do
|
|
901
|
+
override.returns(
|
|
902
|
+
{
|
|
903
|
+
fee_details: T.nilable(Lithic::CategoryDetails),
|
|
904
|
+
fees: Integer,
|
|
905
|
+
interest: Integer,
|
|
906
|
+
interest_details: T.nilable(Lithic::CategoryDetails),
|
|
907
|
+
principal: Integer,
|
|
908
|
+
principal_details: T.nilable(Lithic::CategoryDetails)
|
|
909
|
+
}
|
|
910
|
+
)
|
|
911
|
+
end
|
|
912
|
+
def to_hash
|
|
913
|
+
end
|
|
914
|
+
end
|
|
915
|
+
|
|
827
916
|
class PreviousStatementBalance < Lithic::Internal::Type::BaseModel
|
|
828
917
|
OrHash =
|
|
829
918
|
T.type_alias do
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class FundingEventCreatedWebhookEvent < Lithic::Models::FundingEvent
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::FundingEventCreatedWebhookEvent,
|
|
10
|
+
Lithic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The type of event that occurred.
|
|
15
|
+
sig { returns(Symbol) }
|
|
16
|
+
attr_accessor :event_type
|
|
17
|
+
|
|
18
|
+
sig { params(event_type: Symbol).returns(T.attached_class) }
|
|
19
|
+
def self.new(
|
|
20
|
+
# The type of event that occurred.
|
|
21
|
+
event_type: :"funding_event.created"
|
|
22
|
+
)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ event_type: Symbol }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -11,7 +11,7 @@ module Lithic
|
|
|
11
11
|
sig { returns(String) }
|
|
12
12
|
attr_accessor :token
|
|
13
13
|
|
|
14
|
-
sig { returns(Lithic::InternalTransactionAPI::Category::
|
|
14
|
+
sig { returns(Lithic::InternalTransactionAPI::Category::TaggedSymbol) }
|
|
15
15
|
attr_accessor :category
|
|
16
16
|
|
|
17
17
|
sig { returns(Time) }
|
|
@@ -29,13 +29,13 @@ module Lithic
|
|
|
29
29
|
sig { returns(Integer) }
|
|
30
30
|
attr_accessor :pending_amount
|
|
31
31
|
|
|
32
|
-
sig { returns(Lithic::InternalTransactionAPI::Result::
|
|
32
|
+
sig { returns(Lithic::InternalTransactionAPI::Result::TaggedSymbol) }
|
|
33
33
|
attr_accessor :result
|
|
34
34
|
|
|
35
35
|
sig { returns(Integer) }
|
|
36
36
|
attr_accessor :settled_amount
|
|
37
37
|
|
|
38
|
-
sig { returns(Lithic::InternalTransactionAPI::Status::
|
|
38
|
+
sig { returns(Lithic::InternalTransactionAPI::Status::TaggedSymbol) }
|
|
39
39
|
attr_accessor :status
|
|
40
40
|
|
|
41
41
|
sig { returns(Time) }
|
|
@@ -75,15 +75,15 @@ module Lithic
|
|
|
75
75
|
override.returns(
|
|
76
76
|
{
|
|
77
77
|
token: String,
|
|
78
|
-
category: Lithic::InternalTransactionAPI::Category::
|
|
78
|
+
category: Lithic::InternalTransactionAPI::Category::TaggedSymbol,
|
|
79
79
|
created: Time,
|
|
80
80
|
currency: String,
|
|
81
81
|
descriptor: String,
|
|
82
82
|
events: T::Array[Lithic::InternalTransactionAPI::Event],
|
|
83
83
|
pending_amount: Integer,
|
|
84
|
-
result: Lithic::InternalTransactionAPI::Result::
|
|
84
|
+
result: Lithic::InternalTransactionAPI::Result::TaggedSymbol,
|
|
85
85
|
settled_amount: Integer,
|
|
86
|
-
status: Lithic::InternalTransactionAPI::Status::
|
|
86
|
+
status: Lithic::InternalTransactionAPI::Status::TaggedSymbol,
|
|
87
87
|
updated: Time
|
|
88
88
|
}
|
|
89
89
|
)
|
|
@@ -133,10 +133,14 @@ module Lithic
|
|
|
133
133
|
sig { returns(Time) }
|
|
134
134
|
attr_accessor :created
|
|
135
135
|
|
|
136
|
-
sig
|
|
136
|
+
sig do
|
|
137
|
+
returns(Lithic::InternalTransactionAPI::Event::Result::TaggedSymbol)
|
|
138
|
+
end
|
|
137
139
|
attr_accessor :result
|
|
138
140
|
|
|
139
|
-
sig
|
|
141
|
+
sig do
|
|
142
|
+
returns(Lithic::InternalTransactionAPI::Event::Type::TaggedSymbol)
|
|
143
|
+
end
|
|
140
144
|
attr_accessor :type
|
|
141
145
|
|
|
142
146
|
sig do
|
|
@@ -157,8 +161,9 @@ module Lithic
|
|
|
157
161
|
token: String,
|
|
158
162
|
amount: Integer,
|
|
159
163
|
created: Time,
|
|
160
|
-
result:
|
|
161
|
-
|
|
164
|
+
result:
|
|
165
|
+
Lithic::InternalTransactionAPI::Event::Result::TaggedSymbol,
|
|
166
|
+
type: Lithic::InternalTransactionAPI::Event::Type::TaggedSymbol
|
|
162
167
|
}
|
|
163
168
|
)
|
|
164
169
|
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class InternalTransactionCreatedWebhookEvent < Lithic::Models::InternalTransactionAPI
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::InternalTransactionCreatedWebhookEvent,
|
|
10
|
+
Lithic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The type of event that occurred.
|
|
15
|
+
sig { returns(Symbol) }
|
|
16
|
+
attr_accessor :event_type
|
|
17
|
+
|
|
18
|
+
sig { params(event_type: Symbol).returns(T.attached_class) }
|
|
19
|
+
def self.new(
|
|
20
|
+
# The type of event that occurred.
|
|
21
|
+
event_type: :"internal_transaction.created"
|
|
22
|
+
)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ event_type: Symbol }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class InternalTransactionUpdatedWebhookEvent < Lithic::Models::InternalTransactionAPI
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::InternalTransactionUpdatedWebhookEvent,
|
|
10
|
+
Lithic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The type of event that occurred.
|
|
15
|
+
sig { returns(Symbol) }
|
|
16
|
+
attr_accessor :event_type
|
|
17
|
+
|
|
18
|
+
sig { params(event_type: Symbol).returns(T.attached_class) }
|
|
19
|
+
def self.new(
|
|
20
|
+
# The type of event that occurred.
|
|
21
|
+
event_type: :"internal_transaction.updated"
|
|
22
|
+
)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ event_type: Symbol }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class LoanTapeCreatedWebhookEvent < Lithic::Models::FinancialAccounts::LoanTape
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Lithic::LoanTapeCreatedWebhookEvent, Lithic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# The type of event that occurred.
|
|
12
|
+
sig { returns(Symbol) }
|
|
13
|
+
attr_accessor :event_type
|
|
14
|
+
|
|
15
|
+
sig { params(event_type: Symbol).returns(T.attached_class) }
|
|
16
|
+
def self.new(
|
|
17
|
+
# The type of event that occurred.
|
|
18
|
+
event_type: :"loan_tape.created"
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
sig { override.returns({ event_type: Symbol }) }
|
|
23
|
+
def to_hash
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class LoanTapeUpdatedWebhookEvent < Lithic::Models::FinancialAccounts::LoanTape
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Lithic::LoanTapeUpdatedWebhookEvent, Lithic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# The type of event that occurred.
|
|
12
|
+
sig { returns(Symbol) }
|
|
13
|
+
attr_accessor :event_type
|
|
14
|
+
|
|
15
|
+
sig { params(event_type: Symbol).returns(T.attached_class) }
|
|
16
|
+
def self.new(
|
|
17
|
+
# The type of event that occurred.
|
|
18
|
+
event_type: :"loan_tape.updated"
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
sig { override.returns({ event_type: Symbol }) }
|
|
23
|
+
def to_hash
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -38,6 +38,8 @@ module Lithic
|
|
|
38
38
|
sig { returns(String) }
|
|
39
39
|
attr_accessor :financial_account_token
|
|
40
40
|
|
|
41
|
+
# Customer-provided token that will serve as an idempotency token. This token will
|
|
42
|
+
# become the transaction token.
|
|
41
43
|
sig { returns(T.nilable(String)) }
|
|
42
44
|
attr_reader :token
|
|
43
45
|
|
|
@@ -106,6 +108,8 @@ module Lithic
|
|
|
106
108
|
effective_date:,
|
|
107
109
|
event_type:,
|
|
108
110
|
financial_account_token:,
|
|
111
|
+
# Customer-provided token that will serve as an idempotency token. This token will
|
|
112
|
+
# become the transaction token.
|
|
109
113
|
token: nil,
|
|
110
114
|
memo: nil,
|
|
111
115
|
# What to do if the financial account is closed when posting an operation
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class ManagementOperationCreatedWebhookEvent < Lithic::Models::ManagementOperationTransaction
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::ManagementOperationCreatedWebhookEvent,
|
|
10
|
+
Lithic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The type of event that occurred.
|
|
15
|
+
sig { returns(Symbol) }
|
|
16
|
+
attr_accessor :event_type
|
|
17
|
+
|
|
18
|
+
sig { params(event_type: Symbol).returns(T.attached_class) }
|
|
19
|
+
def self.new(
|
|
20
|
+
# The type of event that occurred.
|
|
21
|
+
event_type: :"management_operation.created"
|
|
22
|
+
)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ event_type: Symbol }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class ManagementOperationUpdatedWebhookEvent < Lithic::Models::ManagementOperationTransaction
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::ManagementOperationUpdatedWebhookEvent,
|
|
10
|
+
Lithic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The type of event that occurred.
|
|
15
|
+
sig { returns(Symbol) }
|
|
16
|
+
attr_accessor :event_type
|
|
17
|
+
|
|
18
|
+
sig { params(event_type: Symbol).returns(T.attached_class) }
|
|
19
|
+
def self.new(
|
|
20
|
+
# The type of event that occurred.
|
|
21
|
+
event_type: :"management_operation.updated"
|
|
22
|
+
)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ event_type: Symbol }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class NetworkTotalCreatedWebhookEvent < Lithic::Models::NetworkTotal
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::NetworkTotalCreatedWebhookEvent,
|
|
10
|
+
Lithic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The type of event that occurred.
|
|
15
|
+
sig { returns(Symbol) }
|
|
16
|
+
attr_accessor :event_type
|
|
17
|
+
|
|
18
|
+
sig { params(event_type: Symbol).returns(T.attached_class) }
|
|
19
|
+
def self.new(
|
|
20
|
+
# The type of event that occurred.
|
|
21
|
+
event_type: :"network_total.created"
|
|
22
|
+
)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ event_type: Symbol }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class NetworkTotalUpdatedWebhookEvent < Lithic::Models::NetworkTotal
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::NetworkTotalUpdatedWebhookEvent,
|
|
10
|
+
Lithic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The type of event that occurred.
|
|
15
|
+
sig { returns(Symbol) }
|
|
16
|
+
attr_accessor :event_type
|
|
17
|
+
|
|
18
|
+
sig { params(event_type: Symbol).returns(T.attached_class) }
|
|
19
|
+
def self.new(
|
|
20
|
+
# The type of event that occurred.
|
|
21
|
+
event_type: :"network_total.updated"
|
|
22
|
+
)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ event_type: Symbol }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|