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
|
@@ -4,22 +4,22 @@ module Lithic
|
|
|
4
4
|
type conditional_authorization_action_parameters =
|
|
5
5
|
{
|
|
6
6
|
action: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::action,
|
|
7
|
-
conditions: ::Array[Lithic::AuthRules::
|
|
7
|
+
conditions: ::Array[Lithic::AuthRules::AuthRuleCondition]
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel
|
|
11
11
|
attr_accessor action: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::action
|
|
12
12
|
|
|
13
|
-
attr_accessor conditions: ::Array[Lithic::AuthRules::
|
|
13
|
+
attr_accessor conditions: ::Array[Lithic::AuthRules::AuthRuleCondition]
|
|
14
14
|
|
|
15
15
|
def initialize: (
|
|
16
16
|
action: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::action,
|
|
17
|
-
conditions: ::Array[Lithic::AuthRules::
|
|
17
|
+
conditions: ::Array[Lithic::AuthRules::AuthRuleCondition]
|
|
18
18
|
) -> void
|
|
19
19
|
|
|
20
20
|
def to_hash: -> {
|
|
21
21
|
action: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::action,
|
|
22
|
-
conditions: ::Array[Lithic::AuthRules::
|
|
22
|
+
conditions: ::Array[Lithic::AuthRules::AuthRuleCondition]
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
type action = :DECLINE | :CHALLENGE
|
|
@@ -32,206 +32,6 @@ module Lithic
|
|
|
32
32
|
|
|
33
33
|
def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::action]
|
|
34
34
|
end
|
|
35
|
-
|
|
36
|
-
type condition =
|
|
37
|
-
{
|
|
38
|
-
attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute,
|
|
39
|
-
operation: Lithic::Models::AuthRules::conditional_operation,
|
|
40
|
-
value: Lithic::Models::AuthRules::conditional_value,
|
|
41
|
-
parameters: Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
class Condition < Lithic::Internal::Type::BaseModel
|
|
45
|
-
attr_accessor attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute
|
|
46
|
-
|
|
47
|
-
attr_accessor operation: Lithic::Models::AuthRules::conditional_operation
|
|
48
|
-
|
|
49
|
-
attr_accessor value: Lithic::Models::AuthRules::conditional_value
|
|
50
|
-
|
|
51
|
-
attr_reader parameters: Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters?
|
|
52
|
-
|
|
53
|
-
def parameters=: (
|
|
54
|
-
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters
|
|
55
|
-
) -> Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters
|
|
56
|
-
|
|
57
|
-
def initialize: (
|
|
58
|
-
attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute,
|
|
59
|
-
operation: Lithic::Models::AuthRules::conditional_operation,
|
|
60
|
-
value: Lithic::Models::AuthRules::conditional_value,
|
|
61
|
-
?parameters: Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters
|
|
62
|
-
) -> void
|
|
63
|
-
|
|
64
|
-
def to_hash: -> {
|
|
65
|
-
attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute,
|
|
66
|
-
operation: Lithic::Models::AuthRules::conditional_operation,
|
|
67
|
-
value: Lithic::Models::AuthRules::conditional_value,
|
|
68
|
-
parameters: Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
type attribute =
|
|
72
|
-
:MCC
|
|
73
|
-
| :COUNTRY
|
|
74
|
-
| :CURRENCY
|
|
75
|
-
| :MERCHANT_ID
|
|
76
|
-
| :DESCRIPTOR
|
|
77
|
-
| :LIABILITY_SHIFT
|
|
78
|
-
| :PAN_ENTRY_MODE
|
|
79
|
-
| :TRANSACTION_AMOUNT
|
|
80
|
-
| :CASH_AMOUNT
|
|
81
|
-
| :RISK_SCORE
|
|
82
|
-
| :CARD_TRANSACTION_COUNT_15M
|
|
83
|
-
| :CARD_TRANSACTION_COUNT_1H
|
|
84
|
-
| :CARD_TRANSACTION_COUNT_24H
|
|
85
|
-
| :CARD_DECLINE_COUNT_15M
|
|
86
|
-
| :CARD_DECLINE_COUNT_1H
|
|
87
|
-
| :CARD_DECLINE_COUNT_24H
|
|
88
|
-
| :CARD_STATE
|
|
89
|
-
| :PIN_ENTERED
|
|
90
|
-
| :PIN_STATUS
|
|
91
|
-
| :WALLET_TYPE
|
|
92
|
-
| :TRANSACTION_INITIATOR
|
|
93
|
-
| :ADDRESS_MATCH
|
|
94
|
-
| :SERVICE_LOCATION_STATE
|
|
95
|
-
| :SERVICE_LOCATION_POSTAL_CODE
|
|
96
|
-
| :CARD_AGE
|
|
97
|
-
| :ACCOUNT_AGE
|
|
98
|
-
| :AMOUNT_Z_SCORE
|
|
99
|
-
| :AVG_TRANSACTION_AMOUNT
|
|
100
|
-
| :STDEV_TRANSACTION_AMOUNT
|
|
101
|
-
| :IS_NEW_COUNTRY
|
|
102
|
-
| :IS_NEW_MCC
|
|
103
|
-
| :IS_FIRST_TRANSACTION
|
|
104
|
-
| :CONSECUTIVE_DECLINES
|
|
105
|
-
| :TIME_SINCE_LAST_TRANSACTION
|
|
106
|
-
| :DISTINCT_COUNTRY_COUNT
|
|
107
|
-
| :IS_NEW_MERCHANT
|
|
108
|
-
| :THREE_DS_SUCCESS_RATE
|
|
109
|
-
| :TRAVEL_SPEED
|
|
110
|
-
| :DISTANCE_FROM_LAST_TRANSACTION
|
|
111
|
-
|
|
112
|
-
module Attribute
|
|
113
|
-
extend Lithic::Internal::Type::Enum
|
|
114
|
-
|
|
115
|
-
MCC: :MCC
|
|
116
|
-
COUNTRY: :COUNTRY
|
|
117
|
-
CURRENCY: :CURRENCY
|
|
118
|
-
MERCHANT_ID: :MERCHANT_ID
|
|
119
|
-
DESCRIPTOR: :DESCRIPTOR
|
|
120
|
-
LIABILITY_SHIFT: :LIABILITY_SHIFT
|
|
121
|
-
PAN_ENTRY_MODE: :PAN_ENTRY_MODE
|
|
122
|
-
TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
|
|
123
|
-
CASH_AMOUNT: :CASH_AMOUNT
|
|
124
|
-
RISK_SCORE: :RISK_SCORE
|
|
125
|
-
CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M
|
|
126
|
-
CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H
|
|
127
|
-
CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H
|
|
128
|
-
CARD_DECLINE_COUNT_15_M: :CARD_DECLINE_COUNT_15M
|
|
129
|
-
CARD_DECLINE_COUNT_1_H: :CARD_DECLINE_COUNT_1H
|
|
130
|
-
CARD_DECLINE_COUNT_24_H: :CARD_DECLINE_COUNT_24H
|
|
131
|
-
CARD_STATE: :CARD_STATE
|
|
132
|
-
PIN_ENTERED: :PIN_ENTERED
|
|
133
|
-
PIN_STATUS: :PIN_STATUS
|
|
134
|
-
WALLET_TYPE: :WALLET_TYPE
|
|
135
|
-
TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR
|
|
136
|
-
ADDRESS_MATCH: :ADDRESS_MATCH
|
|
137
|
-
SERVICE_LOCATION_STATE: :SERVICE_LOCATION_STATE
|
|
138
|
-
SERVICE_LOCATION_POSTAL_CODE: :SERVICE_LOCATION_POSTAL_CODE
|
|
139
|
-
CARD_AGE: :CARD_AGE
|
|
140
|
-
ACCOUNT_AGE: :ACCOUNT_AGE
|
|
141
|
-
AMOUNT_Z_SCORE: :AMOUNT_Z_SCORE
|
|
142
|
-
AVG_TRANSACTION_AMOUNT: :AVG_TRANSACTION_AMOUNT
|
|
143
|
-
STDEV_TRANSACTION_AMOUNT: :STDEV_TRANSACTION_AMOUNT
|
|
144
|
-
IS_NEW_COUNTRY: :IS_NEW_COUNTRY
|
|
145
|
-
IS_NEW_MCC: :IS_NEW_MCC
|
|
146
|
-
IS_FIRST_TRANSACTION: :IS_FIRST_TRANSACTION
|
|
147
|
-
CONSECUTIVE_DECLINES: :CONSECUTIVE_DECLINES
|
|
148
|
-
TIME_SINCE_LAST_TRANSACTION: :TIME_SINCE_LAST_TRANSACTION
|
|
149
|
-
DISTINCT_COUNTRY_COUNT: :DISTINCT_COUNTRY_COUNT
|
|
150
|
-
IS_NEW_MERCHANT: :IS_NEW_MERCHANT
|
|
151
|
-
THREE_DS_SUCCESS_RATE: :THREE_DS_SUCCESS_RATE
|
|
152
|
-
TRAVEL_SPEED: :TRAVEL_SPEED
|
|
153
|
-
DISTANCE_FROM_LAST_TRANSACTION: :DISTANCE_FROM_LAST_TRANSACTION
|
|
154
|
-
|
|
155
|
-
def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute]
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
type parameters =
|
|
159
|
-
{
|
|
160
|
-
interval: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval,
|
|
161
|
-
scope: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope,
|
|
162
|
-
unit: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::unit
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
class Parameters < Lithic::Internal::Type::BaseModel
|
|
166
|
-
attr_reader interval: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval?
|
|
167
|
-
|
|
168
|
-
def interval=: (
|
|
169
|
-
Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval
|
|
170
|
-
) -> Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval
|
|
171
|
-
|
|
172
|
-
attr_reader scope: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope?
|
|
173
|
-
|
|
174
|
-
def scope=: (
|
|
175
|
-
Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope
|
|
176
|
-
) -> Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope
|
|
177
|
-
|
|
178
|
-
attr_reader unit: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::unit?
|
|
179
|
-
|
|
180
|
-
def unit=: (
|
|
181
|
-
Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::unit
|
|
182
|
-
) -> Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::unit
|
|
183
|
-
|
|
184
|
-
def initialize: (
|
|
185
|
-
?interval: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval,
|
|
186
|
-
?scope: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope,
|
|
187
|
-
?unit: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::unit
|
|
188
|
-
) -> void
|
|
189
|
-
|
|
190
|
-
def to_hash: -> {
|
|
191
|
-
interval: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval,
|
|
192
|
-
scope: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope,
|
|
193
|
-
unit: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::unit
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
type interval = :LIFETIME | :"7D" | :"30D" | :"90D"
|
|
197
|
-
|
|
198
|
-
module Interval
|
|
199
|
-
extend Lithic::Internal::Type::Enum
|
|
200
|
-
|
|
201
|
-
LIFETIME: :LIFETIME
|
|
202
|
-
INTERVAL_7_D: :"7D"
|
|
203
|
-
INTERVAL_30_D: :"30D"
|
|
204
|
-
INTERVAL_90_D: :"90D"
|
|
205
|
-
|
|
206
|
-
def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval]
|
|
207
|
-
end
|
|
208
|
-
|
|
209
|
-
type scope = :CARD | :ACCOUNT | :BUSINESS_ACCOUNT
|
|
210
|
-
|
|
211
|
-
module Scope
|
|
212
|
-
extend Lithic::Internal::Type::Enum
|
|
213
|
-
|
|
214
|
-
CARD: :CARD
|
|
215
|
-
ACCOUNT: :ACCOUNT
|
|
216
|
-
BUSINESS_ACCOUNT: :BUSINESS_ACCOUNT
|
|
217
|
-
|
|
218
|
-
def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope]
|
|
219
|
-
end
|
|
220
|
-
|
|
221
|
-
type unit = :MPH | :KPH | :MILES | :KILOMETERS
|
|
222
|
-
|
|
223
|
-
module Unit
|
|
224
|
-
extend Lithic::Internal::Type::Enum
|
|
225
|
-
|
|
226
|
-
MPH: :MPH
|
|
227
|
-
KPH: :KPH
|
|
228
|
-
MILES: :MILES
|
|
229
|
-
KILOMETERS: :KILOMETERS
|
|
230
|
-
|
|
231
|
-
def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::unit]
|
|
232
|
-
end
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
35
|
end
|
|
236
36
|
end
|
|
237
37
|
end
|
|
@@ -132,6 +132,7 @@ module Lithic
|
|
|
132
132
|
| :SERVICE_LOCATION_STATE
|
|
133
133
|
| :SERVICE_LOCATION_POSTAL_CODE
|
|
134
134
|
| :CARD_AGE
|
|
135
|
+
| :IS_DOMESTIC
|
|
135
136
|
| :ACCOUNT_AGE
|
|
136
137
|
| :AMOUNT_Z_SCORE
|
|
137
138
|
| :AVG_TRANSACTION_AMOUNT
|
|
@@ -175,6 +176,7 @@ module Lithic
|
|
|
175
176
|
SERVICE_LOCATION_STATE: :SERVICE_LOCATION_STATE
|
|
176
177
|
SERVICE_LOCATION_POSTAL_CODE: :SERVICE_LOCATION_POSTAL_CODE
|
|
177
178
|
CARD_AGE: :CARD_AGE
|
|
179
|
+
IS_DOMESTIC: :IS_DOMESTIC
|
|
178
180
|
ACCOUNT_AGE: :ACCOUNT_AGE
|
|
179
181
|
AMOUNT_Z_SCORE: :AMOUNT_Z_SCORE
|
|
180
182
|
AVG_TRANSACTION_AMOUNT: :AVG_TRANSACTION_AMOUNT
|
|
@@ -3,18 +3,25 @@ module Lithic
|
|
|
3
3
|
module AuthRules
|
|
4
4
|
type merchant_lock_parameters =
|
|
5
5
|
{
|
|
6
|
-
merchants: ::Array[Lithic::AuthRules::MerchantLockParameters::Merchant]
|
|
6
|
+
merchants: ::Array[Lithic::AuthRules::MerchantLockParameters::Merchant],
|
|
7
|
+
locked_at: Time
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
class MerchantLockParameters < Lithic::Internal::Type::BaseModel
|
|
10
11
|
attr_accessor merchants: ::Array[Lithic::AuthRules::MerchantLockParameters::Merchant]
|
|
11
12
|
|
|
13
|
+
attr_reader locked_at: Time?
|
|
14
|
+
|
|
15
|
+
def locked_at=: (Time) -> Time
|
|
16
|
+
|
|
12
17
|
def initialize: (
|
|
13
|
-
merchants: ::Array[Lithic::AuthRules::MerchantLockParameters::Merchant]
|
|
18
|
+
merchants: ::Array[Lithic::AuthRules::MerchantLockParameters::Merchant],
|
|
19
|
+
?locked_at: Time
|
|
14
20
|
) -> void
|
|
15
21
|
|
|
16
22
|
def to_hash: -> {
|
|
17
|
-
merchants: ::Array[Lithic::AuthRules::MerchantLockParameters::Merchant]
|
|
23
|
+
merchants: ::Array[Lithic::AuthRules::MerchantLockParameters::Merchant],
|
|
24
|
+
locked_at: Time
|
|
18
25
|
}
|
|
19
26
|
|
|
20
27
|
type merchant =
|
|
@@ -143,6 +143,7 @@ module Lithic
|
|
|
143
143
|
| :PROGRAM_SUSPENDED
|
|
144
144
|
| :PROGRAM_USAGE_RESTRICTION
|
|
145
145
|
| :REVERSAL_UNMATCHED
|
|
146
|
+
| :SCA_REQUIRED
|
|
146
147
|
| :SECURITY_VIOLATION
|
|
147
148
|
| :SINGLE_USE_CARD_REATTEMPTED
|
|
148
149
|
| :SUSPECTED_FRAUD
|
|
@@ -204,6 +205,7 @@ module Lithic
|
|
|
204
205
|
PROGRAM_SUSPENDED: :PROGRAM_SUSPENDED
|
|
205
206
|
PROGRAM_USAGE_RESTRICTION: :PROGRAM_USAGE_RESTRICTION
|
|
206
207
|
REVERSAL_UNMATCHED: :REVERSAL_UNMATCHED
|
|
208
|
+
SCA_REQUIRED: :SCA_REQUIRED
|
|
207
209
|
SECURITY_VIOLATION: :SECURITY_VIOLATION
|
|
208
210
|
SINGLE_USE_CARD_REATTEMPTED: :SINGLE_USE_CARD_REATTEMPTED
|
|
209
211
|
SUSPECTED_FRAUD: :SUSPECTED_FRAUD
|
|
@@ -22,13 +22,92 @@ module Lithic
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
type body =
|
|
25
|
-
Lithic::AuthRules::V2CreateParams::Body::
|
|
25
|
+
Lithic::AuthRules::V2CreateParams::Body::Rule
|
|
26
|
+
| Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule
|
|
26
27
|
| Lithic::AuthRules::V2CreateParams::Body::CardLevelRule
|
|
27
28
|
| Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule
|
|
28
29
|
|
|
29
30
|
module Body
|
|
30
31
|
extend Lithic::Internal::Type::Union
|
|
31
32
|
|
|
33
|
+
type rule =
|
|
34
|
+
{
|
|
35
|
+
entities: Lithic::AuthRules::AuthRuleEntities,
|
|
36
|
+
parameters: Lithic::Models::AuthRules::V2CreateParams::Body::Rule::parameters,
|
|
37
|
+
type: Lithic::Models::AuthRules::V2CreateParams::Body::Rule::type_,
|
|
38
|
+
event_stream: Lithic::Models::AuthRules::event_stream,
|
|
39
|
+
name: String?
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
class Rule < Lithic::Internal::Type::BaseModel
|
|
43
|
+
attr_accessor entities: Lithic::AuthRules::AuthRuleEntities
|
|
44
|
+
|
|
45
|
+
attr_accessor parameters: Lithic::Models::AuthRules::V2CreateParams::Body::Rule::parameters
|
|
46
|
+
|
|
47
|
+
attr_accessor type: Lithic::Models::AuthRules::V2CreateParams::Body::Rule::type_
|
|
48
|
+
|
|
49
|
+
attr_reader event_stream: Lithic::Models::AuthRules::event_stream?
|
|
50
|
+
|
|
51
|
+
def event_stream=: (
|
|
52
|
+
Lithic::Models::AuthRules::event_stream
|
|
53
|
+
) -> Lithic::Models::AuthRules::event_stream
|
|
54
|
+
|
|
55
|
+
attr_accessor name: String?
|
|
56
|
+
|
|
57
|
+
def initialize: (
|
|
58
|
+
entities: Lithic::AuthRules::AuthRuleEntities,
|
|
59
|
+
parameters: Lithic::Models::AuthRules::V2CreateParams::Body::Rule::parameters,
|
|
60
|
+
type: Lithic::Models::AuthRules::V2CreateParams::Body::Rule::type_,
|
|
61
|
+
?event_stream: Lithic::Models::AuthRules::event_stream,
|
|
62
|
+
?name: String?
|
|
63
|
+
) -> void
|
|
64
|
+
|
|
65
|
+
def to_hash: -> {
|
|
66
|
+
entities: Lithic::AuthRules::AuthRuleEntities,
|
|
67
|
+
parameters: Lithic::Models::AuthRules::V2CreateParams::Body::Rule::parameters,
|
|
68
|
+
type: Lithic::Models::AuthRules::V2CreateParams::Body::Rule::type_,
|
|
69
|
+
event_stream: Lithic::Models::AuthRules::event_stream,
|
|
70
|
+
name: String?
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
type parameters =
|
|
74
|
+
Lithic::AuthRules::VelocityLimitParams
|
|
75
|
+
| Lithic::AuthRules::MerchantLockParameters
|
|
76
|
+
| Lithic::AuthRules::Conditional3DSActionParameters
|
|
77
|
+
| Lithic::AuthRules::ConditionalAuthorizationActionParameters
|
|
78
|
+
| Lithic::AuthRules::ConditionalACHActionParameters
|
|
79
|
+
| Lithic::AuthRules::ConditionalTokenizationActionParameters
|
|
80
|
+
| Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
|
|
81
|
+
| Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters
|
|
82
|
+
| Lithic::AuthRules::TypescriptCodeParameters
|
|
83
|
+
| Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
|
|
84
|
+
|
|
85
|
+
module Parameters
|
|
86
|
+
extend Lithic::Internal::Type::Union
|
|
87
|
+
|
|
88
|
+
def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Body::Rule::parameters]
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
type type_ =
|
|
92
|
+
:VELOCITY_LIMIT
|
|
93
|
+
| :MERCHANT_LOCK
|
|
94
|
+
| :CONDITIONAL_ACTION
|
|
95
|
+
| :TYPESCRIPT_CODE
|
|
96
|
+
| :OTHER
|
|
97
|
+
|
|
98
|
+
module Type
|
|
99
|
+
extend Lithic::Internal::Type::Enum
|
|
100
|
+
|
|
101
|
+
VELOCITY_LIMIT: :VELOCITY_LIMIT
|
|
102
|
+
MERCHANT_LOCK: :MERCHANT_LOCK
|
|
103
|
+
CONDITIONAL_ACTION: :CONDITIONAL_ACTION
|
|
104
|
+
TYPESCRIPT_CODE: :TYPESCRIPT_CODE
|
|
105
|
+
OTHER: :OTHER
|
|
106
|
+
|
|
107
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Body::Rule::type_]
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
|
|
32
111
|
type account_level_rule =
|
|
33
112
|
{
|
|
34
113
|
parameters: Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule::parameters,
|
|
@@ -79,8 +158,7 @@ module Lithic
|
|
|
79
158
|
}
|
|
80
159
|
|
|
81
160
|
type parameters =
|
|
82
|
-
Lithic::AuthRules::
|
|
83
|
-
| Lithic::AuthRules::VelocityLimitParams
|
|
161
|
+
Lithic::AuthRules::VelocityLimitParams
|
|
84
162
|
| Lithic::AuthRules::MerchantLockParameters
|
|
85
163
|
| Lithic::AuthRules::Conditional3DSActionParameters
|
|
86
164
|
| Lithic::AuthRules::ConditionalAuthorizationActionParameters
|
|
@@ -98,20 +176,20 @@ module Lithic
|
|
|
98
176
|
end
|
|
99
177
|
|
|
100
178
|
type type_ =
|
|
101
|
-
:
|
|
102
|
-
| :VELOCITY_LIMIT
|
|
179
|
+
:VELOCITY_LIMIT
|
|
103
180
|
| :MERCHANT_LOCK
|
|
104
181
|
| :CONDITIONAL_ACTION
|
|
105
182
|
| :TYPESCRIPT_CODE
|
|
183
|
+
| :OTHER
|
|
106
184
|
|
|
107
185
|
module Type
|
|
108
186
|
extend Lithic::Internal::Type::Enum
|
|
109
187
|
|
|
110
|
-
CONDITIONAL_BLOCK: :CONDITIONAL_BLOCK
|
|
111
188
|
VELOCITY_LIMIT: :VELOCITY_LIMIT
|
|
112
189
|
MERCHANT_LOCK: :MERCHANT_LOCK
|
|
113
190
|
CONDITIONAL_ACTION: :CONDITIONAL_ACTION
|
|
114
191
|
TYPESCRIPT_CODE: :TYPESCRIPT_CODE
|
|
192
|
+
OTHER: :OTHER
|
|
115
193
|
|
|
116
194
|
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule::type_]
|
|
117
195
|
end
|
|
@@ -158,8 +236,7 @@ module Lithic
|
|
|
158
236
|
}
|
|
159
237
|
|
|
160
238
|
type parameters =
|
|
161
|
-
Lithic::AuthRules::
|
|
162
|
-
| Lithic::AuthRules::VelocityLimitParams
|
|
239
|
+
Lithic::AuthRules::VelocityLimitParams
|
|
163
240
|
| Lithic::AuthRules::MerchantLockParameters
|
|
164
241
|
| Lithic::AuthRules::Conditional3DSActionParameters
|
|
165
242
|
| Lithic::AuthRules::ConditionalAuthorizationActionParameters
|
|
@@ -177,20 +254,20 @@ module Lithic
|
|
|
177
254
|
end
|
|
178
255
|
|
|
179
256
|
type type_ =
|
|
180
|
-
:
|
|
181
|
-
| :VELOCITY_LIMIT
|
|
257
|
+
:VELOCITY_LIMIT
|
|
182
258
|
| :MERCHANT_LOCK
|
|
183
259
|
| :CONDITIONAL_ACTION
|
|
184
260
|
| :TYPESCRIPT_CODE
|
|
261
|
+
| :OTHER
|
|
185
262
|
|
|
186
263
|
module Type
|
|
187
264
|
extend Lithic::Internal::Type::Enum
|
|
188
265
|
|
|
189
|
-
CONDITIONAL_BLOCK: :CONDITIONAL_BLOCK
|
|
190
266
|
VELOCITY_LIMIT: :VELOCITY_LIMIT
|
|
191
267
|
MERCHANT_LOCK: :MERCHANT_LOCK
|
|
192
268
|
CONDITIONAL_ACTION: :CONDITIONAL_ACTION
|
|
193
269
|
TYPESCRIPT_CODE: :TYPESCRIPT_CODE
|
|
270
|
+
OTHER: :OTHER
|
|
194
271
|
|
|
195
272
|
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule::type_]
|
|
196
273
|
end
|
|
@@ -260,8 +337,7 @@ module Lithic
|
|
|
260
337
|
}
|
|
261
338
|
|
|
262
339
|
type parameters =
|
|
263
|
-
Lithic::AuthRules::
|
|
264
|
-
| Lithic::AuthRules::VelocityLimitParams
|
|
340
|
+
Lithic::AuthRules::VelocityLimitParams
|
|
265
341
|
| Lithic::AuthRules::MerchantLockParameters
|
|
266
342
|
| Lithic::AuthRules::Conditional3DSActionParameters
|
|
267
343
|
| Lithic::AuthRules::ConditionalAuthorizationActionParameters
|
|
@@ -279,20 +355,20 @@ module Lithic
|
|
|
279
355
|
end
|
|
280
356
|
|
|
281
357
|
type type_ =
|
|
282
|
-
:
|
|
283
|
-
| :VELOCITY_LIMIT
|
|
358
|
+
:VELOCITY_LIMIT
|
|
284
359
|
| :MERCHANT_LOCK
|
|
285
360
|
| :CONDITIONAL_ACTION
|
|
286
361
|
| :TYPESCRIPT_CODE
|
|
362
|
+
| :OTHER
|
|
287
363
|
|
|
288
364
|
module Type
|
|
289
365
|
extend Lithic::Internal::Type::Enum
|
|
290
366
|
|
|
291
|
-
CONDITIONAL_BLOCK: :CONDITIONAL_BLOCK
|
|
292
367
|
VELOCITY_LIMIT: :VELOCITY_LIMIT
|
|
293
368
|
MERCHANT_LOCK: :MERCHANT_LOCK
|
|
294
369
|
CONDITIONAL_ACTION: :CONDITIONAL_ACTION
|
|
295
370
|
TYPESCRIPT_CODE: :TYPESCRIPT_CODE
|
|
371
|
+
OTHER: :OTHER
|
|
296
372
|
|
|
297
373
|
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule::type_]
|
|
298
374
|
end
|
|
@@ -29,8 +29,7 @@ module Lithic
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
type parameters =
|
|
32
|
-
Lithic::AuthRules::
|
|
33
|
-
| Lithic::AuthRules::VelocityLimitParams
|
|
32
|
+
Lithic::AuthRules::VelocityLimitParams
|
|
34
33
|
| Lithic::AuthRules::MerchantLockParameters
|
|
35
34
|
| Lithic::AuthRules::Conditional3DSActionParameters
|
|
36
35
|
| Lithic::AuthRules::ConditionalAuthorizationActionParameters
|
|
@@ -150,6 +150,7 @@ module Lithic
|
|
|
150
150
|
| :PROGRAM_SUSPENDED
|
|
151
151
|
| :PROGRAM_USAGE_RESTRICTION
|
|
152
152
|
| :REVERSAL_UNMATCHED
|
|
153
|
+
| :SCA_REQUIRED
|
|
153
154
|
| :SECURITY_VIOLATION
|
|
154
155
|
| :SINGLE_USE_CARD_REATTEMPTED
|
|
155
156
|
| :SUSPECTED_FRAUD
|
|
@@ -211,6 +212,7 @@ module Lithic
|
|
|
211
212
|
PROGRAM_SUSPENDED: :PROGRAM_SUSPENDED
|
|
212
213
|
PROGRAM_USAGE_RESTRICTION: :PROGRAM_USAGE_RESTRICTION
|
|
213
214
|
REVERSAL_UNMATCHED: :REVERSAL_UNMATCHED
|
|
215
|
+
SCA_REQUIRED: :SCA_REQUIRED
|
|
214
216
|
SECURITY_VIOLATION: :SECURITY_VIOLATION
|
|
215
217
|
SINGLE_USE_CARD_REATTEMPTED: :SINGLE_USE_CARD_REATTEMPTED
|
|
216
218
|
SUSPECTED_FRAUD: :SUSPECTED_FRAUD
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
module Lithic
|
|
2
|
+
module Models
|
|
3
|
+
module AuthRules
|
|
4
|
+
type v2_update_entities_params =
|
|
5
|
+
{
|
|
6
|
+
auth_rule_token: String,
|
|
7
|
+
add: Lithic::AuthRules::AuthRuleEntities,
|
|
8
|
+
remove: Lithic::AuthRules::AuthRuleEntities
|
|
9
|
+
}
|
|
10
|
+
& Lithic::Internal::Type::request_parameters
|
|
11
|
+
|
|
12
|
+
class V2UpdateEntitiesParams < Lithic::Internal::Type::BaseModel
|
|
13
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
14
|
+
include Lithic::Internal::Type::RequestParameters
|
|
15
|
+
|
|
16
|
+
attr_accessor auth_rule_token: String
|
|
17
|
+
|
|
18
|
+
attr_reader add: Lithic::AuthRules::AuthRuleEntities?
|
|
19
|
+
|
|
20
|
+
def add=: (
|
|
21
|
+
Lithic::AuthRules::AuthRuleEntities
|
|
22
|
+
) -> Lithic::AuthRules::AuthRuleEntities
|
|
23
|
+
|
|
24
|
+
attr_reader remove: Lithic::AuthRules::AuthRuleEntities?
|
|
25
|
+
|
|
26
|
+
def remove=: (
|
|
27
|
+
Lithic::AuthRules::AuthRuleEntities
|
|
28
|
+
) -> Lithic::AuthRules::AuthRuleEntities
|
|
29
|
+
|
|
30
|
+
def initialize: (
|
|
31
|
+
auth_rule_token: String,
|
|
32
|
+
?add: Lithic::AuthRules::AuthRuleEntities,
|
|
33
|
+
?remove: Lithic::AuthRules::AuthRuleEntities,
|
|
34
|
+
?request_options: Lithic::request_opts
|
|
35
|
+
) -> void
|
|
36
|
+
|
|
37
|
+
def to_hash: -> {
|
|
38
|
+
auth_rule_token: String,
|
|
39
|
+
add: Lithic::AuthRules::AuthRuleEntities,
|
|
40
|
+
remove: Lithic::AuthRules::AuthRuleEntities,
|
|
41
|
+
request_options: Lithic::RequestOptions
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -29,13 +29,59 @@ module Lithic
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
type body =
|
|
32
|
-
Lithic::AuthRules::V2UpdateParams::Body::
|
|
32
|
+
Lithic::AuthRules::V2UpdateParams::Body::Rule
|
|
33
|
+
| Lithic::AuthRules::V2UpdateParams::Body::AccountLevelRule
|
|
33
34
|
| Lithic::AuthRules::V2UpdateParams::Body::CardLevelRule
|
|
34
35
|
| Lithic::AuthRules::V2UpdateParams::Body::ProgramLevelRule
|
|
35
36
|
|
|
36
37
|
module Body
|
|
37
38
|
extend Lithic::Internal::Type::Union
|
|
38
39
|
|
|
40
|
+
type rule =
|
|
41
|
+
{
|
|
42
|
+
entities: Lithic::AuthRules::AuthRuleEntities,
|
|
43
|
+
name: String?,
|
|
44
|
+
state: Lithic::Models::AuthRules::V2UpdateParams::Body::Rule::state
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
class Rule < Lithic::Internal::Type::BaseModel
|
|
48
|
+
attr_reader entities: Lithic::AuthRules::AuthRuleEntities?
|
|
49
|
+
|
|
50
|
+
def entities=: (
|
|
51
|
+
Lithic::AuthRules::AuthRuleEntities
|
|
52
|
+
) -> Lithic::AuthRules::AuthRuleEntities
|
|
53
|
+
|
|
54
|
+
attr_accessor name: String?
|
|
55
|
+
|
|
56
|
+
attr_reader state: Lithic::Models::AuthRules::V2UpdateParams::Body::Rule::state?
|
|
57
|
+
|
|
58
|
+
def state=: (
|
|
59
|
+
Lithic::Models::AuthRules::V2UpdateParams::Body::Rule::state
|
|
60
|
+
) -> Lithic::Models::AuthRules::V2UpdateParams::Body::Rule::state
|
|
61
|
+
|
|
62
|
+
def initialize: (
|
|
63
|
+
?entities: Lithic::AuthRules::AuthRuleEntities,
|
|
64
|
+
?name: String?,
|
|
65
|
+
?state: Lithic::Models::AuthRules::V2UpdateParams::Body::Rule::state
|
|
66
|
+
) -> void
|
|
67
|
+
|
|
68
|
+
def to_hash: -> {
|
|
69
|
+
entities: Lithic::AuthRules::AuthRuleEntities,
|
|
70
|
+
name: String?,
|
|
71
|
+
state: Lithic::Models::AuthRules::V2UpdateParams::Body::Rule::state
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
type state = :INACTIVE
|
|
75
|
+
|
|
76
|
+
module State
|
|
77
|
+
extend Lithic::Internal::Type::Enum
|
|
78
|
+
|
|
79
|
+
INACTIVE: :INACTIVE
|
|
80
|
+
|
|
81
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::V2UpdateParams::Body::Rule::state]
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
39
85
|
type account_level_rule =
|
|
40
86
|
{
|
|
41
87
|
account_tokens: ::Array[String],
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module Lithic
|
|
2
|
+
module Models
|
|
3
|
+
type blockchain_recipient_retrieve_params =
|
|
4
|
+
{ blockchain_recipient_token: String }
|
|
5
|
+
& Lithic::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class BlockchainRecipientRetrieveParams < Lithic::Internal::Type::BaseModel
|
|
8
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Lithic::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor blockchain_recipient_token: String
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
blockchain_recipient_token: String,
|
|
15
|
+
?request_options: Lithic::request_opts
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
blockchain_recipient_token: String,
|
|
20
|
+
request_options: Lithic::RequestOptions
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -339,6 +339,7 @@ module Lithic
|
|
|
339
339
|
spend_limit: Integer,
|
|
340
340
|
spend_limit_duration: Lithic::Models::CardAuthorization::Card::spend_limit_duration,
|
|
341
341
|
state: Lithic::Models::CardAuthorization::Card::state,
|
|
342
|
+
tags: ::Hash[Symbol, String],
|
|
342
343
|
type: Lithic::Models::CardAuthorization::Card::type_
|
|
343
344
|
}
|
|
344
345
|
|
|
@@ -355,6 +356,8 @@ module Lithic
|
|
|
355
356
|
|
|
356
357
|
attr_accessor state: Lithic::Models::CardAuthorization::Card::state
|
|
357
358
|
|
|
359
|
+
attr_accessor tags: ::Hash[Symbol, String]
|
|
360
|
+
|
|
358
361
|
attr_accessor type: Lithic::Models::CardAuthorization::Card::type_
|
|
359
362
|
|
|
360
363
|
def initialize: (
|
|
@@ -364,6 +367,7 @@ module Lithic
|
|
|
364
367
|
spend_limit: Integer,
|
|
365
368
|
spend_limit_duration: Lithic::Models::CardAuthorization::Card::spend_limit_duration,
|
|
366
369
|
state: Lithic::Models::CardAuthorization::Card::state,
|
|
370
|
+
tags: ::Hash[Symbol, String],
|
|
367
371
|
type: Lithic::Models::CardAuthorization::Card::type_
|
|
368
372
|
) -> void
|
|
369
373
|
|
|
@@ -374,6 +378,7 @@ module Lithic
|
|
|
374
378
|
spend_limit: Integer,
|
|
375
379
|
spend_limit_duration: Lithic::Models::CardAuthorization::Card::spend_limit_duration,
|
|
376
380
|
state: Lithic::Models::CardAuthorization::Card::state,
|
|
381
|
+
tags: ::Hash[Symbol, String],
|
|
377
382
|
type: Lithic::Models::CardAuthorization::Card::type_
|
|
378
383
|
}
|
|
379
384
|
|