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
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Lithic
|
|
4
|
-
module Models
|
|
5
|
-
module Cards
|
|
6
|
-
class AggregateBalanceListResponse < Lithic::Internal::Type::BaseModel
|
|
7
|
-
OrHash =
|
|
8
|
-
T.type_alias do
|
|
9
|
-
T.any(
|
|
10
|
-
Lithic::Models::Cards::AggregateBalanceListResponse,
|
|
11
|
-
Lithic::Internal::AnyHash
|
|
12
|
-
)
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
# Funds available for spend in the currency's smallest unit (e.g., cents for USD)
|
|
16
|
-
sig { returns(Integer) }
|
|
17
|
-
attr_accessor :available_amount
|
|
18
|
-
|
|
19
|
-
# Date and time for when the balance was first created.
|
|
20
|
-
sig { returns(Time) }
|
|
21
|
-
attr_accessor :created
|
|
22
|
-
|
|
23
|
-
# 3-character alphabetic ISO 4217 code for the local currency of the balance.
|
|
24
|
-
sig { returns(String) }
|
|
25
|
-
attr_accessor :currency
|
|
26
|
-
|
|
27
|
-
# Globally unique identifier for the card that had its balance updated most
|
|
28
|
-
# recently
|
|
29
|
-
sig { returns(String) }
|
|
30
|
-
attr_accessor :last_card_token
|
|
31
|
-
|
|
32
|
-
# Globally unique identifier for the last transaction event that impacted this
|
|
33
|
-
# balance
|
|
34
|
-
sig { returns(String) }
|
|
35
|
-
attr_accessor :last_transaction_event_token
|
|
36
|
-
|
|
37
|
-
# Globally unique identifier for the last transaction that impacted this balance
|
|
38
|
-
sig { returns(String) }
|
|
39
|
-
attr_accessor :last_transaction_token
|
|
40
|
-
|
|
41
|
-
# Funds not available for spend due to card authorizations or pending ACH release.
|
|
42
|
-
# Shown in the currency's smallest unit (e.g., cents for USD)
|
|
43
|
-
sig { returns(Integer) }
|
|
44
|
-
attr_accessor :pending_amount
|
|
45
|
-
|
|
46
|
-
# The sum of available and pending balance in the currency's smallest unit (e.g.,
|
|
47
|
-
# cents for USD)
|
|
48
|
-
sig { returns(Integer) }
|
|
49
|
-
attr_accessor :total_amount
|
|
50
|
-
|
|
51
|
-
# Date and time for when the balance was last updated.
|
|
52
|
-
sig { returns(Time) }
|
|
53
|
-
attr_accessor :updated
|
|
54
|
-
|
|
55
|
-
# Card Aggregate Balance across all end-user accounts
|
|
56
|
-
sig do
|
|
57
|
-
params(
|
|
58
|
-
available_amount: Integer,
|
|
59
|
-
created: Time,
|
|
60
|
-
currency: String,
|
|
61
|
-
last_card_token: String,
|
|
62
|
-
last_transaction_event_token: String,
|
|
63
|
-
last_transaction_token: String,
|
|
64
|
-
pending_amount: Integer,
|
|
65
|
-
total_amount: Integer,
|
|
66
|
-
updated: Time
|
|
67
|
-
).returns(T.attached_class)
|
|
68
|
-
end
|
|
69
|
-
def self.new(
|
|
70
|
-
# Funds available for spend in the currency's smallest unit (e.g., cents for USD)
|
|
71
|
-
available_amount:,
|
|
72
|
-
# Date and time for when the balance was first created.
|
|
73
|
-
created:,
|
|
74
|
-
# 3-character alphabetic ISO 4217 code for the local currency of the balance.
|
|
75
|
-
currency:,
|
|
76
|
-
# Globally unique identifier for the card that had its balance updated most
|
|
77
|
-
# recently
|
|
78
|
-
last_card_token:,
|
|
79
|
-
# Globally unique identifier for the last transaction event that impacted this
|
|
80
|
-
# balance
|
|
81
|
-
last_transaction_event_token:,
|
|
82
|
-
# Globally unique identifier for the last transaction that impacted this balance
|
|
83
|
-
last_transaction_token:,
|
|
84
|
-
# Funds not available for spend due to card authorizations or pending ACH release.
|
|
85
|
-
# Shown in the currency's smallest unit (e.g., cents for USD)
|
|
86
|
-
pending_amount:,
|
|
87
|
-
# The sum of available and pending balance in the currency's smallest unit (e.g.,
|
|
88
|
-
# cents for USD)
|
|
89
|
-
total_amount:,
|
|
90
|
-
# Date and time for when the balance was last updated.
|
|
91
|
-
updated:
|
|
92
|
-
)
|
|
93
|
-
end
|
|
94
|
-
|
|
95
|
-
sig do
|
|
96
|
-
override.returns(
|
|
97
|
-
{
|
|
98
|
-
available_amount: Integer,
|
|
99
|
-
created: Time,
|
|
100
|
-
currency: String,
|
|
101
|
-
last_card_token: String,
|
|
102
|
-
last_transaction_event_token: String,
|
|
103
|
-
last_transaction_token: String,
|
|
104
|
-
pending_amount: Integer,
|
|
105
|
-
total_amount: Integer,
|
|
106
|
-
updated: Time
|
|
107
|
-
}
|
|
108
|
-
)
|
|
109
|
-
end
|
|
110
|
-
def to_hash
|
|
111
|
-
end
|
|
112
|
-
end
|
|
113
|
-
end
|
|
114
|
-
end
|
|
115
|
-
end
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Lithic
|
|
4
|
-
module Resources
|
|
5
|
-
class AggregateBalances
|
|
6
|
-
# Get the aggregated balance across all end-user accounts by financial account
|
|
7
|
-
# type
|
|
8
|
-
sig do
|
|
9
|
-
params(
|
|
10
|
-
financial_account_type:
|
|
11
|
-
Lithic::AggregateBalanceListParams::FinancialAccountType::OrSymbol,
|
|
12
|
-
request_options: Lithic::RequestOptions::OrHash
|
|
13
|
-
).returns(Lithic::Internal::SinglePage[Lithic::AggregateBalance])
|
|
14
|
-
end
|
|
15
|
-
def list(
|
|
16
|
-
# Get the aggregate balance for a given Financial Account type.
|
|
17
|
-
financial_account_type: nil,
|
|
18
|
-
request_options: {}
|
|
19
|
-
)
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
# @api private
|
|
23
|
-
sig { params(client: Lithic::Client).returns(T.attached_class) }
|
|
24
|
-
def self.new(client:)
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
end
|
|
28
|
-
end
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Lithic
|
|
4
|
-
module Resources
|
|
5
|
-
class Cards
|
|
6
|
-
class AggregateBalances
|
|
7
|
-
# Get the aggregated card balance across all end-user accounts.
|
|
8
|
-
sig do
|
|
9
|
-
params(
|
|
10
|
-
account_token: String,
|
|
11
|
-
business_account_token: String,
|
|
12
|
-
request_options: Lithic::RequestOptions::OrHash
|
|
13
|
-
).returns(
|
|
14
|
-
Lithic::Internal::SinglePage[
|
|
15
|
-
Lithic::Models::Cards::AggregateBalanceListResponse
|
|
16
|
-
]
|
|
17
|
-
)
|
|
18
|
-
end
|
|
19
|
-
def list(
|
|
20
|
-
# Cardholder to retrieve aggregate balances for.
|
|
21
|
-
account_token: nil,
|
|
22
|
-
# Business to retrieve aggregate balances for.
|
|
23
|
-
business_account_token: nil,
|
|
24
|
-
request_options: {}
|
|
25
|
-
)
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
# @api private
|
|
29
|
-
sig { params(client: Lithic::Client).returns(T.attached_class) }
|
|
30
|
-
def self.new(client:)
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
end
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
module Lithic
|
|
2
|
-
module Models
|
|
3
|
-
type aggregate_balance =
|
|
4
|
-
{
|
|
5
|
-
available_amount: Integer,
|
|
6
|
-
created: Time,
|
|
7
|
-
currency: String,
|
|
8
|
-
financial_account_type: Lithic::Models::AggregateBalance::financial_account_type,
|
|
9
|
-
last_financial_account_token: String,
|
|
10
|
-
last_transaction_event_token: String,
|
|
11
|
-
last_transaction_token: String,
|
|
12
|
-
pending_amount: Integer,
|
|
13
|
-
total_amount: Integer,
|
|
14
|
-
updated: Time
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
class AggregateBalance < Lithic::Internal::Type::BaseModel
|
|
18
|
-
attr_accessor available_amount: Integer
|
|
19
|
-
|
|
20
|
-
attr_accessor created: Time
|
|
21
|
-
|
|
22
|
-
attr_accessor currency: String
|
|
23
|
-
|
|
24
|
-
attr_accessor financial_account_type: Lithic::Models::AggregateBalance::financial_account_type
|
|
25
|
-
|
|
26
|
-
attr_accessor last_financial_account_token: String
|
|
27
|
-
|
|
28
|
-
attr_accessor last_transaction_event_token: String
|
|
29
|
-
|
|
30
|
-
attr_accessor last_transaction_token: String
|
|
31
|
-
|
|
32
|
-
attr_accessor pending_amount: Integer
|
|
33
|
-
|
|
34
|
-
attr_accessor total_amount: Integer
|
|
35
|
-
|
|
36
|
-
attr_accessor updated: Time
|
|
37
|
-
|
|
38
|
-
def initialize: (
|
|
39
|
-
available_amount: Integer,
|
|
40
|
-
created: Time,
|
|
41
|
-
currency: String,
|
|
42
|
-
financial_account_type: Lithic::Models::AggregateBalance::financial_account_type,
|
|
43
|
-
last_financial_account_token: String,
|
|
44
|
-
last_transaction_event_token: String,
|
|
45
|
-
last_transaction_token: String,
|
|
46
|
-
pending_amount: Integer,
|
|
47
|
-
total_amount: Integer,
|
|
48
|
-
updated: Time
|
|
49
|
-
) -> void
|
|
50
|
-
|
|
51
|
-
def to_hash: -> {
|
|
52
|
-
available_amount: Integer,
|
|
53
|
-
created: Time,
|
|
54
|
-
currency: String,
|
|
55
|
-
financial_account_type: Lithic::Models::AggregateBalance::financial_account_type,
|
|
56
|
-
last_financial_account_token: String,
|
|
57
|
-
last_transaction_event_token: String,
|
|
58
|
-
last_transaction_token: String,
|
|
59
|
-
pending_amount: Integer,
|
|
60
|
-
total_amount: Integer,
|
|
61
|
-
updated: Time
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
type financial_account_type = :ISSUING | :OPERATING | :RESERVE | :SECURITY
|
|
65
|
-
|
|
66
|
-
module FinancialAccountType
|
|
67
|
-
extend Lithic::Internal::Type::Enum
|
|
68
|
-
|
|
69
|
-
ISSUING: :ISSUING
|
|
70
|
-
OPERATING: :OPERATING
|
|
71
|
-
RESERVE: :RESERVE
|
|
72
|
-
SECURITY: :SECURITY
|
|
73
|
-
|
|
74
|
-
def self?.values: -> ::Array[Lithic::Models::AggregateBalance::financial_account_type]
|
|
75
|
-
end
|
|
76
|
-
end
|
|
77
|
-
end
|
|
78
|
-
end
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
module Lithic
|
|
2
|
-
module Models
|
|
3
|
-
type aggregate_balance_list_params =
|
|
4
|
-
{
|
|
5
|
-
financial_account_type: Lithic::Models::AggregateBalanceListParams::financial_account_type
|
|
6
|
-
}
|
|
7
|
-
& Lithic::Internal::Type::request_parameters
|
|
8
|
-
|
|
9
|
-
class AggregateBalanceListParams < Lithic::Internal::Type::BaseModel
|
|
10
|
-
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
11
|
-
include Lithic::Internal::Type::RequestParameters
|
|
12
|
-
|
|
13
|
-
attr_reader financial_account_type: Lithic::Models::AggregateBalanceListParams::financial_account_type?
|
|
14
|
-
|
|
15
|
-
def financial_account_type=: (
|
|
16
|
-
Lithic::Models::AggregateBalanceListParams::financial_account_type
|
|
17
|
-
) -> Lithic::Models::AggregateBalanceListParams::financial_account_type
|
|
18
|
-
|
|
19
|
-
def initialize: (
|
|
20
|
-
?financial_account_type: Lithic::Models::AggregateBalanceListParams::financial_account_type,
|
|
21
|
-
?request_options: Lithic::request_opts
|
|
22
|
-
) -> void
|
|
23
|
-
|
|
24
|
-
def to_hash: -> {
|
|
25
|
-
financial_account_type: Lithic::Models::AggregateBalanceListParams::financial_account_type,
|
|
26
|
-
request_options: Lithic::RequestOptions
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
type financial_account_type = :ISSUING | :OPERATING | :RESERVE | :SECURITY
|
|
30
|
-
|
|
31
|
-
module FinancialAccountType
|
|
32
|
-
extend Lithic::Internal::Type::Enum
|
|
33
|
-
|
|
34
|
-
ISSUING: :ISSUING
|
|
35
|
-
OPERATING: :OPERATING
|
|
36
|
-
RESERVE: :RESERVE
|
|
37
|
-
SECURITY: :SECURITY
|
|
38
|
-
|
|
39
|
-
def self?.values: -> ::Array[Lithic::Models::AggregateBalanceListParams::financial_account_type]
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
end
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
module Lithic
|
|
2
|
-
module Models
|
|
3
|
-
module Cards
|
|
4
|
-
type aggregate_balance_list_params =
|
|
5
|
-
{ account_token: String, business_account_token: String }
|
|
6
|
-
& Lithic::Internal::Type::request_parameters
|
|
7
|
-
|
|
8
|
-
class AggregateBalanceListParams < Lithic::Internal::Type::BaseModel
|
|
9
|
-
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
10
|
-
include Lithic::Internal::Type::RequestParameters
|
|
11
|
-
|
|
12
|
-
attr_reader account_token: String?
|
|
13
|
-
|
|
14
|
-
def account_token=: (String) -> String
|
|
15
|
-
|
|
16
|
-
attr_reader business_account_token: String?
|
|
17
|
-
|
|
18
|
-
def business_account_token=: (String) -> String
|
|
19
|
-
|
|
20
|
-
def initialize: (
|
|
21
|
-
?account_token: String,
|
|
22
|
-
?business_account_token: String,
|
|
23
|
-
?request_options: Lithic::request_opts
|
|
24
|
-
) -> void
|
|
25
|
-
|
|
26
|
-
def to_hash: -> {
|
|
27
|
-
account_token: String,
|
|
28
|
-
business_account_token: String,
|
|
29
|
-
request_options: Lithic::RequestOptions
|
|
30
|
-
}
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
module Lithic
|
|
2
|
-
module Models
|
|
3
|
-
module Cards
|
|
4
|
-
type aggregate_balance_list_response =
|
|
5
|
-
{
|
|
6
|
-
available_amount: Integer,
|
|
7
|
-
created: Time,
|
|
8
|
-
currency: String,
|
|
9
|
-
last_card_token: String,
|
|
10
|
-
last_transaction_event_token: String,
|
|
11
|
-
last_transaction_token: String,
|
|
12
|
-
pending_amount: Integer,
|
|
13
|
-
total_amount: Integer,
|
|
14
|
-
updated: Time
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
class AggregateBalanceListResponse < Lithic::Internal::Type::BaseModel
|
|
18
|
-
attr_accessor available_amount: Integer
|
|
19
|
-
|
|
20
|
-
attr_accessor created: Time
|
|
21
|
-
|
|
22
|
-
attr_accessor currency: String
|
|
23
|
-
|
|
24
|
-
attr_accessor last_card_token: String
|
|
25
|
-
|
|
26
|
-
attr_accessor last_transaction_event_token: String
|
|
27
|
-
|
|
28
|
-
attr_accessor last_transaction_token: String
|
|
29
|
-
|
|
30
|
-
attr_accessor pending_amount: Integer
|
|
31
|
-
|
|
32
|
-
attr_accessor total_amount: Integer
|
|
33
|
-
|
|
34
|
-
attr_accessor updated: Time
|
|
35
|
-
|
|
36
|
-
def initialize: (
|
|
37
|
-
available_amount: Integer,
|
|
38
|
-
created: Time,
|
|
39
|
-
currency: String,
|
|
40
|
-
last_card_token: String,
|
|
41
|
-
last_transaction_event_token: String,
|
|
42
|
-
last_transaction_token: String,
|
|
43
|
-
pending_amount: Integer,
|
|
44
|
-
total_amount: Integer,
|
|
45
|
-
updated: Time
|
|
46
|
-
) -> void
|
|
47
|
-
|
|
48
|
-
def to_hash: -> {
|
|
49
|
-
available_amount: Integer,
|
|
50
|
-
created: Time,
|
|
51
|
-
currency: String,
|
|
52
|
-
last_card_token: String,
|
|
53
|
-
last_transaction_event_token: String,
|
|
54
|
-
last_transaction_token: String,
|
|
55
|
-
pending_amount: Integer,
|
|
56
|
-
total_amount: Integer,
|
|
57
|
-
updated: Time
|
|
58
|
-
}
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
end
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
module Lithic
|
|
2
|
-
module Resources
|
|
3
|
-
class AggregateBalances
|
|
4
|
-
def list: (
|
|
5
|
-
?financial_account_type: Lithic::Models::AggregateBalanceListParams::financial_account_type,
|
|
6
|
-
?request_options: Lithic::request_opts
|
|
7
|
-
) -> Lithic::Internal::SinglePage[Lithic::AggregateBalance]
|
|
8
|
-
|
|
9
|
-
def initialize: (client: Lithic::Client) -> void
|
|
10
|
-
end
|
|
11
|
-
end
|
|
12
|
-
end
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
module Lithic
|
|
2
|
-
module Resources
|
|
3
|
-
class Cards
|
|
4
|
-
class AggregateBalances
|
|
5
|
-
def list: (
|
|
6
|
-
?account_token: String,
|
|
7
|
-
?business_account_token: String,
|
|
8
|
-
?request_options: Lithic::request_opts
|
|
9
|
-
) -> Lithic::Internal::SinglePage[Lithic::Models::Cards::AggregateBalanceListResponse]
|
|
10
|
-
|
|
11
|
-
def initialize: (client: Lithic::Client) -> void
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|