diff --git a/.release-please-manifest.json b/.release-please-manifest.json index a9e92226..21a705e3 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.47" + ".": "0.1.0-alpha.48" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index ad4e59b3..890e2adb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 169 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-fbbce0ea11d3e86e532f705804f3d79e8eecfb8a7796e3a6ad3c50cccee14bb1.yml -openapi_spec_hash: 3f44b97866ca74effe5e70fc9c64effb -config_hash: 768e8f0faa1a21e26b07e6cdc395cebf +configured_endpoints: 170 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-1a0e3a42c88b88140af0f9ad05ab0026fc87f0a500d6879c86b93dfa7f923810.yml +openapi_spec_hash: 2b4db6185c6e4ab3626461a448c97d4b +config_hash: 7a6a0c0bab3306093c6c171cd7407a45 diff --git a/CHANGELOG.md b/CHANGELOG.md index 215ba149..62c5ffe9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.1.0-alpha.48 (2025-09-30) + +Full Changelog: [v0.1.0-alpha.47...v0.1.0-alpha.48](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.47...v0.1.0-alpha.48) + +### Features + +* **api:** adds support for Auth Rule features ([f12343f](https://github.com/lithic-com/lithic-ruby/commit/f12343f949c28e3545a7e7add90238e8133d5916)) + ## 0.1.0-alpha.47 (2025-09-29) Full Changelog: [v0.1.0-alpha.46...v0.1.0-alpha.47](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.46...v0.1.0-alpha.47) diff --git a/Gemfile.lock b/Gemfile.lock index 385b4d74..142a5a91 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - lithic (0.1.0.pre.alpha.47) + lithic (0.1.0.pre.alpha.48) connection_pool GEM diff --git a/README.md b/README.md index a7c88663..c8848823 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "lithic", "~> 0.1.0.pre.alpha.47" +gem "lithic", "~> 0.1.0.pre.alpha.48" ``` diff --git a/lib/lithic.rb b/lib/lithic.rb index 66c718ff..efb1b4f1 100644 --- a/lib/lithic.rb +++ b/lib/lithic.rb @@ -110,6 +110,8 @@ require_relative "lithic/models/auth_rules/v2_promote_response" require_relative "lithic/models/auth_rules/v2_report_params" require_relative "lithic/models/auth_rules/v2_report_response" +require_relative "lithic/models/auth_rules/v2_retrieve_features_params" +require_relative "lithic/models/auth_rules/v2_retrieve_features_response" require_relative "lithic/models/auth_rules/v2_retrieve_params" require_relative "lithic/models/auth_rules/v2_retrieve_report_params" require_relative "lithic/models/auth_rules/v2_retrieve_report_response" diff --git a/lib/lithic/models/auth_rules/v2_apply_response.rb b/lib/lithic/models/auth_rules/v2_apply_response.rb index f408c432..b0db3d1f 100644 --- a/lib/lithic/models/auth_rules/v2_apply_response.rb +++ b/lib/lithic/models/auth_rules/v2_apply_response.rb @@ -45,6 +45,13 @@ class V2ApplyResponse < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::EventStream] required :event_stream, enum: -> { Lithic::Models::AuthRules::V2ApplyResponse::EventStream } + # @!attribute lithic_managed + # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # be modified or deleted by the user + # + # @return [Boolean] + required :lithic_managed, Lithic::Internal::Type::Boolean + # @!attribute name # Auth Rule Name # @@ -83,7 +90,7 @@ class V2ApplyResponse < Lithic::Internal::Type::BaseModel # @return [Array, nil] optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String] - # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, name:, program_level:, state:, type:, excluded_card_tokens: nil) + # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, lithic_managed:, name:, program_level:, state:, type:, excluded_card_tokens: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::V2ApplyResponse} for more details. # @@ -101,6 +108,8 @@ class V2ApplyResponse < Lithic::Internal::Type::BaseModel # # @param event_stream [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::EventStream] The event stream during which the rule will be evaluated. # + # @param lithic_managed [Boolean] Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # # @param name [String, nil] Auth Rule Name # # @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program. @@ -216,6 +225,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -295,6 +306,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -331,6 +344,7 @@ module Attribute LIABILITY_SHIFT = :LIABILITY_SHIFT PAN_ENTRY_MODE = :PAN_ENTRY_MODE TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT + CASH_AMOUNT = :CASH_AMOUNT RISK_SCORE = :RISK_SCORE CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H @@ -500,6 +514,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -579,6 +595,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -615,6 +633,7 @@ module Attribute LIABILITY_SHIFT = :LIABILITY_SHIFT PAN_ENTRY_MODE = :PAN_ENTRY_MODE TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT + CASH_AMOUNT = :CASH_AMOUNT RISK_SCORE = :RISK_SCORE CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H diff --git a/lib/lithic/models/auth_rules/v2_create_params.rb b/lib/lithic/models/auth_rules/v2_create_params.rb index 11969763..5355ff0b 100644 --- a/lib/lithic/models/auth_rules/v2_create_params.rb +++ b/lib/lithic/models/auth_rules/v2_create_params.rb @@ -179,6 +179,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -258,6 +260,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -294,6 +298,7 @@ module Attribute LIABILITY_SHIFT = :LIABILITY_SHIFT PAN_ENTRY_MODE = :PAN_ENTRY_MODE TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT + CASH_AMOUNT = :CASH_AMOUNT RISK_SCORE = :RISK_SCORE CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H diff --git a/lib/lithic/models/auth_rules/v2_create_response.rb b/lib/lithic/models/auth_rules/v2_create_response.rb index 3057fd11..3d13037d 100644 --- a/lib/lithic/models/auth_rules/v2_create_response.rb +++ b/lib/lithic/models/auth_rules/v2_create_response.rb @@ -45,6 +45,13 @@ class V2CreateResponse < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::AuthRules::V2CreateResponse::EventStream] required :event_stream, enum: -> { Lithic::Models::AuthRules::V2CreateResponse::EventStream } + # @!attribute lithic_managed + # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # be modified or deleted by the user + # + # @return [Boolean] + required :lithic_managed, Lithic::Internal::Type::Boolean + # @!attribute name # Auth Rule Name # @@ -83,7 +90,7 @@ class V2CreateResponse < Lithic::Internal::Type::BaseModel # @return [Array, nil] optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String] - # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, name:, program_level:, state:, type:, excluded_card_tokens: nil) + # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, lithic_managed:, name:, program_level:, state:, type:, excluded_card_tokens: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::V2CreateResponse} for more details. # @@ -101,6 +108,8 @@ class V2CreateResponse < Lithic::Internal::Type::BaseModel # # @param event_stream [Symbol, Lithic::Models::AuthRules::V2CreateResponse::EventStream] The event stream during which the rule will be evaluated. # + # @param lithic_managed [Boolean] Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # # @param name [String, nil] Auth Rule Name # # @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program. @@ -217,6 +226,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -296,6 +307,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -332,6 +345,7 @@ module Attribute LIABILITY_SHIFT = :LIABILITY_SHIFT PAN_ENTRY_MODE = :PAN_ENTRY_MODE TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT + CASH_AMOUNT = :CASH_AMOUNT RISK_SCORE = :RISK_SCORE CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H @@ -501,6 +515,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -580,6 +596,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -616,6 +634,7 @@ module Attribute LIABILITY_SHIFT = :LIABILITY_SHIFT PAN_ENTRY_MODE = :PAN_ENTRY_MODE TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT + CASH_AMOUNT = :CASH_AMOUNT RISK_SCORE = :RISK_SCORE CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H diff --git a/lib/lithic/models/auth_rules/v2_draft_params.rb b/lib/lithic/models/auth_rules/v2_draft_params.rb index 6d2dc729..7d0e31fe 100644 --- a/lib/lithic/models/auth_rules/v2_draft_params.rb +++ b/lib/lithic/models/auth_rules/v2_draft_params.rb @@ -93,6 +93,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -172,6 +174,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -208,6 +212,7 @@ module Attribute LIABILITY_SHIFT = :LIABILITY_SHIFT PAN_ENTRY_MODE = :PAN_ENTRY_MODE TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT + CASH_AMOUNT = :CASH_AMOUNT RISK_SCORE = :RISK_SCORE CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H diff --git a/lib/lithic/models/auth_rules/v2_draft_response.rb b/lib/lithic/models/auth_rules/v2_draft_response.rb index 6e2a3924..9853c3bd 100644 --- a/lib/lithic/models/auth_rules/v2_draft_response.rb +++ b/lib/lithic/models/auth_rules/v2_draft_response.rb @@ -45,6 +45,13 @@ class V2DraftResponse < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::AuthRules::V2DraftResponse::EventStream] required :event_stream, enum: -> { Lithic::Models::AuthRules::V2DraftResponse::EventStream } + # @!attribute lithic_managed + # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # be modified or deleted by the user + # + # @return [Boolean] + required :lithic_managed, Lithic::Internal::Type::Boolean + # @!attribute name # Auth Rule Name # @@ -83,7 +90,7 @@ class V2DraftResponse < Lithic::Internal::Type::BaseModel # @return [Array, nil] optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String] - # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, name:, program_level:, state:, type:, excluded_card_tokens: nil) + # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, lithic_managed:, name:, program_level:, state:, type:, excluded_card_tokens: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::V2DraftResponse} for more details. # @@ -101,6 +108,8 @@ class V2DraftResponse < Lithic::Internal::Type::BaseModel # # @param event_stream [Symbol, Lithic::Models::AuthRules::V2DraftResponse::EventStream] The event stream during which the rule will be evaluated. # + # @param lithic_managed [Boolean] Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # # @param name [String, nil] Auth Rule Name # # @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program. @@ -216,6 +225,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -295,6 +306,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -331,6 +344,7 @@ module Attribute LIABILITY_SHIFT = :LIABILITY_SHIFT PAN_ENTRY_MODE = :PAN_ENTRY_MODE TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT + CASH_AMOUNT = :CASH_AMOUNT RISK_SCORE = :RISK_SCORE CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H @@ -500,6 +514,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -579,6 +595,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -615,6 +633,7 @@ module Attribute LIABILITY_SHIFT = :LIABILITY_SHIFT PAN_ENTRY_MODE = :PAN_ENTRY_MODE TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT + CASH_AMOUNT = :CASH_AMOUNT RISK_SCORE = :RISK_SCORE CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H diff --git a/lib/lithic/models/auth_rules/v2_list_response.rb b/lib/lithic/models/auth_rules/v2_list_response.rb index 5ecacbdf..61a3076e 100644 --- a/lib/lithic/models/auth_rules/v2_list_response.rb +++ b/lib/lithic/models/auth_rules/v2_list_response.rb @@ -45,6 +45,13 @@ class V2ListResponse < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::AuthRules::V2ListResponse::EventStream] required :event_stream, enum: -> { Lithic::Models::AuthRules::V2ListResponse::EventStream } + # @!attribute lithic_managed + # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # be modified or deleted by the user + # + # @return [Boolean] + required :lithic_managed, Lithic::Internal::Type::Boolean + # @!attribute name # Auth Rule Name # @@ -83,7 +90,7 @@ class V2ListResponse < Lithic::Internal::Type::BaseModel # @return [Array, nil] optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String] - # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, name:, program_level:, state:, type:, excluded_card_tokens: nil) + # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, lithic_managed:, name:, program_level:, state:, type:, excluded_card_tokens: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::V2ListResponse} for more details. # @@ -101,6 +108,8 @@ class V2ListResponse < Lithic::Internal::Type::BaseModel # # @param event_stream [Symbol, Lithic::Models::AuthRules::V2ListResponse::EventStream] The event stream during which the rule will be evaluated. # + # @param lithic_managed [Boolean] Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # # @param name [String, nil] Auth Rule Name # # @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program. @@ -216,6 +225,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -295,6 +306,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -331,6 +344,7 @@ module Attribute LIABILITY_SHIFT = :LIABILITY_SHIFT PAN_ENTRY_MODE = :PAN_ENTRY_MODE TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT + CASH_AMOUNT = :CASH_AMOUNT RISK_SCORE = :RISK_SCORE CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H @@ -500,6 +514,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -579,6 +595,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -615,6 +633,7 @@ module Attribute LIABILITY_SHIFT = :LIABILITY_SHIFT PAN_ENTRY_MODE = :PAN_ENTRY_MODE TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT + CASH_AMOUNT = :CASH_AMOUNT RISK_SCORE = :RISK_SCORE CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H diff --git a/lib/lithic/models/auth_rules/v2_promote_response.rb b/lib/lithic/models/auth_rules/v2_promote_response.rb index 73fa5252..3d5a1045 100644 --- a/lib/lithic/models/auth_rules/v2_promote_response.rb +++ b/lib/lithic/models/auth_rules/v2_promote_response.rb @@ -45,6 +45,13 @@ class V2PromoteResponse < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::EventStream] required :event_stream, enum: -> { Lithic::Models::AuthRules::V2PromoteResponse::EventStream } + # @!attribute lithic_managed + # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # be modified or deleted by the user + # + # @return [Boolean] + required :lithic_managed, Lithic::Internal::Type::Boolean + # @!attribute name # Auth Rule Name # @@ -83,7 +90,7 @@ class V2PromoteResponse < Lithic::Internal::Type::BaseModel # @return [Array, nil] optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String] - # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, name:, program_level:, state:, type:, excluded_card_tokens: nil) + # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, lithic_managed:, name:, program_level:, state:, type:, excluded_card_tokens: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::V2PromoteResponse} for more details. # @@ -101,6 +108,8 @@ class V2PromoteResponse < Lithic::Internal::Type::BaseModel # # @param event_stream [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::EventStream] The event stream during which the rule will be evaluated. # + # @param lithic_managed [Boolean] Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # # @param name [String, nil] Auth Rule Name # # @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program. @@ -217,6 +226,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -296,6 +307,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -332,6 +345,7 @@ module Attribute LIABILITY_SHIFT = :LIABILITY_SHIFT PAN_ENTRY_MODE = :PAN_ENTRY_MODE TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT + CASH_AMOUNT = :CASH_AMOUNT RISK_SCORE = :RISK_SCORE CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H @@ -501,6 +515,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -580,6 +596,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -616,6 +634,7 @@ module Attribute LIABILITY_SHIFT = :LIABILITY_SHIFT PAN_ENTRY_MODE = :PAN_ENTRY_MODE TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT + CASH_AMOUNT = :CASH_AMOUNT RISK_SCORE = :RISK_SCORE CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H diff --git a/lib/lithic/models/auth_rules/v2_retrieve_features_params.rb b/lib/lithic/models/auth_rules/v2_retrieve_features_params.rb new file mode 100644 index 00000000..4259d133 --- /dev/null +++ b/lib/lithic/models/auth_rules/v2_retrieve_features_params.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true + +module Lithic + module Models + module AuthRules + # @see Lithic::Resources::AuthRules::V2#retrieve_features + class V2RetrieveFeaturesParams < Lithic::Internal::Type::BaseModel + extend Lithic::Internal::Type::RequestParameters::Converter + include Lithic::Internal::Type::RequestParameters + + # @!attribute account_token + # + # @return [String, nil] + optional :account_token, String + + # @!attribute card_token + # + # @return [String, nil] + optional :card_token, String + + # @!method initialize(account_token: nil, card_token: nil, request_options: {}) + # @param account_token [String] + # @param card_token [String] + # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] + end + end + end +end diff --git a/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb b/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb new file mode 100644 index 00000000..7ba14476 --- /dev/null +++ b/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb @@ -0,0 +1,188 @@ +# frozen_string_literal: true + +module Lithic + module Models + module AuthRules + # @see Lithic::Resources::AuthRules::V2#retrieve_features + class V2RetrieveFeaturesResponse < Lithic::Internal::Type::BaseModel + # @!attribute evaluated + # Timestamp at which the Features were evaluated + # + # @return [Time] + required :evaluated, Time + + # @!attribute features + # Calculated Features used for evaluation of the provided Auth Rule + # + # @return [Array] + required :features, + -> { Lithic::Internal::Type::ArrayOf[Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature] } + + # @!method initialize(evaluated:, features:) + # @param evaluated [Time] Timestamp at which the Features were evaluated + # + # @param features [Array] Calculated Features used for evaluation of the provided Auth Rule + + class Feature < Lithic::Internal::Type::BaseModel + # @!attribute filters + # + # @return [Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters] + required :filters, -> { Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters } + + # @!attribute period + # DEPRECATED: This has been deprecated in favor of the Trailing Window Objects + # + # The size of the trailing window to calculate Spend Velocity over in seconds. The + # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days). + # + # @return [Integer, Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear] + required :period, union: -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow } + + # @!attribute scope + # The scope the velocity is calculated for + # + # @return [Symbol, Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Scope] + required :scope, enum: -> { Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Scope } + + # @!attribute value + # + # @return [Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Value] + required :value, -> { Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Value } + + # @!method initialize(filters:, period:, scope:, value:) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature} for more + # details. + # + # @param filters [Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters] + # + # @param period [Integer, Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear] DEPRECATED: This has been deprecated in favor of the Trailing Window Objects + # + # @param scope [Symbol, Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Scope] The scope the velocity is calculated for + # + # @param value [Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Value] + + # @see Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature#filters + class Filters < Lithic::Internal::Type::BaseModel + # @!attribute exclude_countries + # ISO-3166-1 alpha-3 Country Codes to exclude from the velocity calculation. + # Transactions matching any of the provided will be excluded from the calculated + # velocity. + # + # @return [Array, nil] + optional :exclude_countries, Lithic::Internal::Type::ArrayOf[String], nil?: true + + # @!attribute exclude_mccs + # Merchant Category Codes to exclude from the velocity calculation. Transactions + # matching this MCC will be excluded from the calculated velocity. + # + # @return [Array, nil] + optional :exclude_mccs, Lithic::Internal::Type::ArrayOf[String], nil?: true + + # @!attribute include_countries + # ISO-3166-1 alpha-3 Country Codes to include in the velocity calculation. + # Transactions not matching any of the provided will not be included in the + # calculated velocity. + # + # @return [Array, nil] + optional :include_countries, Lithic::Internal::Type::ArrayOf[String], nil?: true + + # @!attribute include_mccs + # Merchant Category Codes to include in the velocity calculation. Transactions not + # matching this MCC will not be included in the calculated velocity. + # + # @return [Array, nil] + optional :include_mccs, Lithic::Internal::Type::ArrayOf[String], nil?: true + + # @!attribute include_pan_entry_modes + # PAN entry modes to include in the velocity calculation. Transactions not + # matching any of the provided will not be included in the calculated velocity. + # + # @return [Array, nil] + optional :include_pan_entry_modes, + -> { Lithic::Internal::Type::ArrayOf[enum: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode] }, + nil?: true + + # @!method initialize(exclude_countries: nil, exclude_mccs: nil, include_countries: nil, include_mccs: nil, include_pan_entry_modes: nil) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters} for + # more details. + # + # @param exclude_countries [Array, nil] ISO-3166-1 alpha-3 Country Codes to exclude from the velocity calculation. Trans + # + # @param exclude_mccs [Array, nil] Merchant Category Codes to exclude from the velocity calculation. Transactions m + # + # @param include_countries [Array, nil] ISO-3166-1 alpha-3 Country Codes to include in the velocity calculation. Transac + # + # @param include_mccs [Array, nil] Merchant Category Codes to include in the velocity calculation. Transactions not + # + # @param include_pan_entry_modes [Array, nil] PAN entry modes to include in the velocity calculation. Transactions not matchin + + module IncludePanEntryMode + extend Lithic::Internal::Type::Enum + + AUTO_ENTRY = :AUTO_ENTRY + BAR_CODE = :BAR_CODE + CONTACTLESS = :CONTACTLESS + CREDENTIAL_ON_FILE = :CREDENTIAL_ON_FILE + ECOMMERCE = :ECOMMERCE + ERROR_KEYED = :ERROR_KEYED + ERROR_MAGNETIC_STRIPE = :ERROR_MAGNETIC_STRIPE + ICC = :ICC + KEY_ENTERED = :KEY_ENTERED + MAGNETIC_STRIPE = :MAGNETIC_STRIPE + MANUAL = :MANUAL + OCR = :OCR + SECURE_CARDLESS = :SECURE_CARDLESS + UNSPECIFIED = :UNSPECIFIED + UNKNOWN = :UNKNOWN + + # @!method self.values + # @return [Array] + end + end + + # The scope the velocity is calculated for + # + # @see Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature#scope + module Scope + extend Lithic::Internal::Type::Enum + + CARD = :CARD + ACCOUNT = :ACCOUNT + + # @!method self.values + # @return [Array] + end + + # @see Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature#value + class Value < Lithic::Internal::Type::BaseModel + # @!attribute amount + # Amount (in cents) for the given Auth Rule that is used as input for calculating + # the rule. For Velocity Limit rules this would be the calculated Velocity. For + # Conditional Rules using CARD*TRANSACTION_COUNT*\* this will be 0 + # + # @return [Integer] + required :amount, Integer + + # @!attribute count + # Number of velocity impacting transactions matching the given scope, period and + # filters + # + # @return [Integer] + required :count, Integer + + # @!method initialize(amount:, count:) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Value} for more + # details. + # + # @param amount [Integer] Amount (in cents) for the given Auth Rule that is used as input for calculating + # + # @param count [Integer] Number of velocity impacting transactions matching the given scope, period and f + end + end + end + end + end +end diff --git a/lib/lithic/models/auth_rules/v2_retrieve_response.rb b/lib/lithic/models/auth_rules/v2_retrieve_response.rb index a10c346c..00f2794a 100644 --- a/lib/lithic/models/auth_rules/v2_retrieve_response.rb +++ b/lib/lithic/models/auth_rules/v2_retrieve_response.rb @@ -47,6 +47,13 @@ class V2RetrieveResponse < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::EventStream] required :event_stream, enum: -> { Lithic::Models::AuthRules::V2RetrieveResponse::EventStream } + # @!attribute lithic_managed + # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # be modified or deleted by the user + # + # @return [Boolean] + required :lithic_managed, Lithic::Internal::Type::Boolean + # @!attribute name # Auth Rule Name # @@ -85,7 +92,7 @@ class V2RetrieveResponse < Lithic::Internal::Type::BaseModel # @return [Array, nil] optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String] - # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, name:, program_level:, state:, type:, excluded_card_tokens: nil) + # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, lithic_managed:, name:, program_level:, state:, type:, excluded_card_tokens: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::V2RetrieveResponse} for more details. # @@ -103,6 +110,8 @@ class V2RetrieveResponse < Lithic::Internal::Type::BaseModel # # @param event_stream [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::EventStream] The event stream during which the rule will be evaluated. # + # @param lithic_managed [Boolean] Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # # @param name [String, nil] Auth Rule Name # # @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program. @@ -220,6 +229,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -299,6 +310,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -335,6 +348,7 @@ module Attribute LIABILITY_SHIFT = :LIABILITY_SHIFT PAN_ENTRY_MODE = :PAN_ENTRY_MODE TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT + CASH_AMOUNT = :CASH_AMOUNT RISK_SCORE = :RISK_SCORE CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H @@ -505,6 +519,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -584,6 +600,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -620,6 +638,7 @@ module Attribute LIABILITY_SHIFT = :LIABILITY_SHIFT PAN_ENTRY_MODE = :PAN_ENTRY_MODE TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT + CASH_AMOUNT = :CASH_AMOUNT RISK_SCORE = :RISK_SCORE CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H diff --git a/lib/lithic/models/auth_rules/v2_update_response.rb b/lib/lithic/models/auth_rules/v2_update_response.rb index e330da20..0d5d351b 100644 --- a/lib/lithic/models/auth_rules/v2_update_response.rb +++ b/lib/lithic/models/auth_rules/v2_update_response.rb @@ -45,6 +45,13 @@ class V2UpdateResponse < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::EventStream] required :event_stream, enum: -> { Lithic::Models::AuthRules::V2UpdateResponse::EventStream } + # @!attribute lithic_managed + # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # be modified or deleted by the user + # + # @return [Boolean] + required :lithic_managed, Lithic::Internal::Type::Boolean + # @!attribute name # Auth Rule Name # @@ -83,7 +90,7 @@ class V2UpdateResponse < Lithic::Internal::Type::BaseModel # @return [Array, nil] optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String] - # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, name:, program_level:, state:, type:, excluded_card_tokens: nil) + # @!method initialize(token:, account_tokens:, business_account_tokens:, card_tokens:, current_version:, draft_version:, event_stream:, lithic_managed:, name:, program_level:, state:, type:, excluded_card_tokens: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::V2UpdateResponse} for more details. # @@ -101,6 +108,8 @@ class V2UpdateResponse < Lithic::Internal::Type::BaseModel # # @param event_stream [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::EventStream] The event stream during which the rule will be evaluated. # + # @param lithic_managed [Boolean] Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # # @param name [String, nil] Auth Rule Name # # @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program. @@ -217,6 +226,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -296,6 +307,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -332,6 +345,7 @@ module Attribute LIABILITY_SHIFT = :LIABILITY_SHIFT PAN_ENTRY_MODE = :PAN_ENTRY_MODE TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT + CASH_AMOUNT = :CASH_AMOUNT RISK_SCORE = :RISK_SCORE CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H @@ -501,6 +515,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -580,6 +596,8 @@ class Condition < Lithic::Internal::Type::BaseModel # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -616,6 +634,7 @@ module Attribute LIABILITY_SHIFT = :LIABILITY_SHIFT PAN_ENTRY_MODE = :PAN_ENTRY_MODE TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT + CASH_AMOUNT = :CASH_AMOUNT RISK_SCORE = :RISK_SCORE CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H diff --git a/lib/lithic/models/auth_rules/velocity_limit_params.rb b/lib/lithic/models/auth_rules/velocity_limit_params.rb index a02c294b..8a2a8b94 100644 --- a/lib/lithic/models/auth_rules/velocity_limit_params.rb +++ b/lib/lithic/models/auth_rules/velocity_limit_params.rb @@ -10,6 +10,8 @@ class VelocityLimitParams < Lithic::Internal::Type::BaseModel required :filters, -> { Lithic::AuthRules::VelocityLimitParams::Filters } # @!attribute period + # DEPRECATED: This has been deprecated in favor of the Trailing Window Objects + # # The size of the trailing window to calculate Spend Velocity over in seconds. The # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days). # @@ -17,6 +19,7 @@ class VelocityLimitParams < Lithic::Internal::Type::BaseModel required :period, union: -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow } # @!attribute scope + # The scope the velocity is calculated for # # @return [Symbol, Lithic::Models::AuthRules::VelocityLimitParams::Scope] required :scope, enum: -> { Lithic::AuthRules::VelocityLimitParams::Scope } @@ -45,9 +48,9 @@ class VelocityLimitParams < Lithic::Internal::Type::BaseModel # # @param filters [Lithic::Models::AuthRules::VelocityLimitParams::Filters] # - # @param period [Integer, Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear] The size of the trailing window to calculate Spend Velocity over in seconds. The + # @param period [Integer, Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear] DEPRECATED: This has been deprecated in favor of the Trailing Window Objects # - # @param scope [Symbol, Lithic::Models::AuthRules::VelocityLimitParams::Scope] + # @param scope [Symbol, Lithic::Models::AuthRules::VelocityLimitParams::Scope] The scope the velocity is calculated for # # @param limit_amount [Integer, nil] The maximum amount of spend velocity allowed in the period in minor units (the s # @@ -85,7 +88,18 @@ class Filters < Lithic::Internal::Type::BaseModel # @return [Array, nil] optional :include_mccs, Lithic::Internal::Type::ArrayOf[String], nil?: true - # @!method initialize(exclude_countries: nil, exclude_mccs: nil, include_countries: nil, include_mccs: nil) + # @!attribute include_pan_entry_modes + # PAN entry modes to include in the velocity calculation. Transactions not + # matching any of the provided will not be included in the calculated velocity. + # + # @return [Array, nil] + optional :include_pan_entry_modes, + -> { + Lithic::Internal::Type::ArrayOf[enum: Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode] + }, + nil?: true + + # @!method initialize(exclude_countries: nil, exclude_mccs: nil, include_countries: nil, include_mccs: nil, include_pan_entry_modes: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::VelocityLimitParams::Filters} for more details. # @@ -96,8 +110,35 @@ class Filters < Lithic::Internal::Type::BaseModel # @param include_countries [Array, nil] ISO-3166-1 alpha-3 Country Codes to include in the velocity calculation. Transac # # @param include_mccs [Array, nil] Merchant Category Codes to include in the velocity calculation. Transactions not + # + # @param include_pan_entry_modes [Array, nil] PAN entry modes to include in the velocity calculation. Transactions not matchin + + module IncludePanEntryMode + extend Lithic::Internal::Type::Enum + + AUTO_ENTRY = :AUTO_ENTRY + BAR_CODE = :BAR_CODE + CONTACTLESS = :CONTACTLESS + CREDENTIAL_ON_FILE = :CREDENTIAL_ON_FILE + ECOMMERCE = :ECOMMERCE + ERROR_KEYED = :ERROR_KEYED + ERROR_MAGNETIC_STRIPE = :ERROR_MAGNETIC_STRIPE + ICC = :ICC + KEY_ENTERED = :KEY_ENTERED + MAGNETIC_STRIPE = :MAGNETIC_STRIPE + MANUAL = :MANUAL + OCR = :OCR + SECURE_CARDLESS = :SECURE_CARDLESS + UNSPECIFIED = :UNSPECIFIED + UNKNOWN = :UNKNOWN + + # @!method self.values + # @return [Array] + end end + # The scope the velocity is calculated for + # # @see Lithic::Models::AuthRules::VelocityLimitParams#scope module Scope extend Lithic::Internal::Type::Enum diff --git a/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb b/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb index d844fc7e..881802e9 100644 --- a/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +++ b/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb @@ -3,14 +3,20 @@ module Lithic module Models module AuthRules + # DEPRECATED: This has been deprecated in favor of the Trailing Window Objects + # # The size of the trailing window to calculate Spend Velocity over in seconds. The # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days). module VelocityLimitParamsPeriodWindow extend Lithic::Internal::Type::Union + # DEPRECATED: This has been deprecated in favor of the Trailing Window Objects + # # The size of the trailing window to calculate Spend Velocity over in seconds. The minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days). variant Integer + # DEPRECATED: This has been deprecated in favor of the other Fixed Window Objects + # # The window of time to calculate Spend Velocity over. # # * `DAY`: Velocity over the current day since midnight Eastern Time. @@ -33,6 +39,10 @@ module VelocityLimitParamsPeriodWindow # Velocity over the current year since 00:00 / 12 AM in Eastern Time on specified `month` and `day_of_month`. This validates the month and day of the year to start from is a real date. In the event that February 29th is selected, in non-leap years, the window will start from February 28th. variant -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear } + # @deprecated + # + # DEPRECATED: This has been deprecated in favor of the other Fixed Window Objects + # # The window of time to calculate Spend Velocity over. # # - `DAY`: Velocity over the current day since midnight Eastern Time. diff --git a/lib/lithic/resources/auth_rules/v2.rb b/lib/lithic/resources/auth_rules/v2.rb index 9b5bee90..8a49e162 100644 --- a/lib/lithic/resources/auth_rules/v2.rb +++ b/lib/lithic/resources/auth_rules/v2.rb @@ -324,6 +324,40 @@ def report(auth_rule_token, params = {}) ) end + # Fetches the current calculated Feature values for the given Auth Rule + # + # This only calculates the features for the active version. + # + # - VelocityLimit Rules calculates the current Velocity Feature data. This + # requires a `card_token` or `account_token` matching what the rule is Scoped + # to. + # - ConditionalBlock Rules calculates the CARD*TRANSACTION_COUNT*\* attributes on + # the rule. This requires a `card_token` + # + # @overload retrieve_features(auth_rule_token, account_token: nil, card_token: nil, request_options: {}) + # + # @param auth_rule_token [String] Globally unique identifier for the Auth Rule. + # + # @param account_token [String] + # + # @param card_token [String] + # + # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [Lithic::Models::AuthRules::V2RetrieveFeaturesResponse] + # + # @see Lithic::Models::AuthRules::V2RetrieveFeaturesParams + def retrieve_features(auth_rule_token, params = {}) + parsed, options = Lithic::AuthRules::V2RetrieveFeaturesParams.dump_request(params) + @client.request( + method: :get, + path: ["v2/auth_rules/%1$s/features", auth_rule_token], + query: parsed, + model: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse, + options: options + ) + end + # Retrieves a performance report for an Auth rule containing daily statistics and # evaluation outcomes. # diff --git a/lib/lithic/version.rb b/lib/lithic/version.rb index 9146f6c3..32a19c3a 100644 --- a/lib/lithic/version.rb +++ b/lib/lithic/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Lithic - VERSION = "0.1.0.pre.alpha.47" + VERSION = "0.1.0.pre.alpha.48" end diff --git a/rbi/lithic/models/auth_rules/v2_apply_response.rbi b/rbi/lithic/models/auth_rules/v2_apply_response.rbi index 6db66749..b47646e5 100644 --- a/rbi/lithic/models/auth_rules/v2_apply_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_apply_response.rbi @@ -72,6 +72,11 @@ module Lithic end attr_accessor :event_stream + # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # be modified or deleted by the user + sig { returns(T::Boolean) } + attr_accessor :lithic_managed + # Auth Rule Name sig { returns(T.nilable(String)) } attr_accessor :name @@ -127,6 +132,7 @@ module Lithic ), event_stream: Lithic::Models::AuthRules::V2ApplyResponse::EventStream::OrSymbol, + lithic_managed: T::Boolean, name: T.nilable(String), program_level: T::Boolean, state: Lithic::Models::AuthRules::V2ApplyResponse::State::OrSymbol, @@ -147,6 +153,9 @@ module Lithic draft_version:, # The event stream during which the rule will be evaluated. event_stream:, + # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # be modified or deleted by the user + lithic_managed:, # Auth Rule Name name:, # Whether the Auth Rule applies to all authorizations on the card program. @@ -185,6 +194,7 @@ module Lithic ), event_stream: Lithic::Models::AuthRules::V2ApplyResponse::EventStream::TaggedSymbol, + lithic_managed: T::Boolean, name: T.nilable(String), program_level: T::Boolean, state: @@ -397,6 +407,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -510,6 +522,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -582,6 +596,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -657,6 +673,11 @@ module Lithic :TRANSACTION_AMOUNT, Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + CASH_AMOUNT = + T.let( + :CASH_AMOUNT, + Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) RISK_SCORE = T.let( :RISK_SCORE, @@ -1026,6 +1047,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -1139,6 +1162,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -1211,6 +1236,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -1286,6 +1313,11 @@ module Lithic :TRANSACTION_AMOUNT, Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + CASH_AMOUNT = + T.let( + :CASH_AMOUNT, + Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) RISK_SCORE = T.let( :RISK_SCORE, diff --git a/rbi/lithic/models/auth_rules/v2_create_params.rbi b/rbi/lithic/models/auth_rules/v2_create_params.rbi index e9a19c61..724b4bdd 100644 --- a/rbi/lithic/models/auth_rules/v2_create_params.rbi +++ b/rbi/lithic/models/auth_rules/v2_create_params.rbi @@ -365,6 +365,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -478,6 +480,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -550,6 +554,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -625,6 +631,11 @@ module Lithic :TRANSACTION_AMOUNT, Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + CASH_AMOUNT = + T.let( + :CASH_AMOUNT, + Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) RISK_SCORE = T.let( :RISK_SCORE, diff --git a/rbi/lithic/models/auth_rules/v2_create_response.rbi b/rbi/lithic/models/auth_rules/v2_create_response.rbi index e8190d5d..9a1d8ce7 100644 --- a/rbi/lithic/models/auth_rules/v2_create_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_create_response.rbi @@ -72,6 +72,11 @@ module Lithic end attr_accessor :event_stream + # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # be modified or deleted by the user + sig { returns(T::Boolean) } + attr_accessor :lithic_managed + # Auth Rule Name sig { returns(T.nilable(String)) } attr_accessor :name @@ -127,6 +132,7 @@ module Lithic ), event_stream: Lithic::Models::AuthRules::V2CreateResponse::EventStream::OrSymbol, + lithic_managed: T::Boolean, name: T.nilable(String), program_level: T::Boolean, state: Lithic::Models::AuthRules::V2CreateResponse::State::OrSymbol, @@ -147,6 +153,9 @@ module Lithic draft_version:, # The event stream during which the rule will be evaluated. event_stream:, + # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # be modified or deleted by the user + lithic_managed:, # Auth Rule Name name:, # Whether the Auth Rule applies to all authorizations on the card program. @@ -185,6 +194,7 @@ module Lithic ), event_stream: Lithic::Models::AuthRules::V2CreateResponse::EventStream::TaggedSymbol, + lithic_managed: T::Boolean, name: T.nilable(String), program_level: T::Boolean, state: @@ -397,6 +407,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -510,6 +522,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -582,6 +596,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -657,6 +673,11 @@ module Lithic :TRANSACTION_AMOUNT, Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + CASH_AMOUNT = + T.let( + :CASH_AMOUNT, + Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) RISK_SCORE = T.let( :RISK_SCORE, @@ -1026,6 +1047,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -1139,6 +1162,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -1211,6 +1236,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -1286,6 +1313,11 @@ module Lithic :TRANSACTION_AMOUNT, Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + CASH_AMOUNT = + T.let( + :CASH_AMOUNT, + Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) RISK_SCORE = T.let( :RISK_SCORE, diff --git a/rbi/lithic/models/auth_rules/v2_draft_params.rbi b/rbi/lithic/models/auth_rules/v2_draft_params.rbi index 45eb853e..3c71b795 100644 --- a/rbi/lithic/models/auth_rules/v2_draft_params.rbi +++ b/rbi/lithic/models/auth_rules/v2_draft_params.rbi @@ -213,6 +213,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -326,6 +328,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -398,6 +402,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -473,6 +479,11 @@ module Lithic :TRANSACTION_AMOUNT, Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + CASH_AMOUNT = + T.let( + :CASH_AMOUNT, + Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) RISK_SCORE = T.let( :RISK_SCORE, diff --git a/rbi/lithic/models/auth_rules/v2_draft_response.rbi b/rbi/lithic/models/auth_rules/v2_draft_response.rbi index d8872e00..a549ef22 100644 --- a/rbi/lithic/models/auth_rules/v2_draft_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_draft_response.rbi @@ -72,6 +72,11 @@ module Lithic end attr_accessor :event_stream + # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # be modified or deleted by the user + sig { returns(T::Boolean) } + attr_accessor :lithic_managed + # Auth Rule Name sig { returns(T.nilable(String)) } attr_accessor :name @@ -127,6 +132,7 @@ module Lithic ), event_stream: Lithic::Models::AuthRules::V2DraftResponse::EventStream::OrSymbol, + lithic_managed: T::Boolean, name: T.nilable(String), program_level: T::Boolean, state: Lithic::Models::AuthRules::V2DraftResponse::State::OrSymbol, @@ -147,6 +153,9 @@ module Lithic draft_version:, # The event stream during which the rule will be evaluated. event_stream:, + # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # be modified or deleted by the user + lithic_managed:, # Auth Rule Name name:, # Whether the Auth Rule applies to all authorizations on the card program. @@ -185,6 +194,7 @@ module Lithic ), event_stream: Lithic::Models::AuthRules::V2DraftResponse::EventStream::TaggedSymbol, + lithic_managed: T::Boolean, name: T.nilable(String), program_level: T::Boolean, state: @@ -397,6 +407,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -510,6 +522,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -582,6 +596,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -657,6 +673,11 @@ module Lithic :TRANSACTION_AMOUNT, Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + CASH_AMOUNT = + T.let( + :CASH_AMOUNT, + Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) RISK_SCORE = T.let( :RISK_SCORE, @@ -1026,6 +1047,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -1139,6 +1162,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -1211,6 +1236,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -1286,6 +1313,11 @@ module Lithic :TRANSACTION_AMOUNT, Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + CASH_AMOUNT = + T.let( + :CASH_AMOUNT, + Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) RISK_SCORE = T.let( :RISK_SCORE, diff --git a/rbi/lithic/models/auth_rules/v2_list_response.rbi b/rbi/lithic/models/auth_rules/v2_list_response.rbi index 0b447cb7..f5b1d9c5 100644 --- a/rbi/lithic/models/auth_rules/v2_list_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_list_response.rbi @@ -70,6 +70,11 @@ module Lithic end attr_accessor :event_stream + # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # be modified or deleted by the user + sig { returns(T::Boolean) } + attr_accessor :lithic_managed + # Auth Rule Name sig { returns(T.nilable(String)) } attr_accessor :name @@ -123,6 +128,7 @@ module Lithic ), event_stream: Lithic::Models::AuthRules::V2ListResponse::EventStream::OrSymbol, + lithic_managed: T::Boolean, name: T.nilable(String), program_level: T::Boolean, state: Lithic::Models::AuthRules::V2ListResponse::State::OrSymbol, @@ -143,6 +149,9 @@ module Lithic draft_version:, # The event stream during which the rule will be evaluated. event_stream:, + # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # be modified or deleted by the user + lithic_managed:, # Auth Rule Name name:, # Whether the Auth Rule applies to all authorizations on the card program. @@ -181,6 +190,7 @@ module Lithic ), event_stream: Lithic::Models::AuthRules::V2ListResponse::EventStream::TaggedSymbol, + lithic_managed: T::Boolean, name: T.nilable(String), program_level: T::Boolean, state: @@ -393,6 +403,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -506,6 +518,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -578,6 +592,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -653,6 +669,11 @@ module Lithic :TRANSACTION_AMOUNT, Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + CASH_AMOUNT = + T.let( + :CASH_AMOUNT, + Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) RISK_SCORE = T.let( :RISK_SCORE, @@ -1022,6 +1043,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -1135,6 +1158,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -1207,6 +1232,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -1282,6 +1309,11 @@ module Lithic :TRANSACTION_AMOUNT, Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + CASH_AMOUNT = + T.let( + :CASH_AMOUNT, + Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) RISK_SCORE = T.let( :RISK_SCORE, diff --git a/rbi/lithic/models/auth_rules/v2_promote_response.rbi b/rbi/lithic/models/auth_rules/v2_promote_response.rbi index 676a0d26..fd8432f4 100644 --- a/rbi/lithic/models/auth_rules/v2_promote_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_promote_response.rbi @@ -74,6 +74,11 @@ module Lithic end attr_accessor :event_stream + # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # be modified or deleted by the user + sig { returns(T::Boolean) } + attr_accessor :lithic_managed + # Auth Rule Name sig { returns(T.nilable(String)) } attr_accessor :name @@ -129,6 +134,7 @@ module Lithic ), event_stream: Lithic::Models::AuthRules::V2PromoteResponse::EventStream::OrSymbol, + lithic_managed: T::Boolean, name: T.nilable(String), program_level: T::Boolean, state: @@ -150,6 +156,9 @@ module Lithic draft_version:, # The event stream during which the rule will be evaluated. event_stream:, + # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # be modified or deleted by the user + lithic_managed:, # Auth Rule Name name:, # Whether the Auth Rule applies to all authorizations on the card program. @@ -188,6 +197,7 @@ module Lithic ), event_stream: Lithic::Models::AuthRules::V2PromoteResponse::EventStream::TaggedSymbol, + lithic_managed: T::Boolean, name: T.nilable(String), program_level: T::Boolean, state: @@ -400,6 +410,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -513,6 +525,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -585,6 +599,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -660,6 +676,11 @@ module Lithic :TRANSACTION_AMOUNT, Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + CASH_AMOUNT = + T.let( + :CASH_AMOUNT, + Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) RISK_SCORE = T.let( :RISK_SCORE, @@ -1029,6 +1050,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -1142,6 +1165,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -1214,6 +1239,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -1289,6 +1316,11 @@ module Lithic :TRANSACTION_AMOUNT, Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + CASH_AMOUNT = + T.let( + :CASH_AMOUNT, + Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) RISK_SCORE = T.let( :RISK_SCORE, diff --git a/rbi/lithic/models/auth_rules/v2_retrieve_features_params.rbi b/rbi/lithic/models/auth_rules/v2_retrieve_features_params.rbi new file mode 100644 index 00000000..be5a8ed8 --- /dev/null +++ b/rbi/lithic/models/auth_rules/v2_retrieve_features_params.rbi @@ -0,0 +1,54 @@ +# typed: strong + +module Lithic + module Models + module AuthRules + class V2RetrieveFeaturesParams < Lithic::Internal::Type::BaseModel + extend Lithic::Internal::Type::RequestParameters::Converter + include Lithic::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any( + Lithic::AuthRules::V2RetrieveFeaturesParams, + Lithic::Internal::AnyHash + ) + end + + sig { returns(T.nilable(String)) } + attr_reader :account_token + + sig { params(account_token: String).void } + attr_writer :account_token + + sig { returns(T.nilable(String)) } + attr_reader :card_token + + sig { params(card_token: String).void } + attr_writer :card_token + + sig do + params( + account_token: String, + card_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new(account_token: nil, card_token: nil, request_options: {}) + end + + sig do + override.returns( + { + account_token: String, + card_token: String, + request_options: Lithic::RequestOptions + } + ) + end + def to_hash + end + end + end + end +end diff --git a/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi b/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi new file mode 100644 index 00000000..7b124348 --- /dev/null +++ b/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi @@ -0,0 +1,443 @@ +# typed: strong + +module Lithic + module Models + module AuthRules + class V2RetrieveFeaturesResponse < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse, + Lithic::Internal::AnyHash + ) + end + + # Timestamp at which the Features were evaluated + sig { returns(Time) } + attr_accessor :evaluated + + # Calculated Features used for evaluation of the provided Auth Rule + sig do + returns( + T::Array[ + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature + ] + ) + end + attr_accessor :features + + sig do + params( + evaluated: Time, + features: + T::Array[ + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Timestamp at which the Features were evaluated + evaluated:, + # Calculated Features used for evaluation of the provided Auth Rule + features: + ) + end + + sig do + override.returns( + { + evaluated: Time, + features: + T::Array[ + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature + ] + } + ) + end + def to_hash + end + + class Feature < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature, + Lithic::Internal::AnyHash + ) + end + + sig do + returns( + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters + ) + end + attr_reader :filters + + sig do + params( + filters: + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::OrHash + ).void + end + attr_writer :filters + + # DEPRECATED: This has been deprecated in favor of the Trailing Window Objects + # + # The size of the trailing window to calculate Spend Velocity over in seconds. The + # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days). + sig do + returns( + Lithic::AuthRules::VelocityLimitParamsPeriodWindow::Variants + ) + end + attr_accessor :period + + # The scope the velocity is calculated for + sig do + returns( + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Scope::TaggedSymbol + ) + end + attr_accessor :scope + + sig do + returns( + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Value + ) + end + attr_reader :value + + sig do + params( + value: + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Value::OrHash + ).void + end + attr_writer :value + + sig do + params( + filters: + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::OrHash, + period: + T.any( + Integer, + Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow::OrSymbol, + Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::OrHash, + Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::OrHash, + Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::OrHash, + Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::OrHash, + Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::OrHash + ), + scope: + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Scope::OrSymbol, + value: + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Value::OrHash + ).returns(T.attached_class) + end + def self.new( + filters:, + # DEPRECATED: This has been deprecated in favor of the Trailing Window Objects + # + # The size of the trailing window to calculate Spend Velocity over in seconds. The + # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days). + period:, + # The scope the velocity is calculated for + scope:, + value: + ) + end + + sig do + override.returns( + { + filters: + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters, + period: + Lithic::AuthRules::VelocityLimitParamsPeriodWindow::Variants, + scope: + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Scope::TaggedSymbol, + value: + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Value + } + ) + end + def to_hash + end + + class Filters < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters, + Lithic::Internal::AnyHash + ) + end + + # ISO-3166-1 alpha-3 Country Codes to exclude from the velocity calculation. + # Transactions matching any of the provided will be excluded from the calculated + # velocity. + sig { returns(T.nilable(T::Array[String])) } + attr_accessor :exclude_countries + + # Merchant Category Codes to exclude from the velocity calculation. Transactions + # matching this MCC will be excluded from the calculated velocity. + sig { returns(T.nilable(T::Array[String])) } + attr_accessor :exclude_mccs + + # ISO-3166-1 alpha-3 Country Codes to include in the velocity calculation. + # Transactions not matching any of the provided will not be included in the + # calculated velocity. + sig { returns(T.nilable(T::Array[String])) } + attr_accessor :include_countries + + # Merchant Category Codes to include in the velocity calculation. Transactions not + # matching this MCC will not be included in the calculated velocity. + sig { returns(T.nilable(T::Array[String])) } + attr_accessor :include_mccs + + # PAN entry modes to include in the velocity calculation. Transactions not + # matching any of the provided will not be included in the calculated velocity. + sig do + returns( + T.nilable( + T::Array[ + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol + ] + ) + ) + end + attr_accessor :include_pan_entry_modes + + sig do + params( + exclude_countries: T.nilable(T::Array[String]), + exclude_mccs: T.nilable(T::Array[String]), + include_countries: T.nilable(T::Array[String]), + include_mccs: T.nilable(T::Array[String]), + include_pan_entry_modes: + T.nilable( + T::Array[ + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::OrSymbol + ] + ) + ).returns(T.attached_class) + end + def self.new( + # ISO-3166-1 alpha-3 Country Codes to exclude from the velocity calculation. + # Transactions matching any of the provided will be excluded from the calculated + # velocity. + exclude_countries: nil, + # Merchant Category Codes to exclude from the velocity calculation. Transactions + # matching this MCC will be excluded from the calculated velocity. + exclude_mccs: nil, + # ISO-3166-1 alpha-3 Country Codes to include in the velocity calculation. + # Transactions not matching any of the provided will not be included in the + # calculated velocity. + include_countries: nil, + # Merchant Category Codes to include in the velocity calculation. Transactions not + # matching this MCC will not be included in the calculated velocity. + include_mccs: nil, + # PAN entry modes to include in the velocity calculation. Transactions not + # matching any of the provided will not be included in the calculated velocity. + include_pan_entry_modes: nil + ) + end + + sig do + override.returns( + { + exclude_countries: T.nilable(T::Array[String]), + exclude_mccs: T.nilable(T::Array[String]), + include_countries: T.nilable(T::Array[String]), + include_mccs: T.nilable(T::Array[String]), + include_pan_entry_modes: + T.nilable( + T::Array[ + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol + ] + ) + } + ) + end + def to_hash + end + + module IncludePanEntryMode + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + AUTO_ENTRY = + T.let( + :AUTO_ENTRY, + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol + ) + BAR_CODE = + T.let( + :BAR_CODE, + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol + ) + CONTACTLESS = + T.let( + :CONTACTLESS, + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol + ) + CREDENTIAL_ON_FILE = + T.let( + :CREDENTIAL_ON_FILE, + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol + ) + ECOMMERCE = + T.let( + :ECOMMERCE, + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol + ) + ERROR_KEYED = + T.let( + :ERROR_KEYED, + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol + ) + ERROR_MAGNETIC_STRIPE = + T.let( + :ERROR_MAGNETIC_STRIPE, + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol + ) + ICC = + T.let( + :ICC, + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol + ) + KEY_ENTERED = + T.let( + :KEY_ENTERED, + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol + ) + MAGNETIC_STRIPE = + T.let( + :MAGNETIC_STRIPE, + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol + ) + MANUAL = + T.let( + :MANUAL, + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol + ) + OCR = + T.let( + :OCR, + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol + ) + SECURE_CARDLESS = + T.let( + :SECURE_CARDLESS, + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol + ) + UNSPECIFIED = + T.let( + :UNSPECIFIED, + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol + ) + UNKNOWN = + T.let( + :UNKNOWN, + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + # The scope the velocity is calculated for + module Scope + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Scope + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CARD = + T.let( + :CARD, + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Scope::TaggedSymbol + ) + ACCOUNT = + T.let( + :ACCOUNT, + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Scope::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Scope::TaggedSymbol + ] + ) + end + def self.values + end + end + + class Value < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Value, + Lithic::Internal::AnyHash + ) + end + + # Amount (in cents) for the given Auth Rule that is used as input for calculating + # the rule. For Velocity Limit rules this would be the calculated Velocity. For + # Conditional Rules using CARD*TRANSACTION_COUNT*\* this will be 0 + sig { returns(Integer) } + attr_accessor :amount + + # Number of velocity impacting transactions matching the given scope, period and + # filters + sig { returns(Integer) } + attr_accessor :count + + sig do + params(amount: Integer, count: Integer).returns(T.attached_class) + end + def self.new( + # Amount (in cents) for the given Auth Rule that is used as input for calculating + # the rule. For Velocity Limit rules this would be the calculated Velocity. For + # Conditional Rules using CARD*TRANSACTION_COUNT*\* this will be 0 + amount:, + # Number of velocity impacting transactions matching the given scope, period and + # filters + count: + ) + end + + sig { override.returns({ amount: Integer, count: Integer }) } + def to_hash + end + end + end + end + end + end +end diff --git a/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi b/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi index cfe65f5b..6cf6e34d 100644 --- a/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi @@ -74,6 +74,11 @@ module Lithic end attr_accessor :event_stream + # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # be modified or deleted by the user + sig { returns(T::Boolean) } + attr_accessor :lithic_managed + # Auth Rule Name sig { returns(T.nilable(String)) } attr_accessor :name @@ -129,6 +134,7 @@ module Lithic ), event_stream: Lithic::Models::AuthRules::V2RetrieveResponse::EventStream::OrSymbol, + lithic_managed: T::Boolean, name: T.nilable(String), program_level: T::Boolean, state: @@ -150,6 +156,9 @@ module Lithic draft_version:, # The event stream during which the rule will be evaluated. event_stream:, + # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # be modified or deleted by the user + lithic_managed:, # Auth Rule Name name:, # Whether the Auth Rule applies to all authorizations on the card program. @@ -188,6 +197,7 @@ module Lithic ), event_stream: Lithic::Models::AuthRules::V2RetrieveResponse::EventStream::TaggedSymbol, + lithic_managed: T::Boolean, name: T.nilable(String), program_level: T::Boolean, state: @@ -400,6 +410,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -513,6 +525,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -585,6 +599,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -660,6 +676,11 @@ module Lithic :TRANSACTION_AMOUNT, Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + CASH_AMOUNT = + T.let( + :CASH_AMOUNT, + Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) RISK_SCORE = T.let( :RISK_SCORE, @@ -1029,6 +1050,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -1142,6 +1165,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -1214,6 +1239,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -1289,6 +1316,11 @@ module Lithic :TRANSACTION_AMOUNT, Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + CASH_AMOUNT = + T.let( + :CASH_AMOUNT, + Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) RISK_SCORE = T.let( :RISK_SCORE, diff --git a/rbi/lithic/models/auth_rules/v2_update_response.rbi b/rbi/lithic/models/auth_rules/v2_update_response.rbi index 471d0ec1..c0332b91 100644 --- a/rbi/lithic/models/auth_rules/v2_update_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_update_response.rbi @@ -72,6 +72,11 @@ module Lithic end attr_accessor :event_stream + # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # be modified or deleted by the user + sig { returns(T::Boolean) } + attr_accessor :lithic_managed + # Auth Rule Name sig { returns(T.nilable(String)) } attr_accessor :name @@ -127,6 +132,7 @@ module Lithic ), event_stream: Lithic::Models::AuthRules::V2UpdateResponse::EventStream::OrSymbol, + lithic_managed: T::Boolean, name: T.nilable(String), program_level: T::Boolean, state: Lithic::Models::AuthRules::V2UpdateResponse::State::OrSymbol, @@ -147,6 +153,9 @@ module Lithic draft_version:, # The event stream during which the rule will be evaluated. event_stream:, + # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot + # be modified or deleted by the user + lithic_managed:, # Auth Rule Name name:, # Whether the Auth Rule applies to all authorizations on the card program. @@ -185,6 +194,7 @@ module Lithic ), event_stream: Lithic::Models::AuthRules::V2UpdateResponse::EventStream::TaggedSymbol, + lithic_managed: T::Boolean, name: T.nilable(String), program_level: T::Boolean, state: @@ -397,6 +407,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -510,6 +522,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -582,6 +596,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -657,6 +673,11 @@ module Lithic :TRANSACTION_AMOUNT, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + CASH_AMOUNT = + T.let( + :CASH_AMOUNT, + Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) RISK_SCORE = T.let( :RISK_SCORE, @@ -1026,6 +1047,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -1139,6 +1162,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -1211,6 +1236,8 @@ module Lithic # fee field in the settlement/cardholder billing currency. This is the amount # the issuer should authorize against unless the issuer is paying the acquirer # fee on behalf of the cardholder. + # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This + # represents the amount of cash being withdrawn or advanced. # - `RISK_SCORE`: Network-provided score assessing risk level associated with a # given authorization. Scores are on a range of 0-999, with 0 representing the # lowest risk and 999 representing the highest risk. For Visa transactions, @@ -1286,6 +1313,11 @@ module Lithic :TRANSACTION_AMOUNT, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + CASH_AMOUNT = + T.let( + :CASH_AMOUNT, + Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) RISK_SCORE = T.let( :RISK_SCORE, diff --git a/rbi/lithic/models/auth_rules/velocity_limit_params.rbi b/rbi/lithic/models/auth_rules/velocity_limit_params.rbi index 1cfe43f1..ec212024 100644 --- a/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +++ b/rbi/lithic/models/auth_rules/velocity_limit_params.rbi @@ -22,6 +22,8 @@ module Lithic end attr_writer :filters + # DEPRECATED: This has been deprecated in favor of the Trailing Window Objects + # # The size of the trailing window to calculate Spend Velocity over in seconds. The # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days). sig do @@ -39,6 +41,7 @@ module Lithic end attr_accessor :period + # The scope the velocity is calculated for sig { returns(Lithic::AuthRules::VelocityLimitParams::Scope::OrSymbol) } attr_accessor :scope @@ -76,9 +79,12 @@ module Lithic end def self.new( filters:, + # DEPRECATED: This has been deprecated in favor of the Trailing Window Objects + # # The size of the trailing window to calculate Spend Velocity over in seconds. The # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days). period:, + # The scope the velocity is calculated for scope:, # The maximum amount of spend velocity allowed in the period in minor units (the # smallest unit of a currency, e.g. cents for USD). Transactions exceeding this @@ -147,12 +153,31 @@ module Lithic sig { returns(T.nilable(T::Array[String])) } attr_accessor :include_mccs + # PAN entry modes to include in the velocity calculation. Transactions not + # matching any of the provided will not be included in the calculated velocity. + sig do + returns( + T.nilable( + T::Array[ + Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::OrSymbol + ] + ) + ) + end + attr_accessor :include_pan_entry_modes + sig do params( exclude_countries: T.nilable(T::Array[String]), exclude_mccs: T.nilable(T::Array[String]), include_countries: T.nilable(T::Array[String]), - include_mccs: T.nilable(T::Array[String]) + include_mccs: T.nilable(T::Array[String]), + include_pan_entry_modes: + T.nilable( + T::Array[ + Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::OrSymbol + ] + ) ).returns(T.attached_class) end def self.new( @@ -169,7 +194,10 @@ module Lithic include_countries: nil, # Merchant Category Codes to include in the velocity calculation. Transactions not # matching this MCC will not be included in the calculated velocity. - include_mccs: nil + include_mccs: nil, + # PAN entry modes to include in the velocity calculation. Transactions not + # matching any of the provided will not be included in the calculated velocity. + include_pan_entry_modes: nil ) end @@ -179,14 +207,120 @@ module Lithic exclude_countries: T.nilable(T::Array[String]), exclude_mccs: T.nilable(T::Array[String]), include_countries: T.nilable(T::Array[String]), - include_mccs: T.nilable(T::Array[String]) + include_mccs: T.nilable(T::Array[String]), + include_pan_entry_modes: + T.nilable( + T::Array[ + Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::OrSymbol + ] + ) } ) end def to_hash end + + module IncludePanEntryMode + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + AUTO_ENTRY = + T.let( + :AUTO_ENTRY, + Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol + ) + BAR_CODE = + T.let( + :BAR_CODE, + Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol + ) + CONTACTLESS = + T.let( + :CONTACTLESS, + Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol + ) + CREDENTIAL_ON_FILE = + T.let( + :CREDENTIAL_ON_FILE, + Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol + ) + ECOMMERCE = + T.let( + :ECOMMERCE, + Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol + ) + ERROR_KEYED = + T.let( + :ERROR_KEYED, + Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol + ) + ERROR_MAGNETIC_STRIPE = + T.let( + :ERROR_MAGNETIC_STRIPE, + Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol + ) + ICC = + T.let( + :ICC, + Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol + ) + KEY_ENTERED = + T.let( + :KEY_ENTERED, + Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol + ) + MAGNETIC_STRIPE = + T.let( + :MAGNETIC_STRIPE, + Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol + ) + MANUAL = + T.let( + :MANUAL, + Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol + ) + OCR = + T.let( + :OCR, + Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol + ) + SECURE_CARDLESS = + T.let( + :SECURE_CARDLESS, + Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol + ) + UNSPECIFIED = + T.let( + :UNSPECIFIED, + Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol + ) + UNKNOWN = + T.let( + :UNKNOWN, + Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol + ] + ) + end + def self.values + end + end end + # The scope the velocity is calculated for module Scope extend Lithic::Internal::Type::Enum diff --git a/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi b/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi index 7955e5a0..6f2776c9 100644 --- a/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +++ b/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi @@ -3,6 +3,8 @@ module Lithic module Models module AuthRules + # DEPRECATED: This has been deprecated in favor of the Trailing Window Objects + # # The size of the trailing window to calculate Spend Velocity over in seconds. The # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days). module VelocityLimitParamsPeriodWindow @@ -21,6 +23,8 @@ module Lithic ) end + # DEPRECATED: This has been deprecated in favor of the other Fixed Window Objects + # # The window of time to calculate Spend Velocity over. # # - `DAY`: Velocity over the current day since midnight Eastern Time. diff --git a/rbi/lithic/resources/auth_rules/v2.rbi b/rbi/lithic/resources/auth_rules/v2.rbi index c6a405b3..66fda53b 100644 --- a/rbi/lithic/resources/auth_rules/v2.rbi +++ b/rbi/lithic/resources/auth_rules/v2.rbi @@ -308,6 +308,32 @@ module Lithic ) end + # Fetches the current calculated Feature values for the given Auth Rule + # + # This only calculates the features for the active version. + # + # - VelocityLimit Rules calculates the current Velocity Feature data. This + # requires a `card_token` or `account_token` matching what the rule is Scoped + # to. + # - ConditionalBlock Rules calculates the CARD*TRANSACTION_COUNT*\* attributes on + # the rule. This requires a `card_token` + sig do + params( + auth_rule_token: String, + account_token: String, + card_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(Lithic::Models::AuthRules::V2RetrieveFeaturesResponse) + end + def retrieve_features( + # Globally unique identifier for the Auth Rule. + auth_rule_token, + account_token: nil, + card_token: nil, + request_options: {} + ) + end + # Retrieves a performance report for an Auth rule containing daily statistics and # evaluation outcomes. # diff --git a/sig/lithic/models/auth_rules/v2_apply_response.rbs b/sig/lithic/models/auth_rules/v2_apply_response.rbs index f0e8e3b4..3436ed82 100644 --- a/sig/lithic/models/auth_rules/v2_apply_response.rbs +++ b/sig/lithic/models/auth_rules/v2_apply_response.rbs @@ -10,6 +10,7 @@ module Lithic current_version: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion?, draft_version: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion?, event_stream: Lithic::Models::AuthRules::V2ApplyResponse::event_stream, + lithic_managed: bool, name: String?, program_level: bool, state: Lithic::Models::AuthRules::V2ApplyResponse::state, @@ -32,6 +33,8 @@ module Lithic attr_accessor event_stream: Lithic::Models::AuthRules::V2ApplyResponse::event_stream + attr_accessor lithic_managed: bool + attr_accessor name: String? attr_accessor program_level: bool @@ -52,6 +55,7 @@ module Lithic current_version: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion?, draft_version: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion?, event_stream: Lithic::Models::AuthRules::V2ApplyResponse::event_stream, + lithic_managed: bool, name: String?, program_level: bool, state: Lithic::Models::AuthRules::V2ApplyResponse::state, @@ -67,6 +71,7 @@ module Lithic current_version: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion?, draft_version: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion?, event_stream: Lithic::Models::AuthRules::V2ApplyResponse::event_stream, + lithic_managed: bool, name: String?, program_level: bool, state: Lithic::Models::AuthRules::V2ApplyResponse::state, @@ -184,6 +189,7 @@ module Lithic | :LIABILITY_SHIFT | :PAN_ENTRY_MODE | :TRANSACTION_AMOUNT + | :CASH_AMOUNT | :RISK_SCORE | :CARD_TRANSACTION_COUNT_15M | :CARD_TRANSACTION_COUNT_1H @@ -205,6 +211,7 @@ module Lithic LIABILITY_SHIFT: :LIABILITY_SHIFT PAN_ENTRY_MODE: :PAN_ENTRY_MODE TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT + CASH_AMOUNT: :CASH_AMOUNT RISK_SCORE: :RISK_SCORE CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H @@ -373,6 +380,7 @@ module Lithic | :LIABILITY_SHIFT | :PAN_ENTRY_MODE | :TRANSACTION_AMOUNT + | :CASH_AMOUNT | :RISK_SCORE | :CARD_TRANSACTION_COUNT_15M | :CARD_TRANSACTION_COUNT_1H @@ -394,6 +402,7 @@ module Lithic LIABILITY_SHIFT: :LIABILITY_SHIFT PAN_ENTRY_MODE: :PAN_ENTRY_MODE TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT + CASH_AMOUNT: :CASH_AMOUNT RISK_SCORE: :RISK_SCORE CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H diff --git a/sig/lithic/models/auth_rules/v2_create_params.rbs b/sig/lithic/models/auth_rules/v2_create_params.rbs index 5c9c81eb..16a692b7 100644 --- a/sig/lithic/models/auth_rules/v2_create_params.rbs +++ b/sig/lithic/models/auth_rules/v2_create_params.rbs @@ -181,6 +181,7 @@ module Lithic | :LIABILITY_SHIFT | :PAN_ENTRY_MODE | :TRANSACTION_AMOUNT + | :CASH_AMOUNT | :RISK_SCORE | :CARD_TRANSACTION_COUNT_15M | :CARD_TRANSACTION_COUNT_1H @@ -202,6 +203,7 @@ module Lithic LIABILITY_SHIFT: :LIABILITY_SHIFT PAN_ENTRY_MODE: :PAN_ENTRY_MODE TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT + CASH_AMOUNT: :CASH_AMOUNT RISK_SCORE: :RISK_SCORE CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H diff --git a/sig/lithic/models/auth_rules/v2_create_response.rbs b/sig/lithic/models/auth_rules/v2_create_response.rbs index 120c87f0..d5298590 100644 --- a/sig/lithic/models/auth_rules/v2_create_response.rbs +++ b/sig/lithic/models/auth_rules/v2_create_response.rbs @@ -10,6 +10,7 @@ module Lithic current_version: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion?, draft_version: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion?, event_stream: Lithic::Models::AuthRules::V2CreateResponse::event_stream, + lithic_managed: bool, name: String?, program_level: bool, state: Lithic::Models::AuthRules::V2CreateResponse::state, @@ -32,6 +33,8 @@ module Lithic attr_accessor event_stream: Lithic::Models::AuthRules::V2CreateResponse::event_stream + attr_accessor lithic_managed: bool + attr_accessor name: String? attr_accessor program_level: bool @@ -52,6 +55,7 @@ module Lithic current_version: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion?, draft_version: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion?, event_stream: Lithic::Models::AuthRules::V2CreateResponse::event_stream, + lithic_managed: bool, name: String?, program_level: bool, state: Lithic::Models::AuthRules::V2CreateResponse::state, @@ -67,6 +71,7 @@ module Lithic current_version: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion?, draft_version: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion?, event_stream: Lithic::Models::AuthRules::V2CreateResponse::event_stream, + lithic_managed: bool, name: String?, program_level: bool, state: Lithic::Models::AuthRules::V2CreateResponse::state, @@ -184,6 +189,7 @@ module Lithic | :LIABILITY_SHIFT | :PAN_ENTRY_MODE | :TRANSACTION_AMOUNT + | :CASH_AMOUNT | :RISK_SCORE | :CARD_TRANSACTION_COUNT_15M | :CARD_TRANSACTION_COUNT_1H @@ -205,6 +211,7 @@ module Lithic LIABILITY_SHIFT: :LIABILITY_SHIFT PAN_ENTRY_MODE: :PAN_ENTRY_MODE TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT + CASH_AMOUNT: :CASH_AMOUNT RISK_SCORE: :RISK_SCORE CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H @@ -373,6 +380,7 @@ module Lithic | :LIABILITY_SHIFT | :PAN_ENTRY_MODE | :TRANSACTION_AMOUNT + | :CASH_AMOUNT | :RISK_SCORE | :CARD_TRANSACTION_COUNT_15M | :CARD_TRANSACTION_COUNT_1H @@ -394,6 +402,7 @@ module Lithic LIABILITY_SHIFT: :LIABILITY_SHIFT PAN_ENTRY_MODE: :PAN_ENTRY_MODE TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT + CASH_AMOUNT: :CASH_AMOUNT RISK_SCORE: :RISK_SCORE CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H diff --git a/sig/lithic/models/auth_rules/v2_draft_params.rbs b/sig/lithic/models/auth_rules/v2_draft_params.rbs index 7ed936aa..b473dff0 100644 --- a/sig/lithic/models/auth_rules/v2_draft_params.rbs +++ b/sig/lithic/models/auth_rules/v2_draft_params.rbs @@ -110,6 +110,7 @@ module Lithic | :LIABILITY_SHIFT | :PAN_ENTRY_MODE | :TRANSACTION_AMOUNT + | :CASH_AMOUNT | :RISK_SCORE | :CARD_TRANSACTION_COUNT_15M | :CARD_TRANSACTION_COUNT_1H @@ -131,6 +132,7 @@ module Lithic LIABILITY_SHIFT: :LIABILITY_SHIFT PAN_ENTRY_MODE: :PAN_ENTRY_MODE TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT + CASH_AMOUNT: :CASH_AMOUNT RISK_SCORE: :RISK_SCORE CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H diff --git a/sig/lithic/models/auth_rules/v2_draft_response.rbs b/sig/lithic/models/auth_rules/v2_draft_response.rbs index 6472ede4..8c8ec196 100644 --- a/sig/lithic/models/auth_rules/v2_draft_response.rbs +++ b/sig/lithic/models/auth_rules/v2_draft_response.rbs @@ -10,6 +10,7 @@ module Lithic current_version: Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion?, draft_version: Lithic::Models::AuthRules::V2DraftResponse::DraftVersion?, event_stream: Lithic::Models::AuthRules::V2DraftResponse::event_stream, + lithic_managed: bool, name: String?, program_level: bool, state: Lithic::Models::AuthRules::V2DraftResponse::state, @@ -32,6 +33,8 @@ module Lithic attr_accessor event_stream: Lithic::Models::AuthRules::V2DraftResponse::event_stream + attr_accessor lithic_managed: bool + attr_accessor name: String? attr_accessor program_level: bool @@ -52,6 +55,7 @@ module Lithic current_version: Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion?, draft_version: Lithic::Models::AuthRules::V2DraftResponse::DraftVersion?, event_stream: Lithic::Models::AuthRules::V2DraftResponse::event_stream, + lithic_managed: bool, name: String?, program_level: bool, state: Lithic::Models::AuthRules::V2DraftResponse::state, @@ -67,6 +71,7 @@ module Lithic current_version: Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion?, draft_version: Lithic::Models::AuthRules::V2DraftResponse::DraftVersion?, event_stream: Lithic::Models::AuthRules::V2DraftResponse::event_stream, + lithic_managed: bool, name: String?, program_level: bool, state: Lithic::Models::AuthRules::V2DraftResponse::state, @@ -184,6 +189,7 @@ module Lithic | :LIABILITY_SHIFT | :PAN_ENTRY_MODE | :TRANSACTION_AMOUNT + | :CASH_AMOUNT | :RISK_SCORE | :CARD_TRANSACTION_COUNT_15M | :CARD_TRANSACTION_COUNT_1H @@ -205,6 +211,7 @@ module Lithic LIABILITY_SHIFT: :LIABILITY_SHIFT PAN_ENTRY_MODE: :PAN_ENTRY_MODE TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT + CASH_AMOUNT: :CASH_AMOUNT RISK_SCORE: :RISK_SCORE CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H @@ -373,6 +380,7 @@ module Lithic | :LIABILITY_SHIFT | :PAN_ENTRY_MODE | :TRANSACTION_AMOUNT + | :CASH_AMOUNT | :RISK_SCORE | :CARD_TRANSACTION_COUNT_15M | :CARD_TRANSACTION_COUNT_1H @@ -394,6 +402,7 @@ module Lithic LIABILITY_SHIFT: :LIABILITY_SHIFT PAN_ENTRY_MODE: :PAN_ENTRY_MODE TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT + CASH_AMOUNT: :CASH_AMOUNT RISK_SCORE: :RISK_SCORE CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H diff --git a/sig/lithic/models/auth_rules/v2_list_response.rbs b/sig/lithic/models/auth_rules/v2_list_response.rbs index b9e64e08..2d4ce42c 100644 --- a/sig/lithic/models/auth_rules/v2_list_response.rbs +++ b/sig/lithic/models/auth_rules/v2_list_response.rbs @@ -10,6 +10,7 @@ module Lithic current_version: Lithic::Models::AuthRules::V2ListResponse::CurrentVersion?, draft_version: Lithic::Models::AuthRules::V2ListResponse::DraftVersion?, event_stream: Lithic::Models::AuthRules::V2ListResponse::event_stream, + lithic_managed: bool, name: String?, program_level: bool, state: Lithic::Models::AuthRules::V2ListResponse::state, @@ -32,6 +33,8 @@ module Lithic attr_accessor event_stream: Lithic::Models::AuthRules::V2ListResponse::event_stream + attr_accessor lithic_managed: bool + attr_accessor name: String? attr_accessor program_level: bool @@ -52,6 +55,7 @@ module Lithic current_version: Lithic::Models::AuthRules::V2ListResponse::CurrentVersion?, draft_version: Lithic::Models::AuthRules::V2ListResponse::DraftVersion?, event_stream: Lithic::Models::AuthRules::V2ListResponse::event_stream, + lithic_managed: bool, name: String?, program_level: bool, state: Lithic::Models::AuthRules::V2ListResponse::state, @@ -67,6 +71,7 @@ module Lithic current_version: Lithic::Models::AuthRules::V2ListResponse::CurrentVersion?, draft_version: Lithic::Models::AuthRules::V2ListResponse::DraftVersion?, event_stream: Lithic::Models::AuthRules::V2ListResponse::event_stream, + lithic_managed: bool, name: String?, program_level: bool, state: Lithic::Models::AuthRules::V2ListResponse::state, @@ -184,6 +189,7 @@ module Lithic | :LIABILITY_SHIFT | :PAN_ENTRY_MODE | :TRANSACTION_AMOUNT + | :CASH_AMOUNT | :RISK_SCORE | :CARD_TRANSACTION_COUNT_15M | :CARD_TRANSACTION_COUNT_1H @@ -205,6 +211,7 @@ module Lithic LIABILITY_SHIFT: :LIABILITY_SHIFT PAN_ENTRY_MODE: :PAN_ENTRY_MODE TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT + CASH_AMOUNT: :CASH_AMOUNT RISK_SCORE: :RISK_SCORE CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H @@ -373,6 +380,7 @@ module Lithic | :LIABILITY_SHIFT | :PAN_ENTRY_MODE | :TRANSACTION_AMOUNT + | :CASH_AMOUNT | :RISK_SCORE | :CARD_TRANSACTION_COUNT_15M | :CARD_TRANSACTION_COUNT_1H @@ -394,6 +402,7 @@ module Lithic LIABILITY_SHIFT: :LIABILITY_SHIFT PAN_ENTRY_MODE: :PAN_ENTRY_MODE TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT + CASH_AMOUNT: :CASH_AMOUNT RISK_SCORE: :RISK_SCORE CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H diff --git a/sig/lithic/models/auth_rules/v2_promote_response.rbs b/sig/lithic/models/auth_rules/v2_promote_response.rbs index 3a4a95b5..a09ff189 100644 --- a/sig/lithic/models/auth_rules/v2_promote_response.rbs +++ b/sig/lithic/models/auth_rules/v2_promote_response.rbs @@ -10,6 +10,7 @@ module Lithic current_version: Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion?, draft_version: Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion?, event_stream: Lithic::Models::AuthRules::V2PromoteResponse::event_stream, + lithic_managed: bool, name: String?, program_level: bool, state: Lithic::Models::AuthRules::V2PromoteResponse::state, @@ -32,6 +33,8 @@ module Lithic attr_accessor event_stream: Lithic::Models::AuthRules::V2PromoteResponse::event_stream + attr_accessor lithic_managed: bool + attr_accessor name: String? attr_accessor program_level: bool @@ -52,6 +55,7 @@ module Lithic current_version: Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion?, draft_version: Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion?, event_stream: Lithic::Models::AuthRules::V2PromoteResponse::event_stream, + lithic_managed: bool, name: String?, program_level: bool, state: Lithic::Models::AuthRules::V2PromoteResponse::state, @@ -67,6 +71,7 @@ module Lithic current_version: Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion?, draft_version: Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion?, event_stream: Lithic::Models::AuthRules::V2PromoteResponse::event_stream, + lithic_managed: bool, name: String?, program_level: bool, state: Lithic::Models::AuthRules::V2PromoteResponse::state, @@ -184,6 +189,7 @@ module Lithic | :LIABILITY_SHIFT | :PAN_ENTRY_MODE | :TRANSACTION_AMOUNT + | :CASH_AMOUNT | :RISK_SCORE | :CARD_TRANSACTION_COUNT_15M | :CARD_TRANSACTION_COUNT_1H @@ -205,6 +211,7 @@ module Lithic LIABILITY_SHIFT: :LIABILITY_SHIFT PAN_ENTRY_MODE: :PAN_ENTRY_MODE TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT + CASH_AMOUNT: :CASH_AMOUNT RISK_SCORE: :RISK_SCORE CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H @@ -373,6 +380,7 @@ module Lithic | :LIABILITY_SHIFT | :PAN_ENTRY_MODE | :TRANSACTION_AMOUNT + | :CASH_AMOUNT | :RISK_SCORE | :CARD_TRANSACTION_COUNT_15M | :CARD_TRANSACTION_COUNT_1H @@ -394,6 +402,7 @@ module Lithic LIABILITY_SHIFT: :LIABILITY_SHIFT PAN_ENTRY_MODE: :PAN_ENTRY_MODE TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT + CASH_AMOUNT: :CASH_AMOUNT RISK_SCORE: :RISK_SCORE CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H diff --git a/sig/lithic/models/auth_rules/v2_retrieve_features_params.rbs b/sig/lithic/models/auth_rules/v2_retrieve_features_params.rbs new file mode 100644 index 00000000..459e530a --- /dev/null +++ b/sig/lithic/models/auth_rules/v2_retrieve_features_params.rbs @@ -0,0 +1,34 @@ +module Lithic + module Models + module AuthRules + type v2_retrieve_features_params = + { account_token: String, card_token: String } + & Lithic::Internal::Type::request_parameters + + class V2RetrieveFeaturesParams < Lithic::Internal::Type::BaseModel + extend Lithic::Internal::Type::RequestParameters::Converter + include Lithic::Internal::Type::RequestParameters + + attr_reader account_token: String? + + def account_token=: (String) -> String + + attr_reader card_token: String? + + def card_token=: (String) -> String + + def initialize: ( + ?account_token: String, + ?card_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + account_token: String, + card_token: String, + request_options: Lithic::RequestOptions + } + end + end + end +end diff --git a/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs b/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs new file mode 100644 index 00000000..8c2ab7fd --- /dev/null +++ b/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs @@ -0,0 +1,158 @@ +module Lithic + module Models + module AuthRules + type v2_retrieve_features_response = + { + evaluated: Time, + features: ::Array[Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature] + } + + class V2RetrieveFeaturesResponse < Lithic::Internal::Type::BaseModel + attr_accessor evaluated: Time + + attr_accessor features: ::Array[Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature] + + def initialize: ( + evaluated: Time, + features: ::Array[Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature] + ) -> void + + def to_hash: -> { + evaluated: Time, + features: ::Array[Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature] + } + + type feature = + { + filters: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters, + period: Lithic::Models::AuthRules::velocity_limit_params_period_window, + scope: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::scope, + value: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Value + } + + class Feature < Lithic::Internal::Type::BaseModel + attr_accessor filters: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters + + attr_accessor period: Lithic::Models::AuthRules::velocity_limit_params_period_window + + attr_accessor scope: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::scope + + attr_accessor value: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Value + + def initialize: ( + filters: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters, + period: Lithic::Models::AuthRules::velocity_limit_params_period_window, + scope: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::scope, + value: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Value + ) -> void + + def to_hash: -> { + filters: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters, + period: Lithic::Models::AuthRules::velocity_limit_params_period_window, + scope: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::scope, + value: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Value + } + + type filters = + { + exclude_countries: ::Array[String]?, + exclude_mccs: ::Array[String]?, + include_countries: ::Array[String]?, + include_mccs: ::Array[String]?, + include_pan_entry_modes: ::Array[Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::include_pan_entry_mode]? + } + + class Filters < Lithic::Internal::Type::BaseModel + attr_accessor exclude_countries: ::Array[String]? + + attr_accessor exclude_mccs: ::Array[String]? + + attr_accessor include_countries: ::Array[String]? + + attr_accessor include_mccs: ::Array[String]? + + attr_accessor include_pan_entry_modes: ::Array[Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::include_pan_entry_mode]? + + def initialize: ( + ?exclude_countries: ::Array[String]?, + ?exclude_mccs: ::Array[String]?, + ?include_countries: ::Array[String]?, + ?include_mccs: ::Array[String]?, + ?include_pan_entry_modes: ::Array[Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::include_pan_entry_mode]? + ) -> void + + def to_hash: -> { + exclude_countries: ::Array[String]?, + exclude_mccs: ::Array[String]?, + include_countries: ::Array[String]?, + include_mccs: ::Array[String]?, + include_pan_entry_modes: ::Array[Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::include_pan_entry_mode]? + } + + type include_pan_entry_mode = + :AUTO_ENTRY + | :BAR_CODE + | :CONTACTLESS + | :CREDENTIAL_ON_FILE + | :ECOMMERCE + | :ERROR_KEYED + | :ERROR_MAGNETIC_STRIPE + | :ICC + | :KEY_ENTERED + | :MAGNETIC_STRIPE + | :MANUAL + | :OCR + | :SECURE_CARDLESS + | :UNSPECIFIED + | :UNKNOWN + + module IncludePanEntryMode + extend Lithic::Internal::Type::Enum + + AUTO_ENTRY: :AUTO_ENTRY + BAR_CODE: :BAR_CODE + CONTACTLESS: :CONTACTLESS + CREDENTIAL_ON_FILE: :CREDENTIAL_ON_FILE + ECOMMERCE: :ECOMMERCE + ERROR_KEYED: :ERROR_KEYED + ERROR_MAGNETIC_STRIPE: :ERROR_MAGNETIC_STRIPE + ICC: :ICC + KEY_ENTERED: :KEY_ENTERED + MAGNETIC_STRIPE: :MAGNETIC_STRIPE + MANUAL: :MANUAL + OCR: :OCR + SECURE_CARDLESS: :SECURE_CARDLESS + UNSPECIFIED: :UNSPECIFIED + UNKNOWN: :UNKNOWN + + def self?.values: -> ::Array[Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::include_pan_entry_mode] + end + end + + type scope = :CARD | :ACCOUNT + + module Scope + extend Lithic::Internal::Type::Enum + + CARD: :CARD + ACCOUNT: :ACCOUNT + + def self?.values: -> ::Array[Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::scope] + end + + type value = { amount: Integer, count: Integer } + + class Value < Lithic::Internal::Type::BaseModel + attr_accessor amount: Integer + + attr_accessor count: Integer + + def initialize: (amount: Integer, count: Integer) -> void + + def to_hash: -> { amount: Integer, count: Integer } + end + end + end + end + end +end diff --git a/sig/lithic/models/auth_rules/v2_retrieve_response.rbs b/sig/lithic/models/auth_rules/v2_retrieve_response.rbs index 8484a127..1e0fbb10 100644 --- a/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +++ b/sig/lithic/models/auth_rules/v2_retrieve_response.rbs @@ -10,6 +10,7 @@ module Lithic current_version: Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion?, draft_version: Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion?, event_stream: Lithic::Models::AuthRules::V2RetrieveResponse::event_stream, + lithic_managed: bool, name: String?, program_level: bool, state: Lithic::Models::AuthRules::V2RetrieveResponse::state, @@ -32,6 +33,8 @@ module Lithic attr_accessor event_stream: Lithic::Models::AuthRules::V2RetrieveResponse::event_stream + attr_accessor lithic_managed: bool + attr_accessor name: String? attr_accessor program_level: bool @@ -52,6 +55,7 @@ module Lithic current_version: Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion?, draft_version: Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion?, event_stream: Lithic::Models::AuthRules::V2RetrieveResponse::event_stream, + lithic_managed: bool, name: String?, program_level: bool, state: Lithic::Models::AuthRules::V2RetrieveResponse::state, @@ -67,6 +71,7 @@ module Lithic current_version: Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion?, draft_version: Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion?, event_stream: Lithic::Models::AuthRules::V2RetrieveResponse::event_stream, + lithic_managed: bool, name: String?, program_level: bool, state: Lithic::Models::AuthRules::V2RetrieveResponse::state, @@ -184,6 +189,7 @@ module Lithic | :LIABILITY_SHIFT | :PAN_ENTRY_MODE | :TRANSACTION_AMOUNT + | :CASH_AMOUNT | :RISK_SCORE | :CARD_TRANSACTION_COUNT_15M | :CARD_TRANSACTION_COUNT_1H @@ -205,6 +211,7 @@ module Lithic LIABILITY_SHIFT: :LIABILITY_SHIFT PAN_ENTRY_MODE: :PAN_ENTRY_MODE TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT + CASH_AMOUNT: :CASH_AMOUNT RISK_SCORE: :RISK_SCORE CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H @@ -373,6 +380,7 @@ module Lithic | :LIABILITY_SHIFT | :PAN_ENTRY_MODE | :TRANSACTION_AMOUNT + | :CASH_AMOUNT | :RISK_SCORE | :CARD_TRANSACTION_COUNT_15M | :CARD_TRANSACTION_COUNT_1H @@ -394,6 +402,7 @@ module Lithic LIABILITY_SHIFT: :LIABILITY_SHIFT PAN_ENTRY_MODE: :PAN_ENTRY_MODE TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT + CASH_AMOUNT: :CASH_AMOUNT RISK_SCORE: :RISK_SCORE CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H diff --git a/sig/lithic/models/auth_rules/v2_update_response.rbs b/sig/lithic/models/auth_rules/v2_update_response.rbs index dce3f2a3..fe7ccf1b 100644 --- a/sig/lithic/models/auth_rules/v2_update_response.rbs +++ b/sig/lithic/models/auth_rules/v2_update_response.rbs @@ -10,6 +10,7 @@ module Lithic current_version: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion?, draft_version: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion?, event_stream: Lithic::Models::AuthRules::V2UpdateResponse::event_stream, + lithic_managed: bool, name: String?, program_level: bool, state: Lithic::Models::AuthRules::V2UpdateResponse::state, @@ -32,6 +33,8 @@ module Lithic attr_accessor event_stream: Lithic::Models::AuthRules::V2UpdateResponse::event_stream + attr_accessor lithic_managed: bool + attr_accessor name: String? attr_accessor program_level: bool @@ -52,6 +55,7 @@ module Lithic current_version: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion?, draft_version: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion?, event_stream: Lithic::Models::AuthRules::V2UpdateResponse::event_stream, + lithic_managed: bool, name: String?, program_level: bool, state: Lithic::Models::AuthRules::V2UpdateResponse::state, @@ -67,6 +71,7 @@ module Lithic current_version: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion?, draft_version: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion?, event_stream: Lithic::Models::AuthRules::V2UpdateResponse::event_stream, + lithic_managed: bool, name: String?, program_level: bool, state: Lithic::Models::AuthRules::V2UpdateResponse::state, @@ -184,6 +189,7 @@ module Lithic | :LIABILITY_SHIFT | :PAN_ENTRY_MODE | :TRANSACTION_AMOUNT + | :CASH_AMOUNT | :RISK_SCORE | :CARD_TRANSACTION_COUNT_15M | :CARD_TRANSACTION_COUNT_1H @@ -205,6 +211,7 @@ module Lithic LIABILITY_SHIFT: :LIABILITY_SHIFT PAN_ENTRY_MODE: :PAN_ENTRY_MODE TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT + CASH_AMOUNT: :CASH_AMOUNT RISK_SCORE: :RISK_SCORE CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H @@ -373,6 +380,7 @@ module Lithic | :LIABILITY_SHIFT | :PAN_ENTRY_MODE | :TRANSACTION_AMOUNT + | :CASH_AMOUNT | :RISK_SCORE | :CARD_TRANSACTION_COUNT_15M | :CARD_TRANSACTION_COUNT_1H @@ -394,6 +402,7 @@ module Lithic LIABILITY_SHIFT: :LIABILITY_SHIFT PAN_ENTRY_MODE: :PAN_ENTRY_MODE TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT + CASH_AMOUNT: :CASH_AMOUNT RISK_SCORE: :RISK_SCORE CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H diff --git a/sig/lithic/models/auth_rules/velocity_limit_params.rbs b/sig/lithic/models/auth_rules/velocity_limit_params.rbs index dd20cee8..42df5722 100644 --- a/sig/lithic/models/auth_rules/velocity_limit_params.rbs +++ b/sig/lithic/models/auth_rules/velocity_limit_params.rbs @@ -42,7 +42,8 @@ module Lithic exclude_countries: ::Array[String]?, exclude_mccs: ::Array[String]?, include_countries: ::Array[String]?, - include_mccs: ::Array[String]? + include_mccs: ::Array[String]?, + include_pan_entry_modes: ::Array[Lithic::Models::AuthRules::VelocityLimitParams::Filters::include_pan_entry_mode]? } class Filters < Lithic::Internal::Type::BaseModel @@ -54,19 +55,62 @@ module Lithic attr_accessor include_mccs: ::Array[String]? + attr_accessor include_pan_entry_modes: ::Array[Lithic::Models::AuthRules::VelocityLimitParams::Filters::include_pan_entry_mode]? + def initialize: ( ?exclude_countries: ::Array[String]?, ?exclude_mccs: ::Array[String]?, ?include_countries: ::Array[String]?, - ?include_mccs: ::Array[String]? + ?include_mccs: ::Array[String]?, + ?include_pan_entry_modes: ::Array[Lithic::Models::AuthRules::VelocityLimitParams::Filters::include_pan_entry_mode]? ) -> void def to_hash: -> { exclude_countries: ::Array[String]?, exclude_mccs: ::Array[String]?, include_countries: ::Array[String]?, - include_mccs: ::Array[String]? + include_mccs: ::Array[String]?, + include_pan_entry_modes: ::Array[Lithic::Models::AuthRules::VelocityLimitParams::Filters::include_pan_entry_mode]? } + + type include_pan_entry_mode = + :AUTO_ENTRY + | :BAR_CODE + | :CONTACTLESS + | :CREDENTIAL_ON_FILE + | :ECOMMERCE + | :ERROR_KEYED + | :ERROR_MAGNETIC_STRIPE + | :ICC + | :KEY_ENTERED + | :MAGNETIC_STRIPE + | :MANUAL + | :OCR + | :SECURE_CARDLESS + | :UNSPECIFIED + | :UNKNOWN + + module IncludePanEntryMode + extend Lithic::Internal::Type::Enum + + AUTO_ENTRY: :AUTO_ENTRY + BAR_CODE: :BAR_CODE + CONTACTLESS: :CONTACTLESS + CREDENTIAL_ON_FILE: :CREDENTIAL_ON_FILE + ECOMMERCE: :ECOMMERCE + ERROR_KEYED: :ERROR_KEYED + ERROR_MAGNETIC_STRIPE: :ERROR_MAGNETIC_STRIPE + ICC: :ICC + KEY_ENTERED: :KEY_ENTERED + MAGNETIC_STRIPE: :MAGNETIC_STRIPE + MANUAL: :MANUAL + OCR: :OCR + SECURE_CARDLESS: :SECURE_CARDLESS + UNSPECIFIED: :UNSPECIFIED + UNKNOWN: :UNKNOWN + + def self?.values: -> ::Array[Lithic::Models::AuthRules::VelocityLimitParams::Filters::include_pan_entry_mode] + end end type scope = :CARD | :ACCOUNT diff --git a/sig/lithic/resources/auth_rules/v2.rbs b/sig/lithic/resources/auth_rules/v2.rbs index 034dc1a6..2eaa78d7 100644 --- a/sig/lithic/resources/auth_rules/v2.rbs +++ b/sig/lithic/resources/auth_rules/v2.rbs @@ -75,6 +75,13 @@ module Lithic ?request_options: Lithic::request_opts ) -> Lithic::Models::AuthRules::V2ReportResponse + def retrieve_features: ( + String auth_rule_token, + ?account_token: String, + ?card_token: String, + ?request_options: Lithic::request_opts + ) -> Lithic::Models::AuthRules::V2RetrieveFeaturesResponse + def retrieve_report: ( String auth_rule_token, begin_: Date, diff --git a/test/lithic/resources/auth_rules/v2_test.rb b/test/lithic/resources/auth_rules/v2_test.rb index 2e489ade..cdc86e04 100644 --- a/test/lithic/resources/auth_rules/v2_test.rb +++ b/test/lithic/resources/auth_rules/v2_test.rb @@ -19,6 +19,7 @@ def test_create current_version: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion | nil, draft_version: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion | nil, event_stream: Lithic::Models::AuthRules::V2CreateResponse::EventStream, + lithic_managed: Lithic::Internal::Type::Boolean, name: String | nil, program_level: Lithic::Internal::Type::Boolean, state: Lithic::Models::AuthRules::V2CreateResponse::State, @@ -44,6 +45,7 @@ def test_retrieve current_version: Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion | nil, draft_version: Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion | nil, event_stream: Lithic::Models::AuthRules::V2RetrieveResponse::EventStream, + lithic_managed: Lithic::Internal::Type::Boolean, name: String | nil, program_level: Lithic::Internal::Type::Boolean, state: Lithic::Models::AuthRules::V2RetrieveResponse::State, @@ -69,6 +71,7 @@ def test_update current_version: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion | nil, draft_version: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion | nil, event_stream: Lithic::Models::AuthRules::V2UpdateResponse::EventStream, + lithic_managed: Lithic::Internal::Type::Boolean, name: String | nil, program_level: Lithic::Internal::Type::Boolean, state: Lithic::Models::AuthRules::V2UpdateResponse::State, @@ -101,6 +104,7 @@ def test_list current_version: Lithic::Models::AuthRules::V2ListResponse::CurrentVersion | nil, draft_version: Lithic::Models::AuthRules::V2ListResponse::DraftVersion | nil, event_stream: Lithic::Models::AuthRules::V2ListResponse::EventStream, + lithic_managed: Lithic::Internal::Type::Boolean, name: String | nil, program_level: Lithic::Internal::Type::Boolean, state: Lithic::Models::AuthRules::V2ListResponse::State, @@ -138,6 +142,7 @@ def test_apply current_version: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion | nil, draft_version: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion | nil, event_stream: Lithic::Models::AuthRules::V2ApplyResponse::EventStream, + lithic_managed: Lithic::Internal::Type::Boolean, name: String | nil, program_level: Lithic::Internal::Type::Boolean, state: Lithic::Models::AuthRules::V2ApplyResponse::State, @@ -163,6 +168,7 @@ def test_draft current_version: Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion | nil, draft_version: Lithic::Models::AuthRules::V2DraftResponse::DraftVersion | nil, event_stream: Lithic::Models::AuthRules::V2DraftResponse::EventStream, + lithic_managed: Lithic::Internal::Type::Boolean, name: String | nil, program_level: Lithic::Internal::Type::Boolean, state: Lithic::Models::AuthRules::V2DraftResponse::State, @@ -188,6 +194,7 @@ def test_promote current_version: Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion | nil, draft_version: Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion | nil, event_stream: Lithic::Models::AuthRules::V2PromoteResponse::EventStream, + lithic_managed: Lithic::Internal::Type::Boolean, name: String | nil, program_level: Lithic::Internal::Type::Boolean, state: Lithic::Models::AuthRules::V2PromoteResponse::State, @@ -211,6 +218,21 @@ def test_report end end + def test_retrieve_features + response = @lithic.auth_rules.v2.retrieve_features("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") + + assert_pattern do + response => Lithic::Models::AuthRules::V2RetrieveFeaturesResponse + end + + assert_pattern do + response => { + evaluated: Time, + features: ^(Lithic::Internal::Type::ArrayOf[Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature]) + } + end + end + def test_retrieve_report_required_params response = @lithic.auth_rules.v2.retrieve_report(