lithic 0.20.0 → 0.22.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 +44 -0
- data/README.md +1 -10
- data/lib/lithic/internal/type/union.rb +21 -7
- 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/account_holder_create_params.rb +4 -2
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +120 -66
- data/lib/lithic/models/account_holder_update_params.rb +6 -3
- data/lib/lithic/models/account_holder_update_response.rb +156 -86
- data/lib/lithic/models/account_holder_updated_webhook_event.rb +120 -66
- data/lib/lithic/models/account_holders/account_holder_entity.rb +35 -19
- data/lib/lithic/models/account_holders/entity_create_params.rb +39 -21
- data/lib/lithic/models/address.rb +33 -19
- data/lib/lithic/models/address_update.rb +27 -11
- data/lib/lithic/models/auth_rules/auth_rule.rb +60 -27
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +189 -6
- data/lib/lithic/models/auth_rules/auth_rule_entities.rb +47 -0
- data/lib/lithic/models/auth_rules/auth_rule_entities_response.rb +31 -0
- data/lib/lithic/models/auth_rules/auth_rule_entity.rb +150 -0
- data/lib/lithic/models/auth_rules/auth_rule_version.rb +3 -6
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +33 -6
- data/lib/lithic/models/auth_rules/conditional_attribute.rb +101 -5
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +3 -439
- data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +7 -0
- data/lib/lithic/models/auth_rules/merchant_lock_parameters.rb +11 -1
- data/lib/lithic/models/auth_rules/report_stats.rb +1 -0
- data/lib/lithic/models/auth_rules/v2_create_params.rb +218 -45
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +3 -6
- data/lib/lithic/models/auth_rules/v2_list_params.rb +5 -3
- data/lib/lithic/models/auth_rules/v2_list_results_response.rb +1 -0
- data/lib/lithic/models/auth_rules/v2_update_entities_params.rb +39 -0
- data/lib/lithic/models/auth_rules/v2_update_params.rb +133 -12
- data/lib/lithic/models/blockchain_recipient_retrieve_params.rb +20 -0
- data/lib/lithic/models/card_authorization.rb +11 -1
- data/lib/lithic/models/card_create_params.rb +11 -1
- data/lib/lithic/models/card_pin_updated_webhook_event.rb +87 -0
- data/lib/lithic/models/card_update_params.rb +12 -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_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/installment_plans/installment_plan_statement.rb +279 -0
- data/lib/lithic/models/financial_accounts/installment_plans/statement_list_params.rb +106 -0
- data/lib/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rb +42 -0
- data/lib/lithic/models/financial_accounts/loan_tape.rb +62 -1
- 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/kyb.rb +4 -2
- data/lib/lithic/models/kyb_business_entity.rb +35 -19
- data/lib/lithic/models/kyc.rb +2 -1
- 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/non_pci_card.rb +11 -1
- data/lib/lithic/models/parsed_webhook_event.rb +123 -67
- data/lib/lithic/models/payment.rb +3 -1
- 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 +4 -1
- data/lib/lithic/models/transaction_simulate_authorization_params.rb +28 -4
- data/lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb +11 -1
- data/lib/lithic/models/transaction_simulate_return_params.rb +24 -1
- data/lib/lithic/models.rb +6 -0
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +8 -8
- data/lib/lithic/resources/auth_rules/v2.rb +44 -8
- data/lib/lithic/resources/blockchain_recipients.rb +23 -0
- data/lib/lithic/resources/cards.rb +10 -4
- data/lib/lithic/resources/financial_accounts/installment_plans/statements.rb +107 -0
- data/lib/lithic/resources/financial_accounts/installment_plans.rb +86 -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/transactions.rb +17 -4
- data/lib/lithic/resources/webhooks.rb +18 -0
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +21 -1
- 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/account_holder_create_params.rbi +8 -4
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +195 -90
- data/rbi/lithic/models/account_holder_update_params.rbi +12 -6
- data/rbi/lithic/models/account_holder_update_response.rbi +254 -117
- data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +195 -90
- data/rbi/lithic/models/account_holders/account_holder_entity.rbi +59 -27
- data/rbi/lithic/models/account_holders/entity_create_params.rbi +65 -30
- data/rbi/lithic/models/address.rbi +57 -29
- data/rbi/lithic/models/address_update.rbi +50 -24
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +60 -19
- data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +442 -13
- data/rbi/lithic/models/auth_rules/auth_rule_entities.rbi +163 -0
- data/rbi/lithic/models/auth_rules/auth_rule_entities_response.rbi +72 -0
- data/rbi/lithic/models/auth_rules/auth_rule_entity.rbi +199 -0
- data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +0 -2
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +67 -9
- data/rbi/lithic/models/auth_rules/conditional_attribute.rbi +193 -5
- data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +3 -939
- data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +14 -0
- data/rbi/lithic/models/auth_rules/merchant_lock_parameters.rbi +14 -3
- data/rbi/lithic/models/auth_rules/report_stats.rbi +5 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +358 -50
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +0 -4
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +6 -3
- data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +5 -0
- data/rbi/lithic/models/auth_rules/v2_update_entities_params.rbi +68 -0
- data/rbi/lithic/models/auth_rules/v2_update_params.rbi +198 -5
- data/rbi/lithic/models/blockchain_recipient_retrieve_params.rbi +41 -0
- data/rbi/lithic/models/card_authorization.rbi +12 -0
- data/rbi/lithic/models/card_create_params.rbi +15 -0
- data/rbi/lithic/models/card_pin_updated_webhook_event.rbi +166 -0
- data/rbi/lithic/models/card_update_params.rbi +17 -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/installment_plans/installment_plan_statement.rbi +452 -0
- data/rbi/lithic/models/financial_accounts/installment_plans/statement_list_params.rbi +191 -0
- data/rbi/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbi +66 -0
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +119 -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/kyb.rbi +8 -4
- data/rbi/lithic/models/kyb_business_entity.rbi +59 -27
- data/rbi/lithic/models/kyc.rbi +4 -2
- 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/non_pci_card.rbi +12 -0
- data/rbi/lithic/models/parsed_webhook_event.rbi +196 -90
- data/rbi/lithic/models/payment.rbi +6 -2
- 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 +14 -2
- data/rbi/lithic/models/transaction_simulate_authorization_params.rbi +42 -4
- data/rbi/lithic/models/transaction_simulate_credit_authorization_advice_params.rbi +15 -0
- data/rbi/lithic/models/transaction_simulate_return_params.rbi +30 -0
- data/rbi/lithic/models.rbi +7 -0
- data/rbi/lithic/resources/account_holders/entities.rbi +2 -1
- data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +8 -8
- data/rbi/lithic/resources/auth_rules/v2.rbi +43 -8
- data/rbi/lithic/resources/blockchain_recipients.rbi +14 -0
- data/rbi/lithic/resources/cards.rbi +15 -2
- data/rbi/lithic/resources/financial_accounts/installment_plans/statements.rbi +86 -0
- data/rbi/lithic/resources/financial_accounts/installment_plans.rbi +73 -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/transactions.rbi +31 -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/account_holder_simulate_enrollment_review_response.rbs +39 -39
- data/sig/lithic/models/account_holder_update_response.rbs +52 -52
- data/sig/lithic/models/account_holder_updated_webhook_event.rbs +39 -39
- data/sig/lithic/models/account_holders/account_holder_entity.rbs +13 -13
- data/sig/lithic/models/account_holders/entity_create_params.rbs +13 -13
- data/sig/lithic/models/address.rbs +13 -13
- data/sig/lithic/models/address_update.rbs +8 -12
- data/sig/lithic/models/auth_rules/auth_rule.rbs +10 -7
- data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +89 -3
- data/sig/lithic/models/auth_rules/auth_rule_entities.rbs +37 -0
- data/sig/lithic/models/auth_rules/auth_rule_entities_response.rbs +29 -0
- data/sig/lithic/models/auth_rules/auth_rule_entity.rbs +80 -0
- data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -2
- data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -0
- data/sig/lithic/models/auth_rules/conditional_attribute.rbs +46 -0
- data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +4 -204
- data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +2 -0
- data/sig/lithic/models/auth_rules/merchant_lock_parameters.rbs +10 -3
- data/sig/lithic/models/auth_rules/report_stats.rbs +2 -0
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +92 -16
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -2
- data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +2 -0
- data/sig/lithic/models/auth_rules/v2_update_entities_params.rbs +46 -0
- data/sig/lithic/models/auth_rules/v2_update_params.rbs +47 -1
- data/sig/lithic/models/blockchain_recipient_retrieve_params.rbs +24 -0
- data/sig/lithic/models/card_authorization.rbs +5 -0
- data/sig/lithic/models/card_create_params.rbs +7 -0
- data/sig/lithic/models/card_pin_updated_webhook_event.rbs +60 -0
- data/sig/lithic/models/card_update_params.rbs +8 -1
- 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/installment_plans/installment_plan_statement.rbs +191 -0
- data/sig/lithic/models/financial_accounts/installment_plans/statement_list_params.rbs +90 -0
- data/sig/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbs +40 -0
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +47 -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/kyb_business_entity.rbs +13 -13
- 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/non_pci_card.rbs +5 -0
- data/sig/lithic/models/parsed_webhook_event.rbs +40 -39
- 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/transaction_simulate_authorization_params.rbs +14 -0
- data/sig/lithic/models/transaction_simulate_credit_authorization_advice_params.rbs +7 -0
- data/sig/lithic/models/transaction_simulate_return_params.rbs +19 -1
- data/sig/lithic/models.rbs +6 -0
- data/sig/lithic/resources/auth_rules/v2.rbs +7 -0
- data/sig/lithic/resources/blockchain_recipients.rbs +5 -0
- data/sig/lithic/resources/cards.rbs +2 -0
- data/sig/lithic/resources/financial_accounts/installment_plans/statements.rbs +30 -0
- data/sig/lithic/resources/financial_accounts/installment_plans.rbs +26 -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/transactions.rbs +5 -0
- data/sig/lithic/resources/webhooks.rbs +1 -0
- metadata +65 -5
- data/lib/lithic/models/auth_rules/conditional_block_parameters.rb +0 -20
- data/rbi/lithic/models/auth_rules/conditional_block_parameters.rbi +0 -37
- data/sig/lithic/models/auth_rules/conditional_block_parameters.rbs +0 -20
|
@@ -22,6 +22,7 @@ module Lithic
|
|
|
22
22
|
spend_limit: Integer,
|
|
23
23
|
spend_limit_duration: Lithic::Models::spend_limit_duration,
|
|
24
24
|
state: Lithic::Models::CardCreateParams::state,
|
|
25
|
+
tags: ::Hash[Symbol, String],
|
|
25
26
|
idempotency_key: String
|
|
26
27
|
}
|
|
27
28
|
& Lithic::Internal::Type::request_parameters
|
|
@@ -118,6 +119,10 @@ module Lithic
|
|
|
118
119
|
Lithic::Models::CardCreateParams::state
|
|
119
120
|
) -> Lithic::Models::CardCreateParams::state
|
|
120
121
|
|
|
122
|
+
attr_reader tags: ::Hash[Symbol, String]?
|
|
123
|
+
|
|
124
|
+
def tags=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
125
|
+
|
|
121
126
|
attr_reader idempotency_key: String?
|
|
122
127
|
|
|
123
128
|
def idempotency_key=: (String) -> String
|
|
@@ -143,6 +148,7 @@ module Lithic
|
|
|
143
148
|
?spend_limit: Integer,
|
|
144
149
|
?spend_limit_duration: Lithic::Models::spend_limit_duration,
|
|
145
150
|
?state: Lithic::Models::CardCreateParams::state,
|
|
151
|
+
?tags: ::Hash[Symbol, String],
|
|
146
152
|
?idempotency_key: String,
|
|
147
153
|
?request_options: Lithic::request_opts
|
|
148
154
|
) -> void
|
|
@@ -168,6 +174,7 @@ module Lithic
|
|
|
168
174
|
spend_limit: Integer,
|
|
169
175
|
spend_limit_duration: Lithic::Models::spend_limit_duration,
|
|
170
176
|
state: Lithic::Models::CardCreateParams::state,
|
|
177
|
+
tags: ::Hash[Symbol, String],
|
|
171
178
|
idempotency_key: String,
|
|
172
179
|
request_options: Lithic::RequestOptions
|
|
173
180
|
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
module Lithic
|
|
2
|
+
module Models
|
|
3
|
+
type card_pin_updated_webhook_event =
|
|
4
|
+
{
|
|
5
|
+
card_token: String,
|
|
6
|
+
event_type: :"card.pin_updated",
|
|
7
|
+
pin_status: Lithic::Models::CardPinUpdatedWebhookEvent::pin_status,
|
|
8
|
+
status_reason: Lithic::Models::CardPinUpdatedWebhookEvent::status_reason
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class CardPinUpdatedWebhookEvent < Lithic::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor card_token: String
|
|
13
|
+
|
|
14
|
+
attr_accessor event_type: :"card.pin_updated"
|
|
15
|
+
|
|
16
|
+
attr_accessor pin_status: Lithic::Models::CardPinUpdatedWebhookEvent::pin_status
|
|
17
|
+
|
|
18
|
+
attr_accessor status_reason: Lithic::Models::CardPinUpdatedWebhookEvent::status_reason
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
card_token: String,
|
|
22
|
+
pin_status: Lithic::Models::CardPinUpdatedWebhookEvent::pin_status,
|
|
23
|
+
status_reason: Lithic::Models::CardPinUpdatedWebhookEvent::status_reason,
|
|
24
|
+
?event_type: :"card.pin_updated"
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
card_token: String,
|
|
29
|
+
event_type: :"card.pin_updated",
|
|
30
|
+
pin_status: Lithic::Models::CardPinUpdatedWebhookEvent::pin_status,
|
|
31
|
+
status_reason: Lithic::Models::CardPinUpdatedWebhookEvent::status_reason
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
type pin_status = :OK | :BLOCKED
|
|
35
|
+
|
|
36
|
+
module PinStatus
|
|
37
|
+
extend Lithic::Internal::Type::Enum
|
|
38
|
+
|
|
39
|
+
OK: :OK
|
|
40
|
+
BLOCKED: :BLOCKED
|
|
41
|
+
|
|
42
|
+
def self?.values: -> ::Array[Lithic::Models::CardPinUpdatedWebhookEvent::pin_status]
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
type status_reason =
|
|
46
|
+
:PIN_SET | :PIN_CHANGED | :PIN_UNBLOCKED | :EXCESSIVE_PIN_ATTEMPTS
|
|
47
|
+
|
|
48
|
+
module StatusReason
|
|
49
|
+
extend Lithic::Internal::Type::Enum
|
|
50
|
+
|
|
51
|
+
PIN_SET: :PIN_SET
|
|
52
|
+
PIN_CHANGED: :PIN_CHANGED
|
|
53
|
+
PIN_UNBLOCKED: :PIN_UNBLOCKED
|
|
54
|
+
EXCESSIVE_PIN_ATTEMPTS: :EXCESSIVE_PIN_ATTEMPTS
|
|
55
|
+
|
|
56
|
+
def self?.values: -> ::Array[Lithic::Models::CardPinUpdatedWebhookEvent::status_reason]
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
@@ -12,7 +12,8 @@ module Lithic
|
|
|
12
12
|
spend_limit: Integer,
|
|
13
13
|
spend_limit_duration: Lithic::Models::spend_limit_duration,
|
|
14
14
|
state: Lithic::Models::CardUpdateParams::state,
|
|
15
|
-
substatus: Lithic::Models::CardUpdateParams::substatus
|
|
15
|
+
substatus: Lithic::Models::CardUpdateParams::substatus,
|
|
16
|
+
tags: ::Hash[Symbol, String?]
|
|
16
17
|
}
|
|
17
18
|
& Lithic::Internal::Type::request_parameters
|
|
18
19
|
|
|
@@ -70,6 +71,10 @@ module Lithic
|
|
|
70
71
|
Lithic::Models::CardUpdateParams::substatus
|
|
71
72
|
) -> Lithic::Models::CardUpdateParams::substatus
|
|
72
73
|
|
|
74
|
+
attr_reader tags: ::Hash[Symbol, String?]?
|
|
75
|
+
|
|
76
|
+
def tags=: (::Hash[Symbol, String?]) -> ::Hash[Symbol, String?]
|
|
77
|
+
|
|
73
78
|
def initialize: (
|
|
74
79
|
card_token: String,
|
|
75
80
|
?comment: String,
|
|
@@ -82,6 +87,7 @@ module Lithic
|
|
|
82
87
|
?spend_limit_duration: Lithic::Models::spend_limit_duration,
|
|
83
88
|
?state: Lithic::Models::CardUpdateParams::state,
|
|
84
89
|
?substatus: Lithic::Models::CardUpdateParams::substatus,
|
|
90
|
+
?tags: ::Hash[Symbol, String?],
|
|
85
91
|
?request_options: Lithic::request_opts
|
|
86
92
|
) -> void
|
|
87
93
|
|
|
@@ -97,6 +103,7 @@ module Lithic
|
|
|
97
103
|
spend_limit_duration: Lithic::Models::spend_limit_duration,
|
|
98
104
|
state: Lithic::Models::CardUpdateParams::state,
|
|
99
105
|
substatus: Lithic::Models::CardUpdateParams::substatus,
|
|
106
|
+
tags: ::Hash[Symbol, String?],
|
|
100
107
|
request_options: Lithic::RequestOptions
|
|
101
108
|
}
|
|
102
109
|
|
data/sig/lithic/models/event.rbs
CHANGED
|
@@ -47,6 +47,7 @@ module Lithic
|
|
|
47
47
|
| :"card_transaction.updated"
|
|
48
48
|
| :"card.converted"
|
|
49
49
|
| :"card.created"
|
|
50
|
+
| :"card.pin_updated"
|
|
50
51
|
| :"card.reissued"
|
|
51
52
|
| :"card.renewed"
|
|
52
53
|
| :"card.shipped"
|
|
@@ -112,6 +113,7 @@ module Lithic
|
|
|
112
113
|
CARD_TRANSACTION_UPDATED: :"card_transaction.updated"
|
|
113
114
|
CARD_CONVERTED: :"card.converted"
|
|
114
115
|
CARD_CREATED: :"card.created"
|
|
116
|
+
CARD_PIN_UPDATED: :"card.pin_updated"
|
|
115
117
|
CARD_REISSUED: :"card.reissued"
|
|
116
118
|
CARD_RENEWED: :"card.renewed"
|
|
117
119
|
CARD_SHIPPED: :"card.shipped"
|
|
@@ -84,6 +84,7 @@ module Lithic
|
|
|
84
84
|
| :"card_transaction.updated"
|
|
85
85
|
| :"card.converted"
|
|
86
86
|
| :"card.created"
|
|
87
|
+
| :"card.pin_updated"
|
|
87
88
|
| :"card.reissued"
|
|
88
89
|
| :"card.renewed"
|
|
89
90
|
| :"card.shipped"
|
|
@@ -149,6 +150,7 @@ module Lithic
|
|
|
149
150
|
CARD_TRANSACTION_UPDATED: :"card_transaction.updated"
|
|
150
151
|
CARD_CONVERTED: :"card.converted"
|
|
151
152
|
CARD_CREATED: :"card.created"
|
|
153
|
+
CARD_PIN_UPDATED: :"card.pin_updated"
|
|
152
154
|
CARD_REISSUED: :"card.reissued"
|
|
153
155
|
CARD_RENEWED: :"card.renewed"
|
|
154
156
|
CARD_SHIPPED: :"card.shipped"
|
|
@@ -52,6 +52,7 @@ module Lithic
|
|
|
52
52
|
| :"card_transaction.updated"
|
|
53
53
|
| :"card.converted"
|
|
54
54
|
| :"card.created"
|
|
55
|
+
| :"card.pin_updated"
|
|
55
56
|
| :"card.reissued"
|
|
56
57
|
| :"card.renewed"
|
|
57
58
|
| :"card.shipped"
|
|
@@ -117,6 +118,7 @@ module Lithic
|
|
|
117
118
|
CARD_TRANSACTION_UPDATED: :"card_transaction.updated"
|
|
118
119
|
CARD_CONVERTED: :"card.converted"
|
|
119
120
|
CARD_CREATED: :"card.created"
|
|
121
|
+
CARD_PIN_UPDATED: :"card.pin_updated"
|
|
120
122
|
CARD_REISSUED: :"card.reissued"
|
|
121
123
|
CARD_RENEWED: :"card.renewed"
|
|
122
124
|
CARD_SHIPPED: :"card.shipped"
|
|
@@ -62,6 +62,7 @@ module Lithic
|
|
|
62
62
|
| :"card_transaction.updated"
|
|
63
63
|
| :"card.converted"
|
|
64
64
|
| :"card.created"
|
|
65
|
+
| :"card.pin_updated"
|
|
65
66
|
| :"card.reissued"
|
|
66
67
|
| :"card.renewed"
|
|
67
68
|
| :"card.shipped"
|
|
@@ -127,6 +128,7 @@ module Lithic
|
|
|
127
128
|
CARD_TRANSACTION_UPDATED: :"card_transaction.updated"
|
|
128
129
|
CARD_CONVERTED: :"card.converted"
|
|
129
130
|
CARD_CREATED: :"card.created"
|
|
131
|
+
CARD_PIN_UPDATED: :"card.pin_updated"
|
|
130
132
|
CARD_REISSUED: :"card.reissued"
|
|
131
133
|
CARD_RENEWED: :"card.renewed"
|
|
132
134
|
CARD_SHIPPED: :"card.shipped"
|
|
@@ -48,6 +48,7 @@ module Lithic
|
|
|
48
48
|
| :"card_transaction.updated"
|
|
49
49
|
| :"card.converted"
|
|
50
50
|
| :"card.created"
|
|
51
|
+
| :"card.pin_updated"
|
|
51
52
|
| :"card.reissued"
|
|
52
53
|
| :"card.renewed"
|
|
53
54
|
| :"card.shipped"
|
|
@@ -113,6 +114,7 @@ module Lithic
|
|
|
113
114
|
CARD_TRANSACTION_UPDATED: :"card_transaction.updated"
|
|
114
115
|
CARD_CONVERTED: :"card.converted"
|
|
115
116
|
CARD_CREATED: :"card.created"
|
|
117
|
+
CARD_PIN_UPDATED: :"card.pin_updated"
|
|
116
118
|
CARD_REISSUED: :"card.reissued"
|
|
117
119
|
CARD_RENEWED: :"card.renewed"
|
|
118
120
|
CARD_SHIPPED: :"card.shipped"
|
|
@@ -67,6 +67,7 @@ module Lithic
|
|
|
67
67
|
| :"card_transaction.updated"
|
|
68
68
|
| :"card.converted"
|
|
69
69
|
| :"card.created"
|
|
70
|
+
| :"card.pin_updated"
|
|
70
71
|
| :"card.reissued"
|
|
71
72
|
| :"card.renewed"
|
|
72
73
|
| :"card.shipped"
|
|
@@ -132,6 +133,7 @@ module Lithic
|
|
|
132
133
|
CARD_TRANSACTION_UPDATED: :"card_transaction.updated"
|
|
133
134
|
CARD_CONVERTED: :"card.converted"
|
|
134
135
|
CARD_CREATED: :"card.created"
|
|
136
|
+
CARD_PIN_UPDATED: :"card.pin_updated"
|
|
135
137
|
CARD_REISSUED: :"card.reissued"
|
|
136
138
|
CARD_RENEWED: :"card.renewed"
|
|
137
139
|
CARD_SHIPPED: :"card.shipped"
|
|
@@ -131,6 +131,7 @@ module Lithic
|
|
|
131
131
|
| :EXTERNAL_CHECK
|
|
132
132
|
| :EXTERNAL_FEDNOW
|
|
133
133
|
| :EXTERNAL_RTP
|
|
134
|
+
| :EXTERNAL_STABLECOIN
|
|
134
135
|
| :EXTERNAL_TRANSFER
|
|
135
136
|
|
|
136
137
|
module Category
|
|
@@ -141,6 +142,7 @@ module Lithic
|
|
|
141
142
|
EXTERNAL_CHECK: :EXTERNAL_CHECK
|
|
142
143
|
EXTERNAL_FEDNOW: :EXTERNAL_FEDNOW
|
|
143
144
|
EXTERNAL_RTP: :EXTERNAL_RTP
|
|
145
|
+
EXTERNAL_STABLECOIN: :EXTERNAL_STABLECOIN
|
|
144
146
|
EXTERNAL_TRANSFER: :EXTERNAL_TRANSFER
|
|
145
147
|
|
|
146
148
|
def self?.values: -> ::Array[Lithic::Models::ExternalPayment::category]
|
|
@@ -250,6 +252,11 @@ module Lithic
|
|
|
250
252
|
| :EXTERNAL_RTP_SETTLED
|
|
251
253
|
| :EXTERNAL_RTP_REVERSED
|
|
252
254
|
| :EXTERNAL_RTP_RELEASED
|
|
255
|
+
| :EXTERNAL_STABLECOIN_INITIATED
|
|
256
|
+
| :EXTERNAL_STABLECOIN_CANCELED
|
|
257
|
+
| :EXTERNAL_STABLECOIN_SETTLED
|
|
258
|
+
| :EXTERNAL_STABLECOIN_REVERSED
|
|
259
|
+
| :EXTERNAL_STABLECOIN_RELEASED
|
|
253
260
|
|
|
254
261
|
module Type
|
|
255
262
|
extend Lithic::Internal::Type::Enum
|
|
@@ -284,6 +291,11 @@ module Lithic
|
|
|
284
291
|
EXTERNAL_RTP_SETTLED: :EXTERNAL_RTP_SETTLED
|
|
285
292
|
EXTERNAL_RTP_REVERSED: :EXTERNAL_RTP_REVERSED
|
|
286
293
|
EXTERNAL_RTP_RELEASED: :EXTERNAL_RTP_RELEASED
|
|
294
|
+
EXTERNAL_STABLECOIN_INITIATED: :EXTERNAL_STABLECOIN_INITIATED
|
|
295
|
+
EXTERNAL_STABLECOIN_CANCELED: :EXTERNAL_STABLECOIN_CANCELED
|
|
296
|
+
EXTERNAL_STABLECOIN_SETTLED: :EXTERNAL_STABLECOIN_SETTLED
|
|
297
|
+
EXTERNAL_STABLECOIN_REVERSED: :EXTERNAL_STABLECOIN_REVERSED
|
|
298
|
+
EXTERNAL_STABLECOIN_RELEASED: :EXTERNAL_STABLECOIN_RELEASED
|
|
287
299
|
|
|
288
300
|
def self?.values: -> ::Array[Lithic::Models::ExternalPayment::Event::type_]
|
|
289
301
|
end
|
|
@@ -78,6 +78,7 @@ module Lithic
|
|
|
78
78
|
| :EXTERNAL_CHECK
|
|
79
79
|
| :EXTERNAL_FEDNOW
|
|
80
80
|
| :EXTERNAL_RTP
|
|
81
|
+
| :EXTERNAL_STABLECOIN
|
|
81
82
|
| :EXTERNAL_TRANSFER
|
|
82
83
|
|
|
83
84
|
module Category
|
|
@@ -88,6 +89,7 @@ module Lithic
|
|
|
88
89
|
EXTERNAL_CHECK: :EXTERNAL_CHECK
|
|
89
90
|
EXTERNAL_FEDNOW: :EXTERNAL_FEDNOW
|
|
90
91
|
EXTERNAL_RTP: :EXTERNAL_RTP
|
|
92
|
+
EXTERNAL_STABLECOIN: :EXTERNAL_STABLECOIN
|
|
91
93
|
EXTERNAL_TRANSFER: :EXTERNAL_TRANSFER
|
|
92
94
|
|
|
93
95
|
def self?.values: -> ::Array[Lithic::Models::ExternalPaymentCreateParams::category]
|
|
@@ -99,6 +99,7 @@ module Lithic
|
|
|
99
99
|
| :EXTERNAL_CHECK
|
|
100
100
|
| :EXTERNAL_FEDNOW
|
|
101
101
|
| :EXTERNAL_RTP
|
|
102
|
+
| :EXTERNAL_STABLECOIN
|
|
102
103
|
| :EXTERNAL_TRANSFER
|
|
103
104
|
|
|
104
105
|
module Category
|
|
@@ -109,6 +110,7 @@ module Lithic
|
|
|
109
110
|
EXTERNAL_CHECK: :EXTERNAL_CHECK
|
|
110
111
|
EXTERNAL_FEDNOW: :EXTERNAL_FEDNOW
|
|
111
112
|
EXTERNAL_RTP: :EXTERNAL_RTP
|
|
113
|
+
EXTERNAL_STABLECOIN: :EXTERNAL_STABLECOIN
|
|
112
114
|
EXTERNAL_TRANSFER: :EXTERNAL_TRANSFER
|
|
113
115
|
|
|
114
116
|
def self?.values: -> ::Array[Lithic::Models::ExternalPaymentListParams::category]
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
module Lithic
|
|
2
|
+
module Models
|
|
3
|
+
module FinancialAccounts
|
|
4
|
+
type installment_plan =
|
|
5
|
+
{
|
|
6
|
+
token: String,
|
|
7
|
+
closed_at: Date?,
|
|
8
|
+
created: Time,
|
|
9
|
+
fee_amount: Integer,
|
|
10
|
+
financial_account_token: String,
|
|
11
|
+
installment_plan_total: Integer,
|
|
12
|
+
installments: ::Array[Lithic::FinancialAccounts::InstallmentPlan::Installment],
|
|
13
|
+
installments_outstanding: Integer,
|
|
14
|
+
installments_paid: Integer,
|
|
15
|
+
num_installments: Integer,
|
|
16
|
+
principal_amount: Integer,
|
|
17
|
+
source_amounts: Lithic::FinancialAccounts::TransactionCategoryBalances?,
|
|
18
|
+
source_id: String,
|
|
19
|
+
source_type: Lithic::Models::FinancialAccounts::InstallmentPlan::source_type,
|
|
20
|
+
start_date: Date,
|
|
21
|
+
state: Lithic::Models::FinancialAccounts::InstallmentPlan::state,
|
|
22
|
+
total_paid: Integer,
|
|
23
|
+
updated: Time
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
class InstallmentPlan < Lithic::Internal::Type::BaseModel
|
|
27
|
+
attr_accessor token: String
|
|
28
|
+
|
|
29
|
+
attr_accessor closed_at: Date?
|
|
30
|
+
|
|
31
|
+
attr_accessor created: Time
|
|
32
|
+
|
|
33
|
+
attr_accessor fee_amount: Integer
|
|
34
|
+
|
|
35
|
+
attr_accessor financial_account_token: String
|
|
36
|
+
|
|
37
|
+
attr_accessor installment_plan_total: Integer
|
|
38
|
+
|
|
39
|
+
attr_accessor installments: ::Array[Lithic::FinancialAccounts::InstallmentPlan::Installment]
|
|
40
|
+
|
|
41
|
+
attr_accessor installments_outstanding: Integer
|
|
42
|
+
|
|
43
|
+
attr_accessor installments_paid: Integer
|
|
44
|
+
|
|
45
|
+
attr_accessor num_installments: Integer
|
|
46
|
+
|
|
47
|
+
attr_accessor principal_amount: Integer
|
|
48
|
+
|
|
49
|
+
attr_accessor source_amounts: Lithic::FinancialAccounts::TransactionCategoryBalances?
|
|
50
|
+
|
|
51
|
+
attr_accessor source_id: String
|
|
52
|
+
|
|
53
|
+
attr_accessor source_type: Lithic::Models::FinancialAccounts::InstallmentPlan::source_type
|
|
54
|
+
|
|
55
|
+
attr_accessor start_date: Date
|
|
56
|
+
|
|
57
|
+
attr_accessor state: Lithic::Models::FinancialAccounts::InstallmentPlan::state
|
|
58
|
+
|
|
59
|
+
attr_accessor total_paid: Integer
|
|
60
|
+
|
|
61
|
+
attr_accessor updated: Time
|
|
62
|
+
|
|
63
|
+
def initialize: (
|
|
64
|
+
token: String,
|
|
65
|
+
closed_at: Date?,
|
|
66
|
+
created: Time,
|
|
67
|
+
fee_amount: Integer,
|
|
68
|
+
financial_account_token: String,
|
|
69
|
+
installment_plan_total: Integer,
|
|
70
|
+
installments: ::Array[Lithic::FinancialAccounts::InstallmentPlan::Installment],
|
|
71
|
+
installments_outstanding: Integer,
|
|
72
|
+
installments_paid: Integer,
|
|
73
|
+
num_installments: Integer,
|
|
74
|
+
principal_amount: Integer,
|
|
75
|
+
source_amounts: Lithic::FinancialAccounts::TransactionCategoryBalances?,
|
|
76
|
+
source_id: String,
|
|
77
|
+
source_type: Lithic::Models::FinancialAccounts::InstallmentPlan::source_type,
|
|
78
|
+
start_date: Date,
|
|
79
|
+
state: Lithic::Models::FinancialAccounts::InstallmentPlan::state,
|
|
80
|
+
total_paid: Integer,
|
|
81
|
+
updated: Time
|
|
82
|
+
) -> void
|
|
83
|
+
|
|
84
|
+
def to_hash: -> {
|
|
85
|
+
token: String,
|
|
86
|
+
closed_at: Date?,
|
|
87
|
+
created: Time,
|
|
88
|
+
fee_amount: Integer,
|
|
89
|
+
financial_account_token: String,
|
|
90
|
+
installment_plan_total: Integer,
|
|
91
|
+
installments: ::Array[Lithic::FinancialAccounts::InstallmentPlan::Installment],
|
|
92
|
+
installments_outstanding: Integer,
|
|
93
|
+
installments_paid: Integer,
|
|
94
|
+
num_installments: Integer,
|
|
95
|
+
principal_amount: Integer,
|
|
96
|
+
source_amounts: Lithic::FinancialAccounts::TransactionCategoryBalances?,
|
|
97
|
+
source_id: String,
|
|
98
|
+
source_type: Lithic::Models::FinancialAccounts::InstallmentPlan::source_type,
|
|
99
|
+
start_date: Date,
|
|
100
|
+
state: Lithic::Models::FinancialAccounts::InstallmentPlan::state,
|
|
101
|
+
total_paid: Integer,
|
|
102
|
+
updated: Time
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
type installment =
|
|
106
|
+
{
|
|
107
|
+
amount_due: Integer,
|
|
108
|
+
amount_due_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
|
|
109
|
+
amount_outstanding: Integer,
|
|
110
|
+
amount_outstanding_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
|
|
111
|
+
amount_paid: Integer,
|
|
112
|
+
amount_paid_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
|
|
113
|
+
date_assessed: Date?,
|
|
114
|
+
due_date: Date,
|
|
115
|
+
installment_num: Integer,
|
|
116
|
+
payment_due_date: Date,
|
|
117
|
+
payments: ::Array[Lithic::FinancialAccounts::InstallmentPlan::Installment::Payment]
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
class Installment < Lithic::Internal::Type::BaseModel
|
|
121
|
+
attr_accessor amount_due: Integer
|
|
122
|
+
|
|
123
|
+
attr_accessor amount_due_details: Lithic::FinancialAccounts::TransactionCategoryBalances
|
|
124
|
+
|
|
125
|
+
attr_accessor amount_outstanding: Integer
|
|
126
|
+
|
|
127
|
+
attr_accessor amount_outstanding_details: Lithic::FinancialAccounts::TransactionCategoryBalances
|
|
128
|
+
|
|
129
|
+
attr_accessor amount_paid: Integer
|
|
130
|
+
|
|
131
|
+
attr_accessor amount_paid_details: Lithic::FinancialAccounts::TransactionCategoryBalances
|
|
132
|
+
|
|
133
|
+
attr_accessor date_assessed: Date?
|
|
134
|
+
|
|
135
|
+
attr_accessor due_date: Date
|
|
136
|
+
|
|
137
|
+
attr_accessor installment_num: Integer
|
|
138
|
+
|
|
139
|
+
attr_accessor payment_due_date: Date
|
|
140
|
+
|
|
141
|
+
attr_accessor payments: ::Array[Lithic::FinancialAccounts::InstallmentPlan::Installment::Payment]
|
|
142
|
+
|
|
143
|
+
def initialize: (
|
|
144
|
+
amount_due: Integer,
|
|
145
|
+
amount_due_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
|
|
146
|
+
amount_outstanding: Integer,
|
|
147
|
+
amount_outstanding_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
|
|
148
|
+
amount_paid: Integer,
|
|
149
|
+
amount_paid_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
|
|
150
|
+
date_assessed: Date?,
|
|
151
|
+
due_date: Date,
|
|
152
|
+
installment_num: Integer,
|
|
153
|
+
payment_due_date: Date,
|
|
154
|
+
payments: ::Array[Lithic::FinancialAccounts::InstallmentPlan::Installment::Payment]
|
|
155
|
+
) -> void
|
|
156
|
+
|
|
157
|
+
def to_hash: -> {
|
|
158
|
+
amount_due: Integer,
|
|
159
|
+
amount_due_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
|
|
160
|
+
amount_outstanding: Integer,
|
|
161
|
+
amount_outstanding_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
|
|
162
|
+
amount_paid: Integer,
|
|
163
|
+
amount_paid_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
|
|
164
|
+
date_assessed: Date?,
|
|
165
|
+
due_date: Date,
|
|
166
|
+
installment_num: Integer,
|
|
167
|
+
payment_due_date: Date,
|
|
168
|
+
payments: ::Array[Lithic::FinancialAccounts::InstallmentPlan::Installment::Payment]
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
type payment =
|
|
172
|
+
{
|
|
173
|
+
amount: Integer,
|
|
174
|
+
amount_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
|
|
175
|
+
date: Date
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
class Payment < Lithic::Internal::Type::BaseModel
|
|
179
|
+
attr_accessor amount: Integer
|
|
180
|
+
|
|
181
|
+
attr_accessor amount_details: Lithic::FinancialAccounts::TransactionCategoryBalances
|
|
182
|
+
|
|
183
|
+
attr_accessor date: Date
|
|
184
|
+
|
|
185
|
+
def initialize: (
|
|
186
|
+
amount: Integer,
|
|
187
|
+
amount_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
|
|
188
|
+
date: Date
|
|
189
|
+
) -> void
|
|
190
|
+
|
|
191
|
+
def to_hash: -> {
|
|
192
|
+
amount: Integer,
|
|
193
|
+
amount_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
|
|
194
|
+
date: Date
|
|
195
|
+
}
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
type source_type = :UNPAID_BALANCE | :TRANSACTION
|
|
200
|
+
|
|
201
|
+
module SourceType
|
|
202
|
+
extend Lithic::Internal::Type::Enum
|
|
203
|
+
|
|
204
|
+
UNPAID_BALANCE: :UNPAID_BALANCE
|
|
205
|
+
TRANSACTION: :TRANSACTION
|
|
206
|
+
|
|
207
|
+
def self?.values: -> ::Array[Lithic::Models::FinancialAccounts::InstallmentPlan::source_type]
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
type state =
|
|
211
|
+
:PENDING | :ACTIVE | :REBUILD_IN_PROGRESS | :FULLY_PAID | :CANCELLED
|
|
212
|
+
|
|
213
|
+
module State
|
|
214
|
+
extend Lithic::Internal::Type::Enum
|
|
215
|
+
|
|
216
|
+
PENDING: :PENDING
|
|
217
|
+
ACTIVE: :ACTIVE
|
|
218
|
+
REBUILD_IN_PROGRESS: :REBUILD_IN_PROGRESS
|
|
219
|
+
FULLY_PAID: :FULLY_PAID
|
|
220
|
+
CANCELLED: :CANCELLED
|
|
221
|
+
|
|
222
|
+
def self?.values: -> ::Array[Lithic::Models::FinancialAccounts::InstallmentPlan::state]
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
end
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
module Lithic
|
|
2
|
+
module Models
|
|
3
|
+
module FinancialAccounts
|
|
4
|
+
type installment_plan_list_params =
|
|
5
|
+
{
|
|
6
|
+
financial_account_token: String,
|
|
7
|
+
ending_before: String,
|
|
8
|
+
page_size: Integer,
|
|
9
|
+
starting_after: String,
|
|
10
|
+
state: Lithic::Models::FinancialAccounts::InstallmentPlanListParams::state?
|
|
11
|
+
}
|
|
12
|
+
& Lithic::Internal::Type::request_parameters
|
|
13
|
+
|
|
14
|
+
class InstallmentPlanListParams < Lithic::Internal::Type::BaseModel
|
|
15
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
16
|
+
include Lithic::Internal::Type::RequestParameters
|
|
17
|
+
|
|
18
|
+
attr_accessor financial_account_token: String
|
|
19
|
+
|
|
20
|
+
attr_reader ending_before: String?
|
|
21
|
+
|
|
22
|
+
def ending_before=: (String) -> String
|
|
23
|
+
|
|
24
|
+
attr_reader page_size: Integer?
|
|
25
|
+
|
|
26
|
+
def page_size=: (Integer) -> Integer
|
|
27
|
+
|
|
28
|
+
attr_reader starting_after: String?
|
|
29
|
+
|
|
30
|
+
def starting_after=: (String) -> String
|
|
31
|
+
|
|
32
|
+
attr_accessor state: Lithic::Models::FinancialAccounts::InstallmentPlanListParams::state?
|
|
33
|
+
|
|
34
|
+
def initialize: (
|
|
35
|
+
financial_account_token: String,
|
|
36
|
+
?ending_before: String,
|
|
37
|
+
?page_size: Integer,
|
|
38
|
+
?starting_after: String,
|
|
39
|
+
?state: Lithic::Models::FinancialAccounts::InstallmentPlanListParams::state?,
|
|
40
|
+
?request_options: Lithic::request_opts
|
|
41
|
+
) -> void
|
|
42
|
+
|
|
43
|
+
def to_hash: -> {
|
|
44
|
+
financial_account_token: String,
|
|
45
|
+
ending_before: String,
|
|
46
|
+
page_size: Integer,
|
|
47
|
+
starting_after: String,
|
|
48
|
+
state: Lithic::Models::FinancialAccounts::InstallmentPlanListParams::state?,
|
|
49
|
+
request_options: Lithic::RequestOptions
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
type state =
|
|
53
|
+
:PENDING | :ACTIVE | :REBUILD_IN_PROGRESS | :FULLY_PAID | :CANCELLED
|
|
54
|
+
|
|
55
|
+
module State
|
|
56
|
+
extend Lithic::Internal::Type::Enum
|
|
57
|
+
|
|
58
|
+
PENDING: :PENDING
|
|
59
|
+
ACTIVE: :ACTIVE
|
|
60
|
+
REBUILD_IN_PROGRESS: :REBUILD_IN_PROGRESS
|
|
61
|
+
FULLY_PAID: :FULLY_PAID
|
|
62
|
+
CANCELLED: :CANCELLED
|
|
63
|
+
|
|
64
|
+
def self?.values: -> ::Array[Lithic::Models::FinancialAccounts::InstallmentPlanListParams::state]
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Lithic
|
|
2
|
+
module Models
|
|
3
|
+
module FinancialAccounts
|
|
4
|
+
type installment_plan_retrieve_params =
|
|
5
|
+
{ financial_account_token: String, installment_plan_token: String }
|
|
6
|
+
& Lithic::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class InstallmentPlanRetrieveParams < Lithic::Internal::Type::BaseModel
|
|
9
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Lithic::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor financial_account_token: String
|
|
13
|
+
|
|
14
|
+
attr_accessor installment_plan_token: String
|
|
15
|
+
|
|
16
|
+
def initialize: (
|
|
17
|
+
financial_account_token: String,
|
|
18
|
+
installment_plan_token: String,
|
|
19
|
+
?request_options: Lithic::request_opts
|
|
20
|
+
) -> void
|
|
21
|
+
|
|
22
|
+
def to_hash: -> {
|
|
23
|
+
financial_account_token: String,
|
|
24
|
+
installment_plan_token: String,
|
|
25
|
+
request_options: Lithic::RequestOptions
|
|
26
|
+
}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|