lithic 0.19.0 → 0.21.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 +61 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/models/account_activity_list_params.rb +1 -0
- data/lib/lithic/models/account_activity_list_response.rb +1 -0
- data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +1 -0
- data/lib/lithic/models/auth_rules/ach_payment_update_action.rb +1 -0
- data/lib/lithic/models/auth_rules/auth_rule.rb +5 -0
- data/lib/lithic/models/auth_rules/card_transaction_update_action.rb +1 -0
- data/lib/lithic/models/auth_rules/report_stats.rb +1 -0
- data/lib/lithic/models/auth_rules/v2_create_params.rb +15 -0
- data/lib/lithic/models/auth_rules/v2_list_results_response.rb +3 -0
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +24 -1
- data/lib/lithic/models/blockchain_recipient.rb +148 -0
- data/lib/lithic/models/blockchain_recipient_create_params.rb +74 -0
- data/lib/lithic/models/blockchain_recipient_retrieve_params.rb +20 -0
- data/lib/lithic/models/card.rb +2 -2
- data/lib/lithic/models/card_pin_updated_webhook_event.rb +87 -0
- data/lib/lithic/models/card_provision_params.rb +10 -8
- data/lib/lithic/models/card_reassign_account_params.rb +29 -0
- data/lib/lithic/models/dispute_v2.rb +178 -130
- data/lib/lithic/models/disputes_v2_list_params.rb +10 -1
- data/lib/lithic/models/event.rb +5 -0
- data/lib/lithic/models/event_list_params.rb +3 -0
- data/lib/lithic/models/event_subscription.rb +3 -0
- data/lib/lithic/models/events/subscription_create_params.rb +3 -0
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
- data/lib/lithic/models/events/subscription_update_params.rb +3 -0
- data/lib/lithic/models/external_payment.rb +6 -0
- data/lib/lithic/models/external_payment_create_params.rb +1 -0
- data/lib/lithic/models/external_payment_list_params.rb +1 -0
- data/lib/lithic/models/financial_account.rb +14 -1
- data/lib/lithic/models/financial_accounts/installment_plan.rb +311 -0
- data/lib/lithic/models/financial_accounts/installment_plan_list_params.rb +75 -0
- data/lib/lithic/models/financial_accounts/installment_plan_retrieve_params.rb +32 -0
- data/lib/lithic/models/financial_accounts/open_to_buy.rb +36 -0
- data/lib/lithic/models/financial_accounts/open_to_buy_retrieve_params.rb +22 -0
- data/lib/lithic/models/financial_accounts/open_to_buy_summary.rb +46 -0
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +13 -0
- data/lib/lithic/models/financial_accounts/transaction_category_balances.rb +34 -0
- data/lib/lithic/models/financial_event.rb +12 -0
- data/lib/lithic/models/management_operation_create_params.rb +4 -0
- data/lib/lithic/models/management_operation_transaction.rb +4 -0
- data/lib/lithic/models/parsed_webhook_event.rb +3 -1
- data/lib/lithic/models/payment.rb +68 -9
- data/lib/lithic/models/payment_create_stablecoin_params.rb +99 -0
- data/lib/lithic/models/payment_create_stablecoin_response.rb +19 -0
- data/lib/lithic/models/payment_list_params.rb +1 -0
- data/lib/lithic/models/payment_retry_params.rb +28 -1
- data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
- data/lib/lithic/models/three_ds_authentication.rb +126 -1
- data/lib/lithic/models/tokenization_simulate_params.rb +2 -2
- data/lib/lithic/models/transaction.rb +2 -0
- data/lib/lithic/models/transaction_monitoring/case_entity.rb +13 -4
- data/lib/lithic/models/transaction_monitoring/case_list_params.rb +4 -2
- data/lib/lithic/models.rb +12 -0
- data/lib/lithic/resources/blockchain_recipients.rb +80 -0
- data/lib/lithic/resources/cards.rb +33 -4
- data/lib/lithic/resources/disputes_v2.rb +3 -1
- data/lib/lithic/resources/financial_accounts/installment_plans.rb +82 -0
- data/lib/lithic/resources/financial_accounts/open_to_buy.rb +48 -0
- data/lib/lithic/resources/financial_accounts.rb +8 -0
- data/lib/lithic/resources/payments.rb +71 -3
- data/lib/lithic/resources/tokenizations.rb +1 -1
- data/lib/lithic/resources/transaction_monitoring/cases.rb +1 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +17 -0
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/models/account_activity_list_params.rbi +5 -0
- data/rbi/lithic/models/account_activity_list_response.rbi +5 -0
- data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +5 -0
- data/rbi/lithic/models/auth_rules/ach_payment_update_action.rbi +5 -0
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +7 -0
- data/rbi/lithic/models/auth_rules/card_transaction_update_action.rbi +5 -0
- data/rbi/lithic/models/auth_rules/report_stats.rbi +5 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +33 -0
- data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +15 -0
- data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +30 -0
- data/rbi/lithic/models/blockchain_recipient.rbi +209 -0
- data/rbi/lithic/models/blockchain_recipient_create_params.rbi +102 -0
- data/rbi/lithic/models/blockchain_recipient_retrieve_params.rbi +41 -0
- data/rbi/lithic/models/card.rbi +2 -2
- data/rbi/lithic/models/card_pin_updated_webhook_event.rbi +166 -0
- data/rbi/lithic/models/card_provision_params.rbi +16 -12
- data/rbi/lithic/models/card_reassign_account_params.rbi +49 -0
- data/rbi/lithic/models/dispute_v2.rbi +285 -181
- data/rbi/lithic/models/disputes_v2_list_params.rbi +13 -0
- data/rbi/lithic/models/event.rbi +8 -0
- data/rbi/lithic/models/event_list_params.rbi +7 -0
- data/rbi/lithic/models/event_subscription.rbi +7 -0
- data/rbi/lithic/models/events/subscription_create_params.rbi +7 -0
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
- data/rbi/lithic/models/events/subscription_update_params.rbi +7 -0
- data/rbi/lithic/models/external_payment.rbi +30 -0
- data/rbi/lithic/models/external_payment_create_params.rbi +5 -0
- data/rbi/lithic/models/external_payment_list_params.rbi +5 -0
- data/rbi/lithic/models/financial_account.rbi +12 -0
- data/rbi/lithic/models/financial_accounts/installment_plan.rbi +528 -0
- data/rbi/lithic/models/financial_accounts/installment_plan_list_params.rbi +155 -0
- data/rbi/lithic/models/financial_accounts/installment_plan_retrieve_params.rbi +56 -0
- data/rbi/lithic/models/financial_accounts/open_to_buy.rbi +64 -0
- data/rbi/lithic/models/financial_accounts/open_to_buy_retrieve_params.rbi +43 -0
- data/rbi/lithic/models/financial_accounts/open_to_buy_summary.rbi +73 -0
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +65 -0
- data/rbi/lithic/models/financial_accounts/transaction_category_balances.rbi +81 -0
- data/rbi/lithic/models/financial_event.rbi +47 -0
- data/rbi/lithic/models/management_operation_create_params.rbi +20 -0
- data/rbi/lithic/models/management_operation_transaction.rbi +20 -0
- data/rbi/lithic/models/parsed_webhook_event.rbi +1 -0
- data/rbi/lithic/models/payment.rbi +108 -10
- data/rbi/lithic/models/payment_create_stablecoin_params.rbi +162 -0
- data/rbi/lithic/models/payment_create_stablecoin_response.rbi +34 -0
- data/rbi/lithic/models/payment_list_params.rbi +2 -0
- data/rbi/lithic/models/payment_retry_params.rbi +47 -2
- data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
- data/rbi/lithic/models/three_ds_authentication.rbi +292 -0
- data/rbi/lithic/models/tokenization_simulate_params.rbi +2 -2
- data/rbi/lithic/models/transaction.rbi +10 -0
- data/rbi/lithic/models/transaction_monitoring/case_entity.rbi +27 -5
- data/rbi/lithic/models/transaction_monitoring/case_list_params.rbi +6 -2
- data/rbi/lithic/models.rbi +14 -0
- data/rbi/lithic/resources/blockchain_recipients.rbi +65 -0
- data/rbi/lithic/resources/cards.rbi +31 -8
- data/rbi/lithic/resources/disputes_v2.rbi +4 -0
- data/rbi/lithic/resources/financial_accounts/installment_plans.rbi +66 -0
- data/rbi/lithic/resources/financial_accounts/open_to_buy.rbi +40 -0
- data/rbi/lithic/resources/financial_accounts.rbi +6 -0
- data/rbi/lithic/resources/payments.rbi +68 -2
- data/rbi/lithic/resources/tokenizations.rbi +1 -1
- data/rbi/lithic/resources/transaction_monitoring/cases.rbi +3 -1
- data/rbi/lithic/resources/webhooks.rbi +1 -0
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/models/account_activity_list_params.rbs +2 -0
- data/sig/lithic/models/account_activity_list_response.rbs +2 -0
- data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +2 -0
- data/sig/lithic/models/auth_rules/ach_payment_update_action.rbs +2 -1
- data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
- data/sig/lithic/models/auth_rules/card_transaction_update_action.rbs +2 -1
- data/sig/lithic/models/auth_rules/report_stats.rbs +2 -0
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +6 -0
- data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +6 -2
- data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +10 -0
- data/sig/lithic/models/blockchain_recipient.rbs +106 -0
- data/sig/lithic/models/blockchain_recipient_create_params.rbs +60 -0
- data/sig/lithic/models/blockchain_recipient_retrieve_params.rbs +24 -0
- data/sig/lithic/models/card_pin_updated_webhook_event.rbs +60 -0
- data/sig/lithic/models/card_reassign_account_params.rbs +28 -0
- data/sig/lithic/models/dispute_v2.rbs +145 -101
- data/sig/lithic/models/disputes_v2_list_params.rbs +7 -0
- data/sig/lithic/models/event.rbs +2 -0
- data/sig/lithic/models/event_list_params.rbs +2 -0
- data/sig/lithic/models/event_subscription.rbs +2 -0
- data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
- data/sig/lithic/models/external_payment.rbs +12 -0
- data/sig/lithic/models/external_payment_create_params.rbs +2 -0
- data/sig/lithic/models/external_payment_list_params.rbs +2 -0
- data/sig/lithic/models/financial_account.rbs +5 -0
- data/sig/lithic/models/financial_accounts/installment_plan.rbs +227 -0
- data/sig/lithic/models/financial_accounts/installment_plan_list_params.rbs +69 -0
- data/sig/lithic/models/financial_accounts/installment_plan_retrieve_params.rbs +30 -0
- data/sig/lithic/models/financial_accounts/open_to_buy.rbs +27 -0
- data/sig/lithic/models/financial_accounts/open_to_buy_retrieve_params.rbs +26 -0
- data/sig/lithic/models/financial_accounts/open_to_buy_summary.rbs +32 -0
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +26 -0
- data/sig/lithic/models/financial_accounts/transaction_category_balances.rbs +32 -0
- data/sig/lithic/models/financial_event.rbs +24 -0
- data/sig/lithic/models/management_operation_create_params.rbs +8 -0
- data/sig/lithic/models/management_operation_transaction.rbs +8 -0
- data/sig/lithic/models/parsed_webhook_event.rbs +1 -0
- data/sig/lithic/models/payment.rbs +33 -1
- data/sig/lithic/models/payment_create_stablecoin_params.rbs +84 -0
- data/sig/lithic/models/payment_create_stablecoin_response.rbs +15 -0
- data/sig/lithic/models/payment_list_params.rbs +2 -1
- data/sig/lithic/models/payment_retry_params.rbs +24 -1
- data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
- data/sig/lithic/models/three_ds_authentication.rbs +77 -0
- data/sig/lithic/models/transaction.rbs +4 -0
- data/sig/lithic/models/transaction_monitoring/case_entity.rbs +7 -5
- data/sig/lithic/models.rbs +12 -0
- data/sig/lithic/resources/blockchain_recipients.rbs +23 -0
- data/sig/lithic/resources/cards.rbs +6 -0
- data/sig/lithic/resources/disputes_v2.rbs +1 -0
- data/sig/lithic/resources/financial_accounts/installment_plans.rbs +24 -0
- data/sig/lithic/resources/financial_accounts/open_to_buy.rbs +14 -0
- data/sig/lithic/resources/financial_accounts.rbs +4 -0
- data/sig/lithic/resources/payments.rbs +12 -0
- data/sig/lithic/resources/webhooks.rbs +1 -0
- metadata +53 -2
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module FinancialAccounts
|
|
6
|
+
class InstallmentPlanRetrieveParams < Lithic::Internal::Type::BaseModel
|
|
7
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Lithic::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Lithic::FinancialAccounts::InstallmentPlanRetrieveParams,
|
|
14
|
+
Lithic::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# Globally unique identifier for financial account.
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :financial_account_token
|
|
21
|
+
|
|
22
|
+
# Globally unique identifier for installment plan.
|
|
23
|
+
sig { returns(String) }
|
|
24
|
+
attr_accessor :installment_plan_token
|
|
25
|
+
|
|
26
|
+
sig do
|
|
27
|
+
params(
|
|
28
|
+
financial_account_token: String,
|
|
29
|
+
installment_plan_token: String,
|
|
30
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
31
|
+
).returns(T.attached_class)
|
|
32
|
+
end
|
|
33
|
+
def self.new(
|
|
34
|
+
# Globally unique identifier for financial account.
|
|
35
|
+
financial_account_token:,
|
|
36
|
+
# Globally unique identifier for installment plan.
|
|
37
|
+
installment_plan_token:,
|
|
38
|
+
request_options: {}
|
|
39
|
+
)
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
sig do
|
|
43
|
+
override.returns(
|
|
44
|
+
{
|
|
45
|
+
financial_account_token: String,
|
|
46
|
+
installment_plan_token: String,
|
|
47
|
+
request_options: Lithic::RequestOptions
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
end
|
|
51
|
+
def to_hash
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module FinancialAccounts
|
|
6
|
+
class FinancialAccountsOpenToBuy < Lithic::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Lithic::FinancialAccounts::FinancialAccountsOpenToBuy,
|
|
11
|
+
Lithic::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# Funds available for card spend backed by this Security Account, in the
|
|
16
|
+
# currency's smallest unit (e.g., cents for USD). Equal to the sum of the amounts
|
|
17
|
+
# in `summary`, and reaches zero once outstanding spend has consumed all available
|
|
18
|
+
# funding
|
|
19
|
+
sig { returns(Integer) }
|
|
20
|
+
attr_accessor :open_to_buy
|
|
21
|
+
|
|
22
|
+
# Balances that open to buy is derived from
|
|
23
|
+
sig { returns(Lithic::FinancialAccounts::OpenToBuySummary) }
|
|
24
|
+
attr_reader :summary
|
|
25
|
+
|
|
26
|
+
sig do
|
|
27
|
+
params(
|
|
28
|
+
summary: Lithic::FinancialAccounts::OpenToBuySummary::OrHash
|
|
29
|
+
).void
|
|
30
|
+
end
|
|
31
|
+
attr_writer :summary
|
|
32
|
+
|
|
33
|
+
# Open to Buy
|
|
34
|
+
sig do
|
|
35
|
+
params(
|
|
36
|
+
open_to_buy: Integer,
|
|
37
|
+
summary: Lithic::FinancialAccounts::OpenToBuySummary::OrHash
|
|
38
|
+
).returns(T.attached_class)
|
|
39
|
+
end
|
|
40
|
+
def self.new(
|
|
41
|
+
# Funds available for card spend backed by this Security Account, in the
|
|
42
|
+
# currency's smallest unit (e.g., cents for USD). Equal to the sum of the amounts
|
|
43
|
+
# in `summary`, and reaches zero once outstanding spend has consumed all available
|
|
44
|
+
# funding
|
|
45
|
+
open_to_buy:,
|
|
46
|
+
# Balances that open to buy is derived from
|
|
47
|
+
summary:
|
|
48
|
+
)
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
sig do
|
|
52
|
+
override.returns(
|
|
53
|
+
{
|
|
54
|
+
open_to_buy: Integer,
|
|
55
|
+
summary: Lithic::FinancialAccounts::OpenToBuySummary
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
end
|
|
59
|
+
def to_hash
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module FinancialAccounts
|
|
6
|
+
class OpenToBuyRetrieveParams < Lithic::Internal::Type::BaseModel
|
|
7
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Lithic::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Lithic::FinancialAccounts::OpenToBuyRetrieveParams,
|
|
14
|
+
Lithic::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :financial_account_token
|
|
20
|
+
|
|
21
|
+
sig do
|
|
22
|
+
params(
|
|
23
|
+
financial_account_token: String,
|
|
24
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
25
|
+
).returns(T.attached_class)
|
|
26
|
+
end
|
|
27
|
+
def self.new(financial_account_token:, request_options: {})
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
override.returns(
|
|
32
|
+
{
|
|
33
|
+
financial_account_token: String,
|
|
34
|
+
request_options: Lithic::RequestOptions
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
end
|
|
38
|
+
def to_hash
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module FinancialAccounts
|
|
6
|
+
class OpenToBuySummary < Lithic::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Lithic::FinancialAccounts::OpenToBuySummary,
|
|
11
|
+
Lithic::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# Available balance of the Security Account backing card spend, in the currency's
|
|
16
|
+
# smallest unit (e.g., cents for USD)
|
|
17
|
+
sig { returns(Integer) }
|
|
18
|
+
attr_accessor :security
|
|
19
|
+
|
|
20
|
+
# Funding that has moved out of the Security Account to cover card spend Lithic
|
|
21
|
+
# has already paid out to the networks, in the currency's smallest unit (e.g.,
|
|
22
|
+
# cents for USD). Open to buy counts it alongside `security`, and it clears once
|
|
23
|
+
# collected from your business clients. Only Commercial Charge tracks this
|
|
24
|
+
# separately, so this is `null` for every other program setup
|
|
25
|
+
sig { returns(T.nilable(Integer)) }
|
|
26
|
+
attr_accessor :settled_funds
|
|
27
|
+
|
|
28
|
+
# Customer card spend that has not yet been collected, in the currency's smallest
|
|
29
|
+
# unit (e.g., cents for USD). Reported as a negative amount, because it reduces
|
|
30
|
+
# open to buy
|
|
31
|
+
sig { returns(Integer) }
|
|
32
|
+
attr_accessor :total_outstanding_spend
|
|
33
|
+
|
|
34
|
+
# Open to Buy Summary
|
|
35
|
+
sig do
|
|
36
|
+
params(
|
|
37
|
+
security: Integer,
|
|
38
|
+
settled_funds: T.nilable(Integer),
|
|
39
|
+
total_outstanding_spend: Integer
|
|
40
|
+
).returns(T.attached_class)
|
|
41
|
+
end
|
|
42
|
+
def self.new(
|
|
43
|
+
# Available balance of the Security Account backing card spend, in the currency's
|
|
44
|
+
# smallest unit (e.g., cents for USD)
|
|
45
|
+
security:,
|
|
46
|
+
# Funding that has moved out of the Security Account to cover card spend Lithic
|
|
47
|
+
# has already paid out to the networks, in the currency's smallest unit (e.g.,
|
|
48
|
+
# cents for USD). Open to buy counts it alongside `security`, and it clears once
|
|
49
|
+
# collected from your business clients. Only Commercial Charge tracks this
|
|
50
|
+
# separately, so this is `null` for every other program setup
|
|
51
|
+
settled_funds:,
|
|
52
|
+
# Customer card spend that has not yet been collected, in the currency's smallest
|
|
53
|
+
# unit (e.g., cents for USD). Reported as a negative amount, because it reduces
|
|
54
|
+
# open to buy
|
|
55
|
+
total_outstanding_spend:
|
|
56
|
+
)
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
sig do
|
|
60
|
+
override.returns(
|
|
61
|
+
{
|
|
62
|
+
security: Integer,
|
|
63
|
+
settled_funds: T.nilable(Integer),
|
|
64
|
+
total_outstanding_spend: Integer
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
end
|
|
68
|
+
def to_hash
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -293,6 +293,11 @@ module Lithic
|
|
|
293
293
|
:EXTERNAL_RTP,
|
|
294
294
|
Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category::TaggedSymbol
|
|
295
295
|
)
|
|
296
|
+
EXTERNAL_STABLECOIN =
|
|
297
|
+
T.let(
|
|
298
|
+
:EXTERNAL_STABLECOIN,
|
|
299
|
+
Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category::TaggedSymbol
|
|
300
|
+
)
|
|
296
301
|
EXTERNAL_TRANSFER =
|
|
297
302
|
T.let(
|
|
298
303
|
:EXTERNAL_TRANSFER,
|
|
@@ -632,6 +637,31 @@ module Lithic
|
|
|
632
637
|
:EXTERNAL_RTP_SETTLED,
|
|
633
638
|
Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
|
|
634
639
|
)
|
|
640
|
+
EXTERNAL_STABLECOIN_CANCELED =
|
|
641
|
+
T.let(
|
|
642
|
+
:EXTERNAL_STABLECOIN_CANCELED,
|
|
643
|
+
Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
|
|
644
|
+
)
|
|
645
|
+
EXTERNAL_STABLECOIN_INITIATED =
|
|
646
|
+
T.let(
|
|
647
|
+
:EXTERNAL_STABLECOIN_INITIATED,
|
|
648
|
+
Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
|
|
649
|
+
)
|
|
650
|
+
EXTERNAL_STABLECOIN_RELEASED =
|
|
651
|
+
T.let(
|
|
652
|
+
:EXTERNAL_STABLECOIN_RELEASED,
|
|
653
|
+
Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
|
|
654
|
+
)
|
|
655
|
+
EXTERNAL_STABLECOIN_REVERSED =
|
|
656
|
+
T.let(
|
|
657
|
+
:EXTERNAL_STABLECOIN_REVERSED,
|
|
658
|
+
Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
|
|
659
|
+
)
|
|
660
|
+
EXTERNAL_STABLECOIN_SETTLED =
|
|
661
|
+
T.let(
|
|
662
|
+
:EXTERNAL_STABLECOIN_SETTLED,
|
|
663
|
+
Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
|
|
664
|
+
)
|
|
635
665
|
EXTERNAL_TRANSFER_CANCELED =
|
|
636
666
|
T.let(
|
|
637
667
|
:EXTERNAL_TRANSFER_CANCELED,
|
|
@@ -682,6 +712,16 @@ module Lithic
|
|
|
682
712
|
:EXTERNAL_WIRE_SETTLED,
|
|
683
713
|
Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
|
|
684
714
|
)
|
|
715
|
+
FEE =
|
|
716
|
+
T.let(
|
|
717
|
+
:FEE,
|
|
718
|
+
Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
|
|
719
|
+
)
|
|
720
|
+
FEE_REVERSAL =
|
|
721
|
+
T.let(
|
|
722
|
+
:FEE_REVERSAL,
|
|
723
|
+
Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
|
|
724
|
+
)
|
|
685
725
|
FINANCIAL_AUTHORIZATION =
|
|
686
726
|
T.let(
|
|
687
727
|
:FINANCIAL_AUTHORIZATION,
|
|
@@ -692,6 +732,16 @@ module Lithic
|
|
|
692
732
|
:FINANCIAL_CREDIT_AUTHORIZATION,
|
|
693
733
|
Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
|
|
694
734
|
)
|
|
735
|
+
INSTALLMENT_FEE =
|
|
736
|
+
T.let(
|
|
737
|
+
:INSTALLMENT_FEE,
|
|
738
|
+
Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
|
|
739
|
+
)
|
|
740
|
+
INSTALLMENT_FEE_REVERSAL =
|
|
741
|
+
T.let(
|
|
742
|
+
:INSTALLMENT_FEE_REVERSAL,
|
|
743
|
+
Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
|
|
744
|
+
)
|
|
695
745
|
INTEREST =
|
|
696
746
|
T.let(
|
|
697
747
|
:INTEREST,
|
|
@@ -822,16 +872,31 @@ module Lithic
|
|
|
822
872
|
:STABLECOIN_RECEIVED,
|
|
823
873
|
Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
|
|
824
874
|
)
|
|
875
|
+
STABLECOIN_INITIATED =
|
|
876
|
+
T.let(
|
|
877
|
+
:STABLECOIN_INITIATED,
|
|
878
|
+
Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
|
|
879
|
+
)
|
|
825
880
|
STABLECOIN_REVIEWED =
|
|
826
881
|
T.let(
|
|
827
882
|
:STABLECOIN_REVIEWED,
|
|
828
883
|
Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
|
|
829
884
|
)
|
|
885
|
+
STABLECOIN_SENT =
|
|
886
|
+
T.let(
|
|
887
|
+
:STABLECOIN_SENT,
|
|
888
|
+
Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
|
|
889
|
+
)
|
|
830
890
|
STABLECOIN_SETTLED =
|
|
831
891
|
T.let(
|
|
832
892
|
:STABLECOIN_SETTLED,
|
|
833
893
|
Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
|
|
834
894
|
)
|
|
895
|
+
STABLECOIN_REJECTED =
|
|
896
|
+
T.let(
|
|
897
|
+
:STABLECOIN_REJECTED,
|
|
898
|
+
Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol
|
|
899
|
+
)
|
|
835
900
|
|
|
836
901
|
sig do
|
|
837
902
|
override.returns(
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module FinancialAccounts
|
|
6
|
+
class TransactionCategoryBalances < Lithic::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Lithic::FinancialAccounts::TransactionCategoryBalances,
|
|
11
|
+
Lithic::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# Amounts attributable to balance transfers
|
|
16
|
+
sig { returns(Lithic::FinancialAccounts::CategoryBalances) }
|
|
17
|
+
attr_reader :balance_transfers
|
|
18
|
+
|
|
19
|
+
sig do
|
|
20
|
+
params(
|
|
21
|
+
balance_transfers:
|
|
22
|
+
Lithic::FinancialAccounts::CategoryBalances::OrHash
|
|
23
|
+
).void
|
|
24
|
+
end
|
|
25
|
+
attr_writer :balance_transfers
|
|
26
|
+
|
|
27
|
+
# Amounts attributable to cash advances
|
|
28
|
+
sig { returns(Lithic::FinancialAccounts::CategoryBalances) }
|
|
29
|
+
attr_reader :cash_advances
|
|
30
|
+
|
|
31
|
+
sig do
|
|
32
|
+
params(
|
|
33
|
+
cash_advances: Lithic::FinancialAccounts::CategoryBalances::OrHash
|
|
34
|
+
).void
|
|
35
|
+
end
|
|
36
|
+
attr_writer :cash_advances
|
|
37
|
+
|
|
38
|
+
# Amounts attributable to purchases
|
|
39
|
+
sig { returns(Lithic::FinancialAccounts::CategoryBalances) }
|
|
40
|
+
attr_reader :purchases
|
|
41
|
+
|
|
42
|
+
sig do
|
|
43
|
+
params(
|
|
44
|
+
purchases: Lithic::FinancialAccounts::CategoryBalances::OrHash
|
|
45
|
+
).void
|
|
46
|
+
end
|
|
47
|
+
attr_writer :purchases
|
|
48
|
+
|
|
49
|
+
sig do
|
|
50
|
+
params(
|
|
51
|
+
balance_transfers:
|
|
52
|
+
Lithic::FinancialAccounts::CategoryBalances::OrHash,
|
|
53
|
+
cash_advances: Lithic::FinancialAccounts::CategoryBalances::OrHash,
|
|
54
|
+
purchases: Lithic::FinancialAccounts::CategoryBalances::OrHash
|
|
55
|
+
).returns(T.attached_class)
|
|
56
|
+
end
|
|
57
|
+
def self.new(
|
|
58
|
+
# Amounts attributable to balance transfers
|
|
59
|
+
balance_transfers:,
|
|
60
|
+
# Amounts attributable to cash advances
|
|
61
|
+
cash_advances:,
|
|
62
|
+
# Amounts attributable to purchases
|
|
63
|
+
purchases:
|
|
64
|
+
)
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
sig do
|
|
68
|
+
override.returns(
|
|
69
|
+
{
|
|
70
|
+
balance_transfers: Lithic::FinancialAccounts::CategoryBalances,
|
|
71
|
+
cash_advances: Lithic::FinancialAccounts::CategoryBalances,
|
|
72
|
+
purchases: Lithic::FinancialAccounts::CategoryBalances
|
|
73
|
+
}
|
|
74
|
+
)
|
|
75
|
+
end
|
|
76
|
+
def to_hash
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
@@ -341,6 +341,31 @@ module Lithic
|
|
|
341
341
|
:EXTERNAL_RTP_SETTLED,
|
|
342
342
|
Lithic::FinancialEvent::Type::TaggedSymbol
|
|
343
343
|
)
|
|
344
|
+
EXTERNAL_STABLECOIN_CANCELED =
|
|
345
|
+
T.let(
|
|
346
|
+
:EXTERNAL_STABLECOIN_CANCELED,
|
|
347
|
+
Lithic::FinancialEvent::Type::TaggedSymbol
|
|
348
|
+
)
|
|
349
|
+
EXTERNAL_STABLECOIN_INITIATED =
|
|
350
|
+
T.let(
|
|
351
|
+
:EXTERNAL_STABLECOIN_INITIATED,
|
|
352
|
+
Lithic::FinancialEvent::Type::TaggedSymbol
|
|
353
|
+
)
|
|
354
|
+
EXTERNAL_STABLECOIN_RELEASED =
|
|
355
|
+
T.let(
|
|
356
|
+
:EXTERNAL_STABLECOIN_RELEASED,
|
|
357
|
+
Lithic::FinancialEvent::Type::TaggedSymbol
|
|
358
|
+
)
|
|
359
|
+
EXTERNAL_STABLECOIN_REVERSED =
|
|
360
|
+
T.let(
|
|
361
|
+
:EXTERNAL_STABLECOIN_REVERSED,
|
|
362
|
+
Lithic::FinancialEvent::Type::TaggedSymbol
|
|
363
|
+
)
|
|
364
|
+
EXTERNAL_STABLECOIN_SETTLED =
|
|
365
|
+
T.let(
|
|
366
|
+
:EXTERNAL_STABLECOIN_SETTLED,
|
|
367
|
+
Lithic::FinancialEvent::Type::TaggedSymbol
|
|
368
|
+
)
|
|
344
369
|
EXTERNAL_TRANSFER_CANCELED =
|
|
345
370
|
T.let(
|
|
346
371
|
:EXTERNAL_TRANSFER_CANCELED,
|
|
@@ -391,6 +416,9 @@ module Lithic
|
|
|
391
416
|
:EXTERNAL_WIRE_SETTLED,
|
|
392
417
|
Lithic::FinancialEvent::Type::TaggedSymbol
|
|
393
418
|
)
|
|
419
|
+
FEE = T.let(:FEE, Lithic::FinancialEvent::Type::TaggedSymbol)
|
|
420
|
+
FEE_REVERSAL =
|
|
421
|
+
T.let(:FEE_REVERSAL, Lithic::FinancialEvent::Type::TaggedSymbol)
|
|
394
422
|
FINANCIAL_AUTHORIZATION =
|
|
395
423
|
T.let(
|
|
396
424
|
:FINANCIAL_AUTHORIZATION,
|
|
@@ -401,6 +429,13 @@ module Lithic
|
|
|
401
429
|
:FINANCIAL_CREDIT_AUTHORIZATION,
|
|
402
430
|
Lithic::FinancialEvent::Type::TaggedSymbol
|
|
403
431
|
)
|
|
432
|
+
INSTALLMENT_FEE =
|
|
433
|
+
T.let(:INSTALLMENT_FEE, Lithic::FinancialEvent::Type::TaggedSymbol)
|
|
434
|
+
INSTALLMENT_FEE_REVERSAL =
|
|
435
|
+
T.let(
|
|
436
|
+
:INSTALLMENT_FEE_REVERSAL,
|
|
437
|
+
Lithic::FinancialEvent::Type::TaggedSymbol
|
|
438
|
+
)
|
|
404
439
|
INTEREST = T.let(:INTEREST, Lithic::FinancialEvent::Type::TaggedSymbol)
|
|
405
440
|
INTEREST_REVERSAL =
|
|
406
441
|
T.let(:INTEREST_REVERSAL, Lithic::FinancialEvent::Type::TaggedSymbol)
|
|
@@ -474,13 +509,25 @@ module Lithic
|
|
|
474
509
|
:STABLECOIN_RECEIVED,
|
|
475
510
|
Lithic::FinancialEvent::Type::TaggedSymbol
|
|
476
511
|
)
|
|
512
|
+
STABLECOIN_INITIATED =
|
|
513
|
+
T.let(
|
|
514
|
+
:STABLECOIN_INITIATED,
|
|
515
|
+
Lithic::FinancialEvent::Type::TaggedSymbol
|
|
516
|
+
)
|
|
477
517
|
STABLECOIN_REVIEWED =
|
|
478
518
|
T.let(
|
|
479
519
|
:STABLECOIN_REVIEWED,
|
|
480
520
|
Lithic::FinancialEvent::Type::TaggedSymbol
|
|
481
521
|
)
|
|
522
|
+
STABLECOIN_SENT =
|
|
523
|
+
T.let(:STABLECOIN_SENT, Lithic::FinancialEvent::Type::TaggedSymbol)
|
|
482
524
|
STABLECOIN_SETTLED =
|
|
483
525
|
T.let(:STABLECOIN_SETTLED, Lithic::FinancialEvent::Type::TaggedSymbol)
|
|
526
|
+
STABLECOIN_REJECTED =
|
|
527
|
+
T.let(
|
|
528
|
+
:STABLECOIN_REJECTED,
|
|
529
|
+
Lithic::FinancialEvent::Type::TaggedSymbol
|
|
530
|
+
)
|
|
484
531
|
|
|
485
532
|
sig do
|
|
486
533
|
override.returns(T::Array[Lithic::FinancialEvent::Type::TaggedSymbol])
|
|
@@ -266,6 +266,16 @@ module Lithic
|
|
|
266
266
|
:INTEREST_REVERSAL,
|
|
267
267
|
Lithic::ManagementOperationCreateParams::EventType::TaggedSymbol
|
|
268
268
|
)
|
|
269
|
+
INSTALLMENT_FEE =
|
|
270
|
+
T.let(
|
|
271
|
+
:INSTALLMENT_FEE,
|
|
272
|
+
Lithic::ManagementOperationCreateParams::EventType::TaggedSymbol
|
|
273
|
+
)
|
|
274
|
+
INSTALLMENT_FEE_REVERSAL =
|
|
275
|
+
T.let(
|
|
276
|
+
:INSTALLMENT_FEE_REVERSAL,
|
|
277
|
+
Lithic::ManagementOperationCreateParams::EventType::TaggedSymbol
|
|
278
|
+
)
|
|
269
279
|
LATE_PAYMENT =
|
|
270
280
|
T.let(
|
|
271
281
|
:LATE_PAYMENT,
|
|
@@ -356,6 +366,16 @@ module Lithic
|
|
|
356
366
|
:MONTHLY_REVERSAL,
|
|
357
367
|
Lithic::ManagementOperationCreateParams::EventType::TaggedSymbol
|
|
358
368
|
)
|
|
369
|
+
FEE =
|
|
370
|
+
T.let(
|
|
371
|
+
:FEE,
|
|
372
|
+
Lithic::ManagementOperationCreateParams::EventType::TaggedSymbol
|
|
373
|
+
)
|
|
374
|
+
FEE_REVERSAL =
|
|
375
|
+
T.let(
|
|
376
|
+
:FEE_REVERSAL,
|
|
377
|
+
Lithic::ManagementOperationCreateParams::EventType::TaggedSymbol
|
|
378
|
+
)
|
|
359
379
|
|
|
360
380
|
sig do
|
|
361
381
|
override.returns(
|
|
@@ -592,6 +592,16 @@ module Lithic
|
|
|
592
592
|
:INTEREST_REVERSAL,
|
|
593
593
|
Lithic::ManagementOperationTransaction::Event::Type::TaggedSymbol
|
|
594
594
|
)
|
|
595
|
+
INSTALLMENT_FEE =
|
|
596
|
+
T.let(
|
|
597
|
+
:INSTALLMENT_FEE,
|
|
598
|
+
Lithic::ManagementOperationTransaction::Event::Type::TaggedSymbol
|
|
599
|
+
)
|
|
600
|
+
INSTALLMENT_FEE_REVERSAL =
|
|
601
|
+
T.let(
|
|
602
|
+
:INSTALLMENT_FEE_REVERSAL,
|
|
603
|
+
Lithic::ManagementOperationTransaction::Event::Type::TaggedSymbol
|
|
604
|
+
)
|
|
595
605
|
LATE_PAYMENT =
|
|
596
606
|
T.let(
|
|
597
607
|
:LATE_PAYMENT,
|
|
@@ -682,6 +692,16 @@ module Lithic
|
|
|
682
692
|
:MONTHLY_REVERSAL,
|
|
683
693
|
Lithic::ManagementOperationTransaction::Event::Type::TaggedSymbol
|
|
684
694
|
)
|
|
695
|
+
FEE =
|
|
696
|
+
T.let(
|
|
697
|
+
:FEE,
|
|
698
|
+
Lithic::ManagementOperationTransaction::Event::Type::TaggedSymbol
|
|
699
|
+
)
|
|
700
|
+
FEE_REVERSAL =
|
|
701
|
+
T.let(
|
|
702
|
+
:FEE_REVERSAL,
|
|
703
|
+
Lithic::ManagementOperationTransaction::Event::Type::TaggedSymbol
|
|
704
|
+
)
|
|
685
705
|
|
|
686
706
|
sig do
|
|
687
707
|
override.returns(
|
|
@@ -24,6 +24,7 @@ module Lithic
|
|
|
24
24
|
Lithic::BookTransferTransactionUpdatedWebhookEvent,
|
|
25
25
|
Lithic::CardCreatedWebhookEvent,
|
|
26
26
|
Lithic::CardConvertedWebhookEvent,
|
|
27
|
+
Lithic::CardPinUpdatedWebhookEvent,
|
|
27
28
|
Lithic::CardRenewedWebhookEvent,
|
|
28
29
|
Lithic::CardReissuedWebhookEvent,
|
|
29
30
|
Lithic::CardShippedWebhookEvent,
|