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
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class CardPinUpdatedWebhookEvent < Lithic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Lithic::CardPinUpdatedWebhookEvent, Lithic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# The token of the card whose PIN or PIN status was updated
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :card_token
|
|
14
|
+
|
|
15
|
+
# The type of event that occurred.
|
|
16
|
+
sig { returns(Symbol) }
|
|
17
|
+
attr_accessor :event_type
|
|
18
|
+
|
|
19
|
+
# The card's PIN status after the update
|
|
20
|
+
sig do
|
|
21
|
+
returns(Lithic::CardPinUpdatedWebhookEvent::PinStatus::TaggedSymbol)
|
|
22
|
+
end
|
|
23
|
+
attr_accessor :pin_status
|
|
24
|
+
|
|
25
|
+
# The reason for the PIN update:
|
|
26
|
+
#
|
|
27
|
+
# - `PIN_SET` - The PIN was set for the first time; `pin_status` is `OK`
|
|
28
|
+
# - `PIN_CHANGED` - The PIN was changed, including when changing a blocked PIN;
|
|
29
|
+
# `pin_status` is `OK`
|
|
30
|
+
# - `PIN_UNBLOCKED` - The PIN was unblocked without changing it; `pin_status` is
|
|
31
|
+
# `OK`
|
|
32
|
+
# - `EXCESSIVE_PIN_ATTEMPTS` - The PIN was blocked due to excessive incorrect PIN
|
|
33
|
+
# attempts; `pin_status` is `BLOCKED`
|
|
34
|
+
sig do
|
|
35
|
+
returns(Lithic::CardPinUpdatedWebhookEvent::StatusReason::TaggedSymbol)
|
|
36
|
+
end
|
|
37
|
+
attr_accessor :status_reason
|
|
38
|
+
|
|
39
|
+
sig do
|
|
40
|
+
params(
|
|
41
|
+
card_token: String,
|
|
42
|
+
pin_status: Lithic::CardPinUpdatedWebhookEvent::PinStatus::OrSymbol,
|
|
43
|
+
status_reason:
|
|
44
|
+
Lithic::CardPinUpdatedWebhookEvent::StatusReason::OrSymbol,
|
|
45
|
+
event_type: Symbol
|
|
46
|
+
).returns(T.attached_class)
|
|
47
|
+
end
|
|
48
|
+
def self.new(
|
|
49
|
+
# The token of the card whose PIN or PIN status was updated
|
|
50
|
+
card_token:,
|
|
51
|
+
# The card's PIN status after the update
|
|
52
|
+
pin_status:,
|
|
53
|
+
# The reason for the PIN update:
|
|
54
|
+
#
|
|
55
|
+
# - `PIN_SET` - The PIN was set for the first time; `pin_status` is `OK`
|
|
56
|
+
# - `PIN_CHANGED` - The PIN was changed, including when changing a blocked PIN;
|
|
57
|
+
# `pin_status` is `OK`
|
|
58
|
+
# - `PIN_UNBLOCKED` - The PIN was unblocked without changing it; `pin_status` is
|
|
59
|
+
# `OK`
|
|
60
|
+
# - `EXCESSIVE_PIN_ATTEMPTS` - The PIN was blocked due to excessive incorrect PIN
|
|
61
|
+
# attempts; `pin_status` is `BLOCKED`
|
|
62
|
+
status_reason:,
|
|
63
|
+
# The type of event that occurred.
|
|
64
|
+
event_type: :"card.pin_updated"
|
|
65
|
+
)
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
sig do
|
|
69
|
+
override.returns(
|
|
70
|
+
{
|
|
71
|
+
card_token: String,
|
|
72
|
+
event_type: Symbol,
|
|
73
|
+
pin_status:
|
|
74
|
+
Lithic::CardPinUpdatedWebhookEvent::PinStatus::TaggedSymbol,
|
|
75
|
+
status_reason:
|
|
76
|
+
Lithic::CardPinUpdatedWebhookEvent::StatusReason::TaggedSymbol
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
end
|
|
80
|
+
def to_hash
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# The card's PIN status after the update
|
|
84
|
+
module PinStatus
|
|
85
|
+
extend Lithic::Internal::Type::Enum
|
|
86
|
+
|
|
87
|
+
TaggedSymbol =
|
|
88
|
+
T.type_alias do
|
|
89
|
+
T.all(Symbol, Lithic::CardPinUpdatedWebhookEvent::PinStatus)
|
|
90
|
+
end
|
|
91
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
92
|
+
|
|
93
|
+
OK =
|
|
94
|
+
T.let(
|
|
95
|
+
:OK,
|
|
96
|
+
Lithic::CardPinUpdatedWebhookEvent::PinStatus::TaggedSymbol
|
|
97
|
+
)
|
|
98
|
+
BLOCKED =
|
|
99
|
+
T.let(
|
|
100
|
+
:BLOCKED,
|
|
101
|
+
Lithic::CardPinUpdatedWebhookEvent::PinStatus::TaggedSymbol
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
sig do
|
|
105
|
+
override.returns(
|
|
106
|
+
T::Array[
|
|
107
|
+
Lithic::CardPinUpdatedWebhookEvent::PinStatus::TaggedSymbol
|
|
108
|
+
]
|
|
109
|
+
)
|
|
110
|
+
end
|
|
111
|
+
def self.values
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# The reason for the PIN update:
|
|
116
|
+
#
|
|
117
|
+
# - `PIN_SET` - The PIN was set for the first time; `pin_status` is `OK`
|
|
118
|
+
# - `PIN_CHANGED` - The PIN was changed, including when changing a blocked PIN;
|
|
119
|
+
# `pin_status` is `OK`
|
|
120
|
+
# - `PIN_UNBLOCKED` - The PIN was unblocked without changing it; `pin_status` is
|
|
121
|
+
# `OK`
|
|
122
|
+
# - `EXCESSIVE_PIN_ATTEMPTS` - The PIN was blocked due to excessive incorrect PIN
|
|
123
|
+
# attempts; `pin_status` is `BLOCKED`
|
|
124
|
+
module StatusReason
|
|
125
|
+
extend Lithic::Internal::Type::Enum
|
|
126
|
+
|
|
127
|
+
TaggedSymbol =
|
|
128
|
+
T.type_alias do
|
|
129
|
+
T.all(Symbol, Lithic::CardPinUpdatedWebhookEvent::StatusReason)
|
|
130
|
+
end
|
|
131
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
132
|
+
|
|
133
|
+
PIN_SET =
|
|
134
|
+
T.let(
|
|
135
|
+
:PIN_SET,
|
|
136
|
+
Lithic::CardPinUpdatedWebhookEvent::StatusReason::TaggedSymbol
|
|
137
|
+
)
|
|
138
|
+
PIN_CHANGED =
|
|
139
|
+
T.let(
|
|
140
|
+
:PIN_CHANGED,
|
|
141
|
+
Lithic::CardPinUpdatedWebhookEvent::StatusReason::TaggedSymbol
|
|
142
|
+
)
|
|
143
|
+
PIN_UNBLOCKED =
|
|
144
|
+
T.let(
|
|
145
|
+
:PIN_UNBLOCKED,
|
|
146
|
+
Lithic::CardPinUpdatedWebhookEvent::StatusReason::TaggedSymbol
|
|
147
|
+
)
|
|
148
|
+
EXCESSIVE_PIN_ATTEMPTS =
|
|
149
|
+
T.let(
|
|
150
|
+
:EXCESSIVE_PIN_ATTEMPTS,
|
|
151
|
+
Lithic::CardPinUpdatedWebhookEvent::StatusReason::TaggedSymbol
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
sig do
|
|
155
|
+
override.returns(
|
|
156
|
+
T::Array[
|
|
157
|
+
Lithic::CardPinUpdatedWebhookEvent::StatusReason::TaggedSymbol
|
|
158
|
+
]
|
|
159
|
+
)
|
|
160
|
+
end
|
|
161
|
+
def self.values
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
end
|
|
@@ -145,6 +145,16 @@ module Lithic
|
|
|
145
145
|
end
|
|
146
146
|
attr_writer :substatus
|
|
147
147
|
|
|
148
|
+
# Key-value pairs to merge into the card's tags. Supplied keys are added or
|
|
149
|
+
# overwritten, a key with a `null` value is removed, and omitted keys remain
|
|
150
|
+
# unchanged. A card can have at most 50 tags, with keys up to 40 characters and
|
|
151
|
+
# values up to 500 characters
|
|
152
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
|
153
|
+
attr_reader :tags
|
|
154
|
+
|
|
155
|
+
sig { params(tags: T::Hash[Symbol, T.nilable(String)]).void }
|
|
156
|
+
attr_writer :tags
|
|
157
|
+
|
|
148
158
|
sig do
|
|
149
159
|
params(
|
|
150
160
|
card_token: String,
|
|
@@ -158,6 +168,7 @@ module Lithic
|
|
|
158
168
|
spend_limit_duration: Lithic::SpendLimitDuration::OrSymbol,
|
|
159
169
|
state: Lithic::CardUpdateParams::State::OrSymbol,
|
|
160
170
|
substatus: Lithic::CardUpdateParams::Substatus::OrSymbol,
|
|
171
|
+
tags: T::Hash[Symbol, T.nilable(String)],
|
|
161
172
|
request_options: Lithic::RequestOptions::OrHash
|
|
162
173
|
).returns(T.attached_class)
|
|
163
174
|
end
|
|
@@ -238,6 +249,11 @@ module Lithic
|
|
|
238
249
|
# - `OTHER` - The reason for the status does not fall into any of the above
|
|
239
250
|
# categories. A comment should be provided to specify the reason.
|
|
240
251
|
substatus: nil,
|
|
252
|
+
# Key-value pairs to merge into the card's tags. Supplied keys are added or
|
|
253
|
+
# overwritten, a key with a `null` value is removed, and omitted keys remain
|
|
254
|
+
# unchanged. A card can have at most 50 tags, with keys up to 40 characters and
|
|
255
|
+
# values up to 500 characters
|
|
256
|
+
tags: nil,
|
|
241
257
|
request_options: {}
|
|
242
258
|
)
|
|
243
259
|
end
|
|
@@ -256,6 +272,7 @@ module Lithic
|
|
|
256
272
|
spend_limit_duration: Lithic::SpendLimitDuration::OrSymbol,
|
|
257
273
|
state: Lithic::CardUpdateParams::State::OrSymbol,
|
|
258
274
|
substatus: Lithic::CardUpdateParams::Substatus::OrSymbol,
|
|
275
|
+
tags: T::Hash[Symbol, T.nilable(String)],
|
|
259
276
|
request_options: Lithic::RequestOptions
|
|
260
277
|
}
|
|
261
278
|
)
|
data/rbi/lithic/models/event.rbi
CHANGED
|
@@ -43,6 +43,8 @@ module Lithic
|
|
|
43
43
|
# - card.converted: Occurs when a card is converted from virtual to physical
|
|
44
44
|
# cards.
|
|
45
45
|
# - card.created: Occurs when a new card is created.
|
|
46
|
+
# - card.pin_updated: Occurs when a card's PIN is set, changed, unblocked, or
|
|
47
|
+
# blocked due to excessive incorrect PIN attempts.
|
|
46
48
|
# - card.reissued: Occurs when a card is reissued.
|
|
47
49
|
# - card.renewed: Occurs when a card is renewed.
|
|
48
50
|
# - card.shipped: Occurs when a card is shipped.
|
|
@@ -193,6 +195,8 @@ module Lithic
|
|
|
193
195
|
# - card.converted: Occurs when a card is converted from virtual to physical
|
|
194
196
|
# cards.
|
|
195
197
|
# - card.created: Occurs when a new card is created.
|
|
198
|
+
# - card.pin_updated: Occurs when a card's PIN is set, changed, unblocked, or
|
|
199
|
+
# blocked due to excessive incorrect PIN attempts.
|
|
196
200
|
# - card.reissued: Occurs when a card is reissued.
|
|
197
201
|
# - card.renewed: Occurs when a card is renewed.
|
|
198
202
|
# - card.shipped: Occurs when a card is shipped.
|
|
@@ -339,6 +343,8 @@ module Lithic
|
|
|
339
343
|
# - card.converted: Occurs when a card is converted from virtual to physical
|
|
340
344
|
# cards.
|
|
341
345
|
# - card.created: Occurs when a new card is created.
|
|
346
|
+
# - card.pin_updated: Occurs when a card's PIN is set, changed, unblocked, or
|
|
347
|
+
# blocked due to excessive incorrect PIN attempts.
|
|
342
348
|
# - card.reissued: Occurs when a card is reissued.
|
|
343
349
|
# - card.renewed: Occurs when a card is renewed.
|
|
344
350
|
# - card.shipped: Occurs when a card is shipped.
|
|
@@ -511,6 +517,8 @@ module Lithic
|
|
|
511
517
|
T.let(:"card.converted", Lithic::Event::EventType::TaggedSymbol)
|
|
512
518
|
CARD_CREATED =
|
|
513
519
|
T.let(:"card.created", Lithic::Event::EventType::TaggedSymbol)
|
|
520
|
+
CARD_PIN_UPDATED =
|
|
521
|
+
T.let(:"card.pin_updated", Lithic::Event::EventType::TaggedSymbol)
|
|
514
522
|
CARD_REISSUED =
|
|
515
523
|
T.let(:"card.reissued", Lithic::Event::EventType::TaggedSymbol)
|
|
516
524
|
CARD_RENEWED =
|
|
@@ -152,6 +152,8 @@ module Lithic
|
|
|
152
152
|
# - card.converted: Occurs when a card is converted from virtual to physical
|
|
153
153
|
# cards.
|
|
154
154
|
# - card.created: Occurs when a new card is created.
|
|
155
|
+
# - card.pin_updated: Occurs when a card's PIN is set, changed, unblocked, or
|
|
156
|
+
# blocked due to excessive incorrect PIN attempts.
|
|
155
157
|
# - card.reissued: Occurs when a card is reissued.
|
|
156
158
|
# - card.renewed: Occurs when a card is renewed.
|
|
157
159
|
# - card.shipped: Occurs when a card is shipped.
|
|
@@ -334,6 +336,11 @@ module Lithic
|
|
|
334
336
|
:"card.created",
|
|
335
337
|
Lithic::EventListParams::EventType::TaggedSymbol
|
|
336
338
|
)
|
|
339
|
+
CARD_PIN_UPDATED =
|
|
340
|
+
T.let(
|
|
341
|
+
:"card.pin_updated",
|
|
342
|
+
Lithic::EventListParams::EventType::TaggedSymbol
|
|
343
|
+
)
|
|
337
344
|
CARD_REISSUED =
|
|
338
345
|
T.let(
|
|
339
346
|
:"card.reissued",
|
|
@@ -100,6 +100,8 @@ module Lithic
|
|
|
100
100
|
# - card.converted: Occurs when a card is converted from virtual to physical
|
|
101
101
|
# cards.
|
|
102
102
|
# - card.created: Occurs when a new card is created.
|
|
103
|
+
# - card.pin_updated: Occurs when a card's PIN is set, changed, unblocked, or
|
|
104
|
+
# blocked due to excessive incorrect PIN attempts.
|
|
103
105
|
# - card.reissued: Occurs when a card is reissued.
|
|
104
106
|
# - card.renewed: Occurs when a card is renewed.
|
|
105
107
|
# - card.shipped: Occurs when a card is shipped.
|
|
@@ -282,6 +284,11 @@ module Lithic
|
|
|
282
284
|
:"card.created",
|
|
283
285
|
Lithic::EventSubscription::EventType::TaggedSymbol
|
|
284
286
|
)
|
|
287
|
+
CARD_PIN_UPDATED =
|
|
288
|
+
T.let(
|
|
289
|
+
:"card.pin_updated",
|
|
290
|
+
Lithic::EventSubscription::EventType::TaggedSymbol
|
|
291
|
+
)
|
|
285
292
|
CARD_REISSUED =
|
|
286
293
|
T.let(
|
|
287
294
|
:"card.reissued",
|
|
@@ -127,6 +127,8 @@ module Lithic
|
|
|
127
127
|
# - card.converted: Occurs when a card is converted from virtual to physical
|
|
128
128
|
# cards.
|
|
129
129
|
# - card.created: Occurs when a new card is created.
|
|
130
|
+
# - card.pin_updated: Occurs when a card's PIN is set, changed, unblocked, or
|
|
131
|
+
# blocked due to excessive incorrect PIN attempts.
|
|
130
132
|
# - card.reissued: Occurs when a card is reissued.
|
|
131
133
|
# - card.renewed: Occurs when a card is renewed.
|
|
132
134
|
# - card.shipped: Occurs when a card is shipped.
|
|
@@ -311,6 +313,11 @@ module Lithic
|
|
|
311
313
|
:"card.created",
|
|
312
314
|
Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
|
|
313
315
|
)
|
|
316
|
+
CARD_PIN_UPDATED =
|
|
317
|
+
T.let(
|
|
318
|
+
:"card.pin_updated",
|
|
319
|
+
Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
|
|
320
|
+
)
|
|
314
321
|
CARD_REISSUED =
|
|
315
322
|
T.let(
|
|
316
323
|
:"card.reissued",
|
|
@@ -153,6 +153,11 @@ module Lithic
|
|
|
153
153
|
:"card.created",
|
|
154
154
|
Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
|
|
155
155
|
)
|
|
156
|
+
CARD_PIN_UPDATED =
|
|
157
|
+
T.let(
|
|
158
|
+
:"card.pin_updated",
|
|
159
|
+
Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
|
|
160
|
+
)
|
|
156
161
|
CARD_REISSUED =
|
|
157
162
|
T.let(
|
|
158
163
|
:"card.reissued",
|
|
@@ -133,6 +133,8 @@ module Lithic
|
|
|
133
133
|
# - card.converted: Occurs when a card is converted from virtual to physical
|
|
134
134
|
# cards.
|
|
135
135
|
# - card.created: Occurs when a new card is created.
|
|
136
|
+
# - card.pin_updated: Occurs when a card's PIN is set, changed, unblocked, or
|
|
137
|
+
# blocked due to excessive incorrect PIN attempts.
|
|
136
138
|
# - card.reissued: Occurs when a card is reissued.
|
|
137
139
|
# - card.renewed: Occurs when a card is renewed.
|
|
138
140
|
# - card.shipped: Occurs when a card is shipped.
|
|
@@ -317,6 +319,11 @@ module Lithic
|
|
|
317
319
|
:"card.created",
|
|
318
320
|
Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
|
|
319
321
|
)
|
|
322
|
+
CARD_PIN_UPDATED =
|
|
323
|
+
T.let(
|
|
324
|
+
:"card.pin_updated",
|
|
325
|
+
Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
|
|
326
|
+
)
|
|
320
327
|
CARD_REISSUED =
|
|
321
328
|
T.let(
|
|
322
329
|
:"card.reissued",
|
|
@@ -207,6 +207,11 @@ module Lithic
|
|
|
207
207
|
)
|
|
208
208
|
EXTERNAL_RTP =
|
|
209
209
|
T.let(:EXTERNAL_RTP, Lithic::ExternalPayment::Category::TaggedSymbol)
|
|
210
|
+
EXTERNAL_STABLECOIN =
|
|
211
|
+
T.let(
|
|
212
|
+
:EXTERNAL_STABLECOIN,
|
|
213
|
+
Lithic::ExternalPayment::Category::TaggedSymbol
|
|
214
|
+
)
|
|
210
215
|
EXTERNAL_TRANSFER =
|
|
211
216
|
T.let(
|
|
212
217
|
:EXTERNAL_TRANSFER,
|
|
@@ -522,6 +527,31 @@ module Lithic
|
|
|
522
527
|
:EXTERNAL_RTP_RELEASED,
|
|
523
528
|
Lithic::ExternalPayment::Event::Type::TaggedSymbol
|
|
524
529
|
)
|
|
530
|
+
EXTERNAL_STABLECOIN_INITIATED =
|
|
531
|
+
T.let(
|
|
532
|
+
:EXTERNAL_STABLECOIN_INITIATED,
|
|
533
|
+
Lithic::ExternalPayment::Event::Type::TaggedSymbol
|
|
534
|
+
)
|
|
535
|
+
EXTERNAL_STABLECOIN_CANCELED =
|
|
536
|
+
T.let(
|
|
537
|
+
:EXTERNAL_STABLECOIN_CANCELED,
|
|
538
|
+
Lithic::ExternalPayment::Event::Type::TaggedSymbol
|
|
539
|
+
)
|
|
540
|
+
EXTERNAL_STABLECOIN_SETTLED =
|
|
541
|
+
T.let(
|
|
542
|
+
:EXTERNAL_STABLECOIN_SETTLED,
|
|
543
|
+
Lithic::ExternalPayment::Event::Type::TaggedSymbol
|
|
544
|
+
)
|
|
545
|
+
EXTERNAL_STABLECOIN_REVERSED =
|
|
546
|
+
T.let(
|
|
547
|
+
:EXTERNAL_STABLECOIN_REVERSED,
|
|
548
|
+
Lithic::ExternalPayment::Event::Type::TaggedSymbol
|
|
549
|
+
)
|
|
550
|
+
EXTERNAL_STABLECOIN_RELEASED =
|
|
551
|
+
T.let(
|
|
552
|
+
:EXTERNAL_STABLECOIN_RELEASED,
|
|
553
|
+
Lithic::ExternalPayment::Event::Type::TaggedSymbol
|
|
554
|
+
)
|
|
525
555
|
|
|
526
556
|
sig do
|
|
527
557
|
override.returns(
|
|
@@ -149,6 +149,11 @@ module Lithic
|
|
|
149
149
|
:EXTERNAL_RTP,
|
|
150
150
|
Lithic::ExternalPaymentCreateParams::Category::TaggedSymbol
|
|
151
151
|
)
|
|
152
|
+
EXTERNAL_STABLECOIN =
|
|
153
|
+
T.let(
|
|
154
|
+
:EXTERNAL_STABLECOIN,
|
|
155
|
+
Lithic::ExternalPaymentCreateParams::Category::TaggedSymbol
|
|
156
|
+
)
|
|
152
157
|
EXTERNAL_TRANSFER =
|
|
153
158
|
T.let(
|
|
154
159
|
:EXTERNAL_TRANSFER,
|
|
@@ -200,6 +200,11 @@ module Lithic
|
|
|
200
200
|
:EXTERNAL_RTP,
|
|
201
201
|
Lithic::ExternalPaymentListParams::Category::TaggedSymbol
|
|
202
202
|
)
|
|
203
|
+
EXTERNAL_STABLECOIN =
|
|
204
|
+
T.let(
|
|
205
|
+
:EXTERNAL_STABLECOIN,
|
|
206
|
+
Lithic::ExternalPaymentListParams::Category::TaggedSymbol
|
|
207
|
+
)
|
|
203
208
|
EXTERNAL_TRANSFER =
|
|
204
209
|
T.let(
|
|
205
210
|
:EXTERNAL_TRANSFER,
|