lithic 0.20.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 +25 -0
- data/README.md +1 -1
- 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/auth_rule.rb +5 -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 +1 -0
- data/lib/lithic/models/blockchain_recipient_retrieve_params.rb +20 -0
- data/lib/lithic/models/card_pin_updated_webhook_event.rb +87 -0
- 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_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 +10 -0
- data/lib/lithic/models/financial_accounts/transaction_category_balances.rb +34 -0
- data/lib/lithic/models/financial_event.rb +9 -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 +1 -0
- 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/transaction.rb +2 -0
- data/lib/lithic/models.rb +6 -0
- data/lib/lithic/resources/blockchain_recipients.rb +23 -0
- data/lib/lithic/resources/cards.rb +4 -2
- 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/version.rb +1 -1
- data/lib/lithic.rb +13 -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/auth_rule.rbi +7 -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 +5 -0
- data/rbi/lithic/models/blockchain_recipient_retrieve_params.rbi +41 -0
- data/rbi/lithic/models/card_pin_updated_webhook_event.rbi +166 -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_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 +50 -0
- data/rbi/lithic/models/financial_accounts/transaction_category_balances.rbi +81 -0
- data/rbi/lithic/models/financial_event.rbi +35 -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 +2 -0
- 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/transaction.rbi +10 -0
- data/rbi/lithic/models.rbi +7 -0
- data/rbi/lithic/resources/blockchain_recipients.rbi +14 -0
- data/rbi/lithic/resources/cards.rbi +4 -2
- 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/webhooks.rbi +1 -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/auth_rule.rbs +2 -0
- 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 +2 -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/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_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 +20 -0
- data/sig/lithic/models/financial_accounts/transaction_category_balances.rbs +32 -0
- data/sig/lithic/models/financial_event.rbs +18 -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 +2 -0
- 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.rbs +6 -0
- data/sig/lithic/resources/blockchain_recipients.rbs +5 -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 +41 -2
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module FinancialAccounts
|
|
6
|
+
class InstallmentPlanListParams < 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::InstallmentPlanListParams,
|
|
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
|
+
# A cursor representing an item's token before which a page of results should end.
|
|
23
|
+
# Used to retrieve the previous page of results before this item.
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
attr_reader :ending_before
|
|
26
|
+
|
|
27
|
+
sig { params(ending_before: String).void }
|
|
28
|
+
attr_writer :ending_before
|
|
29
|
+
|
|
30
|
+
# Page size (for pagination).
|
|
31
|
+
sig { returns(T.nilable(Integer)) }
|
|
32
|
+
attr_reader :page_size
|
|
33
|
+
|
|
34
|
+
sig { params(page_size: Integer).void }
|
|
35
|
+
attr_writer :page_size
|
|
36
|
+
|
|
37
|
+
# A cursor representing an item's token after which a page of results should
|
|
38
|
+
# begin. Used to retrieve the next page of results after this item.
|
|
39
|
+
sig { returns(T.nilable(String)) }
|
|
40
|
+
attr_reader :starting_after
|
|
41
|
+
|
|
42
|
+
sig { params(starting_after: String).void }
|
|
43
|
+
attr_writer :starting_after
|
|
44
|
+
|
|
45
|
+
# Only installment plans in this state will be included.
|
|
46
|
+
sig do
|
|
47
|
+
returns(
|
|
48
|
+
T.nilable(
|
|
49
|
+
Lithic::FinancialAccounts::InstallmentPlanListParams::State::OrSymbol
|
|
50
|
+
)
|
|
51
|
+
)
|
|
52
|
+
end
|
|
53
|
+
attr_accessor :state
|
|
54
|
+
|
|
55
|
+
sig do
|
|
56
|
+
params(
|
|
57
|
+
financial_account_token: String,
|
|
58
|
+
ending_before: String,
|
|
59
|
+
page_size: Integer,
|
|
60
|
+
starting_after: String,
|
|
61
|
+
state:
|
|
62
|
+
T.nilable(
|
|
63
|
+
Lithic::FinancialAccounts::InstallmentPlanListParams::State::OrSymbol
|
|
64
|
+
),
|
|
65
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
66
|
+
).returns(T.attached_class)
|
|
67
|
+
end
|
|
68
|
+
def self.new(
|
|
69
|
+
# Globally unique identifier for financial account.
|
|
70
|
+
financial_account_token:,
|
|
71
|
+
# A cursor representing an item's token before which a page of results should end.
|
|
72
|
+
# Used to retrieve the previous page of results before this item.
|
|
73
|
+
ending_before: nil,
|
|
74
|
+
# Page size (for pagination).
|
|
75
|
+
page_size: nil,
|
|
76
|
+
# A cursor representing an item's token after which a page of results should
|
|
77
|
+
# begin. Used to retrieve the next page of results after this item.
|
|
78
|
+
starting_after: nil,
|
|
79
|
+
# Only installment plans in this state will be included.
|
|
80
|
+
state: nil,
|
|
81
|
+
request_options: {}
|
|
82
|
+
)
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
sig do
|
|
86
|
+
override.returns(
|
|
87
|
+
{
|
|
88
|
+
financial_account_token: String,
|
|
89
|
+
ending_before: String,
|
|
90
|
+
page_size: Integer,
|
|
91
|
+
starting_after: String,
|
|
92
|
+
state:
|
|
93
|
+
T.nilable(
|
|
94
|
+
Lithic::FinancialAccounts::InstallmentPlanListParams::State::OrSymbol
|
|
95
|
+
),
|
|
96
|
+
request_options: Lithic::RequestOptions
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
end
|
|
100
|
+
def to_hash
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Only installment plans in this state will be included.
|
|
104
|
+
module State
|
|
105
|
+
extend Lithic::Internal::Type::Enum
|
|
106
|
+
|
|
107
|
+
TaggedSymbol =
|
|
108
|
+
T.type_alias do
|
|
109
|
+
T.all(
|
|
110
|
+
Symbol,
|
|
111
|
+
Lithic::FinancialAccounts::InstallmentPlanListParams::State
|
|
112
|
+
)
|
|
113
|
+
end
|
|
114
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
115
|
+
|
|
116
|
+
PENDING =
|
|
117
|
+
T.let(
|
|
118
|
+
:PENDING,
|
|
119
|
+
Lithic::FinancialAccounts::InstallmentPlanListParams::State::TaggedSymbol
|
|
120
|
+
)
|
|
121
|
+
ACTIVE =
|
|
122
|
+
T.let(
|
|
123
|
+
:ACTIVE,
|
|
124
|
+
Lithic::FinancialAccounts::InstallmentPlanListParams::State::TaggedSymbol
|
|
125
|
+
)
|
|
126
|
+
REBUILD_IN_PROGRESS =
|
|
127
|
+
T.let(
|
|
128
|
+
:REBUILD_IN_PROGRESS,
|
|
129
|
+
Lithic::FinancialAccounts::InstallmentPlanListParams::State::TaggedSymbol
|
|
130
|
+
)
|
|
131
|
+
FULLY_PAID =
|
|
132
|
+
T.let(
|
|
133
|
+
:FULLY_PAID,
|
|
134
|
+
Lithic::FinancialAccounts::InstallmentPlanListParams::State::TaggedSymbol
|
|
135
|
+
)
|
|
136
|
+
CANCELLED =
|
|
137
|
+
T.let(
|
|
138
|
+
:CANCELLED,
|
|
139
|
+
Lithic::FinancialAccounts::InstallmentPlanListParams::State::TaggedSymbol
|
|
140
|
+
)
|
|
141
|
+
|
|
142
|
+
sig do
|
|
143
|
+
override.returns(
|
|
144
|
+
T::Array[
|
|
145
|
+
Lithic::FinancialAccounts::InstallmentPlanListParams::State::TaggedSymbol
|
|
146
|
+
]
|
|
147
|
+
)
|
|
148
|
+
end
|
|
149
|
+
def self.values
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
@@ -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,
|
|
@@ -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)
|
|
@@ -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,
|
|
@@ -267,6 +267,8 @@ module Lithic
|
|
|
267
267
|
T.let(:EXTERNAL_FEDNOW, Lithic::Payment::Category::TaggedSymbol)
|
|
268
268
|
EXTERNAL_RTP =
|
|
269
269
|
T.let(:EXTERNAL_RTP, Lithic::Payment::Category::TaggedSymbol)
|
|
270
|
+
EXTERNAL_STABLECOIN =
|
|
271
|
+
T.let(:EXTERNAL_STABLECOIN, Lithic::Payment::Category::TaggedSymbol)
|
|
270
272
|
EXTERNAL_TRANSFER =
|
|
271
273
|
T.let(:EXTERNAL_TRANSFER, Lithic::Payment::Category::TaggedSymbol)
|
|
272
274
|
EXTERNAL_WIRE =
|