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,39 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module AuthRules
|
|
6
|
+
# @see Lithic::Resources::AuthRules::V2#update_entities
|
|
7
|
+
class V2UpdateEntitiesParams < Lithic::Internal::Type::BaseModel
|
|
8
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Lithic::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute auth_rule_token
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :auth_rule_token, String
|
|
15
|
+
|
|
16
|
+
# @!attribute add
|
|
17
|
+
# Entities to add to the rule's `include` and `exclude` lists
|
|
18
|
+
#
|
|
19
|
+
# @return [Lithic::Models::AuthRules::AuthRuleEntities, nil]
|
|
20
|
+
optional :add, -> { Lithic::AuthRules::AuthRuleEntities }
|
|
21
|
+
|
|
22
|
+
# @!attribute remove
|
|
23
|
+
# Entities to remove from the rule's `include` and `exclude` lists
|
|
24
|
+
#
|
|
25
|
+
# @return [Lithic::Models::AuthRules::AuthRuleEntities, nil]
|
|
26
|
+
optional :remove, -> { Lithic::AuthRules::AuthRuleEntities }
|
|
27
|
+
|
|
28
|
+
# @!method initialize(auth_rule_token:, add: nil, remove: nil, request_options: {})
|
|
29
|
+
# @param auth_rule_token [String]
|
|
30
|
+
#
|
|
31
|
+
# @param add [Lithic::Models::AuthRules::AuthRuleEntities] Entities to add to the rule's `include` and `exclude` lists
|
|
32
|
+
#
|
|
33
|
+
# @param remove [Lithic::Models::AuthRules::AuthRuleEntities] Entities to remove from the rule's `include` and `exclude` lists
|
|
34
|
+
#
|
|
35
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -14,32 +14,123 @@ module Lithic
|
|
|
14
14
|
required :auth_rule_token, String
|
|
15
15
|
|
|
16
16
|
# @!attribute body
|
|
17
|
+
# Replaces the rule's existing entities with the provided `include` and `exclude`
|
|
18
|
+
# lists. A missing list is treated as empty, so `include` must always be provided.
|
|
17
19
|
#
|
|
18
|
-
# @return [Lithic::Models::AuthRules::V2UpdateParams::Body::AccountLevelRule, Lithic::Models::AuthRules::V2UpdateParams::Body::CardLevelRule, Lithic::Models::AuthRules::V2UpdateParams::Body::ProgramLevelRule]
|
|
20
|
+
# @return [Lithic::Models::AuthRules::V2UpdateParams::Body::Rule, Lithic::Models::AuthRules::V2UpdateParams::Body::AccountLevelRule, Lithic::Models::AuthRules::V2UpdateParams::Body::CardLevelRule, Lithic::Models::AuthRules::V2UpdateParams::Body::ProgramLevelRule]
|
|
19
21
|
required :body, union: -> { Lithic::AuthRules::V2UpdateParams::Body }
|
|
20
22
|
|
|
21
23
|
# @!method initialize(auth_rule_token:, body:, request_options: {})
|
|
24
|
+
# Some parameter documentations has been truncated, see
|
|
25
|
+
# {Lithic::Models::AuthRules::V2UpdateParams} for more details.
|
|
26
|
+
#
|
|
22
27
|
# @param auth_rule_token [String]
|
|
23
|
-
#
|
|
28
|
+
#
|
|
29
|
+
# @param body [Lithic::Models::AuthRules::V2UpdateParams::Body::Rule, Lithic::Models::AuthRules::V2UpdateParams::Body::AccountLevelRule, Lithic::Models::AuthRules::V2UpdateParams::Body::CardLevelRule, Lithic::Models::AuthRules::V2UpdateParams::Body::ProgramLevelRule] Replaces the rule's existing entities with the provided `include` and `exclude`
|
|
30
|
+
#
|
|
24
31
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
|
25
32
|
|
|
33
|
+
# Replaces the rule's existing entities with the provided `include` and `exclude`
|
|
34
|
+
# lists. A missing list is treated as empty, so `include` must always be provided.
|
|
26
35
|
module Body
|
|
27
36
|
extend Lithic::Internal::Type::Union
|
|
28
37
|
|
|
38
|
+
# Replaces the rule's existing entities with the provided `include` and `exclude` lists. A missing list is treated as empty, so `include` must always be provided.
|
|
39
|
+
variant -> { Lithic::AuthRules::V2UpdateParams::Body::Rule }
|
|
40
|
+
|
|
41
|
+
# Deprecated: Use `entities` instead. Cannot be combined with `entities`.
|
|
29
42
|
variant -> { Lithic::AuthRules::V2UpdateParams::Body::AccountLevelRule }
|
|
30
43
|
|
|
44
|
+
# Deprecated: Use `entities` instead. Cannot be combined with `entities`.
|
|
31
45
|
variant -> { Lithic::AuthRules::V2UpdateParams::Body::CardLevelRule }
|
|
32
46
|
|
|
47
|
+
# Deprecated: Use `entities` instead. Cannot be combined with `entities`.
|
|
33
48
|
variant -> { Lithic::AuthRules::V2UpdateParams::Body::ProgramLevelRule }
|
|
34
49
|
|
|
50
|
+
class Rule < Lithic::Internal::Type::BaseModel
|
|
51
|
+
# @!attribute entities
|
|
52
|
+
# The entities an Auth Rule applies to (`include`) and does not apply to
|
|
53
|
+
# (`exclude`). An exclusion overrides an inclusion, so a card excluded here is
|
|
54
|
+
# skipped even when the program, its account or one of its tags is included.
|
|
55
|
+
#
|
|
56
|
+
# The rule's resulting entities must satisfy these constraints after any write:
|
|
57
|
+
#
|
|
58
|
+
# - `include` must contain at least one entity.
|
|
59
|
+
# - If `PROGRAM` is included, it must be the only included entity.
|
|
60
|
+
# - `PROGRAM` cannot be excluded.
|
|
61
|
+
# - An entity cannot appear in both `include` and `exclude`, or twice in the same
|
|
62
|
+
# list.
|
|
63
|
+
# - A rule can have at most 1,000 entities across `include` and `exclude`, not
|
|
64
|
+
# counting `PROGRAM`.
|
|
65
|
+
# - Entity types must be valid for the rule's event stream.
|
|
66
|
+
# - `CARD`, `ACCOUNT` and `BUSINESS_ACCOUNT` tokens must belong to your program.
|
|
67
|
+
#
|
|
68
|
+
# @return [Lithic::Models::AuthRules::AuthRuleEntities, nil]
|
|
69
|
+
optional :entities, -> { Lithic::AuthRules::AuthRuleEntities }
|
|
70
|
+
|
|
71
|
+
# @!attribute name
|
|
72
|
+
# Auth Rule Name
|
|
73
|
+
#
|
|
74
|
+
# @return [String, nil]
|
|
75
|
+
optional :name, String, nil?: true
|
|
76
|
+
|
|
77
|
+
# @!attribute state
|
|
78
|
+
# The desired state of the Auth Rule.
|
|
79
|
+
#
|
|
80
|
+
# Note that only deactivating an Auth Rule through this endpoint is supported at
|
|
81
|
+
# this time. If you need to (re-)activate an Auth Rule the /promote endpoint
|
|
82
|
+
# should be used to promote a draft to the currently active version.
|
|
83
|
+
#
|
|
84
|
+
# @return [Symbol, Lithic::Models::AuthRules::V2UpdateParams::Body::Rule::State, nil]
|
|
85
|
+
optional :state, enum: -> { Lithic::AuthRules::V2UpdateParams::Body::Rule::State }
|
|
86
|
+
|
|
87
|
+
# @!method initialize(entities: nil, name: nil, state: nil)
|
|
88
|
+
# Some parameter documentations has been truncated, see
|
|
89
|
+
# {Lithic::Models::AuthRules::V2UpdateParams::Body::Rule} for more details.
|
|
90
|
+
#
|
|
91
|
+
# Replaces the rule's existing entities with the provided `include` and `exclude`
|
|
92
|
+
# lists. A missing list is treated as empty, so `include` must always be provided.
|
|
93
|
+
#
|
|
94
|
+
# @param entities [Lithic::Models::AuthRules::AuthRuleEntities] The entities an Auth Rule applies to (`include`) and does not apply to (`exclude
|
|
95
|
+
#
|
|
96
|
+
# @param name [String, nil] Auth Rule Name
|
|
97
|
+
#
|
|
98
|
+
# @param state [Symbol, Lithic::Models::AuthRules::V2UpdateParams::Body::Rule::State] The desired state of the Auth Rule.
|
|
99
|
+
|
|
100
|
+
# The desired state of the Auth Rule.
|
|
101
|
+
#
|
|
102
|
+
# Note that only deactivating an Auth Rule through this endpoint is supported at
|
|
103
|
+
# this time. If you need to (re-)activate an Auth Rule the /promote endpoint
|
|
104
|
+
# should be used to promote a draft to the currently active version.
|
|
105
|
+
#
|
|
106
|
+
# @see Lithic::Models::AuthRules::V2UpdateParams::Body::Rule#state
|
|
107
|
+
module State
|
|
108
|
+
extend Lithic::Internal::Type::Enum
|
|
109
|
+
|
|
110
|
+
INACTIVE = :INACTIVE
|
|
111
|
+
|
|
112
|
+
# @!method self.values
|
|
113
|
+
# @return [Array<Symbol>]
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# @deprecated
|
|
35
118
|
class AccountLevelRule < Lithic::Internal::Type::BaseModel
|
|
36
119
|
# @!attribute account_tokens
|
|
120
|
+
# @deprecated
|
|
121
|
+
#
|
|
122
|
+
# Deprecated: Use `entities.include` with `ACCOUNT` entities instead.
|
|
123
|
+
#
|
|
37
124
|
# Account tokens to which the Auth Rule applies.
|
|
38
125
|
#
|
|
39
126
|
# @return [Array<String>, nil]
|
|
40
127
|
optional :account_tokens, Lithic::Internal::Type::ArrayOf[String]
|
|
41
128
|
|
|
42
129
|
# @!attribute business_account_tokens
|
|
130
|
+
# @deprecated
|
|
131
|
+
#
|
|
132
|
+
# Deprecated: Use `entities.include` with `BUSINESS_ACCOUNT` entities instead.
|
|
133
|
+
#
|
|
43
134
|
# Business Account tokens to which the Auth Rule applies.
|
|
44
135
|
#
|
|
45
136
|
# @return [Array<String>, nil]
|
|
@@ -66,9 +157,11 @@ module Lithic
|
|
|
66
157
|
# {Lithic::Models::AuthRules::V2UpdateParams::Body::AccountLevelRule} for more
|
|
67
158
|
# details.
|
|
68
159
|
#
|
|
69
|
-
#
|
|
160
|
+
# Deprecated: Use `entities` instead. Cannot be combined with `entities`.
|
|
70
161
|
#
|
|
71
|
-
# @param
|
|
162
|
+
# @param account_tokens [Array<String>] Deprecated: Use `entities.include` with `ACCOUNT` entities instead.
|
|
163
|
+
#
|
|
164
|
+
# @param business_account_tokens [Array<String>] Deprecated: Use `entities.include` with `BUSINESS_ACCOUNT` entities instead.
|
|
72
165
|
#
|
|
73
166
|
# @param name [String, nil] Auth Rule Name
|
|
74
167
|
#
|
|
@@ -91,9 +184,15 @@ module Lithic
|
|
|
91
184
|
end
|
|
92
185
|
end
|
|
93
186
|
|
|
187
|
+
# @deprecated
|
|
94
188
|
class CardLevelRule < Lithic::Internal::Type::BaseModel
|
|
95
189
|
# @!attribute card_tokens
|
|
96
|
-
#
|
|
190
|
+
# @deprecated
|
|
191
|
+
#
|
|
192
|
+
# Deprecated: Use `entities.include` with `CARD` entities instead.
|
|
193
|
+
#
|
|
194
|
+
# Card tokens to which the Auth Rule applies. Cards the rule applies to through a
|
|
195
|
+
# `CARD_TAG` entity are not listed.
|
|
97
196
|
#
|
|
98
197
|
# @return [Array<String>, nil]
|
|
99
198
|
optional :card_tokens, Lithic::Internal::Type::ArrayOf[String]
|
|
@@ -119,7 +218,9 @@ module Lithic
|
|
|
119
218
|
# {Lithic::Models::AuthRules::V2UpdateParams::Body::CardLevelRule} for more
|
|
120
219
|
# details.
|
|
121
220
|
#
|
|
122
|
-
#
|
|
221
|
+
# Deprecated: Use `entities` instead. Cannot be combined with `entities`.
|
|
222
|
+
#
|
|
223
|
+
# @param card_tokens [Array<String>] Deprecated: Use `entities.include` with `CARD` entities instead.
|
|
123
224
|
#
|
|
124
225
|
# @param name [String, nil] Auth Rule Name
|
|
125
226
|
#
|
|
@@ -142,21 +243,35 @@ module Lithic
|
|
|
142
243
|
end
|
|
143
244
|
end
|
|
144
245
|
|
|
246
|
+
# @deprecated
|
|
145
247
|
class ProgramLevelRule < Lithic::Internal::Type::BaseModel
|
|
146
248
|
# @!attribute excluded_account_tokens
|
|
249
|
+
# @deprecated
|
|
250
|
+
#
|
|
251
|
+
# Deprecated: Use `entities.exclude` with `ACCOUNT` entities instead.
|
|
252
|
+
#
|
|
147
253
|
# Account tokens to which the Auth Rule does not apply.
|
|
148
254
|
#
|
|
149
255
|
# @return [Array<String>, nil]
|
|
150
256
|
optional :excluded_account_tokens, Lithic::Internal::Type::ArrayOf[String]
|
|
151
257
|
|
|
152
258
|
# @!attribute excluded_business_account_tokens
|
|
259
|
+
# @deprecated
|
|
260
|
+
#
|
|
261
|
+
# Deprecated: Use `entities.exclude` with `BUSINESS_ACCOUNT` entities instead.
|
|
262
|
+
#
|
|
153
263
|
# Business account tokens to which the Auth Rule does not apply.
|
|
154
264
|
#
|
|
155
265
|
# @return [Array<String>, nil]
|
|
156
266
|
optional :excluded_business_account_tokens, Lithic::Internal::Type::ArrayOf[String]
|
|
157
267
|
|
|
158
268
|
# @!attribute excluded_card_tokens
|
|
159
|
-
#
|
|
269
|
+
# @deprecated
|
|
270
|
+
#
|
|
271
|
+
# Deprecated: Use `entities.exclude` with `CARD` entities instead.
|
|
272
|
+
#
|
|
273
|
+
# Card tokens to which the Auth Rule does not apply. Cards excluded through a
|
|
274
|
+
# `CARD_TAG` entity are not listed.
|
|
160
275
|
#
|
|
161
276
|
# @return [Array<String>, nil]
|
|
162
277
|
optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String]
|
|
@@ -168,6 +283,10 @@ module Lithic
|
|
|
168
283
|
optional :name, String, nil?: true
|
|
169
284
|
|
|
170
285
|
# @!attribute program_level
|
|
286
|
+
# @deprecated
|
|
287
|
+
#
|
|
288
|
+
# Deprecated: Use `entities.include` with a `PROGRAM` entity instead.
|
|
289
|
+
#
|
|
171
290
|
# Whether the Auth Rule applies to all authorizations on the card program.
|
|
172
291
|
#
|
|
173
292
|
# @return [Boolean, nil]
|
|
@@ -188,15 +307,17 @@ module Lithic
|
|
|
188
307
|
# {Lithic::Models::AuthRules::V2UpdateParams::Body::ProgramLevelRule} for more
|
|
189
308
|
# details.
|
|
190
309
|
#
|
|
191
|
-
#
|
|
310
|
+
# Deprecated: Use `entities` instead. Cannot be combined with `entities`.
|
|
311
|
+
#
|
|
312
|
+
# @param excluded_account_tokens [Array<String>] Deprecated: Use `entities.exclude` with `ACCOUNT` entities instead.
|
|
192
313
|
#
|
|
193
|
-
# @param excluded_business_account_tokens [Array<String>]
|
|
314
|
+
# @param excluded_business_account_tokens [Array<String>] Deprecated: Use `entities.exclude` with `BUSINESS_ACCOUNT` entities instead.
|
|
194
315
|
#
|
|
195
|
-
# @param excluded_card_tokens [Array<String>]
|
|
316
|
+
# @param excluded_card_tokens [Array<String>] Deprecated: Use `entities.exclude` with `CARD` entities instead.
|
|
196
317
|
#
|
|
197
318
|
# @param name [String, nil] Auth Rule Name
|
|
198
319
|
#
|
|
199
|
-
# @param program_level [Boolean]
|
|
320
|
+
# @param program_level [Boolean] Deprecated: Use `entities.include` with a `PROGRAM` entity instead.
|
|
200
321
|
#
|
|
201
322
|
# @param state [Symbol, Lithic::Models::AuthRules::V2UpdateParams::Body::ProgramLevelRule::State] The desired state of the Auth Rule.
|
|
202
323
|
|
|
@@ -218,7 +339,7 @@ module Lithic
|
|
|
218
339
|
end
|
|
219
340
|
|
|
220
341
|
# @!method self.variants
|
|
221
|
-
# @return [Array(Lithic::Models::AuthRules::V2UpdateParams::Body::AccountLevelRule, Lithic::Models::AuthRules::V2UpdateParams::Body::CardLevelRule, Lithic::Models::AuthRules::V2UpdateParams::Body::ProgramLevelRule)]
|
|
342
|
+
# @return [Array(Lithic::Models::AuthRules::V2UpdateParams::Body::Rule, Lithic::Models::AuthRules::V2UpdateParams::Body::AccountLevelRule, Lithic::Models::AuthRules::V2UpdateParams::Body::CardLevelRule, Lithic::Models::AuthRules::V2UpdateParams::Body::ProgramLevelRule)]
|
|
222
343
|
end
|
|
223
344
|
end
|
|
224
345
|
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
# @see Lithic::Resources::BlockchainRecipients#retrieve
|
|
6
|
+
class BlockchainRecipientRetrieveParams < Lithic::Internal::Type::BaseModel
|
|
7
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Lithic::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute blockchain_recipient_token
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :blockchain_recipient_token, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(blockchain_recipient_token:, request_options: {})
|
|
16
|
+
# @param blockchain_recipient_token [String]
|
|
17
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -532,12 +532,20 @@ module Lithic
|
|
|
532
532
|
# @return [Symbol, Lithic::Models::CardAuthorization::Card::State]
|
|
533
533
|
required :state, enum: -> { Lithic::CardAuthorization::Card::State }
|
|
534
534
|
|
|
535
|
+
# @!attribute tags
|
|
536
|
+
# Key-value pairs for tagging resources. Tags allow you to associate arbitrary
|
|
537
|
+
# metadata with a resource for your own purposes. A resource can have at most 50
|
|
538
|
+
# tags, with keys up to 40 characters and values up to 500 characters
|
|
539
|
+
#
|
|
540
|
+
# @return [Hash{Symbol=>String}]
|
|
541
|
+
required :tags, Lithic::Internal::Type::HashOf[String]
|
|
542
|
+
|
|
535
543
|
# @!attribute type
|
|
536
544
|
#
|
|
537
545
|
# @return [Symbol, Lithic::Models::CardAuthorization::Card::Type]
|
|
538
546
|
required :type, enum: -> { Lithic::CardAuthorization::Card::Type }
|
|
539
547
|
|
|
540
|
-
# @!method initialize(token:, last_four:, memo:, spend_limit:, spend_limit_duration:, state:, type:)
|
|
548
|
+
# @!method initialize(token:, last_four:, memo:, spend_limit:, spend_limit_duration:, state:, tags:, type:)
|
|
541
549
|
# Some parameter documentations has been truncated, see
|
|
542
550
|
# {Lithic::Models::CardAuthorization::Card} for more details.
|
|
543
551
|
#
|
|
@@ -555,6 +563,8 @@ module Lithic
|
|
|
555
563
|
#
|
|
556
564
|
# @param state [Symbol, Lithic::Models::CardAuthorization::Card::State]
|
|
557
565
|
#
|
|
566
|
+
# @param tags [Hash{Symbol=>String}] Key-value pairs for tagging resources. Tags allow you to associate arbitrary met
|
|
567
|
+
#
|
|
558
568
|
# @param type [Symbol, Lithic::Models::CardAuthorization::Card::Type]
|
|
559
569
|
|
|
560
570
|
# Note that to support recurring monthly payments, which can occur on different
|
|
@@ -229,12 +229,20 @@ module Lithic
|
|
|
229
229
|
# @return [Symbol, Lithic::Models::CardCreateParams::State, nil]
|
|
230
230
|
optional :state, enum: -> { Lithic::CardCreateParams::State }
|
|
231
231
|
|
|
232
|
+
# @!attribute tags
|
|
233
|
+
# Key-value pairs to tag the card with. A replacement card does not inherit tags
|
|
234
|
+
# from the card it replaces. A card can have at most 50 tags, with keys up to 40
|
|
235
|
+
# characters and values up to 500 characters
|
|
236
|
+
#
|
|
237
|
+
# @return [Hash{Symbol=>String}, nil]
|
|
238
|
+
optional :tags, Lithic::Internal::Type::HashOf[String]
|
|
239
|
+
|
|
232
240
|
# @!attribute idempotency_key
|
|
233
241
|
#
|
|
234
242
|
# @return [String, nil]
|
|
235
243
|
optional :idempotency_key, String
|
|
236
244
|
|
|
237
|
-
# @!method initialize(type:, account_token: nil, bulk_order_token: nil, card_program_token: nil, carrier: nil, digital_card_art_token: nil, exp_month: nil, exp_year: nil, memo: nil, pin: nil, product_id: nil, replacement_account_token: nil, replacement_comment: nil, replacement_for: nil, replacement_substatus: nil, shipping_address: nil, shipping_method: nil, spend_limit: nil, spend_limit_duration: nil, state: nil, idempotency_key: nil, request_options: {})
|
|
245
|
+
# @!method initialize(type:, account_token: nil, bulk_order_token: nil, card_program_token: nil, carrier: nil, digital_card_art_token: nil, exp_month: nil, exp_year: nil, memo: nil, pin: nil, product_id: nil, replacement_account_token: nil, replacement_comment: nil, replacement_for: nil, replacement_substatus: nil, shipping_address: nil, shipping_method: nil, spend_limit: nil, spend_limit_duration: nil, state: nil, tags: nil, idempotency_key: nil, request_options: {})
|
|
238
246
|
# Some parameter documentations has been truncated, see
|
|
239
247
|
# {Lithic::Models::CardCreateParams} for more details.
|
|
240
248
|
#
|
|
@@ -278,6 +286,8 @@ module Lithic
|
|
|
278
286
|
#
|
|
279
287
|
# @param state [Symbol, Lithic::Models::CardCreateParams::State] Card state values:
|
|
280
288
|
#
|
|
289
|
+
# @param tags [Hash{Symbol=>String}] Key-value pairs to tag the card with. A replacement card does not inherit tags f
|
|
290
|
+
#
|
|
281
291
|
# @param idempotency_key [String]
|
|
282
292
|
#
|
|
283
293
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class CardPinUpdatedWebhookEvent < Lithic::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute card_token
|
|
7
|
+
# The token of the card whose PIN or PIN status was updated
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :card_token, String
|
|
11
|
+
|
|
12
|
+
# @!attribute event_type
|
|
13
|
+
# The type of event that occurred.
|
|
14
|
+
#
|
|
15
|
+
# @return [Symbol, :"card.pin_updated"]
|
|
16
|
+
required :event_type, const: :"card.pin_updated"
|
|
17
|
+
|
|
18
|
+
# @!attribute pin_status
|
|
19
|
+
# The card's PIN status after the update
|
|
20
|
+
#
|
|
21
|
+
# @return [Symbol, Lithic::Models::CardPinUpdatedWebhookEvent::PinStatus]
|
|
22
|
+
required :pin_status, enum: -> { Lithic::CardPinUpdatedWebhookEvent::PinStatus }
|
|
23
|
+
|
|
24
|
+
# @!attribute status_reason
|
|
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
|
+
#
|
|
35
|
+
# @return [Symbol, Lithic::Models::CardPinUpdatedWebhookEvent::StatusReason]
|
|
36
|
+
required :status_reason, enum: -> { Lithic::CardPinUpdatedWebhookEvent::StatusReason }
|
|
37
|
+
|
|
38
|
+
# @!method initialize(card_token:, pin_status:, status_reason:, event_type: :"card.pin_updated")
|
|
39
|
+
# Some parameter documentations has been truncated, see
|
|
40
|
+
# {Lithic::Models::CardPinUpdatedWebhookEvent} for more details.
|
|
41
|
+
#
|
|
42
|
+
# @param card_token [String] The token of the card whose PIN or PIN status was updated
|
|
43
|
+
#
|
|
44
|
+
# @param pin_status [Symbol, Lithic::Models::CardPinUpdatedWebhookEvent::PinStatus] The card's PIN status after the update
|
|
45
|
+
#
|
|
46
|
+
# @param status_reason [Symbol, Lithic::Models::CardPinUpdatedWebhookEvent::StatusReason] The reason for the PIN update:
|
|
47
|
+
#
|
|
48
|
+
# @param event_type [Symbol, :"card.pin_updated"] The type of event that occurred.
|
|
49
|
+
|
|
50
|
+
# The card's PIN status after the update
|
|
51
|
+
#
|
|
52
|
+
# @see Lithic::Models::CardPinUpdatedWebhookEvent#pin_status
|
|
53
|
+
module PinStatus
|
|
54
|
+
extend Lithic::Internal::Type::Enum
|
|
55
|
+
|
|
56
|
+
OK = :OK
|
|
57
|
+
BLOCKED = :BLOCKED
|
|
58
|
+
|
|
59
|
+
# @!method self.values
|
|
60
|
+
# @return [Array<Symbol>]
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# The reason for the PIN update:
|
|
64
|
+
#
|
|
65
|
+
# - `PIN_SET` - The PIN was set for the first time; `pin_status` is `OK`
|
|
66
|
+
# - `PIN_CHANGED` - The PIN was changed, including when changing a blocked PIN;
|
|
67
|
+
# `pin_status` is `OK`
|
|
68
|
+
# - `PIN_UNBLOCKED` - The PIN was unblocked without changing it; `pin_status` is
|
|
69
|
+
# `OK`
|
|
70
|
+
# - `EXCESSIVE_PIN_ATTEMPTS` - The PIN was blocked due to excessive incorrect PIN
|
|
71
|
+
# attempts; `pin_status` is `BLOCKED`
|
|
72
|
+
#
|
|
73
|
+
# @see Lithic::Models::CardPinUpdatedWebhookEvent#status_reason
|
|
74
|
+
module StatusReason
|
|
75
|
+
extend Lithic::Internal::Type::Enum
|
|
76
|
+
|
|
77
|
+
PIN_SET = :PIN_SET
|
|
78
|
+
PIN_CHANGED = :PIN_CHANGED
|
|
79
|
+
PIN_UNBLOCKED = :PIN_UNBLOCKED
|
|
80
|
+
EXCESSIVE_PIN_ATTEMPTS = :EXCESSIVE_PIN_ATTEMPTS
|
|
81
|
+
|
|
82
|
+
# @!method self.values
|
|
83
|
+
# @return [Array<Symbol>]
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
@@ -127,7 +127,16 @@ module Lithic
|
|
|
127
127
|
# @return [Symbol, Lithic::Models::CardUpdateParams::Substatus, nil]
|
|
128
128
|
optional :substatus, enum: -> { Lithic::CardUpdateParams::Substatus }
|
|
129
129
|
|
|
130
|
-
# @!
|
|
130
|
+
# @!attribute tags
|
|
131
|
+
# Key-value pairs to merge into the card's tags. Supplied keys are added or
|
|
132
|
+
# overwritten, a key with a `null` value is removed, and omitted keys remain
|
|
133
|
+
# unchanged. A card can have at most 50 tags, with keys up to 40 characters and
|
|
134
|
+
# values up to 500 characters
|
|
135
|
+
#
|
|
136
|
+
# @return [Hash{Symbol=>String, nil}, nil]
|
|
137
|
+
optional :tags, Lithic::Internal::Type::HashOf[String, nil?: true]
|
|
138
|
+
|
|
139
|
+
# @!method initialize(card_token:, comment: nil, digital_card_art_token: nil, memo: nil, network_program_token: nil, pin: nil, pin_status: nil, spend_limit: nil, spend_limit_duration: nil, state: nil, substatus: nil, tags: nil, request_options: {})
|
|
131
140
|
# Some parameter documentations has been truncated, see
|
|
132
141
|
# {Lithic::Models::CardUpdateParams} for more details.
|
|
133
142
|
#
|
|
@@ -153,6 +162,8 @@ module Lithic
|
|
|
153
162
|
#
|
|
154
163
|
# @param substatus [Symbol, Lithic::Models::CardUpdateParams::Substatus] Card state substatus values:
|
|
155
164
|
#
|
|
165
|
+
# @param tags [Hash{Symbol=>String, nil}] Key-value pairs to merge into the card's tags. Supplied keys are added or overwr
|
|
166
|
+
#
|
|
156
167
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
|
157
168
|
|
|
158
169
|
# Indicates if a card is blocked due a PIN status issue (e.g. excessive incorrect
|
data/lib/lithic/models/event.rb
CHANGED
|
@@ -47,6 +47,8 @@ module Lithic
|
|
|
47
47
|
# - card.converted: Occurs when a card is converted from virtual to physical
|
|
48
48
|
# cards.
|
|
49
49
|
# - card.created: Occurs when a new card is created.
|
|
50
|
+
# - card.pin_updated: Occurs when a card's PIN is set, changed, unblocked, or
|
|
51
|
+
# blocked due to excessive incorrect PIN attempts.
|
|
50
52
|
# - card.reissued: Occurs when a card is reissued.
|
|
51
53
|
# - card.renewed: Occurs when a card is renewed.
|
|
52
54
|
# - card.shipped: Occurs when a card is shipped.
|
|
@@ -198,6 +200,8 @@ module Lithic
|
|
|
198
200
|
# - card.converted: Occurs when a card is converted from virtual to physical
|
|
199
201
|
# cards.
|
|
200
202
|
# - card.created: Occurs when a new card is created.
|
|
203
|
+
# - card.pin_updated: Occurs when a card's PIN is set, changed, unblocked, or
|
|
204
|
+
# blocked due to excessive incorrect PIN attempts.
|
|
201
205
|
# - card.reissued: Occurs when a card is reissued.
|
|
202
206
|
# - card.renewed: Occurs when a card is renewed.
|
|
203
207
|
# - card.shipped: Occurs when a card is shipped.
|
|
@@ -318,6 +322,7 @@ module Lithic
|
|
|
318
322
|
CARD_TRANSACTION_UPDATED = :"card_transaction.updated"
|
|
319
323
|
CARD_CONVERTED = :"card.converted"
|
|
320
324
|
CARD_CREATED = :"card.created"
|
|
325
|
+
CARD_PIN_UPDATED = :"card.pin_updated"
|
|
321
326
|
CARD_REISSUED = :"card.reissued"
|
|
322
327
|
CARD_RENEWED = :"card.renewed"
|
|
323
328
|
CARD_SHIPPED = :"card.shipped"
|
|
@@ -101,6 +101,8 @@ module Lithic
|
|
|
101
101
|
# - card.converted: Occurs when a card is converted from virtual to physical
|
|
102
102
|
# cards.
|
|
103
103
|
# - card.created: Occurs when a new card is created.
|
|
104
|
+
# - card.pin_updated: Occurs when a card's PIN is set, changed, unblocked, or
|
|
105
|
+
# blocked due to excessive incorrect PIN attempts.
|
|
104
106
|
# - card.reissued: Occurs when a card is reissued.
|
|
105
107
|
# - card.renewed: Occurs when a card is renewed.
|
|
106
108
|
# - card.shipped: Occurs when a card is shipped.
|
|
@@ -219,6 +221,7 @@ module Lithic
|
|
|
219
221
|
CARD_TRANSACTION_UPDATED = :"card_transaction.updated"
|
|
220
222
|
CARD_CONVERTED = :"card.converted"
|
|
221
223
|
CARD_CREATED = :"card.created"
|
|
224
|
+
CARD_PIN_UPDATED = :"card.pin_updated"
|
|
222
225
|
CARD_REISSUED = :"card.reissued"
|
|
223
226
|
CARD_RENEWED = :"card.renewed"
|
|
224
227
|
CARD_SHIPPED = :"card.shipped"
|
|
@@ -74,6 +74,8 @@ module Lithic
|
|
|
74
74
|
# - card.converted: Occurs when a card is converted from virtual to physical
|
|
75
75
|
# cards.
|
|
76
76
|
# - card.created: Occurs when a new card is created.
|
|
77
|
+
# - card.pin_updated: Occurs when a card's PIN is set, changed, unblocked, or
|
|
78
|
+
# blocked due to excessive incorrect PIN attempts.
|
|
77
79
|
# - card.reissued: Occurs when a card is reissued.
|
|
78
80
|
# - card.renewed: Occurs when a card is renewed.
|
|
79
81
|
# - card.shipped: Occurs when a card is shipped.
|
|
@@ -192,6 +194,7 @@ module Lithic
|
|
|
192
194
|
CARD_TRANSACTION_UPDATED = :"card_transaction.updated"
|
|
193
195
|
CARD_CONVERTED = :"card.converted"
|
|
194
196
|
CARD_CREATED = :"card.created"
|
|
197
|
+
CARD_PIN_UPDATED = :"card.pin_updated"
|
|
195
198
|
CARD_REISSUED = :"card.reissued"
|
|
196
199
|
CARD_RENEWED = :"card.renewed"
|
|
197
200
|
CARD_SHIPPED = :"card.shipped"
|
|
@@ -76,6 +76,8 @@ module Lithic
|
|
|
76
76
|
# - card.converted: Occurs when a card is converted from virtual to physical
|
|
77
77
|
# cards.
|
|
78
78
|
# - card.created: Occurs when a new card is created.
|
|
79
|
+
# - card.pin_updated: Occurs when a card's PIN is set, changed, unblocked, or
|
|
80
|
+
# blocked due to excessive incorrect PIN attempts.
|
|
79
81
|
# - card.reissued: Occurs when a card is reissued.
|
|
80
82
|
# - card.renewed: Occurs when a card is renewed.
|
|
81
83
|
# - card.shipped: Occurs when a card is shipped.
|
|
@@ -194,6 +196,7 @@ module Lithic
|
|
|
194
196
|
CARD_TRANSACTION_UPDATED = :"card_transaction.updated"
|
|
195
197
|
CARD_CONVERTED = :"card.converted"
|
|
196
198
|
CARD_CREATED = :"card.created"
|
|
199
|
+
CARD_PIN_UPDATED = :"card.pin_updated"
|
|
197
200
|
CARD_REISSUED = :"card.reissued"
|
|
198
201
|
CARD_RENEWED = :"card.renewed"
|
|
199
202
|
CARD_SHIPPED = :"card.shipped"
|
|
@@ -45,6 +45,7 @@ module Lithic
|
|
|
45
45
|
CARD_TRANSACTION_UPDATED = :"card_transaction.updated"
|
|
46
46
|
CARD_CONVERTED = :"card.converted"
|
|
47
47
|
CARD_CREATED = :"card.created"
|
|
48
|
+
CARD_PIN_UPDATED = :"card.pin_updated"
|
|
48
49
|
CARD_REISSUED = :"card.reissued"
|
|
49
50
|
CARD_RENEWED = :"card.renewed"
|
|
50
51
|
CARD_SHIPPED = :"card.shipped"
|
|
@@ -83,6 +83,8 @@ module Lithic
|
|
|
83
83
|
# - card.converted: Occurs when a card is converted from virtual to physical
|
|
84
84
|
# cards.
|
|
85
85
|
# - card.created: Occurs when a new card is created.
|
|
86
|
+
# - card.pin_updated: Occurs when a card's PIN is set, changed, unblocked, or
|
|
87
|
+
# blocked due to excessive incorrect PIN attempts.
|
|
86
88
|
# - card.reissued: Occurs when a card is reissued.
|
|
87
89
|
# - card.renewed: Occurs when a card is renewed.
|
|
88
90
|
# - card.shipped: Occurs when a card is shipped.
|
|
@@ -201,6 +203,7 @@ module Lithic
|
|
|
201
203
|
CARD_TRANSACTION_UPDATED = :"card_transaction.updated"
|
|
202
204
|
CARD_CONVERTED = :"card.converted"
|
|
203
205
|
CARD_CREATED = :"card.created"
|
|
206
|
+
CARD_PIN_UPDATED = :"card.pin_updated"
|
|
204
207
|
CARD_REISSUED = :"card.reissued"
|
|
205
208
|
CARD_RENEWED = :"card.renewed"
|
|
206
209
|
CARD_SHIPPED = :"card.shipped"
|
|
@@ -134,6 +134,7 @@ module Lithic
|
|
|
134
134
|
EXTERNAL_CHECK = :EXTERNAL_CHECK
|
|
135
135
|
EXTERNAL_FEDNOW = :EXTERNAL_FEDNOW
|
|
136
136
|
EXTERNAL_RTP = :EXTERNAL_RTP
|
|
137
|
+
EXTERNAL_STABLECOIN = :EXTERNAL_STABLECOIN
|
|
137
138
|
EXTERNAL_TRANSFER = :EXTERNAL_TRANSFER
|
|
138
139
|
|
|
139
140
|
# @!method self.values
|
|
@@ -247,6 +248,11 @@ module Lithic
|
|
|
247
248
|
EXTERNAL_RTP_SETTLED = :EXTERNAL_RTP_SETTLED
|
|
248
249
|
EXTERNAL_RTP_REVERSED = :EXTERNAL_RTP_REVERSED
|
|
249
250
|
EXTERNAL_RTP_RELEASED = :EXTERNAL_RTP_RELEASED
|
|
251
|
+
EXTERNAL_STABLECOIN_INITIATED = :EXTERNAL_STABLECOIN_INITIATED
|
|
252
|
+
EXTERNAL_STABLECOIN_CANCELED = :EXTERNAL_STABLECOIN_CANCELED
|
|
253
|
+
EXTERNAL_STABLECOIN_SETTLED = :EXTERNAL_STABLECOIN_SETTLED
|
|
254
|
+
EXTERNAL_STABLECOIN_REVERSED = :EXTERNAL_STABLECOIN_REVERSED
|
|
255
|
+
EXTERNAL_STABLECOIN_RELEASED = :EXTERNAL_STABLECOIN_RELEASED
|
|
250
256
|
|
|
251
257
|
# @!method self.values
|
|
252
258
|
# @return [Array<Symbol>]
|