lithic 0.14.0 → 0.15.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 +26 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/internal/transport/base_client.rb +2 -0
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +4 -4
- data/lib/lithic/models/auth_rules/auth_rule.rb +10 -6
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +2 -2
- data/lib/lithic/models/auth_rules/auth_rule_version.rb +5 -3
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -6
- data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +4 -4
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +52 -34
- data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +533 -0
- data/lib/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rb +18 -14
- data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +6 -6
- data/lib/lithic/models/auth_rules/conditional_value.rb +3 -2
- data/lib/lithic/models/auth_rules/v2_create_params.rb +15 -9
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -3
- data/lib/lithic/models/balance.rb +8 -6
- data/lib/lithic/models/card_authorization.rb +1266 -0
- data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +3 -1253
- data/lib/lithic/models/card_authorization_challenge_response_params.rb +40 -0
- data/lib/lithic/models/card_authorization_challenge_response_webhook_event.rb +1 -0
- data/lib/lithic/models/card_authorization_challenge_webhook_event.rb +67 -0
- data/lib/lithic/models/card_program.rb +2 -2
- data/lib/lithic/models/event.rb +13 -4
- data/lib/lithic/models/event_list_params.rb +7 -2
- data/lib/lithic/models/event_subscription.rb +7 -2
- data/lib/lithic/models/events/subscription_create_params.rb +7 -2
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
- data/lib/lithic/models/events/subscription_update_params.rb +7 -2
- data/lib/lithic/models/external_bank_account.rb +1 -1
- data/lib/lithic/models/external_bank_account_pause_params.rb +20 -0
- data/lib/lithic/models/financial_accounts/statement.rb +4 -4
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +3 -2
- data/lib/lithic/models/financial_event.rb +1 -0
- data/lib/lithic/models/kyb_business_entity.rb +2 -2
- data/lib/lithic/models/parsed_webhook_event.rb +4 -1
- data/lib/lithic/models/settlement_detail.rb +14 -14
- data/lib/lithic/models/statement_totals.rb +6 -6
- data/lib/lithic/models/tokenization_decline_reason.rb +1 -0
- data/lib/lithic/models/transaction.rb +2 -2
- data/lib/lithic/models/transfer_limits_response.rb +12 -12
- data/lib/lithic/models.rb +8 -0
- data/lib/lithic/resources/auth_rules/v2.rb +1 -1
- data/lib/lithic/resources/card_authorizations.rb +45 -0
- data/lib/lithic/resources/external_bank_accounts.rb +19 -0
- data/lib/lithic/resources/webhooks.rb +1 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +6 -0
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +6 -12
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +8 -4
- data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +4 -2
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +9 -6
- data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +3 -3
- data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +75 -48
- data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +1147 -0
- data/rbi/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbi +24 -18
- data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +6 -6
- data/rbi/lithic/models/auth_rules/conditional_value.rbi +1 -1
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +24 -12
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +8 -4
- data/rbi/lithic/models/balance.rbi +12 -6
- data/rbi/lithic/models/card_authorization.rbi +2540 -0
- data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +5 -2758
- data/rbi/lithic/models/card_authorization_challenge_response_params.rbi +93 -0
- data/rbi/lithic/models/card_authorization_challenge_response_webhook_event.rbi +5 -0
- data/rbi/lithic/models/card_authorization_challenge_webhook_event.rbi +119 -0
- data/rbi/lithic/models/card_program.rbi +3 -6
- data/rbi/lithic/models/event.rbi +23 -6
- data/rbi/lithic/models/event_list_params.rbi +11 -2
- data/rbi/lithic/models/event_subscription.rbi +11 -2
- data/rbi/lithic/models/events/subscription_create_params.rbi +11 -2
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
- data/rbi/lithic/models/events/subscription_update_params.rbi +11 -2
- data/rbi/lithic/models/external_bank_account_pause_params.rbi +41 -0
- data/rbi/lithic/models/financial_accounts/statement.rbi +6 -12
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +8 -6
- data/rbi/lithic/models/financial_event.rbi +2 -0
- data/rbi/lithic/models/kyb_business_entity.rbi +3 -6
- data/rbi/lithic/models/parsed_webhook_event.rbi +1 -0
- data/rbi/lithic/models/settlement_detail.rbi +15 -15
- data/rbi/lithic/models/statement_totals.rbi +9 -18
- data/rbi/lithic/models/tokenization_decline_reason.rbi +2 -0
- data/rbi/lithic/models/transaction.rbi +3 -3
- data/rbi/lithic/models/transfer_limits_response.rbi +48 -48
- data/rbi/lithic/models.rbi +11 -0
- data/rbi/lithic/resources/auth_rules/v2.rbi +2 -1
- data/rbi/lithic/resources/card_authorizations.rbi +35 -0
- data/rbi/lithic/resources/external_bank_accounts.rbi +10 -0
- data/rbi/lithic/resources/webhooks.rbi +4 -1
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +8 -12
- data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
- data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -0
- data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +276 -0
- data/sig/lithic/models/auth_rules/conditional_value.rbs +1 -1
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +3 -0
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
- data/sig/lithic/models/balance.rbs +17 -9
- data/sig/lithic/models/card_authorization.rbs +1038 -0
- data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +7 -1013
- data/sig/lithic/models/card_authorization_challenge_response_params.rbs +42 -0
- data/sig/lithic/models/card_authorization_challenge_response_webhook_event.rbs +2 -1
- data/sig/lithic/models/card_authorization_challenge_webhook_event.rbs +53 -0
- data/sig/lithic/models/card_program.rbs +4 -6
- 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_bank_account_pause_params.rbs +24 -0
- data/sig/lithic/models/financial_accounts/statement.rbs +8 -12
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +6 -6
- data/sig/lithic/models/financial_event.rbs +2 -0
- data/sig/lithic/models/kyb_business_entity.rbs +4 -6
- data/sig/lithic/models/parsed_webhook_event.rbs +1 -0
- data/sig/lithic/models/settlement_detail.rbs +18 -18
- data/sig/lithic/models/statement_totals.rbs +12 -18
- data/sig/lithic/models/tokenization_decline_reason.rbs +2 -0
- data/sig/lithic/models/transaction.rbs +4 -8
- data/sig/lithic/models/transfer_limits_response.rbs +24 -36
- data/sig/lithic/models.rbs +8 -0
- data/sig/lithic/resources/card_authorizations.rbs +13 -0
- data/sig/lithic/resources/external_bank_accounts.rbs +5 -0
- data/sig/lithic/resources/webhooks.rbs +1 -0
- metadata +20 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4e10259688d627bb93eef2d363059f0e306c888a9a3220dd82efee18e717f1ba
|
|
4
|
+
data.tar.gz: ba6a76715e31f336634d5fad97de74ff5f272aa196ec23912e0096ff742ffac6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a46972e61a38e973879e34b963d742fe12faa0394569ab7ba090dc9702962e19525c71cf54d8958fe44b3f68608777ffc0a6a83b4fb3f1a743367921abc01fde
|
|
7
|
+
data.tar.gz: db062730b149f7841c0c8f7463a00219b4b15ad825f264f793ffb666f2b0bf0fea41b5ef94698fa4afd62f4f094aeac39ef65c989a817b60d64f8c72ae373014
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.15.0 (2026-05-27)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.14.0...v0.15.0](https://github.com/lithic-com/lithic-ruby/compare/v0.14.0...v0.15.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** Add authorization challenge response endpoint and webhook ([a270862](https://github.com/lithic-com/lithic-ruby/commit/a270862d8522a456f88111f92d91d7adfe285b96))
|
|
10
|
+
* **api:** add INVALID_PAN value to TokenizationDeclineReason enum ([751f176](https://github.com/lithic-com/lithic-ruby/commit/751f176d6bd4a895c00edce99cb22055001c5597))
|
|
11
|
+
* **api:** Add OUT_OF_BAND challenge method and DECLINED status to Authorization ([886bb10](https://github.com/lithic-com/lithic-ruby/commit/886bb1020fcc81e4862cbceee98fcb8eb7ac9b35))
|
|
12
|
+
* **api:** Add pause external bank account endpoint ([1f9fdd2](https://github.com/lithic-com/lithic-ruby/commit/1f9fdd2ba99353edb1560877ca098664e4fbb1a9))
|
|
13
|
+
* **api:** Add schemas for authorization adjustment rules ([61998a2](https://github.com/lithic-com/lithic-ruby/commit/61998a2d54a2eb05f1fe517e34bfbedbe1dbd02c))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **client:** elide content type header on requests without body ([d3a58d5](https://github.com/lithic-com/lithic-ruby/commit/d3a58d57130f65c30e56d39ba380cf8fe04e49da))
|
|
19
|
+
* **types:** correct value type from Integer to Float in auth rules ([c8a51d0](https://github.com/lithic-com/lithic-ruby/commit/c8a51d0231516251e038f074e3fc364222570f57))
|
|
20
|
+
* **types:** make cardholder_currency nullable in CardProgram ([89ded5f](https://github.com/lithic-com/lithic-ruby/commit/89ded5fe6729b1e0db8cb280e1da402b9a1a01b8))
|
|
21
|
+
* **types:** make external_id, naics_code nullable in enrollment, parent_company in kyb ([1128d8d](https://github.com/lithic-com/lithic-ruby/commit/1128d8df654667a9a2db5ec75e5a5eb9755c75e2))
|
|
22
|
+
* **types:** make fields nullable across balance/statement/settlement/etc, add enum values ([6259d4f](https://github.com/lithic-com/lithic-ruby/commit/6259d4fa0c42b77ce2f7abe4962c64ca9eb53117))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Documentation
|
|
26
|
+
|
|
27
|
+
* **api:** clarify ACCOUNT_AGE behavior in auth_rules conditional parameters ([8b7bfc8](https://github.com/lithic-com/lithic-ruby/commit/8b7bfc850151d17038fb50aecc6509aa81196e77))
|
|
28
|
+
|
|
3
29
|
## 0.14.0 (2026-05-08)
|
|
4
30
|
|
|
5
31
|
Full Changelog: [v0.13.0...v0.14.0](https://github.com/lithic-com/lithic-ruby/compare/v0.13.0...v0.14.0)
|
data/README.md
CHANGED
data/lib/lithic/client.rb
CHANGED
|
@@ -47,6 +47,9 @@ module Lithic
|
|
|
47
47
|
# @return [Lithic::Resources::Cards]
|
|
48
48
|
attr_reader :cards
|
|
49
49
|
|
|
50
|
+
# @return [Lithic::Resources::CardAuthorizations]
|
|
51
|
+
attr_reader :card_authorizations
|
|
52
|
+
|
|
50
53
|
# @return [Lithic::Resources::CardBulkOrders]
|
|
51
54
|
attr_reader :card_bulk_orders
|
|
52
55
|
|
|
@@ -222,6 +225,7 @@ module Lithic
|
|
|
222
225
|
@tokenization_decisioning = Lithic::Resources::TokenizationDecisioning.new(client: self)
|
|
223
226
|
@tokenizations = Lithic::Resources::Tokenizations.new(client: self)
|
|
224
227
|
@cards = Lithic::Resources::Cards.new(client: self)
|
|
228
|
+
@card_authorizations = Lithic::Resources::CardAuthorizations.new(client: self)
|
|
225
229
|
@card_bulk_orders = Lithic::Resources::CardBulkOrders.new(client: self)
|
|
226
230
|
@balances = Lithic::Resources::Balances.new(client: self)
|
|
227
231
|
@disputes = Lithic::Resources::Disputes.new(client: self)
|
|
@@ -306,6 +306,8 @@ module Lithic
|
|
|
306
306
|
Lithic::Internal::Util.deep_merge(*[req[:body], opts[:extra_body]].compact)
|
|
307
307
|
end
|
|
308
308
|
|
|
309
|
+
headers.delete("content-type") if body.nil?
|
|
310
|
+
|
|
309
311
|
url = Lithic::Internal::Util.join_parsed_uri(
|
|
310
312
|
@base_url_components,
|
|
311
313
|
{**req, path: path, query: query}
|
|
@@ -88,7 +88,7 @@ module Lithic
|
|
|
88
88
|
# the Lithic ecosystem.
|
|
89
89
|
#
|
|
90
90
|
# @return [String, nil]
|
|
91
|
-
optional :external_id, String
|
|
91
|
+
optional :external_id, String, nil?: true
|
|
92
92
|
|
|
93
93
|
# @!attribute individual
|
|
94
94
|
# Only present when user_type == "INDIVIDUAL". Information about the individual
|
|
@@ -102,7 +102,7 @@ module Lithic
|
|
|
102
102
|
# Classification System (NAICS) code for the business.
|
|
103
103
|
#
|
|
104
104
|
# @return [String, nil]
|
|
105
|
-
optional :naics_code, String
|
|
105
|
+
optional :naics_code, String, nil?: true
|
|
106
106
|
|
|
107
107
|
# @!attribute nature_of_business
|
|
108
108
|
# Only present when user_type == "BUSINESS". User-submitted description of the
|
|
@@ -191,11 +191,11 @@ module Lithic
|
|
|
191
191
|
#
|
|
192
192
|
# @param exemption_type [Symbol, Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ExemptionType, nil] The type of KYC exemption for a KYC-Exempt Account Holder. `null` if the account
|
|
193
193
|
#
|
|
194
|
-
# @param external_id [String] Customer-provided token that indicates a relationship with an object outside of
|
|
194
|
+
# @param external_id [String, nil] Customer-provided token that indicates a relationship with an object outside of
|
|
195
195
|
#
|
|
196
196
|
# @param individual [Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual] Only present when user_type == "INDIVIDUAL". Information about the individual fo
|
|
197
197
|
#
|
|
198
|
-
# @param naics_code [String] Only present when user_type == "BUSINESS". 6-digit North American Industry Class
|
|
198
|
+
# @param naics_code [String, nil] Only present when user_type == "BUSINESS". 6-digit North American Industry Class
|
|
199
199
|
#
|
|
200
200
|
# @param nature_of_business [String] Only present when user_type == "BUSINESS". User-submitted description of the bus
|
|
201
201
|
#
|
|
@@ -146,7 +146,7 @@ module Lithic
|
|
|
146
146
|
# @!attribute parameters
|
|
147
147
|
# Parameters for the Auth Rule
|
|
148
148
|
#
|
|
149
|
-
# @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters]
|
|
149
|
+
# @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters]
|
|
150
150
|
required :parameters, union: -> { Lithic::AuthRules::AuthRule::CurrentVersion::Parameters }
|
|
151
151
|
|
|
152
152
|
response_only do
|
|
@@ -162,7 +162,7 @@ module Lithic
|
|
|
162
162
|
# Some parameter documentations has been truncated, see
|
|
163
163
|
# {Lithic::Models::AuthRules::AuthRule::CurrentVersion} for more details.
|
|
164
164
|
#
|
|
165
|
-
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters] Parameters for the Auth Rule
|
|
165
|
+
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters] Parameters for the Auth Rule
|
|
166
166
|
#
|
|
167
167
|
# @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan
|
|
168
168
|
|
|
@@ -192,8 +192,10 @@ module Lithic
|
|
|
192
192
|
# Parameters for defining a TypeScript code rule
|
|
193
193
|
variant -> { Lithic::AuthRules::TypescriptCodeParameters }
|
|
194
194
|
|
|
195
|
+
variant -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters }
|
|
196
|
+
|
|
195
197
|
# @!method self.variants
|
|
196
|
-
# @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters)]
|
|
198
|
+
# @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters)]
|
|
197
199
|
end
|
|
198
200
|
end
|
|
199
201
|
|
|
@@ -209,7 +211,7 @@ module Lithic
|
|
|
209
211
|
# @!attribute parameters
|
|
210
212
|
# Parameters for the Auth Rule
|
|
211
213
|
#
|
|
212
|
-
# @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters]
|
|
214
|
+
# @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters]
|
|
213
215
|
required :parameters, union: -> { Lithic::AuthRules::AuthRule::DraftVersion::Parameters }
|
|
214
216
|
|
|
215
217
|
# @!attribute state
|
|
@@ -242,7 +244,7 @@ module Lithic
|
|
|
242
244
|
#
|
|
243
245
|
# @param error [String, nil] An error message if the draft version failed compilation. Populated when `state`
|
|
244
246
|
#
|
|
245
|
-
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters] Parameters for the Auth Rule
|
|
247
|
+
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters] Parameters for the Auth Rule
|
|
246
248
|
#
|
|
247
249
|
# @param state [Symbol, Lithic::Models::AuthRules::AuthRule::DraftVersion::State] The state of the draft version. Most rules are created synchronously and the sta
|
|
248
250
|
#
|
|
@@ -274,8 +276,10 @@ module Lithic
|
|
|
274
276
|
# Parameters for defining a TypeScript code rule
|
|
275
277
|
variant -> { Lithic::AuthRules::TypescriptCodeParameters }
|
|
276
278
|
|
|
279
|
+
variant -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters }
|
|
280
|
+
|
|
277
281
|
# @!method self.variants
|
|
278
|
-
# @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters)]
|
|
282
|
+
# @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters)]
|
|
279
283
|
end
|
|
280
284
|
|
|
281
285
|
# The state of the draft version. Most rules are created synchronously and the
|
|
@@ -68,7 +68,7 @@ module Lithic
|
|
|
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>, Time]
|
|
71
|
+
# @return [String, Integer, Float, Array<String>, Time]
|
|
72
72
|
required :value, union: -> { Lithic::AuthRules::ConditionalValue }
|
|
73
73
|
|
|
74
74
|
# @!method initialize(attribute:, operation:, value:)
|
|
@@ -79,7 +79,7 @@ module Lithic
|
|
|
79
79
|
#
|
|
80
80
|
# @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
|
|
81
81
|
#
|
|
82
|
-
# @param value [String, Integer, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
82
|
+
# @param value [String, Integer, Float, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
83
83
|
end
|
|
84
84
|
end
|
|
85
85
|
|
|
@@ -13,7 +13,7 @@ module Lithic
|
|
|
13
13
|
# @!attribute parameters
|
|
14
14
|
# Parameters for the Auth Rule
|
|
15
15
|
#
|
|
16
|
-
# @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters]
|
|
16
|
+
# @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters]
|
|
17
17
|
required :parameters, union: -> { Lithic::AuthRules::AuthRuleVersion::Parameters }
|
|
18
18
|
|
|
19
19
|
# @!attribute state
|
|
@@ -37,7 +37,7 @@ module Lithic
|
|
|
37
37
|
#
|
|
38
38
|
# @param created [Time] Timestamp of when this version was created.
|
|
39
39
|
#
|
|
40
|
-
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters] Parameters for the Auth Rule
|
|
40
|
+
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters] Parameters for the Auth Rule
|
|
41
41
|
#
|
|
42
42
|
# @param state [Symbol, Lithic::Models::AuthRules::AuthRuleVersion::State] The current state of this version.
|
|
43
43
|
#
|
|
@@ -69,8 +69,10 @@ module Lithic
|
|
|
69
69
|
# Parameters for defining a TypeScript code rule
|
|
70
70
|
variant -> { Lithic::AuthRules::TypescriptCodeParameters }
|
|
71
71
|
|
|
72
|
+
variant -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters }
|
|
73
|
+
|
|
72
74
|
# @!method self.variants
|
|
73
|
-
# @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters)]
|
|
75
|
+
# @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters)]
|
|
74
76
|
end
|
|
75
77
|
|
|
76
78
|
# The current state of this version.
|
|
@@ -53,9 +53,10 @@ module Lithic
|
|
|
53
53
|
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
|
54
54
|
# fee field in the settlement/cardholder billing currency. This is the amount
|
|
55
55
|
# the issuer should authorize against unless the issuer is paying the acquirer
|
|
56
|
-
# fee on behalf of the cardholder.
|
|
56
|
+
# fee on behalf of the cardholder. Use an integer value.
|
|
57
57
|
# - `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication
|
|
58
|
-
# risk level, with a higher value indicating a higher amount of risk.
|
|
58
|
+
# risk level, with a higher value indicating a higher amount of risk. Use an
|
|
59
|
+
# integer value.
|
|
59
60
|
# - `MESSAGE_CATEGORY`: The category of the authentication being processed.
|
|
60
61
|
# - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
|
|
61
62
|
# data with the cardholder KYC data if it exists. Valid values are `MATCH`,
|
|
@@ -73,7 +74,7 @@ module Lithic
|
|
|
73
74
|
# @!attribute value
|
|
74
75
|
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
75
76
|
#
|
|
76
|
-
# @return [String, Integer, Array<String>, Time]
|
|
77
|
+
# @return [String, Integer, Float, Array<String>, Time]
|
|
77
78
|
required :value, union: -> { Lithic::AuthRules::ConditionalValue }
|
|
78
79
|
|
|
79
80
|
# @!method initialize(attribute:, operation:, value:)
|
|
@@ -85,7 +86,7 @@ module Lithic
|
|
|
85
86
|
#
|
|
86
87
|
# @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
|
|
87
88
|
#
|
|
88
|
-
# @param value [String, Integer, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
89
|
+
# @param value [String, Integer, Float, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
89
90
|
|
|
90
91
|
# The attribute to target.
|
|
91
92
|
#
|
|
@@ -104,9 +105,10 @@ module Lithic
|
|
|
104
105
|
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
|
105
106
|
# fee field in the settlement/cardholder billing currency. This is the amount
|
|
106
107
|
# the issuer should authorize against unless the issuer is paying the acquirer
|
|
107
|
-
# fee on behalf of the cardholder.
|
|
108
|
+
# fee on behalf of the cardholder. Use an integer value.
|
|
108
109
|
# - `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication
|
|
109
|
-
# risk level, with a higher value indicating a higher amount of risk.
|
|
110
|
+
# risk level, with a higher value indicating a higher amount of risk. Use an
|
|
111
|
+
# integer value.
|
|
110
112
|
# - `MESSAGE_CATEGORY`: The category of the authentication being processed.
|
|
111
113
|
# - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
|
|
112
114
|
# data with the cardholder KYC data if it exists. Valid values are `MATCH`,
|
|
@@ -190,7 +190,7 @@ module Lithic
|
|
|
190
190
|
# ID) of the entity initiating the ACH transaction.
|
|
191
191
|
# - `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
|
|
192
192
|
# - `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units
|
|
193
|
-
# (cents).
|
|
193
|
+
# (cents). Use an integer value.
|
|
194
194
|
# - `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
|
|
195
195
|
# Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
|
|
196
196
|
# (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
|
|
@@ -209,7 +209,7 @@ module Lithic
|
|
|
209
209
|
# @!attribute value
|
|
210
210
|
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
211
211
|
#
|
|
212
|
-
# @return [String, Integer, Array<String>, Time]
|
|
212
|
+
# @return [String, Integer, Float, Array<String>, Time]
|
|
213
213
|
required :value, union: -> { Lithic::AuthRules::ConditionalValue }
|
|
214
214
|
|
|
215
215
|
# @!method initialize(attribute:, operation:, value:)
|
|
@@ -221,7 +221,7 @@ module Lithic
|
|
|
221
221
|
#
|
|
222
222
|
# @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
|
|
223
223
|
#
|
|
224
|
-
# @param value [String, Integer, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
224
|
+
# @param value [String, Integer, Float, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
225
225
|
|
|
226
226
|
# The attribute to target.
|
|
227
227
|
#
|
|
@@ -232,7 +232,7 @@ module Lithic
|
|
|
232
232
|
# ID) of the entity initiating the ACH transaction.
|
|
233
233
|
# - `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
|
|
234
234
|
# - `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units
|
|
235
|
-
# (cents).
|
|
235
|
+
# (cents). Use an integer value.
|
|
236
236
|
# - `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
|
|
237
237
|
# Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
|
|
238
238
|
# (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
|
|
@@ -61,26 +61,27 @@ module Lithic
|
|
|
61
61
|
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
|
62
62
|
# fee field in the settlement/cardholder billing currency. This is the amount
|
|
63
63
|
# the issuer should authorize against unless the issuer is paying the acquirer
|
|
64
|
-
# fee on behalf of the cardholder.
|
|
64
|
+
# fee on behalf of the cardholder. Use an integer value.
|
|
65
65
|
# - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
|
|
66
|
-
# represents the amount of cash being withdrawn or advanced.
|
|
66
|
+
# represents the amount of cash being withdrawn or advanced. Use an integer
|
|
67
|
+
# value.
|
|
67
68
|
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
|
68
69
|
# given authorization. Scores are on a range of 0-999, with 0 representing the
|
|
69
70
|
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
|
70
71
|
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
|
71
|
-
# multiplying the raw score by 10x.
|
|
72
|
+
# multiplying the raw score by 10x. Use an integer value.
|
|
72
73
|
# - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
|
|
73
|
-
# trailing 15 minutes before the authorization.
|
|
74
|
+
# trailing 15 minutes before the authorization. Use an integer value.
|
|
74
75
|
# - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
|
|
75
|
-
# trailing hour up and until the authorization.
|
|
76
|
+
# trailing hour up and until the authorization. Use an integer value.
|
|
76
77
|
# - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
|
|
77
|
-
# trailing 24 hours up and until the authorization.
|
|
78
|
+
# trailing 24 hours up and until the authorization. Use an integer value.
|
|
78
79
|
# - `CARD_DECLINE_COUNT_15M`: The number of declined transactions on the card in
|
|
79
|
-
# the trailing 15 minutes before the authorization.
|
|
80
|
+
# the trailing 15 minutes before the authorization. Use an integer value.
|
|
80
81
|
# - `CARD_DECLINE_COUNT_1H`: The number of declined transactions on the card in
|
|
81
|
-
# the trailing hour up and until the authorization.
|
|
82
|
+
# the trailing hour up and until the authorization. Use an integer value.
|
|
82
83
|
# - `CARD_DECLINE_COUNT_24H`: The number of declined transactions on the card in
|
|
83
|
-
# the trailing 24 hours up and until the authorization.
|
|
84
|
+
# the trailing 24 hours up and until the authorization. Use an integer value.
|
|
84
85
|
# - `CARD_STATE`: The current state of the card associated with the transaction.
|
|
85
86
|
# Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
|
|
86
87
|
# `PENDING_FULFILLMENT`.
|
|
@@ -105,18 +106,21 @@ module Lithic
|
|
|
105
106
|
# data, the service location postal code is used. Otherwise, falls back to the
|
|
106
107
|
# card acceptor postal code.
|
|
107
108
|
# - `CARD_AGE`: The age of the card in seconds at the time of the authorization.
|
|
109
|
+
# Use an integer value.
|
|
108
110
|
# - `ACCOUNT_AGE`: The age of the account holder's account in seconds at the time
|
|
109
|
-
# of the authorization.
|
|
111
|
+
# of the authorization. Use an integer value. For programs where Lithic does not
|
|
112
|
+
# manage or retain account holder data, this attribute does not evaluate.
|
|
110
113
|
# - `AMOUNT_Z_SCORE`: The z-score of the transaction amount relative to the
|
|
111
114
|
# entity's transaction history. Null if fewer than 30 approved transactions in
|
|
112
115
|
# the specified window. Requires `parameters.scope` and `parameters.interval`.
|
|
116
|
+
# Use a decimal value.
|
|
113
117
|
# - `AVG_TRANSACTION_AMOUNT`: The average approved transaction amount for the
|
|
114
118
|
# entity over the specified window, in cents. Requires `parameters.scope` and
|
|
115
|
-
# `parameters.interval`.
|
|
119
|
+
# `parameters.interval`. Use a decimal value.
|
|
116
120
|
# - `STDEV_TRANSACTION_AMOUNT`: The standard deviation of approved transaction
|
|
117
121
|
# amounts for the entity over the specified window, in cents. Null if fewer than
|
|
118
122
|
# 30 approved transactions in the specified window. Requires `parameters.scope`
|
|
119
|
-
# and `parameters.interval`.
|
|
123
|
+
# and `parameters.interval`. Use a decimal value.
|
|
120
124
|
# - `IS_NEW_COUNTRY`: Whether the transaction's merchant country has not been seen
|
|
121
125
|
# in the entity's transaction history. Valid values are `TRUE`, `FALSE`.
|
|
122
126
|
# Requires `parameters.scope`.
|
|
@@ -127,26 +131,31 @@ module Lithic
|
|
|
127
131
|
# Valid values are `TRUE`, `FALSE`. Requires `parameters.scope`.
|
|
128
132
|
# - `CONSECUTIVE_DECLINES`: The number of consecutive declined transactions for
|
|
129
133
|
# the entity over the last 30 days (rolling). Requires `parameters.scope`. Not
|
|
130
|
-
# supported for `BUSINESS_ACCOUNT` scope.
|
|
134
|
+
# supported for `BUSINESS_ACCOUNT` scope. Use an integer value.
|
|
131
135
|
# - `TIME_SINCE_LAST_TRANSACTION`: The number of days since the last approved
|
|
132
|
-
# transaction for the entity. Requires
|
|
136
|
+
# transaction for the entity, rounded to the nearest whole day. Requires
|
|
137
|
+
# `parameters.scope`. Use an integer value.
|
|
133
138
|
# - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
|
|
134
|
-
# the entity's transaction history. Requires `parameters.scope`.
|
|
139
|
+
# the entity's transaction history. Requires `parameters.scope`. Use an integer
|
|
140
|
+
# value.
|
|
135
141
|
# - `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
|
|
136
142
|
# card's approved transaction history (capped at the 1000 most recently seen
|
|
137
143
|
# merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
|
|
138
144
|
# `parameters` required.
|
|
139
145
|
# - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
|
|
140
146
|
# a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
|
|
147
|
+
# Use a decimal value.
|
|
141
148
|
# - `TRAVEL_SPEED`: The estimated speed of travel derived from the distance
|
|
142
149
|
# between the postal code centers of the last card-present transaction and the
|
|
143
150
|
# current transaction, divided by the elapsed time. Null if there is no prior
|
|
144
151
|
# card-present transaction, if either postal code cannot be geocoded, or if
|
|
145
|
-
# elapsed time is zero. Requires `parameters.unit` set to `MPH` or `KPH`.
|
|
152
|
+
# elapsed time is zero. Requires `parameters.unit` set to `MPH` or `KPH`. Use a
|
|
153
|
+
# decimal value.
|
|
146
154
|
# - `DISTANCE_FROM_LAST_TRANSACTION`: The estimated distance between the postal
|
|
147
155
|
# code centers of the last card-present transaction and the current transaction.
|
|
148
156
|
# Null if there is no prior card-present transaction or if either postal code
|
|
149
157
|
# cannot be geocoded. Requires `parameters.unit` set to `MILES` or `KILOMETERS`.
|
|
158
|
+
# Use a decimal value.
|
|
150
159
|
#
|
|
151
160
|
# @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute]
|
|
152
161
|
required :attribute,
|
|
@@ -161,7 +170,7 @@ module Lithic
|
|
|
161
170
|
# @!attribute value
|
|
162
171
|
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
163
172
|
#
|
|
164
|
-
# @return [String, Integer, Array<String>, Time]
|
|
173
|
+
# @return [String, Integer, Float, Array<String>, Time]
|
|
165
174
|
required :value, union: -> { Lithic::AuthRules::ConditionalValue }
|
|
166
175
|
|
|
167
176
|
# @!attribute parameters
|
|
@@ -185,7 +194,7 @@ module Lithic
|
|
|
185
194
|
#
|
|
186
195
|
# @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
|
|
187
196
|
#
|
|
188
|
-
# @param value [String, Integer, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
197
|
+
# @param value [String, Integer, Float, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
189
198
|
#
|
|
190
199
|
# @param parameters [Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters] Additional parameters for certain attributes. Required when `attribute` is one o
|
|
191
200
|
|
|
@@ -214,26 +223,27 @@ module Lithic
|
|
|
214
223
|
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
|
215
224
|
# fee field in the settlement/cardholder billing currency. This is the amount
|
|
216
225
|
# the issuer should authorize against unless the issuer is paying the acquirer
|
|
217
|
-
# fee on behalf of the cardholder.
|
|
226
|
+
# fee on behalf of the cardholder. Use an integer value.
|
|
218
227
|
# - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
|
|
219
|
-
# represents the amount of cash being withdrawn or advanced.
|
|
228
|
+
# represents the amount of cash being withdrawn or advanced. Use an integer
|
|
229
|
+
# value.
|
|
220
230
|
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
|
221
231
|
# given authorization. Scores are on a range of 0-999, with 0 representing the
|
|
222
232
|
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
|
223
233
|
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
|
224
|
-
# multiplying the raw score by 10x.
|
|
234
|
+
# multiplying the raw score by 10x. Use an integer value.
|
|
225
235
|
# - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
|
|
226
|
-
# trailing 15 minutes before the authorization.
|
|
236
|
+
# trailing 15 minutes before the authorization. Use an integer value.
|
|
227
237
|
# - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
|
|
228
|
-
# trailing hour up and until the authorization.
|
|
238
|
+
# trailing hour up and until the authorization. Use an integer value.
|
|
229
239
|
# - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
|
|
230
|
-
# trailing 24 hours up and until the authorization.
|
|
240
|
+
# trailing 24 hours up and until the authorization. Use an integer value.
|
|
231
241
|
# - `CARD_DECLINE_COUNT_15M`: The number of declined transactions on the card in
|
|
232
|
-
# the trailing 15 minutes before the authorization.
|
|
242
|
+
# the trailing 15 minutes before the authorization. Use an integer value.
|
|
233
243
|
# - `CARD_DECLINE_COUNT_1H`: The number of declined transactions on the card in
|
|
234
|
-
# the trailing hour up and until the authorization.
|
|
244
|
+
# the trailing hour up and until the authorization. Use an integer value.
|
|
235
245
|
# - `CARD_DECLINE_COUNT_24H`: The number of declined transactions on the card in
|
|
236
|
-
# the trailing 24 hours up and until the authorization.
|
|
246
|
+
# the trailing 24 hours up and until the authorization. Use an integer value.
|
|
237
247
|
# - `CARD_STATE`: The current state of the card associated with the transaction.
|
|
238
248
|
# Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
|
|
239
249
|
# `PENDING_FULFILLMENT`.
|
|
@@ -258,18 +268,21 @@ module Lithic
|
|
|
258
268
|
# data, the service location postal code is used. Otherwise, falls back to the
|
|
259
269
|
# card acceptor postal code.
|
|
260
270
|
# - `CARD_AGE`: The age of the card in seconds at the time of the authorization.
|
|
271
|
+
# Use an integer value.
|
|
261
272
|
# - `ACCOUNT_AGE`: The age of the account holder's account in seconds at the time
|
|
262
|
-
# of the authorization.
|
|
273
|
+
# of the authorization. Use an integer value. For programs where Lithic does not
|
|
274
|
+
# manage or retain account holder data, this attribute does not evaluate.
|
|
263
275
|
# - `AMOUNT_Z_SCORE`: The z-score of the transaction amount relative to the
|
|
264
276
|
# entity's transaction history. Null if fewer than 30 approved transactions in
|
|
265
277
|
# the specified window. Requires `parameters.scope` and `parameters.interval`.
|
|
278
|
+
# Use a decimal value.
|
|
266
279
|
# - `AVG_TRANSACTION_AMOUNT`: The average approved transaction amount for the
|
|
267
280
|
# entity over the specified window, in cents. Requires `parameters.scope` and
|
|
268
|
-
# `parameters.interval`.
|
|
281
|
+
# `parameters.interval`. Use a decimal value.
|
|
269
282
|
# - `STDEV_TRANSACTION_AMOUNT`: The standard deviation of approved transaction
|
|
270
283
|
# amounts for the entity over the specified window, in cents. Null if fewer than
|
|
271
284
|
# 30 approved transactions in the specified window. Requires `parameters.scope`
|
|
272
|
-
# and `parameters.interval`.
|
|
285
|
+
# and `parameters.interval`. Use a decimal value.
|
|
273
286
|
# - `IS_NEW_COUNTRY`: Whether the transaction's merchant country has not been seen
|
|
274
287
|
# in the entity's transaction history. Valid values are `TRUE`, `FALSE`.
|
|
275
288
|
# Requires `parameters.scope`.
|
|
@@ -280,26 +293,31 @@ module Lithic
|
|
|
280
293
|
# Valid values are `TRUE`, `FALSE`. Requires `parameters.scope`.
|
|
281
294
|
# - `CONSECUTIVE_DECLINES`: The number of consecutive declined transactions for
|
|
282
295
|
# the entity over the last 30 days (rolling). Requires `parameters.scope`. Not
|
|
283
|
-
# supported for `BUSINESS_ACCOUNT` scope.
|
|
296
|
+
# supported for `BUSINESS_ACCOUNT` scope. Use an integer value.
|
|
284
297
|
# - `TIME_SINCE_LAST_TRANSACTION`: The number of days since the last approved
|
|
285
|
-
# transaction for the entity. Requires
|
|
298
|
+
# transaction for the entity, rounded to the nearest whole day. Requires
|
|
299
|
+
# `parameters.scope`. Use an integer value.
|
|
286
300
|
# - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
|
|
287
|
-
# the entity's transaction history. Requires `parameters.scope`.
|
|
301
|
+
# the entity's transaction history. Requires `parameters.scope`. Use an integer
|
|
302
|
+
# value.
|
|
288
303
|
# - `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
|
|
289
304
|
# card's approved transaction history (capped at the 1000 most recently seen
|
|
290
305
|
# merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
|
|
291
306
|
# `parameters` required.
|
|
292
307
|
# - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
|
|
293
308
|
# a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
|
|
309
|
+
# Use a decimal value.
|
|
294
310
|
# - `TRAVEL_SPEED`: The estimated speed of travel derived from the distance
|
|
295
311
|
# between the postal code centers of the last card-present transaction and the
|
|
296
312
|
# current transaction, divided by the elapsed time. Null if there is no prior
|
|
297
313
|
# card-present transaction, if either postal code cannot be geocoded, or if
|
|
298
|
-
# elapsed time is zero. Requires `parameters.unit` set to `MPH` or `KPH`.
|
|
314
|
+
# elapsed time is zero. Requires `parameters.unit` set to `MPH` or `KPH`. Use a
|
|
315
|
+
# decimal value.
|
|
299
316
|
# - `DISTANCE_FROM_LAST_TRANSACTION`: The estimated distance between the postal
|
|
300
317
|
# code centers of the last card-present transaction and the current transaction.
|
|
301
318
|
# Null if there is no prior card-present transaction or if either postal code
|
|
302
319
|
# cannot be geocoded. Requires `parameters.unit` set to `MILES` or `KILOMETERS`.
|
|
320
|
+
# Use a decimal value.
|
|
303
321
|
#
|
|
304
322
|
# @see Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition#attribute
|
|
305
323
|
module Attribute
|