lithic 0.1.0.pre.alpha.54 → 0.1.0.pre.alpha.56
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 +39 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/models/account_activity_list_response.rb +60 -148
- data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +60 -151
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +2 -2
- data/lib/lithic/models/account_holder_update_response.rb +4 -4
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +8 -51
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -51
- data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +260 -0
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +207 -0
- data/lib/lithic/models/auth_rules/conditional_operation.rb +26 -0
- data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +254 -0
- data/lib/lithic/models/auth_rules/conditional_value.rb +27 -0
- data/lib/lithic/models/auth_rules/v2_create_params.rb +46 -283
- data/lib/lithic/models/auth_rules/v2_create_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +6 -248
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_list_params.rb +3 -0
- data/lib/lithic/models/auth_rules/v2_list_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +4 -11
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_update_response.rb +23 -510
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +4 -7
- data/lib/lithic/models/auth_rules/velocity_limit_period.rb +154 -0
- data/lib/lithic/models/book_transfer_response.rb +6 -5
- data/lib/lithic/models/category_details.rb +27 -0
- data/lib/lithic/models/dispute_v2.rb +555 -0
- data/lib/lithic/models/disputes_v2_list_params.rb +84 -0
- data/lib/lithic/models/disputes_v2_retrieve_params.rb +14 -0
- data/lib/lithic/models/event.rb +213 -69
- data/lib/lithic/models/event_list_params.rb +112 -6
- data/lib/lithic/models/event_subscription.rb +112 -6
- data/lib/lithic/models/events/subscription_create_params.rb +112 -6
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +12 -6
- data/lib/lithic/models/events/subscription_update_params.rb +112 -6
- data/lib/lithic/models/external_bank_account_address.rb +2 -2
- data/lib/lithic/models/external_bank_account_create_response.rb +18 -18
- data/lib/lithic/models/external_bank_account_list_response.rb +18 -18
- data/lib/lithic/models/external_bank_account_retrieve_response.rb +18 -18
- data/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rb +18 -18
- data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +18 -18
- data/lib/lithic/models/external_bank_account_unpause_params.rb +14 -0
- data/lib/lithic/models/external_bank_account_unpause_response.rb +242 -0
- data/lib/lithic/models/external_bank_account_update_response.rb +18 -18
- data/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rb +18 -18
- data/lib/lithic/models/external_payment.rb +3 -2
- data/lib/lithic/models/external_payment_list_params.rb +1 -0
- data/lib/lithic/models/financial_account.rb +5 -68
- data/lib/lithic/models/financial_accounts/category_balances.rb +29 -0
- data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +1 -64
- data/lib/lithic/models/financial_accounts/loan_tape.rb +35 -424
- data/lib/lithic/models/financial_accounts/statement.rb +73 -211
- data/lib/lithic/models/financial_event.rb +148 -0
- data/lib/lithic/models/financial_transaction.rb +3 -146
- data/lib/lithic/models/management_operation_list_params.rb +1 -0
- data/lib/lithic/models/management_operation_transaction.rb +5 -4
- data/lib/lithic/models/merchant.rb +70 -0
- data/lib/lithic/models/payment.rb +16 -14
- data/lib/lithic/models/payment_return_params.rb +62 -0
- data/lib/lithic/models/payment_simulate_action_params.rb +17 -1
- data/lib/lithic/models/statement_totals.rb +100 -0
- data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +9 -9
- data/lib/lithic/models/tokenization.rb +189 -23
- data/lib/lithic/models/transaction.rb +15 -185
- data/lib/lithic/models/transactions/events/enhanced_data.rb +52 -43
- data/lib/lithic/models/transfer.rb +3 -146
- data/lib/lithic/models.rb +18 -0
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -5
- data/lib/lithic/resources/auth_rules/v2.rb +13 -56
- data/lib/lithic/resources/disputes_v2.rb +74 -0
- data/lib/lithic/resources/external_bank_accounts.rb +19 -0
- data/lib/lithic/resources/payments.rb +53 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +18 -3
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/models/account_activity_list_response.rbi +121 -544
- data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +121 -544
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +3 -6
- data/rbi/lithic/models/account_holder_update_response.rbi +6 -12
- data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +13 -139
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +13 -153
- data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +789 -0
- data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +437 -0
- data/rbi/lithic/models/auth_rules/conditional_operation.rbi +74 -0
- data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +674 -0
- data/rbi/lithic/models/auth_rules/conditional_value.rbi +28 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +112 -680
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +12 -575
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +15 -0
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +9 -22
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +17 -29
- data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +223 -0
- data/rbi/lithic/models/book_transfer_response.rbi +16 -11
- data/rbi/lithic/models/category_details.rbi +43 -0
- data/rbi/lithic/models/dispute_v2.rbi +965 -0
- data/rbi/lithic/models/disputes_v2_list_params.rbi +129 -0
- data/rbi/lithic/models/disputes_v2_retrieve_params.rbi +27 -0
- data/rbi/lithic/models/event.rbi +348 -111
- data/rbi/lithic/models/event_list_params.rbi +155 -25
- data/rbi/lithic/models/event_subscription.rbi +155 -25
- data/rbi/lithic/models/events/subscription_create_params.rbi +155 -25
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +55 -25
- data/rbi/lithic/models/events/subscription_update_params.rbi +155 -25
- data/rbi/lithic/models/external_bank_account_address.rbi +3 -6
- data/rbi/lithic/models/external_bank_account_create_response.rbi +31 -51
- data/rbi/lithic/models/external_bank_account_list_response.rbi +31 -51
- data/rbi/lithic/models/external_bank_account_retrieve_response.rbi +31 -51
- data/rbi/lithic/models/external_bank_account_retry_micro_deposits_response.rbi +31 -51
- data/rbi/lithic/models/external_bank_account_retry_prenote_response.rbi +31 -51
- data/rbi/lithic/models/external_bank_account_unpause_params.rbi +30 -0
- data/rbi/lithic/models/external_bank_account_unpause_response.rbi +375 -0
- data/rbi/lithic/models/external_bank_account_update_response.rbi +31 -51
- data/rbi/lithic/models/external_bank_accounts/micro_deposit_create_response.rbi +31 -51
- data/rbi/lithic/models/external_payment.rbi +5 -6
- data/rbi/lithic/models/external_payment_list_params.rbi +5 -0
- data/rbi/lithic/models/financial_account.rbi +15 -136
- data/rbi/lithic/models/financial_accounts/category_balances.rbi +42 -0
- data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +3 -136
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +47 -679
- data/rbi/lithic/models/financial_accounts/statement.rbi +118 -348
- data/rbi/lithic/models/financial_event.rbi +409 -0
- data/rbi/lithic/models/financial_transaction.rbi +3 -509
- data/rbi/lithic/models/management_operation_list_params.rbi +5 -0
- data/rbi/lithic/models/management_operation_transaction.rbi +11 -12
- data/rbi/lithic/models/merchant.rbi +89 -0
- data/rbi/lithic/models/payment.rbi +27 -21
- data/rbi/lithic/models/payment_return_params.rbi +85 -0
- data/rbi/lithic/models/payment_simulate_action_params.rbi +22 -0
- data/rbi/lithic/models/statement_totals.rbi +128 -0
- data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +12 -12
- data/rbi/lithic/models/tokenization.rbi +429 -34
- data/rbi/lithic/models/transaction.rbi +26 -336
- data/rbi/lithic/models/transactions/events/enhanced_data.rbi +77 -136
- data/rbi/lithic/models/transfer.rbi +4 -436
- data/rbi/lithic/models.rbi +19 -0
- data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +0 -3
- data/rbi/lithic/resources/auth_rules/v2.rbi +29 -72
- data/rbi/lithic/resources/disputes_v2.rbi +64 -0
- data/rbi/lithic/resources/external_bank_accounts.rbi +10 -0
- data/rbi/lithic/resources/payments.rbi +52 -0
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/models/account_activity_list_response.rbs +67 -221
- data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +67 -221
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +4 -6
- data/sig/lithic/models/account_holder_update_response.rbs +8 -12
- data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +10 -61
- data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -61
- data/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs +293 -0
- data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +112 -0
- data/sig/lithic/models/auth_rules/conditional_operation.rbs +34 -0
- data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +237 -0
- data/sig/lithic/models/auth_rules/conditional_value.rbs +15 -0
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +32 -188
- data/sig/lithic/models/auth_rules/v2_create_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +3 -159
- data/sig/lithic/models/auth_rules/v2_draft_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_list_params.rbs +9 -1
- data/sig/lithic/models/auth_rules/v2_list_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_promote_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -4
- data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_update_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -4
- data/sig/lithic/models/auth_rules/velocity_limit_period.rbs +91 -0
- data/sig/lithic/models/book_transfer_response.rbs +10 -8
- data/sig/lithic/models/category_details.rbs +26 -0
- data/sig/lithic/models/dispute_v2.rbs +438 -0
- data/sig/lithic/models/disputes_v2_list_params.rbs +77 -0
- data/sig/lithic/models/disputes_v2_retrieve_params.rbs +15 -0
- data/sig/lithic/models/event.rbs +25 -13
- data/sig/lithic/models/event_list_params.rbs +25 -13
- data/sig/lithic/models/event_subscription.rbs +25 -13
- data/sig/lithic/models/events/subscription_create_params.rbs +25 -13
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +25 -13
- data/sig/lithic/models/events/subscription_update_params.rbs +25 -13
- data/sig/lithic/models/external_bank_account_address.rbs +4 -6
- data/sig/lithic/models/external_bank_account_create_response.rbs +36 -56
- data/sig/lithic/models/external_bank_account_list_response.rbs +36 -56
- data/sig/lithic/models/external_bank_account_retrieve_response.rbs +36 -56
- data/sig/lithic/models/external_bank_account_retry_micro_deposits_response.rbs +36 -56
- data/sig/lithic/models/external_bank_account_retry_prenote_response.rbs +36 -56
- data/sig/lithic/models/external_bank_account_unpause_params.rbs +15 -0
- data/sig/lithic/models/external_bank_account_unpause_response.rbs +162 -0
- data/sig/lithic/models/external_bank_account_update_response.rbs +36 -56
- data/sig/lithic/models/external_bank_accounts/micro_deposit_create_response.rbs +36 -56
- data/sig/lithic/models/external_payment.rbs +7 -7
- data/sig/lithic/models/external_payment_list_params.rbs +3 -1
- data/sig/lithic/models/financial_account.rbs +7 -49
- data/sig/lithic/models/financial_accounts/category_balances.rbs +24 -0
- data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +3 -49
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +48 -386
- data/sig/lithic/models/financial_accounts/statement.rbs +59 -192
- data/sig/lithic/models/financial_event.rbs +216 -0
- data/sig/lithic/models/financial_transaction.rbs +4 -217
- data/sig/lithic/models/management_operation_list_params.rbs +3 -1
- data/sig/lithic/models/management_operation_transaction.rbs +11 -13
- data/sig/lithic/models/merchant.rbs +50 -0
- data/sig/lithic/models/payment.rbs +17 -15
- data/sig/lithic/models/payment_return_params.rbs +46 -0
- data/sig/lithic/models/payment_simulate_action_params.rbs +14 -0
- data/sig/lithic/models/statement_totals.rbs +76 -0
- data/sig/lithic/models/tokenization.rbs +160 -13
- data/sig/lithic/models/transaction.rbs +17 -145
- data/sig/lithic/models/transactions/events/enhanced_data.rbs +78 -124
- data/sig/lithic/models/transfer.rbs +6 -219
- data/sig/lithic/models.rbs +18 -0
- data/sig/lithic/resources/auth_rules/v2.rbs +2 -12
- data/sig/lithic/resources/disputes_v2.rbs +24 -0
- data/sig/lithic/resources/external_bank_accounts.rbs +5 -0
- data/sig/lithic/resources/payments.rbs +12 -0
- metadata +56 -11
- data/lib/lithic/models/auth_rules/v2_apply_params.rb +0 -56
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +0 -766
- data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +0 -248
- data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +0 -86
- data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +0 -1638
- data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +0 -557
- data/sig/lithic/models/auth_rules/v2_apply_params.rbs +0 -54
- data/sig/lithic/models/auth_rules/v2_apply_response.rbs +0 -509
- data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +0 -223
|
@@ -56,73 +56,30 @@ module Lithic
|
|
|
56
56
|
# data with the cardholder KYC data if it exists. Valid values are `MATCH`,
|
|
57
57
|
# `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
|
|
58
58
|
#
|
|
59
|
-
# @return [Symbol, Lithic::Models::AuthRules::ConditionalAttribute
|
|
60
|
-
|
|
59
|
+
# @return [Symbol, Lithic::Models::AuthRules::ConditionalAttribute]
|
|
60
|
+
required :attribute, enum: -> { Lithic::AuthRules::ConditionalAttribute }
|
|
61
61
|
|
|
62
62
|
# @!attribute operation
|
|
63
63
|
# The operation to apply to the attribute
|
|
64
64
|
#
|
|
65
|
-
# @return [Symbol, Lithic::Models::AuthRules::
|
|
66
|
-
|
|
65
|
+
# @return [Symbol, Lithic::Models::AuthRules::ConditionalOperation]
|
|
66
|
+
required :operation, enum: -> { Lithic::AuthRules::ConditionalOperation }
|
|
67
67
|
|
|
68
68
|
# @!attribute value
|
|
69
69
|
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
70
70
|
#
|
|
71
|
-
# @return [String, Integer, Array<String
|
|
72
|
-
|
|
71
|
+
# @return [String, Integer, Array<String>]
|
|
72
|
+
required :value, union: -> { Lithic::AuthRules::ConditionalValue }
|
|
73
73
|
|
|
74
|
-
# @!method initialize(attribute
|
|
74
|
+
# @!method initialize(attribute:, operation:, value:)
|
|
75
75
|
# Some parameter documentations has been truncated, see
|
|
76
76
|
# {Lithic::Models::AuthRules::AuthRuleCondition} for more details.
|
|
77
77
|
#
|
|
78
78
|
# @param attribute [Symbol, Lithic::Models::AuthRules::ConditionalAttribute] The attribute to target.
|
|
79
79
|
#
|
|
80
|
-
# @param operation [Symbol, Lithic::Models::AuthRules::
|
|
80
|
+
# @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
|
|
81
81
|
#
|
|
82
82
|
# @param value [String, Integer, Array<String>] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
83
|
-
|
|
84
|
-
# The operation to apply to the attribute
|
|
85
|
-
#
|
|
86
|
-
# @see Lithic::Models::AuthRules::AuthRuleCondition#operation
|
|
87
|
-
module Operation
|
|
88
|
-
extend Lithic::Internal::Type::Enum
|
|
89
|
-
|
|
90
|
-
IS_ONE_OF = :IS_ONE_OF
|
|
91
|
-
IS_NOT_ONE_OF = :IS_NOT_ONE_OF
|
|
92
|
-
MATCHES = :MATCHES
|
|
93
|
-
DOES_NOT_MATCH = :DOES_NOT_MATCH
|
|
94
|
-
IS_EQUAL_TO = :IS_EQUAL_TO
|
|
95
|
-
IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO
|
|
96
|
-
IS_GREATER_THAN = :IS_GREATER_THAN
|
|
97
|
-
IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO
|
|
98
|
-
IS_LESS_THAN = :IS_LESS_THAN
|
|
99
|
-
IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO
|
|
100
|
-
|
|
101
|
-
# @!method self.values
|
|
102
|
-
# @return [Array<Symbol>]
|
|
103
|
-
end
|
|
104
|
-
|
|
105
|
-
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
106
|
-
#
|
|
107
|
-
# @see Lithic::Models::AuthRules::AuthRuleCondition#value
|
|
108
|
-
module Value
|
|
109
|
-
extend Lithic::Internal::Type::Union
|
|
110
|
-
|
|
111
|
-
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
112
|
-
variant String
|
|
113
|
-
|
|
114
|
-
# A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO`
|
|
115
|
-
variant Integer
|
|
116
|
-
|
|
117
|
-
# An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF`
|
|
118
|
-
variant -> { Lithic::Models::AuthRules::AuthRuleCondition::Value::StringArray }
|
|
119
|
-
|
|
120
|
-
# @!method self.variants
|
|
121
|
-
# @return [Array(String, Integer, Array<String>)]
|
|
122
|
-
|
|
123
|
-
# @type [Lithic::Internal::Type::Converter]
|
|
124
|
-
StringArray = Lithic::Internal::Type::ArrayOf[String]
|
|
125
|
-
end
|
|
126
83
|
end
|
|
127
84
|
end
|
|
128
85
|
|
|
@@ -61,29 +61,29 @@ module Lithic
|
|
|
61
61
|
# data with the cardholder KYC data if it exists. Valid values are `MATCH`,
|
|
62
62
|
# `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
|
|
63
63
|
#
|
|
64
|
-
# @return [Symbol, Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::Attribute
|
|
65
|
-
|
|
64
|
+
# @return [Symbol, Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::Attribute]
|
|
65
|
+
required :attribute, enum: -> { Lithic::AuthRules::Conditional3DSActionParameters::Condition::Attribute }
|
|
66
66
|
|
|
67
67
|
# @!attribute operation
|
|
68
68
|
# The operation to apply to the attribute
|
|
69
69
|
#
|
|
70
|
-
# @return [Symbol, Lithic::Models::AuthRules::
|
|
71
|
-
|
|
70
|
+
# @return [Symbol, Lithic::Models::AuthRules::ConditionalOperation]
|
|
71
|
+
required :operation, enum: -> { Lithic::AuthRules::ConditionalOperation }
|
|
72
72
|
|
|
73
73
|
# @!attribute value
|
|
74
74
|
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
75
75
|
#
|
|
76
|
-
# @return [String, Integer, Array<String
|
|
77
|
-
|
|
76
|
+
# @return [String, Integer, Array<String>]
|
|
77
|
+
required :value, union: -> { Lithic::AuthRules::ConditionalValue }
|
|
78
78
|
|
|
79
|
-
# @!method initialize(attribute
|
|
79
|
+
# @!method initialize(attribute:, operation:, value:)
|
|
80
80
|
# Some parameter documentations has been truncated, see
|
|
81
81
|
# {Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition} for more
|
|
82
82
|
# details.
|
|
83
83
|
#
|
|
84
84
|
# @param attribute [Symbol, Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::Attribute] The attribute to target.
|
|
85
85
|
#
|
|
86
|
-
# @param operation [Symbol, Lithic::Models::AuthRules::
|
|
86
|
+
# @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
|
|
87
87
|
#
|
|
88
88
|
# @param value [String, Integer, Array<String>] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
89
89
|
|
|
@@ -129,49 +129,6 @@ module Lithic
|
|
|
129
129
|
# @!method self.values
|
|
130
130
|
# @return [Array<Symbol>]
|
|
131
131
|
end
|
|
132
|
-
|
|
133
|
-
# The operation to apply to the attribute
|
|
134
|
-
#
|
|
135
|
-
# @see Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition#operation
|
|
136
|
-
module Operation
|
|
137
|
-
extend Lithic::Internal::Type::Enum
|
|
138
|
-
|
|
139
|
-
IS_ONE_OF = :IS_ONE_OF
|
|
140
|
-
IS_NOT_ONE_OF = :IS_NOT_ONE_OF
|
|
141
|
-
MATCHES = :MATCHES
|
|
142
|
-
DOES_NOT_MATCH = :DOES_NOT_MATCH
|
|
143
|
-
IS_EQUAL_TO = :IS_EQUAL_TO
|
|
144
|
-
IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO
|
|
145
|
-
IS_GREATER_THAN = :IS_GREATER_THAN
|
|
146
|
-
IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO
|
|
147
|
-
IS_LESS_THAN = :IS_LESS_THAN
|
|
148
|
-
IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO
|
|
149
|
-
|
|
150
|
-
# @!method self.values
|
|
151
|
-
# @return [Array<Symbol>]
|
|
152
|
-
end
|
|
153
|
-
|
|
154
|
-
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
155
|
-
#
|
|
156
|
-
# @see Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition#value
|
|
157
|
-
module Value
|
|
158
|
-
extend Lithic::Internal::Type::Union
|
|
159
|
-
|
|
160
|
-
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
161
|
-
variant String
|
|
162
|
-
|
|
163
|
-
# A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO`
|
|
164
|
-
variant Integer
|
|
165
|
-
|
|
166
|
-
# An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF`
|
|
167
|
-
variant -> { Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::Value::StringArray }
|
|
168
|
-
|
|
169
|
-
# @!method self.variants
|
|
170
|
-
# @return [Array(String, Integer, Array<String>)]
|
|
171
|
-
|
|
172
|
-
# @type [Lithic::Internal::Type::Converter]
|
|
173
|
-
StringArray = Lithic::Internal::Type::ArrayOf[String]
|
|
174
|
-
end
|
|
175
132
|
end
|
|
176
133
|
end
|
|
177
134
|
end
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module AuthRules
|
|
6
|
+
class ConditionalACHActionParameters < Lithic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute action
|
|
8
|
+
# The action to take if the conditions are met
|
|
9
|
+
#
|
|
10
|
+
# @return [Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction]
|
|
11
|
+
required :action, union: -> { Lithic::AuthRules::ConditionalACHActionParameters::Action }
|
|
12
|
+
|
|
13
|
+
# @!attribute conditions
|
|
14
|
+
#
|
|
15
|
+
# @return [Array<Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition>]
|
|
16
|
+
required :conditions,
|
|
17
|
+
-> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::ConditionalACHActionParameters::Condition] }
|
|
18
|
+
|
|
19
|
+
# @!method initialize(action:, conditions:)
|
|
20
|
+
# @param action [Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction] The action to take if the conditions are met
|
|
21
|
+
#
|
|
22
|
+
# @param conditions [Array<Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition>]
|
|
23
|
+
|
|
24
|
+
# The action to take if the conditions are met
|
|
25
|
+
#
|
|
26
|
+
# @see Lithic::Models::AuthRules::ConditionalACHActionParameters#action
|
|
27
|
+
module Action
|
|
28
|
+
extend Lithic::Internal::Type::Union
|
|
29
|
+
|
|
30
|
+
variant -> { Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction }
|
|
31
|
+
|
|
32
|
+
variant -> { Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction }
|
|
33
|
+
|
|
34
|
+
class ApproveAction < Lithic::Internal::Type::BaseModel
|
|
35
|
+
# @!attribute type
|
|
36
|
+
# Approve the ACH transaction
|
|
37
|
+
#
|
|
38
|
+
# @return [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::Type]
|
|
39
|
+
required :type,
|
|
40
|
+
enum: -> { Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::Type }
|
|
41
|
+
|
|
42
|
+
# @!method initialize(type:)
|
|
43
|
+
# @param type [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::Type] Approve the ACH transaction
|
|
44
|
+
|
|
45
|
+
# Approve the ACH transaction
|
|
46
|
+
#
|
|
47
|
+
# @see Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction#type
|
|
48
|
+
module Type
|
|
49
|
+
extend Lithic::Internal::Type::Enum
|
|
50
|
+
|
|
51
|
+
APPROVE = :APPROVE
|
|
52
|
+
|
|
53
|
+
# @!method self.values
|
|
54
|
+
# @return [Array<Symbol>]
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
class ReturnAction < Lithic::Internal::Type::BaseModel
|
|
59
|
+
# @!attribute code
|
|
60
|
+
# NACHA return code to use when returning the transaction. Note that the list of
|
|
61
|
+
# available return codes is subject to an allowlist configured at the program
|
|
62
|
+
# level
|
|
63
|
+
#
|
|
64
|
+
# @return [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code]
|
|
65
|
+
required :code, enum: -> { Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code }
|
|
66
|
+
|
|
67
|
+
# @!attribute type
|
|
68
|
+
# Return the ACH transaction
|
|
69
|
+
#
|
|
70
|
+
# @return [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Type]
|
|
71
|
+
required :type, enum: -> { Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Type }
|
|
72
|
+
|
|
73
|
+
# @!method initialize(code:, type:)
|
|
74
|
+
# Some parameter documentations has been truncated, see
|
|
75
|
+
# {Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction}
|
|
76
|
+
# for more details.
|
|
77
|
+
#
|
|
78
|
+
# @param code [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code] NACHA return code to use when returning the transaction. Note that the list of a
|
|
79
|
+
#
|
|
80
|
+
# @param type [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Type] Return the ACH transaction
|
|
81
|
+
|
|
82
|
+
# NACHA return code to use when returning the transaction. Note that the list of
|
|
83
|
+
# available return codes is subject to an allowlist configured at the program
|
|
84
|
+
# level
|
|
85
|
+
#
|
|
86
|
+
# @see Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction#code
|
|
87
|
+
module Code
|
|
88
|
+
extend Lithic::Internal::Type::Enum
|
|
89
|
+
|
|
90
|
+
R01 = :R01
|
|
91
|
+
R02 = :R02
|
|
92
|
+
R03 = :R03
|
|
93
|
+
R04 = :R04
|
|
94
|
+
R05 = :R05
|
|
95
|
+
R06 = :R06
|
|
96
|
+
R07 = :R07
|
|
97
|
+
R08 = :R08
|
|
98
|
+
R09 = :R09
|
|
99
|
+
R10 = :R10
|
|
100
|
+
R11 = :R11
|
|
101
|
+
R12 = :R12
|
|
102
|
+
R13 = :R13
|
|
103
|
+
R14 = :R14
|
|
104
|
+
R15 = :R15
|
|
105
|
+
R16 = :R16
|
|
106
|
+
R17 = :R17
|
|
107
|
+
R18 = :R18
|
|
108
|
+
R19 = :R19
|
|
109
|
+
R20 = :R20
|
|
110
|
+
R21 = :R21
|
|
111
|
+
R22 = :R22
|
|
112
|
+
R23 = :R23
|
|
113
|
+
R24 = :R24
|
|
114
|
+
R25 = :R25
|
|
115
|
+
R26 = :R26
|
|
116
|
+
R27 = :R27
|
|
117
|
+
R28 = :R28
|
|
118
|
+
R29 = :R29
|
|
119
|
+
R30 = :R30
|
|
120
|
+
R31 = :R31
|
|
121
|
+
R32 = :R32
|
|
122
|
+
R33 = :R33
|
|
123
|
+
R34 = :R34
|
|
124
|
+
R35 = :R35
|
|
125
|
+
R36 = :R36
|
|
126
|
+
R37 = :R37
|
|
127
|
+
R38 = :R38
|
|
128
|
+
R39 = :R39
|
|
129
|
+
R40 = :R40
|
|
130
|
+
R41 = :R41
|
|
131
|
+
R42 = :R42
|
|
132
|
+
R43 = :R43
|
|
133
|
+
R44 = :R44
|
|
134
|
+
R45 = :R45
|
|
135
|
+
R46 = :R46
|
|
136
|
+
R47 = :R47
|
|
137
|
+
R50 = :R50
|
|
138
|
+
R51 = :R51
|
|
139
|
+
R52 = :R52
|
|
140
|
+
R53 = :R53
|
|
141
|
+
R61 = :R61
|
|
142
|
+
R62 = :R62
|
|
143
|
+
R67 = :R67
|
|
144
|
+
R68 = :R68
|
|
145
|
+
R69 = :R69
|
|
146
|
+
R70 = :R70
|
|
147
|
+
R71 = :R71
|
|
148
|
+
R72 = :R72
|
|
149
|
+
R73 = :R73
|
|
150
|
+
R74 = :R74
|
|
151
|
+
R75 = :R75
|
|
152
|
+
R76 = :R76
|
|
153
|
+
R77 = :R77
|
|
154
|
+
R80 = :R80
|
|
155
|
+
R81 = :R81
|
|
156
|
+
R82 = :R82
|
|
157
|
+
R83 = :R83
|
|
158
|
+
R84 = :R84
|
|
159
|
+
R85 = :R85
|
|
160
|
+
|
|
161
|
+
# @!method self.values
|
|
162
|
+
# @return [Array<Symbol>]
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Return the ACH transaction
|
|
166
|
+
#
|
|
167
|
+
# @see Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction#type
|
|
168
|
+
module Type
|
|
169
|
+
extend Lithic::Internal::Type::Enum
|
|
170
|
+
|
|
171
|
+
RETURN = :RETURN
|
|
172
|
+
|
|
173
|
+
# @!method self.values
|
|
174
|
+
# @return [Array<Symbol>]
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# @!method self.variants
|
|
179
|
+
# @return [Array(Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction)]
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
class Condition < Lithic::Internal::Type::BaseModel
|
|
183
|
+
# @!attribute attribute
|
|
184
|
+
# The attribute to target.
|
|
185
|
+
#
|
|
186
|
+
# The following attributes may be targeted:
|
|
187
|
+
#
|
|
188
|
+
# - `COMPANY_NAME`: The name of the company initiating the ACH transaction.
|
|
189
|
+
# - `COMPANY_ID`: The company ID (also known as Standard Entry Class (SEC) Company
|
|
190
|
+
# ID) of the entity initiating the ACH transaction.
|
|
191
|
+
# - `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
|
|
192
|
+
# - `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units
|
|
193
|
+
# (cents).
|
|
194
|
+
# - `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
|
|
195
|
+
# Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
|
|
196
|
+
# (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
|
|
197
|
+
# (Telephone-Initiated Entry), and others.
|
|
198
|
+
# - `MEMO`: Optional memo or description field included with the ACH transaction.
|
|
199
|
+
#
|
|
200
|
+
# @return [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition::Attribute]
|
|
201
|
+
required :attribute, enum: -> { Lithic::AuthRules::ConditionalACHActionParameters::Condition::Attribute }
|
|
202
|
+
|
|
203
|
+
# @!attribute operation
|
|
204
|
+
# The operation to apply to the attribute
|
|
205
|
+
#
|
|
206
|
+
# @return [Symbol, Lithic::Models::AuthRules::ConditionalOperation]
|
|
207
|
+
required :operation, enum: -> { Lithic::AuthRules::ConditionalOperation }
|
|
208
|
+
|
|
209
|
+
# @!attribute value
|
|
210
|
+
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
211
|
+
#
|
|
212
|
+
# @return [String, Integer, Array<String>]
|
|
213
|
+
required :value, union: -> { Lithic::AuthRules::ConditionalValue }
|
|
214
|
+
|
|
215
|
+
# @!method initialize(attribute:, operation:, value:)
|
|
216
|
+
# Some parameter documentations has been truncated, see
|
|
217
|
+
# {Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition} for more
|
|
218
|
+
# details.
|
|
219
|
+
#
|
|
220
|
+
# @param attribute [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition::Attribute] The attribute to target.
|
|
221
|
+
#
|
|
222
|
+
# @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
|
|
223
|
+
#
|
|
224
|
+
# @param value [String, Integer, Array<String>] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
225
|
+
|
|
226
|
+
# The attribute to target.
|
|
227
|
+
#
|
|
228
|
+
# The following attributes may be targeted:
|
|
229
|
+
#
|
|
230
|
+
# - `COMPANY_NAME`: The name of the company initiating the ACH transaction.
|
|
231
|
+
# - `COMPANY_ID`: The company ID (also known as Standard Entry Class (SEC) Company
|
|
232
|
+
# ID) of the entity initiating the ACH transaction.
|
|
233
|
+
# - `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
|
|
234
|
+
# - `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units
|
|
235
|
+
# (cents).
|
|
236
|
+
# - `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
|
|
237
|
+
# Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
|
|
238
|
+
# (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
|
|
239
|
+
# (Telephone-Initiated Entry), and others.
|
|
240
|
+
# - `MEMO`: Optional memo or description field included with the ACH transaction.
|
|
241
|
+
#
|
|
242
|
+
# @see Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition#attribute
|
|
243
|
+
module Attribute
|
|
244
|
+
extend Lithic::Internal::Type::Enum
|
|
245
|
+
|
|
246
|
+
COMPANY_NAME = :COMPANY_NAME
|
|
247
|
+
COMPANY_ID = :COMPANY_ID
|
|
248
|
+
TIMESTAMP = :TIMESTAMP
|
|
249
|
+
TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
|
|
250
|
+
SEC_CODE = :SEC_CODE
|
|
251
|
+
MEMO = :MEMO
|
|
252
|
+
|
|
253
|
+
# @!method self.values
|
|
254
|
+
# @return [Array<Symbol>]
|
|
255
|
+
end
|
|
256
|
+
end
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
end
|
|
260
|
+
end
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module AuthRules
|
|
6
|
+
class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute action
|
|
8
|
+
# The action to take if the conditions are met.
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Action]
|
|
11
|
+
required :action, enum: -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action }
|
|
12
|
+
|
|
13
|
+
# @!attribute conditions
|
|
14
|
+
#
|
|
15
|
+
# @return [Array<Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition>]
|
|
16
|
+
required :conditions,
|
|
17
|
+
-> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition] }
|
|
18
|
+
|
|
19
|
+
# @!method initialize(action:, conditions:)
|
|
20
|
+
# @param action [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Action] The action to take if the conditions are met.
|
|
21
|
+
#
|
|
22
|
+
# @param conditions [Array<Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition>]
|
|
23
|
+
|
|
24
|
+
# The action to take if the conditions are met.
|
|
25
|
+
#
|
|
26
|
+
# @see Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters#action
|
|
27
|
+
module Action
|
|
28
|
+
extend Lithic::Internal::Type::Enum
|
|
29
|
+
|
|
30
|
+
DECLINE = :DECLINE
|
|
31
|
+
CHALLENGE = :CHALLENGE
|
|
32
|
+
|
|
33
|
+
# @!method self.values
|
|
34
|
+
# @return [Array<Symbol>]
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
class Condition < Lithic::Internal::Type::BaseModel
|
|
38
|
+
# @!attribute attribute
|
|
39
|
+
# The attribute to target.
|
|
40
|
+
#
|
|
41
|
+
# The following attributes may be targeted:
|
|
42
|
+
#
|
|
43
|
+
# - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
|
|
44
|
+
# business by the types of goods or services it provides.
|
|
45
|
+
# - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
|
|
46
|
+
# ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
|
|
47
|
+
# Netherlands Antilles.
|
|
48
|
+
# - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
|
|
49
|
+
# the transaction.
|
|
50
|
+
# - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
|
|
51
|
+
# (merchant).
|
|
52
|
+
# - `DESCRIPTOR`: Short description of card acceptor.
|
|
53
|
+
# - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
|
|
54
|
+
# applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
|
|
55
|
+
# `TOKEN_AUTHENTICATED`.
|
|
56
|
+
# - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
|
|
57
|
+
# (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
|
|
58
|
+
# `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
|
|
59
|
+
# `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
|
|
60
|
+
# `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
|
|
61
|
+
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
|
62
|
+
# fee field in the settlement/cardholder billing currency. This is the amount
|
|
63
|
+
# the issuer should authorize against unless the issuer is paying the acquirer
|
|
64
|
+
# fee on behalf of the cardholder.
|
|
65
|
+
# - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
|
|
66
|
+
# represents the amount of cash being withdrawn or advanced.
|
|
67
|
+
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
|
68
|
+
# given authorization. Scores are on a range of 0-999, with 0 representing the
|
|
69
|
+
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
|
70
|
+
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
|
71
|
+
# multiplying the raw score by 10x.
|
|
72
|
+
# - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
|
|
73
|
+
# trailing 15 minutes before the authorization.
|
|
74
|
+
# - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
|
|
75
|
+
# trailing hour up and until the authorization.
|
|
76
|
+
# - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
|
|
77
|
+
# trailing 24 hours up and until the authorization.
|
|
78
|
+
# - `CARD_STATE`: The current state of the card associated with the transaction.
|
|
79
|
+
# Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
|
|
80
|
+
# `PENDING_FULFILLMENT`.
|
|
81
|
+
# - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
|
|
82
|
+
# Valid values are `TRUE`, `FALSE`.
|
|
83
|
+
# - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
|
|
84
|
+
# `OK`, `BLOCKED`.
|
|
85
|
+
# - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
|
|
86
|
+
# source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
|
|
87
|
+
# `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
|
|
88
|
+
# - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
|
|
89
|
+
# the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
|
|
90
|
+
# - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
|
|
91
|
+
# data with the cardholder KYC data if it exists. Valid values are `MATCH`,
|
|
92
|
+
# `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
|
|
93
|
+
#
|
|
94
|
+
# @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute]
|
|
95
|
+
required :attribute,
|
|
96
|
+
enum: -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute }
|
|
97
|
+
|
|
98
|
+
# @!attribute operation
|
|
99
|
+
# The operation to apply to the attribute
|
|
100
|
+
#
|
|
101
|
+
# @return [Symbol, Lithic::Models::AuthRules::ConditionalOperation]
|
|
102
|
+
required :operation, enum: -> { Lithic::AuthRules::ConditionalOperation }
|
|
103
|
+
|
|
104
|
+
# @!attribute value
|
|
105
|
+
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
106
|
+
#
|
|
107
|
+
# @return [String, Integer, Array<String>]
|
|
108
|
+
required :value, union: -> { Lithic::AuthRules::ConditionalValue }
|
|
109
|
+
|
|
110
|
+
# @!method initialize(attribute:, operation:, value:)
|
|
111
|
+
# Some parameter documentations has been truncated, see
|
|
112
|
+
# {Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition}
|
|
113
|
+
# for more details.
|
|
114
|
+
#
|
|
115
|
+
# @param attribute [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target.
|
|
116
|
+
#
|
|
117
|
+
# @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
|
|
118
|
+
#
|
|
119
|
+
# @param value [String, Integer, Array<String>] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
120
|
+
|
|
121
|
+
# The attribute to target.
|
|
122
|
+
#
|
|
123
|
+
# The following attributes may be targeted:
|
|
124
|
+
#
|
|
125
|
+
# - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
|
|
126
|
+
# business by the types of goods or services it provides.
|
|
127
|
+
# - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
|
|
128
|
+
# ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
|
|
129
|
+
# Netherlands Antilles.
|
|
130
|
+
# - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
|
|
131
|
+
# the transaction.
|
|
132
|
+
# - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
|
|
133
|
+
# (merchant).
|
|
134
|
+
# - `DESCRIPTOR`: Short description of card acceptor.
|
|
135
|
+
# - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
|
|
136
|
+
# applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
|
|
137
|
+
# `TOKEN_AUTHENTICATED`.
|
|
138
|
+
# - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
|
|
139
|
+
# (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
|
|
140
|
+
# `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
|
|
141
|
+
# `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
|
|
142
|
+
# `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
|
|
143
|
+
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
|
144
|
+
# fee field in the settlement/cardholder billing currency. This is the amount
|
|
145
|
+
# the issuer should authorize against unless the issuer is paying the acquirer
|
|
146
|
+
# fee on behalf of the cardholder.
|
|
147
|
+
# - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
|
|
148
|
+
# represents the amount of cash being withdrawn or advanced.
|
|
149
|
+
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
|
150
|
+
# given authorization. Scores are on a range of 0-999, with 0 representing the
|
|
151
|
+
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
|
152
|
+
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
|
153
|
+
# multiplying the raw score by 10x.
|
|
154
|
+
# - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
|
|
155
|
+
# trailing 15 minutes before the authorization.
|
|
156
|
+
# - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
|
|
157
|
+
# trailing hour up and until the authorization.
|
|
158
|
+
# - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
|
|
159
|
+
# trailing 24 hours up and until the authorization.
|
|
160
|
+
# - `CARD_STATE`: The current state of the card associated with the transaction.
|
|
161
|
+
# Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
|
|
162
|
+
# `PENDING_FULFILLMENT`.
|
|
163
|
+
# - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
|
|
164
|
+
# Valid values are `TRUE`, `FALSE`.
|
|
165
|
+
# - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
|
|
166
|
+
# `OK`, `BLOCKED`.
|
|
167
|
+
# - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
|
|
168
|
+
# source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
|
|
169
|
+
# `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
|
|
170
|
+
# - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
|
|
171
|
+
# the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
|
|
172
|
+
# - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
|
|
173
|
+
# data with the cardholder KYC data if it exists. Valid values are `MATCH`,
|
|
174
|
+
# `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
|
|
175
|
+
#
|
|
176
|
+
# @see Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition#attribute
|
|
177
|
+
module Attribute
|
|
178
|
+
extend Lithic::Internal::Type::Enum
|
|
179
|
+
|
|
180
|
+
MCC = :MCC
|
|
181
|
+
COUNTRY = :COUNTRY
|
|
182
|
+
CURRENCY = :CURRENCY
|
|
183
|
+
MERCHANT_ID = :MERCHANT_ID
|
|
184
|
+
DESCRIPTOR = :DESCRIPTOR
|
|
185
|
+
LIABILITY_SHIFT = :LIABILITY_SHIFT
|
|
186
|
+
PAN_ENTRY_MODE = :PAN_ENTRY_MODE
|
|
187
|
+
TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
|
|
188
|
+
CASH_AMOUNT = :CASH_AMOUNT
|
|
189
|
+
RISK_SCORE = :RISK_SCORE
|
|
190
|
+
CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
|
|
191
|
+
CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
|
|
192
|
+
CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H
|
|
193
|
+
CARD_STATE = :CARD_STATE
|
|
194
|
+
PIN_ENTERED = :PIN_ENTERED
|
|
195
|
+
PIN_STATUS = :PIN_STATUS
|
|
196
|
+
WALLET_TYPE = :WALLET_TYPE
|
|
197
|
+
TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR
|
|
198
|
+
ADDRESS_MATCH = :ADDRESS_MATCH
|
|
199
|
+
|
|
200
|
+
# @!method self.values
|
|
201
|
+
# @return [Array<Symbol>]
|
|
202
|
+
end
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
end
|
|
206
|
+
end
|
|
207
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module AuthRules
|
|
6
|
+
# The operation to apply to the attribute
|
|
7
|
+
module ConditionalOperation
|
|
8
|
+
extend Lithic::Internal::Type::Enum
|
|
9
|
+
|
|
10
|
+
IS_ONE_OF = :IS_ONE_OF
|
|
11
|
+
IS_NOT_ONE_OF = :IS_NOT_ONE_OF
|
|
12
|
+
MATCHES = :MATCHES
|
|
13
|
+
DOES_NOT_MATCH = :DOES_NOT_MATCH
|
|
14
|
+
IS_EQUAL_TO = :IS_EQUAL_TO
|
|
15
|
+
IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO
|
|
16
|
+
IS_GREATER_THAN = :IS_GREATER_THAN
|
|
17
|
+
IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO
|
|
18
|
+
IS_LESS_THAN = :IS_LESS_THAN
|
|
19
|
+
IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO
|
|
20
|
+
|
|
21
|
+
# @!method self.values
|
|
22
|
+
# @return [Array<Symbol>]
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|