diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 3b0f7de6..b3365ecb 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.54" + ".": "0.1.0-alpha.55" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 1c59375b..a080bc22 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-461a5622f5cf2e4e38fab8b899fa619cfa1bff349e3a485b8e4396c3d5b1282f.yml -openapi_spec_hash: 5314a4458e7ebfc7b374bca71966a6e4 -config_hash: 8ac73ccdb428816c89c84802c794a3f8 +configured_endpoints: 168 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-c3f6c23018d70fd1b259b21cfd377b5d905872f0d3c5ce2cdb8013f4b6daa338.yml +openapi_spec_hash: b551344da9d29eb4c5374874ed84a9b0 +config_hash: 012f050e575d1bbfe8db56a9eeaa5fcd diff --git a/CHANGELOG.md b/CHANGELOG.md index 756ceda9..4381675f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## 0.1.0-alpha.55 (2025-11-11) + +Full Changelog: [v0.1.0-alpha.54...v0.1.0-alpha.55](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.54...v0.1.0-alpha.55) + +### Features + +* **api:** add payment_details ([413b65a](https://github.com/lithic-com/lithic-ruby/commit/413b65a7028d3277f1e4f3419fd643e7c0730966)) +* **api:** deprecate auth rule apply endpoint and fix several schemas ([7b9a282](https://github.com/lithic-com/lithic-ruby/commit/7b9a282603b666e314c6445439cfb839c479eada)) +* **api:** new fields in Statements APIs ([be8c6ea](https://github.com/lithic-com/lithic-ruby/commit/be8c6ea99b996707b3848cba8e0109c47fc1715e)) +* **api:** re-add rules metadata to tokenization events ([da13854](https://github.com/lithic-com/lithic-ruby/commit/da13854e8c9794024b786da4584ffbe492999c6a)) +* **api:** remove deprecated fields from Cardholder Authentication object ([da13854](https://github.com/lithic-com/lithic-ruby/commit/da13854e8c9794024b786da4584ffbe492999c6a)) + + +### Bug Fixes + +* **api:** adjust Auth Rules spec for better SDK structure ([da13854](https://github.com/lithic-com/lithic-ruby/commit/da13854e8c9794024b786da4584ffbe492999c6a)) +* **api:** fix oneOf -> anyOf in account holder update ([413b65a](https://github.com/lithic-com/lithic-ruby/commit/413b65a7028d3277f1e4f3419fd643e7c0730966)) +* **api:** fixing spec for Tokenizations and Enhanced data ([be8c6ea](https://github.com/lithic-com/lithic-ruby/commit/be8c6ea99b996707b3848cba8e0109c47fc1715e)) + ## 0.1.0-alpha.54 (2025-11-04) Full Changelog: [v0.1.0-alpha.53...v0.1.0-alpha.54](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.53...v0.1.0-alpha.54) diff --git a/Gemfile.lock b/Gemfile.lock index 24c299af..7b9e0d5f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - lithic (0.1.0.pre.alpha.54) + lithic (0.1.0.pre.alpha.55) connection_pool GEM diff --git a/README.md b/README.md index 556498b5..78f595a3 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.54" +gem "lithic", "~> 0.1.0.pre.alpha.55" ``` diff --git a/lib/lithic.rb b/lib/lithic.rb index 20872fc4..2bcc7730 100644 --- a/lib/lithic.rb +++ b/lib/lithic.rb @@ -91,6 +91,7 @@ require_relative "lithic/models/auth_rules/auth_rule_condition" require_relative "lithic/models/auth_rules/conditional_3ds_action_parameters" require_relative "lithic/models/auth_rules/conditional_attribute" +require_relative "lithic/models/auth_rules/conditional_authorization_action_parameters" require_relative "lithic/models/auth_rules/conditional_block_parameters" require_relative "lithic/models/auth_rules/merchant_lock_parameters" require_relative "lithic/models/auth_rules/rule_stats" @@ -98,8 +99,6 @@ require_relative "lithic/models/auth_rules/v2/backtest_create_response" require_relative "lithic/models/auth_rules/v2/backtest_results" require_relative "lithic/models/auth_rules/v2/backtest_retrieve_params" -require_relative "lithic/models/auth_rules/v2_apply_params" -require_relative "lithic/models/auth_rules/v2_apply_response" require_relative "lithic/models/auth_rules/v2_create_params" require_relative "lithic/models/auth_rules/v2_create_response" require_relative "lithic/models/auth_rules/v2_delete_params" @@ -118,7 +117,7 @@ require_relative "lithic/models/auth_rules/v2_update_params" require_relative "lithic/models/auth_rules/v2_update_response" require_relative "lithic/models/auth_rules/velocity_limit_params" -require_relative "lithic/models/auth_rules/velocity_limit_params_period_window" +require_relative "lithic/models/auth_rules/velocity_limit_period" require_relative "lithic/models/auth_stream_enrollment_retrieve_secret_params" require_relative "lithic/models/auth_stream_enrollment_rotate_secret_params" require_relative "lithic/models/auth_stream_secret" @@ -168,15 +167,20 @@ require_relative "lithic/models/digital_card_art_retrieve_params" require_relative "lithic/models/dispute" require_relative "lithic/models/dispute_create_params" +require_relative "lithic/models/dispute_create_response" require_relative "lithic/models/dispute_delete_evidence_params" require_relative "lithic/models/dispute_delete_params" +require_relative "lithic/models/dispute_delete_response" require_relative "lithic/models/dispute_evidence" require_relative "lithic/models/dispute_initiate_evidence_upload_params" require_relative "lithic/models/dispute_list_evidences_params" require_relative "lithic/models/dispute_list_params" +require_relative "lithic/models/dispute_list_response" require_relative "lithic/models/dispute_retrieve_evidence_params" require_relative "lithic/models/dispute_retrieve_params" +require_relative "lithic/models/dispute_retrieve_response" require_relative "lithic/models/dispute_update_params" +require_relative "lithic/models/dispute_update_response" require_relative "lithic/models/document" require_relative "lithic/models/event" require_relative "lithic/models/event_list_attempts_params" diff --git a/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb b/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb index ebe0e47d..7717a20e 100644 --- a/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +++ b/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb @@ -40,7 +40,7 @@ class AccountHolderSimulateEnrollmentReviewResponse < Lithic::Internal::Type::Ba # with the AUTHORIZED_USER in this field. # # @return [String, nil] - optional :business_account_token, String + optional :business_account_token, String, nil?: true # @!attribute business_entity # Only present when user_type == "BUSINESS". Information about the business for @@ -179,7 +179,7 @@ class AccountHolderSimulateEnrollmentReviewResponse < Lithic::Internal::Type::Ba # # @param beneficial_owner_individuals [Array] Only present when user_type == "BUSINESS". You must submit a list of all direct # - # @param business_account_token [String] Only applicable for customers using the KYC-Exempt workflow to enroll authorized + # @param business_account_token [String, nil] Only applicable for customers using the KYC-Exempt workflow to enroll authorized # # @param business_entity [Lithic::Models::KYBBusinessEntity] Only present when user_type == "BUSINESS". Information about the business for wh # diff --git a/lib/lithic/models/account_holder_update_response.rb b/lib/lithic/models/account_holder_update_response.rb index 305fdf8c..04b9d1fd 100644 --- a/lib/lithic/models/account_holder_update_response.rb +++ b/lib/lithic/models/account_holder_update_response.rb @@ -47,7 +47,7 @@ class KYBKYCPatchResponse < Lithic::Internal::Type::BaseModel # with the AUTHORIZED_USER in this field. # # @return [String, nil] - optional :business_account_token, String + optional :business_account_token, String, nil?: true # @!attribute business_entity # Only present when user_type == "BUSINESS". Information about the business for @@ -187,7 +187,7 @@ class KYBKYCPatchResponse < Lithic::Internal::Type::BaseModel # # @param beneficial_owner_individuals [Array] Only present when user_type == "BUSINESS". You must submit a list of all direct # - # @param business_account_token [String] Only applicable for customers using the KYC-Exempt workflow to enroll authorized + # @param business_account_token [String, nil] Only applicable for customers using the KYC-Exempt workflow to enroll authorized # # @param business_entity [Lithic::Models::KYBBusinessEntity] Only present when user_type == "BUSINESS". Information about the business for wh # @@ -813,7 +813,7 @@ class PatchResponse < Lithic::Internal::Type::BaseModel # The token for the business account that the account holder is associated with # # @return [String, nil] - optional :business_account_token, String + optional :business_account_token, String, nil?: true # @!attribute email # The email for the account holder @@ -850,7 +850,7 @@ class PatchResponse < Lithic::Internal::Type::BaseModel # # @param address [Lithic::Models::AccountHolderUpdateResponse::PatchResponse::Address] The address for the account holder # - # @param business_account_token [String] The token for the business account that the account holder is associated with + # @param business_account_token [String, nil] The token for the business account that the account holder is associated with # # @param email [String] The email for the account holder # diff --git a/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb b/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb new file mode 100644 index 00000000..ce941344 --- /dev/null +++ b/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb @@ -0,0 +1,252 @@ +# frozen_string_literal: true + +module Lithic + module Models + module AuthRules + class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel + # @!attribute action + # The action to take if the conditions are met. + # + # @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Action] + required :action, enum: -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action } + + # @!attribute conditions + # + # @return [Array] + required :conditions, + -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition] } + + # @!method initialize(action:, conditions:) + # @param action [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Action] The action to take if the conditions are met. + # + # @param conditions [Array] + + # The action to take if the conditions are met. + # + # @see Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters#action + module Action + extend Lithic::Internal::Type::Enum + + DECLINE = :DECLINE + CHALLENGE = :CHALLENGE + + # @!method self.values + # @return [Array] + end + + class Condition < Lithic::Internal::Type::BaseModel + # @!attribute attribute + # The attribute to target. + # + # The following attributes may be targeted: + # + # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a + # business by the types of goods or services it provides. + # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all + # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for + # Netherlands Antilles. + # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of + # the transaction. + # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor + # (merchant). + # - `DESCRIPTOR`: Short description of card acceptor. + # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer + # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or + # `TOKEN_AUTHENTICATED`. + # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number + # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, + # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, + # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, + # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. + # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer + # 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, + # where the raw score has a range of 0-99, Lithic will normalize the score by + # multiplying the raw score by 10x. + # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the + # trailing 15 minutes before the authorization. + # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the + # trailing hour up and until the authorization. + # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the + # trailing 24 hours up and until the authorization. + # - `CARD_STATE`: The current state of the card associated with the transaction. + # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, + # `PENDING_FULFILLMENT`. + # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. + # Valid values are `TRUE`, `FALSE`. + # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, + # `OK`, `BLOCKED`. + # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the + # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, + # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. + # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates + # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. + # + # @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] + optional :attribute, + enum: -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute } + + # @!attribute operation + # The operation to apply to the attribute + # + # @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Operation, nil] + optional :operation, + enum: -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Operation } + + # @!attribute value + # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` + # + # @return [String, Integer, Array, nil] + optional :value, + union: -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Value } + + # @!method initialize(attribute: nil, operation: nil, value: nil) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition} + # for more details. + # + # @param attribute [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target. + # + # @param operation [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Operation] The operation to apply to the attribute + # + # @param value [String, Integer, Array] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` + + # The attribute to target. + # + # The following attributes may be targeted: + # + # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a + # business by the types of goods or services it provides. + # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all + # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for + # Netherlands Antilles. + # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of + # the transaction. + # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor + # (merchant). + # - `DESCRIPTOR`: Short description of card acceptor. + # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer + # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or + # `TOKEN_AUTHENTICATED`. + # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number + # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, + # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, + # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, + # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. + # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer + # 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, + # where the raw score has a range of 0-99, Lithic will normalize the score by + # multiplying the raw score by 10x. + # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the + # trailing 15 minutes before the authorization. + # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the + # trailing hour up and until the authorization. + # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the + # trailing 24 hours up and until the authorization. + # - `CARD_STATE`: The current state of the card associated with the transaction. + # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, + # `PENDING_FULFILLMENT`. + # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. + # Valid values are `TRUE`, `FALSE`. + # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, + # `OK`, `BLOCKED`. + # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the + # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, + # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. + # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates + # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. + # + # @see Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition#attribute + module Attribute + extend Lithic::Internal::Type::Enum + + MCC = :MCC + COUNTRY = :COUNTRY + CURRENCY = :CURRENCY + MERCHANT_ID = :MERCHANT_ID + DESCRIPTOR = :DESCRIPTOR + 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 + CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H + CARD_STATE = :CARD_STATE + PIN_ENTERED = :PIN_ENTERED + PIN_STATUS = :PIN_STATUS + WALLET_TYPE = :WALLET_TYPE + TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR + ADDRESS_MATCH = :ADDRESS_MATCH + + # @!method self.values + # @return [Array] + end + + # The operation to apply to the attribute + # + # @see Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition#operation + module Operation + extend Lithic::Internal::Type::Enum + + IS_ONE_OF = :IS_ONE_OF + IS_NOT_ONE_OF = :IS_NOT_ONE_OF + MATCHES = :MATCHES + DOES_NOT_MATCH = :DOES_NOT_MATCH + IS_EQUAL_TO = :IS_EQUAL_TO + IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO + IS_GREATER_THAN = :IS_GREATER_THAN + IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO + IS_LESS_THAN = :IS_LESS_THAN + IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO + + # @!method self.values + # @return [Array] + end + + # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` + # + # @see Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition#value + module Value + extend Lithic::Internal::Type::Union + + # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` + variant String + + # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO` + variant Integer + + # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` + variant -> { Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Value::StringArray } + + # @!method self.variants + # @return [Array(String, Integer, Array)] + + # @type [Lithic::Internal::Type::Converter] + StringArray = Lithic::Internal::Type::ArrayOf[String] + end + end + end + end + end +end diff --git a/lib/lithic/models/auth_rules/v2_apply_params.rb b/lib/lithic/models/auth_rules/v2_apply_params.rb deleted file mode 100644 index 26b05eb1..00000000 --- a/lib/lithic/models/auth_rules/v2_apply_params.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true - -module Lithic - module Models - module AuthRules - # @see Lithic::Resources::AuthRules::V2#apply - class V2ApplyParams < Lithic::Internal::Type::BaseModel - extend Lithic::Internal::Type::RequestParameters::Converter - include Lithic::Internal::Type::RequestParameters - - # @!attribute account_tokens - # Account tokens to which the Auth Rule applies. - # - # @return [Array, nil] - optional :account_tokens, Lithic::Internal::Type::ArrayOf[String] - - # @!attribute business_account_tokens - # Business Account tokens to which the Auth Rule applies. - # - # @return [Array, nil] - optional :business_account_tokens, Lithic::Internal::Type::ArrayOf[String] - - # @!attribute card_tokens - # Card tokens to which the Auth Rule applies. - # - # @return [Array] - required :card_tokens, Lithic::Internal::Type::ArrayOf[String] - - # @!attribute program_level - # Whether the Auth Rule applies to all authorizations on the card program. - # - # @return [Boolean] - required :program_level, Lithic::Internal::Type::Boolean - - # @!attribute excluded_card_tokens - # Card tokens to which the Auth Rule does not apply. - # - # @return [Array, nil] - optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String] - - # @!method initialize(card_tokens:, program_level:, account_tokens: nil, business_account_tokens: nil, excluded_card_tokens: nil, request_options: {}) - # @param card_tokens [Array] Card tokens to which the Auth Rule applies. - # - # @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program. - # - # @param account_tokens [Array] Account tokens to which the Auth Rule applies. - # - # @param business_account_tokens [Array] Business Account tokens to which the Auth Rule applies. - # - # @param excluded_card_tokens [Array] Card tokens to which the Auth Rule does not apply. - # - # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] - end - end - end -end diff --git a/lib/lithic/models/auth_rules/v2_apply_response.rb b/lib/lithic/models/auth_rules/v2_apply_response.rb deleted file mode 100644 index 5e62509c..00000000 --- a/lib/lithic/models/auth_rules/v2_apply_response.rb +++ /dev/null @@ -1,766 +0,0 @@ -# frozen_string_literal: true - -module Lithic - module Models - module AuthRules - # @see Lithic::Resources::AuthRules::V2#apply - class V2ApplyResponse < Lithic::Internal::Type::BaseModel - # @!attribute token - # Auth Rule Token - # - # @return [String] - required :token, String - - # @!attribute account_tokens - # Account tokens to which the Auth Rule applies. - # - # @return [Array] - required :account_tokens, Lithic::Internal::Type::ArrayOf[String] - - # @!attribute business_account_tokens - # Business Account tokens to which the Auth Rule applies. - # - # @return [Array] - required :business_account_tokens, Lithic::Internal::Type::ArrayOf[String] - - # @!attribute card_tokens - # Card tokens to which the Auth Rule applies. - # - # @return [Array] - required :card_tokens, Lithic::Internal::Type::ArrayOf[String] - - # @!attribute current_version - # - # @return [Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion, nil] - required :current_version, -> { Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion }, nil?: true - - # @!attribute draft_version - # - # @return [Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion, nil] - required :draft_version, -> { Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion }, nil?: true - - # @!attribute event_stream - # The event stream during which the rule will be evaluated. - # - # @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 - # - # @return [String, nil] - required :name, String, nil?: true - - # @!attribute program_level - # Whether the Auth Rule applies to all authorizations on the card program. - # - # @return [Boolean] - required :program_level, Lithic::Internal::Type::Boolean - - # @!attribute state - # The state of the Auth Rule - # - # @return [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::State] - required :state, enum: -> { Lithic::Models::AuthRules::V2ApplyResponse::State } - - # @!attribute type - # The type of Auth Rule. For certain rule types, this determines the event stream - # during which it will be evaluated. For rules that can be applied to one of - # several event streams, the effective one is defined by the separate - # `event_stream` field. - # - # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream. - # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. - # - `MERCHANT_LOCK`: AUTHORIZATION event stream. - # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream. - # - # @return [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::Type] - required :type, enum: -> { Lithic::Models::AuthRules::V2ApplyResponse::Type } - - # @!attribute excluded_card_tokens - # Card tokens to which the Auth Rule does not apply. - # - # @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:, 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. - # - # @param token [String] Auth Rule Token - # - # @param account_tokens [Array] Account tokens to which the Auth Rule applies. - # - # @param business_account_tokens [Array] Business Account tokens to which the Auth Rule applies. - # - # @param card_tokens [Array] Card tokens to which the Auth Rule applies. - # - # @param current_version [Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion, nil] - # - # @param draft_version [Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion, nil] - # - # @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. - # - # @param state [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::State] The state of the Auth Rule - # - # @param type [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::Type] The type of Auth Rule. For certain rule types, this determines the event stream - # - # @param excluded_card_tokens [Array] Card tokens to which the Auth Rule does not apply. - - # @see Lithic::Models::AuthRules::V2ApplyResponse#current_version - class CurrentVersion < Lithic::Internal::Type::BaseModel - # @!attribute parameters - # Parameters for the Auth Rule - # - # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters] - required :parameters, union: -> { Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters } - - response_only do - # @!attribute version - # The version of the rule, this is incremented whenever the rule's parameters - # change. - # - # @return [Integer] - required :version, Integer - end - - # @!method initialize(parameters:, version:) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion} for more details. - # - # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule - # - # @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan - - # Parameters for the Auth Rule - # - # @see Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion#parameters - module Parameters - extend Lithic::Internal::Type::Union - - variant -> { Lithic::AuthRules::ConditionalBlockParameters } - - variant -> { Lithic::AuthRules::VelocityLimitParams } - - variant -> { Lithic::AuthRules::MerchantLockParameters } - - variant -> { Lithic::AuthRules::Conditional3DSActionParameters } - - variant -> { Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - # @!attribute action - # The action to take if the conditions are met. - # - # @return [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action] - required :action, - enum: -> { Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action } - - # @!attribute conditions - # - # @return [Array] - required :conditions, - -> do - Lithic::Internal::Type::ArrayOf[ - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - end - - # @!method initialize(action:, conditions:) - # @param action [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action] The action to take if the conditions are met. - # - # @param conditions [Array] - - # The action to take if the conditions are met. - # - # @see Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters#action - module Action - extend Lithic::Internal::Type::Enum - - DECLINE = :DECLINE - CHALLENGE = :CHALLENGE - - # @!method self.values - # @return [Array] - end - - class Condition < Lithic::Internal::Type::BaseModel - # @!attribute attribute - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @return [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] - optional :attribute, - enum: -> { Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute } - - # @!attribute operation - # The operation to apply to the attribute - # - # @return [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation, nil] - optional :operation, - enum: -> { Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation } - - # @!attribute value - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @return [String, Integer, Array, nil] - optional :value, - union: -> { Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value } - - # @!method initialize(attribute: nil, operation: nil, value: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition} - # for more details. - # - # @param attribute [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target. - # - # @param operation [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation] The operation to apply to the attribute - # - # @param value [String, Integer, Array] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @see Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute - module Attribute - extend Lithic::Internal::Type::Enum - - MCC = :MCC - COUNTRY = :COUNTRY - CURRENCY = :CURRENCY - MERCHANT_ID = :MERCHANT_ID - DESCRIPTOR = :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H - CARD_STATE = :CARD_STATE - PIN_ENTERED = :PIN_ENTERED - PIN_STATUS = :PIN_STATUS - WALLET_TYPE = :WALLET_TYPE - TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR - ADDRESS_MATCH = :ADDRESS_MATCH - - # @!method self.values - # @return [Array] - end - - # The operation to apply to the attribute - # - # @see Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#operation - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF = :IS_ONE_OF - IS_NOT_ONE_OF = :IS_NOT_ONE_OF - MATCHES = :MATCHES - DOES_NOT_MATCH = :DOES_NOT_MATCH - IS_EQUAL_TO = :IS_EQUAL_TO - IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO - IS_GREATER_THAN = :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN = :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO - - # @!method self.values - # @return [Array] - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @see Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#value - module Value - extend Lithic::Internal::Type::Union - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - variant String - - # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO` - variant Integer - - # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` - variant -> { Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::StringArray } - - # @!method self.variants - # @return [Array(String, Integer, Array)] - - # @type [Lithic::Internal::Type::Converter] - StringArray = Lithic::Internal::Type::ArrayOf[String] - end - end - end - - # @!method self.variants - # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters)] - end - end - - # @see Lithic::Models::AuthRules::V2ApplyResponse#draft_version - class DraftVersion < Lithic::Internal::Type::BaseModel - # @!attribute parameters - # Parameters for the Auth Rule - # - # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters] - required :parameters, union: -> { Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters } - - response_only do - # @!attribute version - # The version of the rule, this is incremented whenever the rule's parameters - # change. - # - # @return [Integer] - required :version, Integer - end - - # @!method initialize(parameters:, version:) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion} for more details. - # - # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule - # - # @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan - - # Parameters for the Auth Rule - # - # @see Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion#parameters - module Parameters - extend Lithic::Internal::Type::Union - - variant -> { Lithic::AuthRules::ConditionalBlockParameters } - - variant -> { Lithic::AuthRules::VelocityLimitParams } - - variant -> { Lithic::AuthRules::MerchantLockParameters } - - variant -> { Lithic::AuthRules::Conditional3DSActionParameters } - - variant -> { Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - # @!attribute action - # The action to take if the conditions are met. - # - # @return [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action] - required :action, - enum: -> { Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action } - - # @!attribute conditions - # - # @return [Array] - required :conditions, - -> do - Lithic::Internal::Type::ArrayOf[ - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - end - - # @!method initialize(action:, conditions:) - # @param action [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action] The action to take if the conditions are met. - # - # @param conditions [Array] - - # The action to take if the conditions are met. - # - # @see Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters#action - module Action - extend Lithic::Internal::Type::Enum - - DECLINE = :DECLINE - CHALLENGE = :CHALLENGE - - # @!method self.values - # @return [Array] - end - - class Condition < Lithic::Internal::Type::BaseModel - # @!attribute attribute - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @return [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] - optional :attribute, - enum: -> { Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute } - - # @!attribute operation - # The operation to apply to the attribute - # - # @return [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation, nil] - optional :operation, - enum: -> { Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation } - - # @!attribute value - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @return [String, Integer, Array, nil] - optional :value, - union: -> { Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value } - - # @!method initialize(attribute: nil, operation: nil, value: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition} - # for more details. - # - # @param attribute [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target. - # - # @param operation [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation] The operation to apply to the attribute - # - # @param value [String, Integer, Array] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @see Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute - module Attribute - extend Lithic::Internal::Type::Enum - - MCC = :MCC - COUNTRY = :COUNTRY - CURRENCY = :CURRENCY - MERCHANT_ID = :MERCHANT_ID - DESCRIPTOR = :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H - CARD_STATE = :CARD_STATE - PIN_ENTERED = :PIN_ENTERED - PIN_STATUS = :PIN_STATUS - WALLET_TYPE = :WALLET_TYPE - TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR - ADDRESS_MATCH = :ADDRESS_MATCH - - # @!method self.values - # @return [Array] - end - - # The operation to apply to the attribute - # - # @see Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#operation - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF = :IS_ONE_OF - IS_NOT_ONE_OF = :IS_NOT_ONE_OF - MATCHES = :MATCHES - DOES_NOT_MATCH = :DOES_NOT_MATCH - IS_EQUAL_TO = :IS_EQUAL_TO - IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO - IS_GREATER_THAN = :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN = :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO - - # @!method self.values - # @return [Array] - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @see Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#value - module Value - extend Lithic::Internal::Type::Union - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - variant String - - # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO` - variant Integer - - # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` - variant -> { Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::StringArray } - - # @!method self.variants - # @return [Array(String, Integer, Array)] - - # @type [Lithic::Internal::Type::Converter] - StringArray = Lithic::Internal::Type::ArrayOf[String] - end - end - end - - # @!method self.variants - # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters)] - end - end - - # The event stream during which the rule will be evaluated. - # - # @see Lithic::Models::AuthRules::V2ApplyResponse#event_stream - module EventStream - extend Lithic::Internal::Type::Enum - - AUTHORIZATION = :AUTHORIZATION - THREE_DS_AUTHENTICATION = :THREE_DS_AUTHENTICATION - - # @!method self.values - # @return [Array] - end - - # The state of the Auth Rule - # - # @see Lithic::Models::AuthRules::V2ApplyResponse#state - module State - extend Lithic::Internal::Type::Enum - - ACTIVE = :ACTIVE - INACTIVE = :INACTIVE - - # @!method self.values - # @return [Array] - end - - # The type of Auth Rule. For certain rule types, this determines the event stream - # during which it will be evaluated. For rules that can be applied to one of - # several event streams, the effective one is defined by the separate - # `event_stream` field. - # - # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream. - # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. - # - `MERCHANT_LOCK`: AUTHORIZATION event stream. - # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream. - # - # @see Lithic::Models::AuthRules::V2ApplyResponse#type - module Type - extend Lithic::Internal::Type::Enum - - CONDITIONAL_BLOCK = :CONDITIONAL_BLOCK - VELOCITY_LIMIT = :VELOCITY_LIMIT - MERCHANT_LOCK = :MERCHANT_LOCK - CONDITIONAL_ACTION = :CONDITIONAL_ACTION - - # @!method self.values - # @return [Array] - end - end - end - end -end diff --git a/lib/lithic/models/auth_rules/v2_create_params.rb b/lib/lithic/models/auth_rules/v2_create_params.rb index cc6ce207..25e88d3e 100644 --- a/lib/lithic/models/auth_rules/v2_create_params.rb +++ b/lib/lithic/models/auth_rules/v2_create_params.rb @@ -8,6 +8,26 @@ class V2CreateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute parameters + # Parameters for the Auth Rule + # + # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] + required :parameters, union: -> { Lithic::AuthRules::V2CreateParams::Parameters } + + # @!attribute type + # The type of Auth Rule. For certain rule types, this determines the event stream + # during which it will be evaluated. For rules that can be applied to one of + # several event streams, the effective one is defined by the separate + # `event_stream` field. + # + # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream. + # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. + # - `MERCHANT_LOCK`: AUTHORIZATION event stream. + # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream. + # + # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type] + required :type, enum: -> { Lithic::AuthRules::V2CreateParams::Type } + # @!attribute account_tokens # Account tokens to which the Auth Rule applies. # @@ -32,26 +52,6 @@ class V2CreateParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :name, String, nil?: true - # @!attribute parameters - # Parameters for the Auth Rule - # - # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters, nil] - optional :parameters, union: -> { Lithic::AuthRules::V2CreateParams::Parameters } - - # @!attribute type - # The type of Auth Rule. For certain rule types, this determines the event stream - # during which it will be evaluated. For rules that can be applied to one of - # several event streams, the effective one is defined by the separate - # `event_stream` field. - # - # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream. - # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. - # - `MERCHANT_LOCK`: AUTHORIZATION event stream. - # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream. - # - # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type, nil] - optional :type, enum: -> { Lithic::AuthRules::V2CreateParams::Type } - # @!attribute card_tokens # Card tokens to which the Auth Rule applies. # @@ -70,10 +70,14 @@ class V2CreateParams < Lithic::Internal::Type::BaseModel # @return [Array, nil] optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String] - # @!method initialize(card_tokens:, program_level:, account_tokens: nil, business_account_tokens: nil, event_stream: nil, name: nil, parameters: nil, type: nil, excluded_card_tokens: nil, request_options: {}) + # @!method initialize(parameters:, type:, card_tokens:, program_level:, account_tokens: nil, business_account_tokens: nil, event_stream: nil, name: nil, excluded_card_tokens: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::V2CreateParams} for more details. # + # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule + # + # @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type] The type of Auth Rule. For certain rule types, this determines the event stream + # # @param card_tokens [Array] Card tokens to which the Auth Rule applies. # # @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program. @@ -86,25 +90,10 @@ class V2CreateParams < Lithic::Internal::Type::BaseModel # # @param name [String, nil] Auth Rule Name # - # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule - # - # @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type] The type of Auth Rule. For certain rule types, this determines the event stream - # # @param excluded_card_tokens [Array] Card tokens to which the Auth Rule does not apply. # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] - # The event stream during which the rule will be evaluated. - module EventStream - extend Lithic::Internal::Type::Enum - - AUTHORIZATION = :AUTHORIZATION - THREE_DS_AUTHENTICATION = :THREE_DS_AUTHENTICATION - - # @!method self.values - # @return [Array] - end - # Parameters for the Auth Rule module Parameters extend Lithic::Internal::Type::Union @@ -117,256 +106,10 @@ module Parameters variant -> { Lithic::AuthRules::Conditional3DSActionParameters } - variant -> { Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - # @!attribute action - # The action to take if the conditions are met. - # - # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action] - required :action, - enum: -> { Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action } - - # @!attribute conditions - # - # @return [Array] - required :conditions, - -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition] } - - # @!method initialize(action:, conditions:) - # @param action [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action] The action to take if the conditions are met. - # - # @param conditions [Array] - - # The action to take if the conditions are met. - # - # @see Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters#action - module Action - extend Lithic::Internal::Type::Enum - - DECLINE = :DECLINE - CHALLENGE = :CHALLENGE - - # @!method self.values - # @return [Array] - end - - class Condition < Lithic::Internal::Type::BaseModel - # @!attribute attribute - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] - optional :attribute, - enum: -> { Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute } - - # @!attribute operation - # The operation to apply to the attribute - # - # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation, nil] - optional :operation, - enum: -> { Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation } - - # @!attribute value - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @return [String, Integer, Array, nil] - optional :value, - union: -> { Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value } - - # @!method initialize(attribute: nil, operation: nil, value: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition} - # for more details. - # - # @param attribute [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target. - # - # @param operation [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation] The operation to apply to the attribute - # - # @param value [String, Integer, Array] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @see Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute - module Attribute - extend Lithic::Internal::Type::Enum - - MCC = :MCC - COUNTRY = :COUNTRY - CURRENCY = :CURRENCY - MERCHANT_ID = :MERCHANT_ID - DESCRIPTOR = :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H - CARD_STATE = :CARD_STATE - PIN_ENTERED = :PIN_ENTERED - PIN_STATUS = :PIN_STATUS - WALLET_TYPE = :WALLET_TYPE - TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR - ADDRESS_MATCH = :ADDRESS_MATCH - - # @!method self.values - # @return [Array] - end - - # The operation to apply to the attribute - # - # @see Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition#operation - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF = :IS_ONE_OF - IS_NOT_ONE_OF = :IS_NOT_ONE_OF - MATCHES = :MATCHES - DOES_NOT_MATCH = :DOES_NOT_MATCH - IS_EQUAL_TO = :IS_EQUAL_TO - IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO - IS_GREATER_THAN = :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN = :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO - - # @!method self.values - # @return [Array] - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @see Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition#value - module Value - extend Lithic::Internal::Type::Union - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - variant String - - # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO` - variant Integer - - # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` - variant -> { Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::StringArray } - - # @!method self.variants - # @return [Array(String, Integer, Array)] - - # @type [Lithic::Internal::Type::Converter] - StringArray = Lithic::Internal::Type::ArrayOf[String] - end - end - end + variant -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters } # @!method self.variants - # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters)] + # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters)] end # The type of Auth Rule. For certain rule types, this determines the event stream @@ -389,6 +132,17 @@ module Type # @!method self.values # @return [Array] end + + # The event stream during which the rule will be evaluated. + module EventStream + extend Lithic::Internal::Type::Enum + + AUTHORIZATION = :AUTHORIZATION + THREE_DS_AUTHENTICATION = :THREE_DS_AUTHENTICATION + + # @!method self.values + # @return [Array] + end end end end diff --git a/lib/lithic/models/auth_rules/v2_create_response.rb b/lib/lithic/models/auth_rules/v2_create_response.rb index 893fc023..1b2a2aed 100644 --- a/lib/lithic/models/auth_rules/v2_create_response.rb +++ b/lib/lithic/models/auth_rules/v2_create_response.rb @@ -125,7 +125,7 @@ class CurrentVersion < Lithic::Internal::Type::BaseModel # @!attribute parameters # Parameters for the Auth Rule # - # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters] + # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] required :parameters, union: -> { Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters } @@ -142,7 +142,7 @@ class CurrentVersion < Lithic::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion} for more details. # - # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule + # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule # # @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan @@ -160,260 +160,10 @@ module Parameters variant -> { Lithic::AuthRules::Conditional3DSActionParameters } - variant -> { Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - # @!attribute action - # The action to take if the conditions are met. - # - # @return [Symbol, Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action] - required :action, - enum: -> { Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action } - - # @!attribute conditions - # - # @return [Array] - required :conditions, - -> do - Lithic::Internal::Type::ArrayOf[ - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - end - - # @!method initialize(action:, conditions:) - # @param action [Symbol, Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action] The action to take if the conditions are met. - # - # @param conditions [Array] - - # The action to take if the conditions are met. - # - # @see Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters#action - module Action - extend Lithic::Internal::Type::Enum - - DECLINE = :DECLINE - CHALLENGE = :CHALLENGE - - # @!method self.values - # @return [Array] - end - - class Condition < Lithic::Internal::Type::BaseModel - # @!attribute attribute - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @return [Symbol, Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] - optional :attribute, - enum: -> { Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute } - - # @!attribute operation - # The operation to apply to the attribute - # - # @return [Symbol, Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation, nil] - optional :operation, - enum: -> { Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation } - - # @!attribute value - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @return [String, Integer, Array, nil] - optional :value, - union: -> { Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value } - - # @!method initialize(attribute: nil, operation: nil, value: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition} - # for more details. - # - # @param attribute [Symbol, Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target. - # - # @param operation [Symbol, Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation] The operation to apply to the attribute - # - # @param value [String, Integer, Array] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @see Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute - module Attribute - extend Lithic::Internal::Type::Enum - - MCC = :MCC - COUNTRY = :COUNTRY - CURRENCY = :CURRENCY - MERCHANT_ID = :MERCHANT_ID - DESCRIPTOR = :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H - CARD_STATE = :CARD_STATE - PIN_ENTERED = :PIN_ENTERED - PIN_STATUS = :PIN_STATUS - WALLET_TYPE = :WALLET_TYPE - TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR - ADDRESS_MATCH = :ADDRESS_MATCH - - # @!method self.values - # @return [Array] - end - - # The operation to apply to the attribute - # - # @see Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#operation - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF = :IS_ONE_OF - IS_NOT_ONE_OF = :IS_NOT_ONE_OF - MATCHES = :MATCHES - DOES_NOT_MATCH = :DOES_NOT_MATCH - IS_EQUAL_TO = :IS_EQUAL_TO - IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO - IS_GREATER_THAN = :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN = :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO - - # @!method self.values - # @return [Array] - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @see Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#value - module Value - extend Lithic::Internal::Type::Union - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - variant String - - # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO` - variant Integer - - # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` - variant -> { Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::StringArray } - - # @!method self.variants - # @return [Array(String, Integer, Array)] - - # @type [Lithic::Internal::Type::Converter] - StringArray = Lithic::Internal::Type::ArrayOf[String] - end - end - end + variant -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters } # @!method self.variants - # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters)] + # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters)] end end @@ -422,7 +172,7 @@ class DraftVersion < Lithic::Internal::Type::BaseModel # @!attribute parameters # Parameters for the Auth Rule # - # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters] + # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] required :parameters, union: -> { Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters } response_only do @@ -438,7 +188,7 @@ class DraftVersion < Lithic::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::V2CreateResponse::DraftVersion} for more details. # - # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule + # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule # # @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan @@ -456,260 +206,10 @@ module Parameters variant -> { Lithic::AuthRules::Conditional3DSActionParameters } - variant -> { Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - # @!attribute action - # The action to take if the conditions are met. - # - # @return [Symbol, Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action] - required :action, - enum: -> { Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action } - - # @!attribute conditions - # - # @return [Array] - required :conditions, - -> do - Lithic::Internal::Type::ArrayOf[ - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - end - - # @!method initialize(action:, conditions:) - # @param action [Symbol, Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action] The action to take if the conditions are met. - # - # @param conditions [Array] - - # The action to take if the conditions are met. - # - # @see Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters#action - module Action - extend Lithic::Internal::Type::Enum - - DECLINE = :DECLINE - CHALLENGE = :CHALLENGE - - # @!method self.values - # @return [Array] - end - - class Condition < Lithic::Internal::Type::BaseModel - # @!attribute attribute - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @return [Symbol, Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] - optional :attribute, - enum: -> { Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute } - - # @!attribute operation - # The operation to apply to the attribute - # - # @return [Symbol, Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation, nil] - optional :operation, - enum: -> { Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation } - - # @!attribute value - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @return [String, Integer, Array, nil] - optional :value, - union: -> { Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value } - - # @!method initialize(attribute: nil, operation: nil, value: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition} - # for more details. - # - # @param attribute [Symbol, Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target. - # - # @param operation [Symbol, Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation] The operation to apply to the attribute - # - # @param value [String, Integer, Array] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @see Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute - module Attribute - extend Lithic::Internal::Type::Enum - - MCC = :MCC - COUNTRY = :COUNTRY - CURRENCY = :CURRENCY - MERCHANT_ID = :MERCHANT_ID - DESCRIPTOR = :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H - CARD_STATE = :CARD_STATE - PIN_ENTERED = :PIN_ENTERED - PIN_STATUS = :PIN_STATUS - WALLET_TYPE = :WALLET_TYPE - TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR - ADDRESS_MATCH = :ADDRESS_MATCH - - # @!method self.values - # @return [Array] - end - - # The operation to apply to the attribute - # - # @see Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#operation - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF = :IS_ONE_OF - IS_NOT_ONE_OF = :IS_NOT_ONE_OF - MATCHES = :MATCHES - DOES_NOT_MATCH = :DOES_NOT_MATCH - IS_EQUAL_TO = :IS_EQUAL_TO - IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO - IS_GREATER_THAN = :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN = :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO - - # @!method self.values - # @return [Array] - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @see Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#value - module Value - extend Lithic::Internal::Type::Union - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - variant String - - # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO` - variant Integer - - # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` - variant -> { Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::StringArray } - - # @!method self.variants - # @return [Array(String, Integer, Array)] - - # @type [Lithic::Internal::Type::Converter] - StringArray = Lithic::Internal::Type::ArrayOf[String] - end - end - end + variant -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters } # @!method self.variants - # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters)] + # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters)] end end diff --git a/lib/lithic/models/auth_rules/v2_draft_params.rb b/lib/lithic/models/auth_rules/v2_draft_params.rb index 8a11bd9c..6479f3e2 100644 --- a/lib/lithic/models/auth_rules/v2_draft_params.rb +++ b/lib/lithic/models/auth_rules/v2_draft_params.rb @@ -11,11 +11,11 @@ class V2DraftParams < Lithic::Internal::Type::BaseModel # @!attribute parameters # Parameters for the Auth Rule # - # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters, nil] + # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, nil] optional :parameters, union: -> { Lithic::AuthRules::V2DraftParams::Parameters }, nil?: true # @!method initialize(parameters: nil, request_options: {}) - # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters, nil] Parameters for the Auth Rule + # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, nil] Parameters for the Auth Rule # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] @@ -31,256 +31,10 @@ module Parameters variant -> { Lithic::AuthRules::Conditional3DSActionParameters } - variant -> { Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - # @!attribute action - # The action to take if the conditions are met. - # - # @return [Symbol, Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Action] - required :action, - enum: -> { Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Action } - - # @!attribute conditions - # - # @return [Array] - required :conditions, - -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition] } - - # @!method initialize(action:, conditions:) - # @param action [Symbol, Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Action] The action to take if the conditions are met. - # - # @param conditions [Array] - - # The action to take if the conditions are met. - # - # @see Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters#action - module Action - extend Lithic::Internal::Type::Enum - - DECLINE = :DECLINE - CHALLENGE = :CHALLENGE - - # @!method self.values - # @return [Array] - end - - class Condition < Lithic::Internal::Type::BaseModel - # @!attribute attribute - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @return [Symbol, Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] - optional :attribute, - enum: -> { Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute } - - # @!attribute operation - # The operation to apply to the attribute - # - # @return [Symbol, Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation, nil] - optional :operation, - enum: -> { Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation } - - # @!attribute value - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @return [String, Integer, Array, nil] - optional :value, - union: -> { Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value } - - # @!method initialize(attribute: nil, operation: nil, value: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition} - # for more details. - # - # @param attribute [Symbol, Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target. - # - # @param operation [Symbol, Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation] The operation to apply to the attribute - # - # @param value [String, Integer, Array] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @see Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute - module Attribute - extend Lithic::Internal::Type::Enum - - MCC = :MCC - COUNTRY = :COUNTRY - CURRENCY = :CURRENCY - MERCHANT_ID = :MERCHANT_ID - DESCRIPTOR = :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H - CARD_STATE = :CARD_STATE - PIN_ENTERED = :PIN_ENTERED - PIN_STATUS = :PIN_STATUS - WALLET_TYPE = :WALLET_TYPE - TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR - ADDRESS_MATCH = :ADDRESS_MATCH - - # @!method self.values - # @return [Array] - end - - # The operation to apply to the attribute - # - # @see Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition#operation - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF = :IS_ONE_OF - IS_NOT_ONE_OF = :IS_NOT_ONE_OF - MATCHES = :MATCHES - DOES_NOT_MATCH = :DOES_NOT_MATCH - IS_EQUAL_TO = :IS_EQUAL_TO - IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO - IS_GREATER_THAN = :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN = :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO - - # @!method self.values - # @return [Array] - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @see Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition#value - module Value - extend Lithic::Internal::Type::Union - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - variant String - - # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO` - variant Integer - - # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` - variant -> { Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::StringArray } - - # @!method self.variants - # @return [Array(String, Integer, Array)] - - # @type [Lithic::Internal::Type::Converter] - StringArray = Lithic::Internal::Type::ArrayOf[String] - end - end - end + variant -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters } # @!method self.variants - # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters)] + # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters)] end end end diff --git a/lib/lithic/models/auth_rules/v2_draft_response.rb b/lib/lithic/models/auth_rules/v2_draft_response.rb index e55c9864..1ac7c880 100644 --- a/lib/lithic/models/auth_rules/v2_draft_response.rb +++ b/lib/lithic/models/auth_rules/v2_draft_response.rb @@ -125,7 +125,7 @@ class CurrentVersion < Lithic::Internal::Type::BaseModel # @!attribute parameters # Parameters for the Auth Rule # - # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters] + # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] required :parameters, union: -> { Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters } response_only do @@ -141,7 +141,7 @@ class CurrentVersion < Lithic::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion} for more details. # - # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule + # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule # # @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan @@ -159,260 +159,10 @@ module Parameters variant -> { Lithic::AuthRules::Conditional3DSActionParameters } - variant -> { Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - # @!attribute action - # The action to take if the conditions are met. - # - # @return [Symbol, Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action] - required :action, - enum: -> { Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action } - - # @!attribute conditions - # - # @return [Array] - required :conditions, - -> do - Lithic::Internal::Type::ArrayOf[ - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - end - - # @!method initialize(action:, conditions:) - # @param action [Symbol, Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action] The action to take if the conditions are met. - # - # @param conditions [Array] - - # The action to take if the conditions are met. - # - # @see Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters#action - module Action - extend Lithic::Internal::Type::Enum - - DECLINE = :DECLINE - CHALLENGE = :CHALLENGE - - # @!method self.values - # @return [Array] - end - - class Condition < Lithic::Internal::Type::BaseModel - # @!attribute attribute - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @return [Symbol, Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] - optional :attribute, - enum: -> { Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute } - - # @!attribute operation - # The operation to apply to the attribute - # - # @return [Symbol, Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation, nil] - optional :operation, - enum: -> { Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation } - - # @!attribute value - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @return [String, Integer, Array, nil] - optional :value, - union: -> { Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value } - - # @!method initialize(attribute: nil, operation: nil, value: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition} - # for more details. - # - # @param attribute [Symbol, Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target. - # - # @param operation [Symbol, Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation] The operation to apply to the attribute - # - # @param value [String, Integer, Array] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @see Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute - module Attribute - extend Lithic::Internal::Type::Enum - - MCC = :MCC - COUNTRY = :COUNTRY - CURRENCY = :CURRENCY - MERCHANT_ID = :MERCHANT_ID - DESCRIPTOR = :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H - CARD_STATE = :CARD_STATE - PIN_ENTERED = :PIN_ENTERED - PIN_STATUS = :PIN_STATUS - WALLET_TYPE = :WALLET_TYPE - TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR - ADDRESS_MATCH = :ADDRESS_MATCH - - # @!method self.values - # @return [Array] - end - - # The operation to apply to the attribute - # - # @see Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#operation - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF = :IS_ONE_OF - IS_NOT_ONE_OF = :IS_NOT_ONE_OF - MATCHES = :MATCHES - DOES_NOT_MATCH = :DOES_NOT_MATCH - IS_EQUAL_TO = :IS_EQUAL_TO - IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO - IS_GREATER_THAN = :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN = :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO - - # @!method self.values - # @return [Array] - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @see Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#value - module Value - extend Lithic::Internal::Type::Union - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - variant String - - # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO` - variant Integer - - # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` - variant -> { Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::StringArray } - - # @!method self.variants - # @return [Array(String, Integer, Array)] - - # @type [Lithic::Internal::Type::Converter] - StringArray = Lithic::Internal::Type::ArrayOf[String] - end - end - end + variant -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters } # @!method self.variants - # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters)] + # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters)] end end @@ -421,7 +171,7 @@ class DraftVersion < Lithic::Internal::Type::BaseModel # @!attribute parameters # Parameters for the Auth Rule # - # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters] + # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] required :parameters, union: -> { Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters } response_only do @@ -437,7 +187,7 @@ class DraftVersion < Lithic::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::V2DraftResponse::DraftVersion} for more details. # - # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule + # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule # # @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan @@ -455,260 +205,10 @@ module Parameters variant -> { Lithic::AuthRules::Conditional3DSActionParameters } - variant -> { Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - # @!attribute action - # The action to take if the conditions are met. - # - # @return [Symbol, Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action] - required :action, - enum: -> { Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action } - - # @!attribute conditions - # - # @return [Array] - required :conditions, - -> do - Lithic::Internal::Type::ArrayOf[ - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - end - - # @!method initialize(action:, conditions:) - # @param action [Symbol, Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action] The action to take if the conditions are met. - # - # @param conditions [Array] - - # The action to take if the conditions are met. - # - # @see Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters#action - module Action - extend Lithic::Internal::Type::Enum - - DECLINE = :DECLINE - CHALLENGE = :CHALLENGE - - # @!method self.values - # @return [Array] - end - - class Condition < Lithic::Internal::Type::BaseModel - # @!attribute attribute - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @return [Symbol, Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] - optional :attribute, - enum: -> { Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute } - - # @!attribute operation - # The operation to apply to the attribute - # - # @return [Symbol, Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation, nil] - optional :operation, - enum: -> { Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation } - - # @!attribute value - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @return [String, Integer, Array, nil] - optional :value, - union: -> { Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value } - - # @!method initialize(attribute: nil, operation: nil, value: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition} - # for more details. - # - # @param attribute [Symbol, Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target. - # - # @param operation [Symbol, Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation] The operation to apply to the attribute - # - # @param value [String, Integer, Array] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @see Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute - module Attribute - extend Lithic::Internal::Type::Enum - - MCC = :MCC - COUNTRY = :COUNTRY - CURRENCY = :CURRENCY - MERCHANT_ID = :MERCHANT_ID - DESCRIPTOR = :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H - CARD_STATE = :CARD_STATE - PIN_ENTERED = :PIN_ENTERED - PIN_STATUS = :PIN_STATUS - WALLET_TYPE = :WALLET_TYPE - TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR - ADDRESS_MATCH = :ADDRESS_MATCH - - # @!method self.values - # @return [Array] - end - - # The operation to apply to the attribute - # - # @see Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#operation - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF = :IS_ONE_OF - IS_NOT_ONE_OF = :IS_NOT_ONE_OF - MATCHES = :MATCHES - DOES_NOT_MATCH = :DOES_NOT_MATCH - IS_EQUAL_TO = :IS_EQUAL_TO - IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO - IS_GREATER_THAN = :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN = :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO - - # @!method self.values - # @return [Array] - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @see Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#value - module Value - extend Lithic::Internal::Type::Union - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - variant String - - # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO` - variant Integer - - # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` - variant -> { Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::StringArray } - - # @!method self.variants - # @return [Array(String, Integer, Array)] - - # @type [Lithic::Internal::Type::Converter] - StringArray = Lithic::Internal::Type::ArrayOf[String] - end - end - end + variant -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters } # @!method self.variants - # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters)] + # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters)] end end diff --git a/lib/lithic/models/auth_rules/v2_list_response.rb b/lib/lithic/models/auth_rules/v2_list_response.rb index 6e941c6a..ff8d117d 100644 --- a/lib/lithic/models/auth_rules/v2_list_response.rb +++ b/lib/lithic/models/auth_rules/v2_list_response.rb @@ -125,7 +125,7 @@ class CurrentVersion < Lithic::Internal::Type::BaseModel # @!attribute parameters # Parameters for the Auth Rule # - # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters] + # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] required :parameters, union: -> { Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters } response_only do @@ -141,7 +141,7 @@ class CurrentVersion < Lithic::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::V2ListResponse::CurrentVersion} for more details. # - # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule + # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule # # @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan @@ -159,260 +159,10 @@ module Parameters variant -> { Lithic::AuthRules::Conditional3DSActionParameters } - variant -> { Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - # @!attribute action - # The action to take if the conditions are met. - # - # @return [Symbol, Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action] - required :action, - enum: -> { Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action } - - # @!attribute conditions - # - # @return [Array] - required :conditions, - -> do - Lithic::Internal::Type::ArrayOf[ - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - end - - # @!method initialize(action:, conditions:) - # @param action [Symbol, Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action] The action to take if the conditions are met. - # - # @param conditions [Array] - - # The action to take if the conditions are met. - # - # @see Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters#action - module Action - extend Lithic::Internal::Type::Enum - - DECLINE = :DECLINE - CHALLENGE = :CHALLENGE - - # @!method self.values - # @return [Array] - end - - class Condition < Lithic::Internal::Type::BaseModel - # @!attribute attribute - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @return [Symbol, Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] - optional :attribute, - enum: -> { Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute } - - # @!attribute operation - # The operation to apply to the attribute - # - # @return [Symbol, Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation, nil] - optional :operation, - enum: -> { Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation } - - # @!attribute value - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @return [String, Integer, Array, nil] - optional :value, - union: -> { Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value } - - # @!method initialize(attribute: nil, operation: nil, value: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition} - # for more details. - # - # @param attribute [Symbol, Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target. - # - # @param operation [Symbol, Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation] The operation to apply to the attribute - # - # @param value [String, Integer, Array] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @see Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute - module Attribute - extend Lithic::Internal::Type::Enum - - MCC = :MCC - COUNTRY = :COUNTRY - CURRENCY = :CURRENCY - MERCHANT_ID = :MERCHANT_ID - DESCRIPTOR = :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H - CARD_STATE = :CARD_STATE - PIN_ENTERED = :PIN_ENTERED - PIN_STATUS = :PIN_STATUS - WALLET_TYPE = :WALLET_TYPE - TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR - ADDRESS_MATCH = :ADDRESS_MATCH - - # @!method self.values - # @return [Array] - end - - # The operation to apply to the attribute - # - # @see Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#operation - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF = :IS_ONE_OF - IS_NOT_ONE_OF = :IS_NOT_ONE_OF - MATCHES = :MATCHES - DOES_NOT_MATCH = :DOES_NOT_MATCH - IS_EQUAL_TO = :IS_EQUAL_TO - IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO - IS_GREATER_THAN = :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN = :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO - - # @!method self.values - # @return [Array] - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @see Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#value - module Value - extend Lithic::Internal::Type::Union - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - variant String - - # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO` - variant Integer - - # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` - variant -> { Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::StringArray } - - # @!method self.variants - # @return [Array(String, Integer, Array)] - - # @type [Lithic::Internal::Type::Converter] - StringArray = Lithic::Internal::Type::ArrayOf[String] - end - end - end + variant -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters } # @!method self.variants - # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters)] + # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters)] end end @@ -421,7 +171,7 @@ class DraftVersion < Lithic::Internal::Type::BaseModel # @!attribute parameters # Parameters for the Auth Rule # - # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters] + # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] required :parameters, union: -> { Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters } response_only do @@ -437,7 +187,7 @@ class DraftVersion < Lithic::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::V2ListResponse::DraftVersion} for more details. # - # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule + # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule # # @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan @@ -455,260 +205,10 @@ module Parameters variant -> { Lithic::AuthRules::Conditional3DSActionParameters } - variant -> { Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - # @!attribute action - # The action to take if the conditions are met. - # - # @return [Symbol, Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action] - required :action, - enum: -> { Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action } - - # @!attribute conditions - # - # @return [Array] - required :conditions, - -> do - Lithic::Internal::Type::ArrayOf[ - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - end - - # @!method initialize(action:, conditions:) - # @param action [Symbol, Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action] The action to take if the conditions are met. - # - # @param conditions [Array] - - # The action to take if the conditions are met. - # - # @see Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters#action - module Action - extend Lithic::Internal::Type::Enum - - DECLINE = :DECLINE - CHALLENGE = :CHALLENGE - - # @!method self.values - # @return [Array] - end - - class Condition < Lithic::Internal::Type::BaseModel - # @!attribute attribute - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @return [Symbol, Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] - optional :attribute, - enum: -> { Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute } - - # @!attribute operation - # The operation to apply to the attribute - # - # @return [Symbol, Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation, nil] - optional :operation, - enum: -> { Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation } - - # @!attribute value - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @return [String, Integer, Array, nil] - optional :value, - union: -> { Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value } - - # @!method initialize(attribute: nil, operation: nil, value: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition} - # for more details. - # - # @param attribute [Symbol, Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target. - # - # @param operation [Symbol, Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation] The operation to apply to the attribute - # - # @param value [String, Integer, Array] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @see Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute - module Attribute - extend Lithic::Internal::Type::Enum - - MCC = :MCC - COUNTRY = :COUNTRY - CURRENCY = :CURRENCY - MERCHANT_ID = :MERCHANT_ID - DESCRIPTOR = :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H - CARD_STATE = :CARD_STATE - PIN_ENTERED = :PIN_ENTERED - PIN_STATUS = :PIN_STATUS - WALLET_TYPE = :WALLET_TYPE - TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR - ADDRESS_MATCH = :ADDRESS_MATCH - - # @!method self.values - # @return [Array] - end - - # The operation to apply to the attribute - # - # @see Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#operation - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF = :IS_ONE_OF - IS_NOT_ONE_OF = :IS_NOT_ONE_OF - MATCHES = :MATCHES - DOES_NOT_MATCH = :DOES_NOT_MATCH - IS_EQUAL_TO = :IS_EQUAL_TO - IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO - IS_GREATER_THAN = :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN = :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO - - # @!method self.values - # @return [Array] - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @see Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#value - module Value - extend Lithic::Internal::Type::Union - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - variant String - - # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO` - variant Integer - - # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` - variant -> { Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::StringArray } - - # @!method self.variants - # @return [Array(String, Integer, Array)] - - # @type [Lithic::Internal::Type::Converter] - StringArray = Lithic::Internal::Type::ArrayOf[String] - end - end - end + variant -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters } # @!method self.variants - # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters)] + # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters)] end end diff --git a/lib/lithic/models/auth_rules/v2_promote_response.rb b/lib/lithic/models/auth_rules/v2_promote_response.rb index dc55e07c..6d5e81bf 100644 --- a/lib/lithic/models/auth_rules/v2_promote_response.rb +++ b/lib/lithic/models/auth_rules/v2_promote_response.rb @@ -125,7 +125,7 @@ class CurrentVersion < Lithic::Internal::Type::BaseModel # @!attribute parameters # Parameters for the Auth Rule # - # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters] + # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] required :parameters, union: -> { Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters } @@ -142,7 +142,7 @@ class CurrentVersion < Lithic::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion} for more details. # - # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule + # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule # # @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan @@ -160,260 +160,10 @@ module Parameters variant -> { Lithic::AuthRules::Conditional3DSActionParameters } - variant -> { Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - # @!attribute action - # The action to take if the conditions are met. - # - # @return [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action] - required :action, - enum: -> { Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action } - - # @!attribute conditions - # - # @return [Array] - required :conditions, - -> do - Lithic::Internal::Type::ArrayOf[ - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - end - - # @!method initialize(action:, conditions:) - # @param action [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action] The action to take if the conditions are met. - # - # @param conditions [Array] - - # The action to take if the conditions are met. - # - # @see Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters#action - module Action - extend Lithic::Internal::Type::Enum - - DECLINE = :DECLINE - CHALLENGE = :CHALLENGE - - # @!method self.values - # @return [Array] - end - - class Condition < Lithic::Internal::Type::BaseModel - # @!attribute attribute - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @return [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] - optional :attribute, - enum: -> { Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute } - - # @!attribute operation - # The operation to apply to the attribute - # - # @return [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation, nil] - optional :operation, - enum: -> { Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation } - - # @!attribute value - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @return [String, Integer, Array, nil] - optional :value, - union: -> { Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value } - - # @!method initialize(attribute: nil, operation: nil, value: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition} - # for more details. - # - # @param attribute [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target. - # - # @param operation [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation] The operation to apply to the attribute - # - # @param value [String, Integer, Array] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @see Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute - module Attribute - extend Lithic::Internal::Type::Enum - - MCC = :MCC - COUNTRY = :COUNTRY - CURRENCY = :CURRENCY - MERCHANT_ID = :MERCHANT_ID - DESCRIPTOR = :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H - CARD_STATE = :CARD_STATE - PIN_ENTERED = :PIN_ENTERED - PIN_STATUS = :PIN_STATUS - WALLET_TYPE = :WALLET_TYPE - TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR - ADDRESS_MATCH = :ADDRESS_MATCH - - # @!method self.values - # @return [Array] - end - - # The operation to apply to the attribute - # - # @see Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#operation - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF = :IS_ONE_OF - IS_NOT_ONE_OF = :IS_NOT_ONE_OF - MATCHES = :MATCHES - DOES_NOT_MATCH = :DOES_NOT_MATCH - IS_EQUAL_TO = :IS_EQUAL_TO - IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO - IS_GREATER_THAN = :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN = :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO - - # @!method self.values - # @return [Array] - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @see Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#value - module Value - extend Lithic::Internal::Type::Union - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - variant String - - # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO` - variant Integer - - # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` - variant -> { Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::StringArray } - - # @!method self.variants - # @return [Array(String, Integer, Array)] - - # @type [Lithic::Internal::Type::Converter] - StringArray = Lithic::Internal::Type::ArrayOf[String] - end - end - end + variant -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters } # @!method self.variants - # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters)] + # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters)] end end @@ -422,7 +172,7 @@ class DraftVersion < Lithic::Internal::Type::BaseModel # @!attribute parameters # Parameters for the Auth Rule # - # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters] + # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] required :parameters, union: -> { Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters } response_only do @@ -438,7 +188,7 @@ class DraftVersion < Lithic::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion} for more details. # - # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule + # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule # # @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan @@ -456,260 +206,10 @@ module Parameters variant -> { Lithic::AuthRules::Conditional3DSActionParameters } - variant -> { Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - # @!attribute action - # The action to take if the conditions are met. - # - # @return [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action] - required :action, - enum: -> { Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action } - - # @!attribute conditions - # - # @return [Array] - required :conditions, - -> do - Lithic::Internal::Type::ArrayOf[ - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - end - - # @!method initialize(action:, conditions:) - # @param action [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action] The action to take if the conditions are met. - # - # @param conditions [Array] - - # The action to take if the conditions are met. - # - # @see Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters#action - module Action - extend Lithic::Internal::Type::Enum - - DECLINE = :DECLINE - CHALLENGE = :CHALLENGE - - # @!method self.values - # @return [Array] - end - - class Condition < Lithic::Internal::Type::BaseModel - # @!attribute attribute - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @return [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] - optional :attribute, - enum: -> { Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute } - - # @!attribute operation - # The operation to apply to the attribute - # - # @return [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation, nil] - optional :operation, - enum: -> { Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation } - - # @!attribute value - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @return [String, Integer, Array, nil] - optional :value, - union: -> { Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value } - - # @!method initialize(attribute: nil, operation: nil, value: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition} - # for more details. - # - # @param attribute [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target. - # - # @param operation [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation] The operation to apply to the attribute - # - # @param value [String, Integer, Array] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @see Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute - module Attribute - extend Lithic::Internal::Type::Enum - - MCC = :MCC - COUNTRY = :COUNTRY - CURRENCY = :CURRENCY - MERCHANT_ID = :MERCHANT_ID - DESCRIPTOR = :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H - CARD_STATE = :CARD_STATE - PIN_ENTERED = :PIN_ENTERED - PIN_STATUS = :PIN_STATUS - WALLET_TYPE = :WALLET_TYPE - TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR - ADDRESS_MATCH = :ADDRESS_MATCH - - # @!method self.values - # @return [Array] - end - - # The operation to apply to the attribute - # - # @see Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#operation - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF = :IS_ONE_OF - IS_NOT_ONE_OF = :IS_NOT_ONE_OF - MATCHES = :MATCHES - DOES_NOT_MATCH = :DOES_NOT_MATCH - IS_EQUAL_TO = :IS_EQUAL_TO - IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO - IS_GREATER_THAN = :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN = :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO - - # @!method self.values - # @return [Array] - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @see Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#value - module Value - extend Lithic::Internal::Type::Union - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - variant String - - # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO` - variant Integer - - # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` - variant -> { Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::StringArray } - - # @!method self.variants - # @return [Array(String, Integer, Array)] - - # @type [Lithic::Internal::Type::Converter] - StringArray = Lithic::Internal::Type::ArrayOf[String] - end - end - end + variant -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters } # @!method self.variants - # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters)] + # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters)] 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 index 7ba14476..6940a8e2 100644 --- a/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +++ b/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb @@ -30,13 +30,10 @@ class Feature < Lithic::Internal::Type::BaseModel required :filters, -> { Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters } # @!attribute period - # DEPRECATED: This has been deprecated in favor of the Trailing Window Objects + # Velocity over the current day since 00:00 / 12 AM in Eastern Time # - # 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 } + # @return [Lithic::Models::AuthRules::VelocityLimitPeriod::TrailingWindowObject, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowDay, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowWeek, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowMonth, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowYear] + required :period, union: -> { Lithic::AuthRules::VelocityLimitPeriod } # @!attribute scope # The scope the velocity is calculated for @@ -50,13 +47,9 @@ class Feature < Lithic::Internal::Type::BaseModel 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 period [Lithic::Models::AuthRules::VelocityLimitPeriod::TrailingWindowObject, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowDay, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowWeek, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowMonth, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowYear] Velocity over the current day since 00:00 / 12 AM in Eastern Time # # @param scope [Symbol, Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Scope] The scope the velocity is calculated for # diff --git a/lib/lithic/models/auth_rules/v2_retrieve_response.rb b/lib/lithic/models/auth_rules/v2_retrieve_response.rb index f063280a..c76ccdc8 100644 --- a/lib/lithic/models/auth_rules/v2_retrieve_response.rb +++ b/lib/lithic/models/auth_rules/v2_retrieve_response.rb @@ -127,7 +127,7 @@ class CurrentVersion < Lithic::Internal::Type::BaseModel # @!attribute parameters # Parameters for the Auth Rule # - # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters] + # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] required :parameters, union: -> { Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters } @@ -145,7 +145,7 @@ class CurrentVersion < Lithic::Internal::Type::BaseModel # {Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion} for more # details. # - # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule + # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule # # @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan @@ -163,260 +163,10 @@ module Parameters variant -> { Lithic::AuthRules::Conditional3DSActionParameters } - variant -> { Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - # @!attribute action - # The action to take if the conditions are met. - # - # @return [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action] - required :action, - enum: -> { Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action } - - # @!attribute conditions - # - # @return [Array] - required :conditions, - -> do - Lithic::Internal::Type::ArrayOf[ - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - end - - # @!method initialize(action:, conditions:) - # @param action [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action] The action to take if the conditions are met. - # - # @param conditions [Array] - - # The action to take if the conditions are met. - # - # @see Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters#action - module Action - extend Lithic::Internal::Type::Enum - - DECLINE = :DECLINE - CHALLENGE = :CHALLENGE - - # @!method self.values - # @return [Array] - end - - class Condition < Lithic::Internal::Type::BaseModel - # @!attribute attribute - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @return [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] - optional :attribute, - enum: -> { Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute } - - # @!attribute operation - # The operation to apply to the attribute - # - # @return [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation, nil] - optional :operation, - enum: -> { Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation } - - # @!attribute value - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @return [String, Integer, Array, nil] - optional :value, - union: -> { Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value } - - # @!method initialize(attribute: nil, operation: nil, value: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition} - # for more details. - # - # @param attribute [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target. - # - # @param operation [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation] The operation to apply to the attribute - # - # @param value [String, Integer, Array] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @see Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute - module Attribute - extend Lithic::Internal::Type::Enum - - MCC = :MCC - COUNTRY = :COUNTRY - CURRENCY = :CURRENCY - MERCHANT_ID = :MERCHANT_ID - DESCRIPTOR = :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H - CARD_STATE = :CARD_STATE - PIN_ENTERED = :PIN_ENTERED - PIN_STATUS = :PIN_STATUS - WALLET_TYPE = :WALLET_TYPE - TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR - ADDRESS_MATCH = :ADDRESS_MATCH - - # @!method self.values - # @return [Array] - end - - # The operation to apply to the attribute - # - # @see Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#operation - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF = :IS_ONE_OF - IS_NOT_ONE_OF = :IS_NOT_ONE_OF - MATCHES = :MATCHES - DOES_NOT_MATCH = :DOES_NOT_MATCH - IS_EQUAL_TO = :IS_EQUAL_TO - IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO - IS_GREATER_THAN = :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN = :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO - - # @!method self.values - # @return [Array] - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @see Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#value - module Value - extend Lithic::Internal::Type::Union - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - variant String - - # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO` - variant Integer - - # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` - variant -> { Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::StringArray } - - # @!method self.variants - # @return [Array(String, Integer, Array)] - - # @type [Lithic::Internal::Type::Converter] - StringArray = Lithic::Internal::Type::ArrayOf[String] - end - end - end + variant -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters } # @!method self.variants - # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters)] + # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters)] end end @@ -425,7 +175,7 @@ class DraftVersion < Lithic::Internal::Type::BaseModel # @!attribute parameters # Parameters for the Auth Rule # - # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters] + # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] required :parameters, union: -> { Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters } @@ -442,7 +192,7 @@ class DraftVersion < Lithic::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion} for more details. # - # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule + # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule # # @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan @@ -460,260 +210,10 @@ module Parameters variant -> { Lithic::AuthRules::Conditional3DSActionParameters } - variant -> { Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - # @!attribute action - # The action to take if the conditions are met. - # - # @return [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action] - required :action, - enum: -> { Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action } - - # @!attribute conditions - # - # @return [Array] - required :conditions, - -> do - Lithic::Internal::Type::ArrayOf[ - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - end - - # @!method initialize(action:, conditions:) - # @param action [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action] The action to take if the conditions are met. - # - # @param conditions [Array] - - # The action to take if the conditions are met. - # - # @see Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters#action - module Action - extend Lithic::Internal::Type::Enum - - DECLINE = :DECLINE - CHALLENGE = :CHALLENGE - - # @!method self.values - # @return [Array] - end - - class Condition < Lithic::Internal::Type::BaseModel - # @!attribute attribute - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @return [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] - optional :attribute, - enum: -> { Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute } - - # @!attribute operation - # The operation to apply to the attribute - # - # @return [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation, nil] - optional :operation, - enum: -> { Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation } - - # @!attribute value - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @return [String, Integer, Array, nil] - optional :value, - union: -> { Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value } - - # @!method initialize(attribute: nil, operation: nil, value: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition} - # for more details. - # - # @param attribute [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target. - # - # @param operation [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation] The operation to apply to the attribute - # - # @param value [String, Integer, Array] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @see Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute - module Attribute - extend Lithic::Internal::Type::Enum - - MCC = :MCC - COUNTRY = :COUNTRY - CURRENCY = :CURRENCY - MERCHANT_ID = :MERCHANT_ID - DESCRIPTOR = :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H - CARD_STATE = :CARD_STATE - PIN_ENTERED = :PIN_ENTERED - PIN_STATUS = :PIN_STATUS - WALLET_TYPE = :WALLET_TYPE - TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR - ADDRESS_MATCH = :ADDRESS_MATCH - - # @!method self.values - # @return [Array] - end - - # The operation to apply to the attribute - # - # @see Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#operation - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF = :IS_ONE_OF - IS_NOT_ONE_OF = :IS_NOT_ONE_OF - MATCHES = :MATCHES - DOES_NOT_MATCH = :DOES_NOT_MATCH - IS_EQUAL_TO = :IS_EQUAL_TO - IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO - IS_GREATER_THAN = :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN = :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO - - # @!method self.values - # @return [Array] - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @see Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#value - module Value - extend Lithic::Internal::Type::Union - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - variant String - - # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO` - variant Integer - - # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` - variant -> { Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::StringArray } - - # @!method self.variants - # @return [Array(String, Integer, Array)] - - # @type [Lithic::Internal::Type::Converter] - StringArray = Lithic::Internal::Type::ArrayOf[String] - end - end - end + variant -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters } # @!method self.variants - # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters)] + # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters)] end end diff --git a/lib/lithic/models/auth_rules/v2_update_response.rb b/lib/lithic/models/auth_rules/v2_update_response.rb index ef75f6fa..c8414a38 100644 --- a/lib/lithic/models/auth_rules/v2_update_response.rb +++ b/lib/lithic/models/auth_rules/v2_update_response.rb @@ -125,7 +125,7 @@ class CurrentVersion < Lithic::Internal::Type::BaseModel # @!attribute parameters # Parameters for the Auth Rule # - # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters] + # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] required :parameters, union: -> { Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters } @@ -142,7 +142,7 @@ class CurrentVersion < Lithic::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion} for more details. # - # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule + # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule # # @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan @@ -160,260 +160,10 @@ module Parameters variant -> { Lithic::AuthRules::Conditional3DSActionParameters } - variant -> { Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - # @!attribute action - # The action to take if the conditions are met. - # - # @return [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action] - required :action, - enum: -> { Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action } - - # @!attribute conditions - # - # @return [Array] - required :conditions, - -> do - Lithic::Internal::Type::ArrayOf[ - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - end - - # @!method initialize(action:, conditions:) - # @param action [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action] The action to take if the conditions are met. - # - # @param conditions [Array] - - # The action to take if the conditions are met. - # - # @see Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters#action - module Action - extend Lithic::Internal::Type::Enum - - DECLINE = :DECLINE - CHALLENGE = :CHALLENGE - - # @!method self.values - # @return [Array] - end - - class Condition < Lithic::Internal::Type::BaseModel - # @!attribute attribute - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @return [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] - optional :attribute, - enum: -> { Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute } - - # @!attribute operation - # The operation to apply to the attribute - # - # @return [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation, nil] - optional :operation, - enum: -> { Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation } - - # @!attribute value - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @return [String, Integer, Array, nil] - optional :value, - union: -> { Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value } - - # @!method initialize(attribute: nil, operation: nil, value: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition} - # for more details. - # - # @param attribute [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target. - # - # @param operation [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation] The operation to apply to the attribute - # - # @param value [String, Integer, Array] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @see Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute - module Attribute - extend Lithic::Internal::Type::Enum - - MCC = :MCC - COUNTRY = :COUNTRY - CURRENCY = :CURRENCY - MERCHANT_ID = :MERCHANT_ID - DESCRIPTOR = :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H - CARD_STATE = :CARD_STATE - PIN_ENTERED = :PIN_ENTERED - PIN_STATUS = :PIN_STATUS - WALLET_TYPE = :WALLET_TYPE - TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR - ADDRESS_MATCH = :ADDRESS_MATCH - - # @!method self.values - # @return [Array] - end - - # The operation to apply to the attribute - # - # @see Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#operation - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF = :IS_ONE_OF - IS_NOT_ONE_OF = :IS_NOT_ONE_OF - MATCHES = :MATCHES - DOES_NOT_MATCH = :DOES_NOT_MATCH - IS_EQUAL_TO = :IS_EQUAL_TO - IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO - IS_GREATER_THAN = :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN = :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO - - # @!method self.values - # @return [Array] - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @see Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#value - module Value - extend Lithic::Internal::Type::Union - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - variant String - - # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO` - variant Integer - - # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` - variant -> { Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::StringArray } - - # @!method self.variants - # @return [Array(String, Integer, Array)] - - # @type [Lithic::Internal::Type::Converter] - StringArray = Lithic::Internal::Type::ArrayOf[String] - end - end - end + variant -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters } # @!method self.variants - # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters)] + # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters)] end end @@ -422,7 +172,7 @@ class DraftVersion < Lithic::Internal::Type::BaseModel # @!attribute parameters # Parameters for the Auth Rule # - # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters] + # @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] required :parameters, union: -> { Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters } response_only do @@ -438,7 +188,7 @@ class DraftVersion < Lithic::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion} for more details. # - # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule + # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule # # @param version [Integer] The version of the rule, this is incremented whenever the rule's parameters chan @@ -456,260 +206,10 @@ module Parameters variant -> { Lithic::AuthRules::Conditional3DSActionParameters } - variant -> { Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - # @!attribute action - # The action to take if the conditions are met. - # - # @return [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action] - required :action, - enum: -> { Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action } - - # @!attribute conditions - # - # @return [Array] - required :conditions, - -> do - Lithic::Internal::Type::ArrayOf[ - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - end - - # @!method initialize(action:, conditions:) - # @param action [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action] The action to take if the conditions are met. - # - # @param conditions [Array] - - # The action to take if the conditions are met. - # - # @see Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters#action - module Action - extend Lithic::Internal::Type::Enum - - DECLINE = :DECLINE - CHALLENGE = :CHALLENGE - - # @!method self.values - # @return [Array] - end - - class Condition < Lithic::Internal::Type::BaseModel - # @!attribute attribute - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @return [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] - optional :attribute, - enum: -> { Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute } - - # @!attribute operation - # The operation to apply to the attribute - # - # @return [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation, nil] - optional :operation, - enum: -> { Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation } - - # @!attribute value - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @return [String, Integer, Array, nil] - optional :value, - union: -> { Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value } - - # @!method initialize(attribute: nil, operation: nil, value: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition} - # for more details. - # - # @param attribute [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target. - # - # @param operation [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation] The operation to apply to the attribute - # - # @param value [String, Integer, Array] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - # - # @see Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute - module Attribute - extend Lithic::Internal::Type::Enum - - MCC = :MCC - COUNTRY = :COUNTRY - CURRENCY = :CURRENCY - MERCHANT_ID = :MERCHANT_ID - DESCRIPTOR = :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H - CARD_STATE = :CARD_STATE - PIN_ENTERED = :PIN_ENTERED - PIN_STATUS = :PIN_STATUS - WALLET_TYPE = :WALLET_TYPE - TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR - ADDRESS_MATCH = :ADDRESS_MATCH - - # @!method self.values - # @return [Array] - end - - # The operation to apply to the attribute - # - # @see Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#operation - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF = :IS_ONE_OF - IS_NOT_ONE_OF = :IS_NOT_ONE_OF - MATCHES = :MATCHES - DOES_NOT_MATCH = :DOES_NOT_MATCH - IS_EQUAL_TO = :IS_EQUAL_TO - IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO - IS_GREATER_THAN = :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN = :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO - - # @!method self.values - # @return [Array] - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - # - # @see Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#value - module Value - extend Lithic::Internal::Type::Union - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - variant String - - # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO` - variant Integer - - # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` - variant -> { Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::StringArray } - - # @!method self.variants - # @return [Array(String, Integer, Array)] - - # @type [Lithic::Internal::Type::Converter] - StringArray = Lithic::Internal::Type::ArrayOf[String] - end - end - end + variant -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters } # @!method self.variants - # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters)] + # @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters)] end end diff --git a/lib/lithic/models/auth_rules/velocity_limit_params.rb b/lib/lithic/models/auth_rules/velocity_limit_params.rb index 8a2a8b94..af706df4 100644 --- a/lib/lithic/models/auth_rules/velocity_limit_params.rb +++ b/lib/lithic/models/auth_rules/velocity_limit_params.rb @@ -10,13 +10,10 @@ 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 + # Velocity over the current day since 00:00 / 12 AM in Eastern Time # - # 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 } + # @return [Lithic::Models::AuthRules::VelocityLimitPeriod::TrailingWindowObject, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowDay, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowWeek, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowMonth, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowYear] + required :period, union: -> { Lithic::AuthRules::VelocityLimitPeriod } # @!attribute scope # The scope the velocity is calculated for @@ -48,7 +45,7 @@ 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] DEPRECATED: This has been deprecated in favor of the Trailing Window Objects + # @param period [Lithic::Models::AuthRules::VelocityLimitPeriod::TrailingWindowObject, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowDay, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowWeek, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowMonth, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowYear] Velocity over the current day since 00:00 / 12 AM in Eastern Time # # @param scope [Symbol, Lithic::Models::AuthRules::VelocityLimitParams::Scope] The scope the velocity is calculated for # 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 deleted file mode 100644 index 881802e9..00000000 --- a/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +++ /dev/null @@ -1,248 +0,0 @@ -# frozen_string_literal: true - -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. - # * `WEEK`: Velocity over the current week since 00:00 / 12 AM on Monday in Eastern Time. - # * `MONTH`: Velocity over the current month since 00:00 / 12 AM on the first of the month in Eastern Time. - # * `YEAR`: Velocity over the current year since 00:00 / 12 AM on January 1st in Eastern Time. - variant enum: -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow } - - variant -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject } - - # Velocity over the current day since 00:00 / 12 AM in Eastern Time - variant -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay } - - # Velocity over the current week since 00:00 / 12 AM in Eastern Time on specified `day_of_week` - variant -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek } - - # Velocity over the current month since 00:00 / 12 AM in Eastern Time on specified `day_of_month`. - variant -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth } - - # 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. - # - `WEEK`: Velocity over the current week since 00:00 / 12 AM on Monday in - # Eastern Time. - # - `MONTH`: Velocity over the current month since 00:00 / 12 AM on the first of - # the month in Eastern Time. - # - `YEAR`: Velocity over the current year since 00:00 / 12 AM on January 1st in - # Eastern Time. - module FixedWindow - extend Lithic::Internal::Type::Enum - - DAY = :DAY - WEEK = :WEEK - MONTH = :MONTH - YEAR = :YEAR - - # @!method self.values - # @return [Array] - end - - class TrailingWindowObject < Lithic::Internal::Type::BaseModel - # @!attribute duration - # 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, nil] - optional :duration, Integer - - # @!attribute type - # - # @return [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::Type, nil] - optional :type, - enum: -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::Type } - - # @!method initialize(duration: nil, type: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject} - # for more details. - # - # @param duration [Integer] The size of the trailing window to calculate Spend Velocity over in seconds. The - # - # @param type [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::Type] - - # @see Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject#type - module Type - extend Lithic::Internal::Type::Enum - - CUSTOM = :CUSTOM - - # @!method self.values - # @return [Array] - end - end - - class FixedWindowDay < Lithic::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::Type, nil] - optional :type, enum: -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::Type } - - # @!method initialize(type: nil) - # Velocity over the current day since 00:00 / 12 AM in Eastern Time - # - # @param type [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::Type] - - # @see Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay#type - module Type - extend Lithic::Internal::Type::Enum - - DAY = :DAY - - # @!method self.values - # @return [Array] - end - end - - class FixedWindowWeek < Lithic::Internal::Type::BaseModel - # @!attribute day_of_week - # The day of the week to start the week from. Following ISO-8601, 1 is Monday and - # 7 is Sunday. Defaults to Monday if not specified. - # - # @return [Integer, nil] - optional :day_of_week, Integer - - # @!attribute type - # - # @return [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::Type, nil] - optional :type, enum: -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::Type } - - # @!method initialize(day_of_week: nil, type: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek} - # for more details. - # - # Velocity over the current week since 00:00 / 12 AM in Eastern Time on specified - # `day_of_week` - # - # @param day_of_week [Integer] The day of the week to start the week from. Following ISO-8601, 1 is Monday and - # - # @param type [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::Type] - - # @see Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek#type - module Type - extend Lithic::Internal::Type::Enum - - WEEK = :WEEK - - # @!method self.values - # @return [Array] - end - end - - class FixedWindowMonth < Lithic::Internal::Type::BaseModel - # @!attribute day_of_month - # The day of the month to start from. Accepts values from 1 to 31, and will reset - # at the end of the month if the day exceeds the number of days in the month. - # Defaults to the 1st of the month if not specified. - # - # @return [Integer, nil] - optional :day_of_month, Integer - - # @!attribute type - # - # @return [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::Type, nil] - optional :type, enum: -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::Type } - - # @!method initialize(day_of_month: nil, type: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth} - # for more details. - # - # Velocity over the current month since 00:00 / 12 AM in Eastern Time on specified - # `day_of_month`. - # - # @param day_of_month [Integer] The day of the month to start from. Accepts values from 1 to 31, and will reset - # - # @param type [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::Type] - - # @see Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth#type - module Type - extend Lithic::Internal::Type::Enum - - MONTH = :MONTH - - # @!method self.values - # @return [Array] - end - end - - class FixedWindowYear < Lithic::Internal::Type::BaseModel - # @!attribute day_of_month - # The day of the month to start from. Defaults to the 1st of the month if not - # specified. - # - # @return [Integer, nil] - optional :day_of_month, Integer - - # @!attribute month - # The month to start from. 1 is January and 12 is December. Defaults to January if - # not specified. - # - # @return [Integer, nil] - optional :month, Integer - - # @!attribute type - # - # @return [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::Type, nil] - optional :type, enum: -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::Type } - - # @!method initialize(day_of_month: nil, month: nil, type: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear} - # for more details. - # - # 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. - # - # @param day_of_month [Integer] The day of the month to start from. Defaults to the 1st of the month if not spec - # - # @param month [Integer] The month to start from. 1 is January and 12 is December. Defaults to January if - # - # @param type [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::Type] - - # @see Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear#type - module Type - extend Lithic::Internal::Type::Enum - - YEAR = :YEAR - - # @!method self.values - # @return [Array] - end - end - - # @!method self.variants - # @return [Array(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)] - end - end - end -end diff --git a/lib/lithic/models/auth_rules/velocity_limit_period.rb b/lib/lithic/models/auth_rules/velocity_limit_period.rb new file mode 100644 index 00000000..ce2811f8 --- /dev/null +++ b/lib/lithic/models/auth_rules/velocity_limit_period.rb @@ -0,0 +1,154 @@ +# frozen_string_literal: true + +module Lithic + module Models + module AuthRules + # Velocity over the current day since 00:00 / 12 AM in Eastern Time + module VelocityLimitPeriod + extend Lithic::Internal::Type::Union + + variant -> { Lithic::AuthRules::VelocityLimitPeriod::TrailingWindowObject } + + # Velocity over the current day since 00:00 / 12 AM in Eastern Time + variant -> { Lithic::AuthRules::VelocityLimitPeriod::FixedWindowDay } + + # Velocity over the current week since 00:00 / 12 AM in Eastern Time on specified `day_of_week` + variant -> { Lithic::AuthRules::VelocityLimitPeriod::FixedWindowWeek } + + # Velocity over the current month since 00:00 / 12 AM in Eastern Time on specified `day_of_month`. + variant -> { Lithic::AuthRules::VelocityLimitPeriod::FixedWindowMonth } + + # 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::VelocityLimitPeriod::FixedWindowYear } + + class TrailingWindowObject < Lithic::Internal::Type::BaseModel + # @!attribute duration + # 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] + required :duration, Integer + + # @!attribute type + # + # @return [Symbol, :CUSTOM] + required :type, const: :CUSTOM + + # @!method initialize(duration:, type: :CUSTOM) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AuthRules::VelocityLimitPeriod::TrailingWindowObject} for more + # details. + # + # @param duration [Integer] The size of the trailing window to calculate Spend Velocity over in seconds. The + # + # @param type [Symbol, :CUSTOM] + end + + class FixedWindowDay < Lithic::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, :DAY] + required :type, const: :DAY + + # @!method initialize(type: :DAY) + # Velocity over the current day since 00:00 / 12 AM in Eastern Time + # + # @param type [Symbol, :DAY] + end + + class FixedWindowWeek < Lithic::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, :WEEK] + required :type, const: :WEEK + + # @!attribute day_of_week + # The day of the week to start the week from. Following ISO-8601, 1 is Monday and + # 7 is Sunday. Defaults to Monday if not specified. + # + # @return [Integer, nil] + optional :day_of_week, Integer + + # @!method initialize(day_of_week: nil, type: :WEEK) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowWeek} for more + # details. + # + # Velocity over the current week since 00:00 / 12 AM in Eastern Time on specified + # `day_of_week` + # + # @param day_of_week [Integer] The day of the week to start the week from. Following ISO-8601, 1 is Monday and + # + # @param type [Symbol, :WEEK] + end + + class FixedWindowMonth < Lithic::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, :MONTH] + required :type, const: :MONTH + + # @!attribute day_of_month + # The day of the month to start from. Accepts values from 1 to 31, and will reset + # at the end of the month if the day exceeds the number of days in the month. + # Defaults to the 1st of the month if not specified. + # + # @return [Integer, nil] + optional :day_of_month, Integer + + # @!method initialize(day_of_month: nil, type: :MONTH) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowMonth} for more + # details. + # + # Velocity over the current month since 00:00 / 12 AM in Eastern Time on specified + # `day_of_month`. + # + # @param day_of_month [Integer] The day of the month to start from. Accepts values from 1 to 31, and will reset + # + # @param type [Symbol, :MONTH] + end + + class FixedWindowYear < Lithic::Internal::Type::BaseModel + # @!attribute type + # + # @return [Symbol, :YEAR] + required :type, const: :YEAR + + # @!attribute day_of_month + # The day of the month to start from. Defaults to the 1st of the month if not + # specified. + # + # @return [Integer, nil] + optional :day_of_month, Integer + + # @!attribute month + # The month to start from. 1 is January and 12 is December. Defaults to January if + # not specified. + # + # @return [Integer, nil] + optional :month, Integer + + # @!method initialize(day_of_month: nil, month: nil, type: :YEAR) + # Some parameter documentations has been truncated, see + # {Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowYear} for more + # details. + # + # 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. + # + # @param day_of_month [Integer] The day of the month to start from. Defaults to the 1st of the month if not spec + # + # @param month [Integer] The month to start from. 1 is January and 12 is December. Defaults to January if + # + # @param type [Symbol, :YEAR] + end + + # @!method self.variants + # @return [Array(Lithic::Models::AuthRules::VelocityLimitPeriod::TrailingWindowObject, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowDay, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowWeek, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowMonth, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowYear)] + end + end + end +end diff --git a/lib/lithic/models/book_transfer_response.rb b/lib/lithic/models/book_transfer_response.rb index 20ba5c44..9561f649 100644 --- a/lib/lithic/models/book_transfer_response.rb +++ b/lib/lithic/models/book_transfer_response.rb @@ -184,8 +184,9 @@ class Event < Lithic::Internal::Type::BaseModel # @!attribute detailed_results # - # @return [Symbol, Lithic::Models::BookTransferResponse::Event::DetailedResults] - required :detailed_results, enum: -> { Lithic::BookTransferResponse::Event::DetailedResults } + # @return [Array] + required :detailed_results, + -> { Lithic::Internal::Type::ArrayOf[enum: Lithic::BookTransferResponse::Event::DetailedResult] } # @!attribute memo # Memo for the transfer. @@ -224,7 +225,7 @@ class Event < Lithic::Internal::Type::BaseModel # # @param created [Time] Date and time when the financial event occurred. UTC time zone. # - # @param detailed_results [Symbol, Lithic::Models::BookTransferResponse::Event::DetailedResults] + # @param detailed_results [Array] # # @param memo [String] Memo for the transfer. # @@ -234,8 +235,7 @@ class Event < Lithic::Internal::Type::BaseModel # # @param type [Symbol, Lithic::Models::BookTransferResponse::Event::Type] Type of the book transfer - # @see Lithic::Models::BookTransferResponse::Event#detailed_results - module DetailedResults + module DetailedResult extend Lithic::Internal::Type::Enum APPROVED = :APPROVED diff --git a/lib/lithic/models/dispute.rb b/lib/lithic/models/dispute.rb index fb4d28fc..41f79aa9 100644 --- a/lib/lithic/models/dispute.rb +++ b/lib/lithic/models/dispute.rb @@ -2,323 +2,591 @@ module Lithic module Models - # @see Lithic::Resources::Disputes#create class Dispute < Lithic::Internal::Type::BaseModel # @!attribute token - # Globally unique identifier. + # Token assigned by Lithic for the dispute, in UUID format. # # @return [String] required :token, String - # @!attribute amount - # Amount under dispute. May be different from the original transaction amount. + # @!attribute account_token + # Token for the account associated with the dispute, in UUID format. # - # @return [Integer] - required :amount, Integer + # @return [String] + required :account_token, String + + # @!attribute card_token + # Token for the card used in the dispute, in UUID format. + # + # @return [String] + required :card_token, String - # @!attribute arbitration_date - # Date dispute entered arbitration. + # @!attribute case_id + # Identifier assigned by the network for this dispute. # - # @return [Time, nil] - required :arbitration_date, Time, nil?: true + # @return [String, nil] + required :case_id, String, nil?: true # @!attribute created - # Timestamp of when first Dispute was reported. + # When the dispute was created. # # @return [Time] required :created, Time - # @!attribute customer_filed_date - # Date that the dispute was filed by the customer making the dispute. - # - # @return [Time, nil] - required :customer_filed_date, Time, nil?: true - - # @!attribute customer_note - # End customer description of the reason for the dispute. + # @!attribute currency + # Three-letter ISO 4217 currency code. # - # @return [String, nil] - required :customer_note, String, nil?: true + # @return [String] + required :currency, String - # @!attribute network_claim_ids - # Unique identifiers for the dispute from the network. + # @!attribute disposition + # Dispute resolution outcome # - # @return [Array, nil] - required :network_claim_ids, Lithic::Internal::Type::ArrayOf[String], nil?: true + # @return [Symbol, Lithic::Models::Dispute::Disposition, nil] + required :disposition, enum: -> { Lithic::Dispute::Disposition }, nil?: true - # @!attribute network_filed_date - # Date that the dispute was submitted to the network. + # @!attribute events + # Chronological list of events that have occurred in the dispute lifecycle # - # @return [Time, nil] - required :network_filed_date, Time, nil?: true + # @return [Array] + required :events, -> { Lithic::Internal::Type::ArrayOf[Lithic::Dispute::Event] } - # @!attribute network_reason_code - # Network reason code used to file the dispute. + # @!attribute liability_allocation + # Current breakdown of how liability is allocated for the disputed amount # - # @return [String, nil] - required :network_reason_code, String, nil?: true + # @return [Lithic::Models::Dispute::LiabilityAllocation] + required :liability_allocation, -> { Lithic::Dispute::LiabilityAllocation } - # @!attribute prearbitration_date - # Date dispute entered pre-arbitration. + # @!attribute merchant # - # @return [Time, nil] - required :prearbitration_date, Time, nil?: true + # @return [Lithic::Models::Dispute::Merchant] + required :merchant, -> { Lithic::Dispute::Merchant } - # @!attribute primary_claim_id - # Unique identifier for the dispute from the network. If there are multiple, this - # will be the first claim id set by the network - # - # @return [String, nil] - required :primary_claim_id, String, nil?: true - - # @!attribute reason - # Dispute reason: - # - # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. - # - `CANCELLED`: Transaction was cancelled by the customer. - # - `DUPLICATED`: The transaction was a duplicate. - # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. - # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. - # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable - # merchant activity. - # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as - # described. - # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. - # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. - # - `MISSING_AUTH`: The transaction was missing authorization. - # - `OTHER`: Other reason. - # - `PROCESSING_ERROR`: Processing error. - # - `REFUND_NOT_PROCESSED`: The refund was not processed. - # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not - # cancelled. - # - # @return [Symbol, Lithic::Models::Dispute::Reason] - required :reason, enum: -> { Lithic::Dispute::Reason } - - # @!attribute representment_date - # Date the representment was received. - # - # @return [Time, nil] - required :representment_date, Time, nil?: true - - # @!attribute resolution_date - # Date that the dispute was resolved. - # - # @return [Time, nil] - required :resolution_date, Time, nil?: true - - # @!attribute resolution_note - # Note by Dispute team on the case resolution. + # @!attribute network + # Card network handling the dispute. # - # @return [String, nil] - required :resolution_note, String, nil?: true - - # @!attribute resolution_reason - # Reason for the dispute resolution: - # - # - `CASE_LOST`: This case was lost at final arbitration. - # - `NETWORK_REJECTED`: Network rejected. - # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. - # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. - # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. - # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. - # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. - # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. - # - `PAST_FILING_DATE`: Past filing date. - # - `PREARBITRATION_REJECTED`: Prearbitration rejected. - # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. - # - `REFUNDED`: Refunded. - # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. - # - `WITHDRAWN`: Withdrawn. - # - `WON_ARBITRATION`: Won arbitration. - # - `WON_FIRST_CHARGEBACK`: Won first chargeback. - # - `WON_PREARBITRATION`: Won prearbitration. - # - # @return [Symbol, Lithic::Models::Dispute::ResolutionReason, nil] - required :resolution_reason, enum: -> { Lithic::Dispute::ResolutionReason }, nil?: true + # @return [Symbol, Lithic::Models::Dispute::Network] + required :network, enum: -> { Lithic::Dispute::Network } # @!attribute status - # Status types: + # Current status of the dispute. # - # - `NEW` - New dispute case is opened. - # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more - # information. - # - `SUBMITTED` - Dispute is submitted to the card network. - # - `REPRESENTMENT` - Case has entered second presentment. - # - `PREARBITRATION` - Case has entered prearbitration. - # - `ARBITRATION` - Case has entered arbitration. - # - `CASE_WON` - Case was won and credit will be issued. - # - `CASE_CLOSED` - Case was lost or withdrawn. + # @return [Symbol, Lithic::Models::Dispute::Status, nil] + required :status, enum: -> { Lithic::Dispute::Status }, nil?: true + + # @!attribute transaction_series + # Contains identifiers for the transaction and specific event within being + # disputed; null if no transaction can be identified # - # @return [Symbol, Lithic::Models::Dispute::Status] - required :status, enum: -> { Lithic::Dispute::Status } + # @return [Lithic::Models::Dispute::TransactionSeries, nil] + required :transaction_series, -> { Lithic::Dispute::TransactionSeries }, nil?: true - # @!attribute transaction_token - # The transaction that is being disputed. A transaction can only be disputed once - # but may have multiple dispute cases. + # @!attribute updated + # When the dispute was last updated. # - # @return [String] - required :transaction_token, String + # @return [Time] + required :updated, Time - # @!method initialize(token:, amount:, arbitration_date:, created:, customer_filed_date:, customer_note:, network_claim_ids:, network_filed_date:, network_reason_code:, prearbitration_date:, primary_claim_id:, reason:, representment_date:, resolution_date:, resolution_note:, resolution_reason:, status:, transaction_token:) + # @!method initialize(token:, account_token:, card_token:, case_id:, created:, currency:, disposition:, events:, liability_allocation:, merchant:, network:, status:, transaction_series:, updated:) # Some parameter documentations has been truncated, see {Lithic::Models::Dispute} # for more details. # - # Dispute. - # - # @param token [String] Globally unique identifier. - # - # @param amount [Integer] Amount under dispute. May be different from the original transaction amount. + # The Dispute object tracks the progression of a dispute throughout its lifecycle. # - # @param arbitration_date [Time, nil] Date dispute entered arbitration. + # @param token [String] Token assigned by Lithic for the dispute, in UUID format. # - # @param created [Time] Timestamp of when first Dispute was reported. + # @param account_token [String] Token for the account associated with the dispute, in UUID format. # - # @param customer_filed_date [Time, nil] Date that the dispute was filed by the customer making the dispute. + # @param card_token [String] Token for the card used in the dispute, in UUID format. # - # @param customer_note [String, nil] End customer description of the reason for the dispute. + # @param case_id [String, nil] Identifier assigned by the network for this dispute. # - # @param network_claim_ids [Array, nil] Unique identifiers for the dispute from the network. + # @param created [Time] When the dispute was created. # - # @param network_filed_date [Time, nil] Date that the dispute was submitted to the network. + # @param currency [String] Three-letter ISO 4217 currency code. # - # @param network_reason_code [String, nil] Network reason code used to file the dispute. + # @param disposition [Symbol, Lithic::Models::Dispute::Disposition, nil] Dispute resolution outcome # - # @param prearbitration_date [Time, nil] Date dispute entered pre-arbitration. + # @param events [Array] Chronological list of events that have occurred in the dispute lifecycle # - # @param primary_claim_id [String, nil] Unique identifier for the dispute from the network. If there are multiple, this + # @param liability_allocation [Lithic::Models::Dispute::LiabilityAllocation] Current breakdown of how liability is allocated for the disputed amount # - # @param reason [Symbol, Lithic::Models::Dispute::Reason] Dispute reason: + # @param merchant [Lithic::Models::Dispute::Merchant] # - # @param representment_date [Time, nil] Date the representment was received. + # @param network [Symbol, Lithic::Models::Dispute::Network] Card network handling the dispute. # - # @param resolution_date [Time, nil] Date that the dispute was resolved. + # @param status [Symbol, Lithic::Models::Dispute::Status, nil] Current status of the dispute. # - # @param resolution_note [String, nil] Note by Dispute team on the case resolution. + # @param transaction_series [Lithic::Models::Dispute::TransactionSeries, nil] Contains identifiers for the transaction and specific event within being dispute # - # @param resolution_reason [Symbol, Lithic::Models::Dispute::ResolutionReason, nil] Reason for the dispute resolution: - # - # @param status [Symbol, Lithic::Models::Dispute::Status] Status types: - # - # @param transaction_token [String] The transaction that is being disputed. A transaction can only be disputed once + # @param updated [Time] When the dispute was last updated. - # Dispute reason: - # - # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. - # - `CANCELLED`: Transaction was cancelled by the customer. - # - `DUPLICATED`: The transaction was a duplicate. - # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. - # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. - # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable - # merchant activity. - # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as - # described. - # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. - # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. - # - `MISSING_AUTH`: The transaction was missing authorization. - # - `OTHER`: Other reason. - # - `PROCESSING_ERROR`: Processing error. - # - `REFUND_NOT_PROCESSED`: The refund was not processed. - # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not - # cancelled. + # Dispute resolution outcome # - # @see Lithic::Models::Dispute#reason - module Reason + # @see Lithic::Models::Dispute#disposition + module Disposition extend Lithic::Internal::Type::Enum - ATM_CASH_MISDISPENSE = :ATM_CASH_MISDISPENSE - CANCELLED = :CANCELLED - DUPLICATED = :DUPLICATED - FRAUD_CARD_NOT_PRESENT = :FRAUD_CARD_NOT_PRESENT - FRAUD_CARD_PRESENT = :FRAUD_CARD_PRESENT - FRAUD_OTHER = :FRAUD_OTHER - GOODS_SERVICES_NOT_AS_DESCRIBED = :GOODS_SERVICES_NOT_AS_DESCRIBED - GOODS_SERVICES_NOT_RECEIVED = :GOODS_SERVICES_NOT_RECEIVED - INCORRECT_AMOUNT = :INCORRECT_AMOUNT - MISSING_AUTH = :MISSING_AUTH - OTHER = :OTHER - PROCESSING_ERROR = :PROCESSING_ERROR - RECURRING_TRANSACTION_NOT_CANCELLED = :RECURRING_TRANSACTION_NOT_CANCELLED - REFUND_NOT_PROCESSED = :REFUND_NOT_PROCESSED + WON = :WON + LOST = :LOST + PARTIALLY_WON = :PARTIALLY_WON + WITHDRAWN = :WITHDRAWN + DENIED = :DENIED # @!method self.values # @return [Array] end - # Reason for the dispute resolution: - # - # - `CASE_LOST`: This case was lost at final arbitration. - # - `NETWORK_REJECTED`: Network rejected. - # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. - # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. - # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. - # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. - # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. - # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. - # - `PAST_FILING_DATE`: Past filing date. - # - `PREARBITRATION_REJECTED`: Prearbitration rejected. - # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. - # - `REFUNDED`: Refunded. - # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. - # - `WITHDRAWN`: Withdrawn. - # - `WON_ARBITRATION`: Won arbitration. - # - `WON_FIRST_CHARGEBACK`: Won first chargeback. - # - `WON_PREARBITRATION`: Won prearbitration. - # - # @see Lithic::Models::Dispute#resolution_reason - module ResolutionReason + class Event < Lithic::Internal::Type::BaseModel + # @!attribute token + # Unique identifier for the event, in UUID format + # + # @return [String] + required :token, String + + # @!attribute created + # When the event occurred + # + # @return [Time] + required :created, Time + + # @!attribute data + # Details specific to the event type + # + # @return [Lithic::Models::Dispute::Event::Data::WorkflowEventData, Lithic::Models::Dispute::Event::Data::FinancialEventData, Lithic::Models::Dispute::Event::Data::CardholderLiabilityEventData] + required :data, union: -> { Lithic::Dispute::Event::Data } + + # @!attribute type + # Type of event + # + # @return [Symbol, Lithic::Models::Dispute::Event::Type] + required :type, enum: -> { Lithic::Dispute::Event::Type } + + # @!method initialize(token:, created:, data:, type:) + # Event that occurred in the dispute lifecycle + # + # @param token [String] Unique identifier for the event, in UUID format + # + # @param created [Time] When the event occurred + # + # @param data [Lithic::Models::Dispute::Event::Data::WorkflowEventData, Lithic::Models::Dispute::Event::Data::FinancialEventData, Lithic::Models::Dispute::Event::Data::CardholderLiabilityEventData] Details specific to the event type + # + # @param type [Symbol, Lithic::Models::Dispute::Event::Type] Type of event + + # Details specific to the event type + # + # @see Lithic::Models::Dispute::Event#data + module Data + extend Lithic::Internal::Type::Union + + # Details specific to workflow events + variant -> { Lithic::Dispute::Event::Data::WorkflowEventData } + + # Details specific to financial events + variant -> { Lithic::Dispute::Event::Data::FinancialEventData } + + # Details specific to cardholder liability events + variant -> { Lithic::Dispute::Event::Data::CardholderLiabilityEventData } + + class WorkflowEventData < Lithic::Internal::Type::BaseModel + # @!attribute action + # Action taken in this stage + # + # @return [Symbol, Lithic::Models::Dispute::Event::Data::WorkflowEventData::Action] + required :action, enum: -> { Lithic::Dispute::Event::Data::WorkflowEventData::Action } + + # @!attribute amount + # Amount in minor units + # + # @return [Integer, nil] + required :amount, Integer, nil?: true + + # @!attribute disposition + # Dispute resolution outcome + # + # @return [Symbol, Lithic::Models::Dispute::Event::Data::WorkflowEventData::Disposition, nil] + required :disposition, + enum: -> { Lithic::Dispute::Event::Data::WorkflowEventData::Disposition }, + nil?: true + + # @!attribute reason + # Reason for the action + # + # @return [String, nil] + required :reason, String, nil?: true + + # @!attribute stage + # Current stage of the dispute workflow + # + # @return [Symbol, Lithic::Models::Dispute::Event::Data::WorkflowEventData::Stage] + required :stage, enum: -> { Lithic::Dispute::Event::Data::WorkflowEventData::Stage } + + # @!method initialize(action:, amount:, disposition:, reason:, stage:) + # Details specific to workflow events + # + # @param action [Symbol, Lithic::Models::Dispute::Event::Data::WorkflowEventData::Action] Action taken in this stage + # + # @param amount [Integer, nil] Amount in minor units + # + # @param disposition [Symbol, Lithic::Models::Dispute::Event::Data::WorkflowEventData::Disposition, nil] Dispute resolution outcome + # + # @param reason [String, nil] Reason for the action + # + # @param stage [Symbol, Lithic::Models::Dispute::Event::Data::WorkflowEventData::Stage] Current stage of the dispute workflow + + # Action taken in this stage + # + # @see Lithic::Models::Dispute::Event::Data::WorkflowEventData#action + module Action + extend Lithic::Internal::Type::Enum + + OPENED = :OPENED + CLOSED = :CLOSED + REOPENED = :REOPENED + + # @!method self.values + # @return [Array] + end + + # Dispute resolution outcome + # + # @see Lithic::Models::Dispute::Event::Data::WorkflowEventData#disposition + module Disposition + extend Lithic::Internal::Type::Enum + + WON = :WON + LOST = :LOST + PARTIALLY_WON = :PARTIALLY_WON + WITHDRAWN = :WITHDRAWN + DENIED = :DENIED + + # @!method self.values + # @return [Array] + end + + # Current stage of the dispute workflow + # + # @see Lithic::Models::Dispute::Event::Data::WorkflowEventData#stage + module Stage + extend Lithic::Internal::Type::Enum + + CLAIM = :CLAIM + + # @!method self.values + # @return [Array] + end + end + + class FinancialEventData < Lithic::Internal::Type::BaseModel + # @!attribute amount + # Amount in minor units + # + # @return [Integer] + required :amount, Integer + + # @!attribute polarity + # Direction of funds flow + # + # @return [Symbol, Lithic::Models::Dispute::Event::Data::FinancialEventData::Polarity] + required :polarity, enum: -> { Lithic::Dispute::Event::Data::FinancialEventData::Polarity } + + # @!attribute stage + # Stage at which the financial event occurred + # + # @return [Symbol, Lithic::Models::Dispute::Event::Data::FinancialEventData::Stage] + required :stage, enum: -> { Lithic::Dispute::Event::Data::FinancialEventData::Stage } + + # @!method initialize(amount:, polarity:, stage:) + # Details specific to financial events + # + # @param amount [Integer] Amount in minor units + # + # @param polarity [Symbol, Lithic::Models::Dispute::Event::Data::FinancialEventData::Polarity] Direction of funds flow + # + # @param stage [Symbol, Lithic::Models::Dispute::Event::Data::FinancialEventData::Stage] Stage at which the financial event occurred + + # Direction of funds flow + # + # @see Lithic::Models::Dispute::Event::Data::FinancialEventData#polarity + module Polarity + extend Lithic::Internal::Type::Enum + + CREDIT = :CREDIT + DEBIT = :DEBIT + + # @!method self.values + # @return [Array] + end + + # Stage at which the financial event occurred + # + # @see Lithic::Models::Dispute::Event::Data::FinancialEventData#stage + module Stage + extend Lithic::Internal::Type::Enum + + CHARGEBACK = :CHARGEBACK + REPRESENTMENT = :REPRESENTMENT + PREARBITRATION = :PREARBITRATION + ARBITRATION = :ARBITRATION + COLLABORATION = :COLLABORATION + + # @!method self.values + # @return [Array] + end + end + + class CardholderLiabilityEventData < Lithic::Internal::Type::BaseModel + # @!attribute action + # Action taken regarding cardholder liability + # + # @return [Symbol, Lithic::Models::Dispute::Event::Data::CardholderLiabilityEventData::Action] + required :action, enum: -> { Lithic::Dispute::Event::Data::CardholderLiabilityEventData::Action } + + # @!attribute amount + # Amount in minor units + # + # @return [Integer] + required :amount, Integer + + # @!attribute reason + # Reason for the action + # + # @return [String] + required :reason, String + + # @!method initialize(action:, amount:, reason:) + # Details specific to cardholder liability events + # + # @param action [Symbol, Lithic::Models::Dispute::Event::Data::CardholderLiabilityEventData::Action] Action taken regarding cardholder liability + # + # @param amount [Integer] Amount in minor units + # + # @param reason [String] Reason for the action + + # Action taken regarding cardholder liability + # + # @see Lithic::Models::Dispute::Event::Data::CardholderLiabilityEventData#action + module Action + extend Lithic::Internal::Type::Enum + + PROVISIONAL_CREDIT_GRANTED = :PROVISIONAL_CREDIT_GRANTED + PROVISIONAL_CREDIT_REVERSED = :PROVISIONAL_CREDIT_REVERSED + WRITTEN_OFF = :WRITTEN_OFF + + # @!method self.values + # @return [Array] + end + end + + # @!method self.variants + # @return [Array(Lithic::Models::Dispute::Event::Data::WorkflowEventData, Lithic::Models::Dispute::Event::Data::FinancialEventData, Lithic::Models::Dispute::Event::Data::CardholderLiabilityEventData)] + end + + # Type of event + # + # @see Lithic::Models::Dispute::Event#type + module Type + extend Lithic::Internal::Type::Enum + + WORKFLOW = :WORKFLOW + FINANCIAL = :FINANCIAL + CARDHOLDER_LIABILITY = :CARDHOLDER_LIABILITY + + # @!method self.values + # @return [Array] + end + end + + # @see Lithic::Models::Dispute#liability_allocation + class LiabilityAllocation < Lithic::Internal::Type::BaseModel + # @!attribute denied_amount + # The amount that has been denied to the cardholder + # + # @return [Integer] + required :denied_amount, Integer + + # @!attribute original_amount + # The initial amount disputed + # + # @return [Integer] + required :original_amount, Integer + + # @!attribute recovered_amount + # The amount that has been recovered from the merchant through the dispute process + # + # @return [Integer] + required :recovered_amount, Integer + + # @!attribute remaining_amount + # Any disputed amount that is still outstanding, i.e. has not been recovered, + # written off, or denied + # + # @return [Integer] + required :remaining_amount, Integer + + # @!attribute written_off_amount + # The amount the issuer has chosen to write off + # + # @return [Integer] + required :written_off_amount, Integer + + # @!method initialize(denied_amount:, original_amount:, recovered_amount:, remaining_amount:, written_off_amount:) + # Some parameter documentations has been truncated, see + # {Lithic::Models::Dispute::LiabilityAllocation} for more details. + # + # Current breakdown of how liability is allocated for the disputed amount + # + # @param denied_amount [Integer] The amount that has been denied to the cardholder + # + # @param original_amount [Integer] The initial amount disputed + # + # @param recovered_amount [Integer] The amount that has been recovered from the merchant through the dispute process + # + # @param remaining_amount [Integer] Any disputed amount that is still outstanding, i.e. has not been recovered, writ + # + # @param written_off_amount [Integer] The amount the issuer has chosen to write off + end + + # @see Lithic::Models::Dispute#merchant + class Merchant < Lithic::Internal::Type::BaseModel + # @!attribute acceptor_id + # Unique alphanumeric identifier for the payment card acceptor (merchant). + # + # @return [String] + required :acceptor_id, String + + # @!attribute acquiring_institution_id + # Unique numeric identifier of the acquiring institution. + # + # @return [String] + required :acquiring_institution_id, String + + # @!attribute city + # City of card acceptor. Note that in many cases, particularly in card-not-present + # transactions, merchants may send through a phone number or URL in this field. + # + # @return [String] + required :city, String + + # @!attribute country + # Country or entity of card acceptor. Possible values are: (1) all ISO 3166-1 + # alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for Netherlands Antilles. + # + # @return [String] + required :country, String + + # @!attribute descriptor + # Short description of card acceptor. + # + # @return [String] + required :descriptor, String + + # @!attribute mcc + # Merchant category code (MCC). A four-digit number listed in ISO 18245. An MCC is + # used to classify a business by the types of goods or services it provides. + # + # @return [String] + required :mcc, String + + # @!attribute state + # Geographic state of card acceptor. + # + # @return [String] + required :state, String + + # @!method initialize(acceptor_id:, acquiring_institution_id:, city:, country:, descriptor:, mcc:, state:) + # Some parameter documentations has been truncated, see + # {Lithic::Models::Dispute::Merchant} for more details. + # + # @param acceptor_id [String] Unique alphanumeric identifier for the payment card acceptor (merchant). + # + # @param acquiring_institution_id [String] Unique numeric identifier of the acquiring institution. + # + # @param city [String] City of card acceptor. Note that in many cases, particularly in card-not-present + # + # @param country [String] Country or entity of card acceptor. Possible values are: (1) all ISO 3166-1 alph + # + # @param descriptor [String] Short description of card acceptor. + # + # @param mcc [String] Merchant category code (MCC). A four-digit number listed in ISO 18245. An MCC is + # + # @param state [String] Geographic state of card acceptor. + end + + # Card network handling the dispute. + # + # @see Lithic::Models::Dispute#network + module Network extend Lithic::Internal::Type::Enum - CASE_LOST = :CASE_LOST - NETWORK_REJECTED = :NETWORK_REJECTED - NO_DISPUTE_RIGHTS_3DS = :NO_DISPUTE_RIGHTS_3DS - NO_DISPUTE_RIGHTS_BELOW_THRESHOLD = :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD - NO_DISPUTE_RIGHTS_CONTACTLESS = :NO_DISPUTE_RIGHTS_CONTACTLESS - NO_DISPUTE_RIGHTS_HYBRID = :NO_DISPUTE_RIGHTS_HYBRID - NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS = :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS - NO_DISPUTE_RIGHTS_OTHER = :NO_DISPUTE_RIGHTS_OTHER - PAST_FILING_DATE = :PAST_FILING_DATE - PREARBITRATION_REJECTED = :PREARBITRATION_REJECTED - PROCESSOR_REJECTED_OTHER = :PROCESSOR_REJECTED_OTHER - REFUNDED = :REFUNDED - REFUNDED_AFTER_CHARGEBACK = :REFUNDED_AFTER_CHARGEBACK - WITHDRAWN = :WITHDRAWN - WON_ARBITRATION = :WON_ARBITRATION - WON_FIRST_CHARGEBACK = :WON_FIRST_CHARGEBACK - WON_PREARBITRATION = :WON_PREARBITRATION + VISA = :VISA + MASTERCARD = :MASTERCARD # @!method self.values # @return [Array] end - # Status types: - # - # - `NEW` - New dispute case is opened. - # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more - # information. - # - `SUBMITTED` - Dispute is submitted to the card network. - # - `REPRESENTMENT` - Case has entered second presentment. - # - `PREARBITRATION` - Case has entered prearbitration. - # - `ARBITRATION` - Case has entered arbitration. - # - `CASE_WON` - Case was won and credit will be issued. - # - `CASE_CLOSED` - Case was lost or withdrawn. + # Current status of the dispute. # # @see Lithic::Models::Dispute#status module Status extend Lithic::Internal::Type::Enum - ARBITRATION = :ARBITRATION - CASE_CLOSED = :CASE_CLOSED - CASE_WON = :CASE_WON - NEW = :NEW - PENDING_CUSTOMER = :PENDING_CUSTOMER - PREARBITRATION = :PREARBITRATION - REPRESENTMENT = :REPRESENTMENT - SUBMITTED = :SUBMITTED + OPEN = :OPEN + CLOSED = :CLOSED # @!method self.values # @return [Array] end + + # @see Lithic::Models::Dispute#transaction_series + class TransactionSeries < Lithic::Internal::Type::BaseModel + # @!attribute related_transaction_event_token + # Token of the specific event in the original transaction being disputed, in UUID + # format; null if no event can be identified + # + # @return [String, nil] + required :related_transaction_event_token, String, nil?: true + + # @!attribute related_transaction_token + # Token of the original transaction being disputed, in UUID format + # + # @return [String] + required :related_transaction_token, String + + # @!attribute type + # The type of transaction series associating the dispute and the original + # transaction. Always set to DISPUTE + # + # @return [Symbol, Lithic::Models::Dispute::TransactionSeries::Type] + required :type, enum: -> { Lithic::Dispute::TransactionSeries::Type } + + # @!method initialize(related_transaction_event_token:, related_transaction_token:, type:) + # Some parameter documentations has been truncated, see + # {Lithic::Models::Dispute::TransactionSeries} for more details. + # + # Contains identifiers for the transaction and specific event within being + # disputed; null if no transaction can be identified + # + # @param related_transaction_event_token [String, nil] Token of the specific event in the original transaction being disputed, in UUID + # + # @param related_transaction_token [String] Token of the original transaction being disputed, in UUID format + # + # @param type [Symbol, Lithic::Models::Dispute::TransactionSeries::Type] The type of transaction series associating the dispute and the original transact + + # The type of transaction series associating the dispute and the original + # transaction. Always set to DISPUTE + # + # @see Lithic::Models::Dispute::TransactionSeries#type + module Type + extend Lithic::Internal::Type::Enum + + DISPUTE = :DISPUTE + + # @!method self.values + # @return [Array] + end + end end end end diff --git a/lib/lithic/models/dispute_create_response.rb b/lib/lithic/models/dispute_create_response.rb new file mode 100644 index 00000000..452c366b --- /dev/null +++ b/lib/lithic/models/dispute_create_response.rb @@ -0,0 +1,326 @@ +# frozen_string_literal: true + +module Lithic + module Models + # @see Lithic::Resources::Disputes#create + class DisputeCreateResponse < Lithic::Internal::Type::BaseModel + # @!attribute token + # Globally unique identifier. + # + # @return [String] + required :token, String + + # @!attribute amount + # Amount under dispute. May be different from the original transaction amount. + # + # @return [Integer] + required :amount, Integer + + # @!attribute arbitration_date + # Date dispute entered arbitration. + # + # @return [Time, nil] + required :arbitration_date, Time, nil?: true + + # @!attribute created + # Timestamp of when first Dispute was reported. + # + # @return [Time] + required :created, Time + + # @!attribute customer_filed_date + # Date that the dispute was filed by the customer making the dispute. + # + # @return [Time, nil] + required :customer_filed_date, Time, nil?: true + + # @!attribute customer_note + # End customer description of the reason for the dispute. + # + # @return [String, nil] + required :customer_note, String, nil?: true + + # @!attribute network_claim_ids + # Unique identifiers for the dispute from the network. + # + # @return [Array, nil] + required :network_claim_ids, Lithic::Internal::Type::ArrayOf[String], nil?: true + + # @!attribute network_filed_date + # Date that the dispute was submitted to the network. + # + # @return [Time, nil] + required :network_filed_date, Time, nil?: true + + # @!attribute network_reason_code + # Network reason code used to file the dispute. + # + # @return [String, nil] + required :network_reason_code, String, nil?: true + + # @!attribute prearbitration_date + # Date dispute entered pre-arbitration. + # + # @return [Time, nil] + required :prearbitration_date, Time, nil?: true + + # @!attribute primary_claim_id + # Unique identifier for the dispute from the network. If there are multiple, this + # will be the first claim id set by the network + # + # @return [String, nil] + required :primary_claim_id, String, nil?: true + + # @!attribute reason + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + # + # @return [Symbol, Lithic::Models::DisputeCreateResponse::Reason] + required :reason, enum: -> { Lithic::Models::DisputeCreateResponse::Reason } + + # @!attribute representment_date + # Date the representment was received. + # + # @return [Time, nil] + required :representment_date, Time, nil?: true + + # @!attribute resolution_date + # Date that the dispute was resolved. + # + # @return [Time, nil] + required :resolution_date, Time, nil?: true + + # @!attribute resolution_note + # Note by Dispute team on the case resolution. + # + # @return [String, nil] + required :resolution_note, String, nil?: true + + # @!attribute resolution_reason + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + # + # @return [Symbol, Lithic::Models::DisputeCreateResponse::ResolutionReason, nil] + required :resolution_reason, + enum: -> { Lithic::Models::DisputeCreateResponse::ResolutionReason }, + nil?: true + + # @!attribute status + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + # + # @return [Symbol, Lithic::Models::DisputeCreateResponse::Status] + required :status, enum: -> { Lithic::Models::DisputeCreateResponse::Status } + + # @!attribute transaction_token + # The transaction that is being disputed. A transaction can only be disputed once + # but may have multiple dispute cases. + # + # @return [String] + required :transaction_token, String + + # @!method initialize(token:, amount:, arbitration_date:, created:, customer_filed_date:, customer_note:, network_claim_ids:, network_filed_date:, network_reason_code:, prearbitration_date:, primary_claim_id:, reason:, representment_date:, resolution_date:, resolution_note:, resolution_reason:, status:, transaction_token:) + # Some parameter documentations has been truncated, see + # {Lithic::Models::DisputeCreateResponse} for more details. + # + # Dispute. + # + # @param token [String] Globally unique identifier. + # + # @param amount [Integer] Amount under dispute. May be different from the original transaction amount. + # + # @param arbitration_date [Time, nil] Date dispute entered arbitration. + # + # @param created [Time] Timestamp of when first Dispute was reported. + # + # @param customer_filed_date [Time, nil] Date that the dispute was filed by the customer making the dispute. + # + # @param customer_note [String, nil] End customer description of the reason for the dispute. + # + # @param network_claim_ids [Array, nil] Unique identifiers for the dispute from the network. + # + # @param network_filed_date [Time, nil] Date that the dispute was submitted to the network. + # + # @param network_reason_code [String, nil] Network reason code used to file the dispute. + # + # @param prearbitration_date [Time, nil] Date dispute entered pre-arbitration. + # + # @param primary_claim_id [String, nil] Unique identifier for the dispute from the network. If there are multiple, this + # + # @param reason [Symbol, Lithic::Models::DisputeCreateResponse::Reason] Dispute reason: + # + # @param representment_date [Time, nil] Date the representment was received. + # + # @param resolution_date [Time, nil] Date that the dispute was resolved. + # + # @param resolution_note [String, nil] Note by Dispute team on the case resolution. + # + # @param resolution_reason [Symbol, Lithic::Models::DisputeCreateResponse::ResolutionReason, nil] Reason for the dispute resolution: + # + # @param status [Symbol, Lithic::Models::DisputeCreateResponse::Status] Status types: + # + # @param transaction_token [String] The transaction that is being disputed. A transaction can only be disputed once + + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + # + # @see Lithic::Models::DisputeCreateResponse#reason + module Reason + extend Lithic::Internal::Type::Enum + + ATM_CASH_MISDISPENSE = :ATM_CASH_MISDISPENSE + CANCELLED = :CANCELLED + DUPLICATED = :DUPLICATED + FRAUD_CARD_NOT_PRESENT = :FRAUD_CARD_NOT_PRESENT + FRAUD_CARD_PRESENT = :FRAUD_CARD_PRESENT + FRAUD_OTHER = :FRAUD_OTHER + GOODS_SERVICES_NOT_AS_DESCRIBED = :GOODS_SERVICES_NOT_AS_DESCRIBED + GOODS_SERVICES_NOT_RECEIVED = :GOODS_SERVICES_NOT_RECEIVED + INCORRECT_AMOUNT = :INCORRECT_AMOUNT + MISSING_AUTH = :MISSING_AUTH + OTHER = :OTHER + PROCESSING_ERROR = :PROCESSING_ERROR + RECURRING_TRANSACTION_NOT_CANCELLED = :RECURRING_TRANSACTION_NOT_CANCELLED + REFUND_NOT_PROCESSED = :REFUND_NOT_PROCESSED + + # @!method self.values + # @return [Array] + end + + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + # + # @see Lithic::Models::DisputeCreateResponse#resolution_reason + module ResolutionReason + extend Lithic::Internal::Type::Enum + + CASE_LOST = :CASE_LOST + NETWORK_REJECTED = :NETWORK_REJECTED + NO_DISPUTE_RIGHTS_3DS = :NO_DISPUTE_RIGHTS_3DS + NO_DISPUTE_RIGHTS_BELOW_THRESHOLD = :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD + NO_DISPUTE_RIGHTS_CONTACTLESS = :NO_DISPUTE_RIGHTS_CONTACTLESS + NO_DISPUTE_RIGHTS_HYBRID = :NO_DISPUTE_RIGHTS_HYBRID + NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS = :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS + NO_DISPUTE_RIGHTS_OTHER = :NO_DISPUTE_RIGHTS_OTHER + PAST_FILING_DATE = :PAST_FILING_DATE + PREARBITRATION_REJECTED = :PREARBITRATION_REJECTED + PROCESSOR_REJECTED_OTHER = :PROCESSOR_REJECTED_OTHER + REFUNDED = :REFUNDED + REFUNDED_AFTER_CHARGEBACK = :REFUNDED_AFTER_CHARGEBACK + WITHDRAWN = :WITHDRAWN + WON_ARBITRATION = :WON_ARBITRATION + WON_FIRST_CHARGEBACK = :WON_FIRST_CHARGEBACK + WON_PREARBITRATION = :WON_PREARBITRATION + + # @!method self.values + # @return [Array] + end + + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + # + # @see Lithic::Models::DisputeCreateResponse#status + module Status + extend Lithic::Internal::Type::Enum + + ARBITRATION = :ARBITRATION + CASE_CLOSED = :CASE_CLOSED + CASE_WON = :CASE_WON + NEW = :NEW + PENDING_CUSTOMER = :PENDING_CUSTOMER + PREARBITRATION = :PREARBITRATION + REPRESENTMENT = :REPRESENTMENT + SUBMITTED = :SUBMITTED + + # @!method self.values + # @return [Array] + end + end + end +end diff --git a/lib/lithic/models/dispute_delete_response.rb b/lib/lithic/models/dispute_delete_response.rb new file mode 100644 index 00000000..2f53b878 --- /dev/null +++ b/lib/lithic/models/dispute_delete_response.rb @@ -0,0 +1,326 @@ +# frozen_string_literal: true + +module Lithic + module Models + # @see Lithic::Resources::Disputes#delete + class DisputeDeleteResponse < Lithic::Internal::Type::BaseModel + # @!attribute token + # Globally unique identifier. + # + # @return [String] + required :token, String + + # @!attribute amount + # Amount under dispute. May be different from the original transaction amount. + # + # @return [Integer] + required :amount, Integer + + # @!attribute arbitration_date + # Date dispute entered arbitration. + # + # @return [Time, nil] + required :arbitration_date, Time, nil?: true + + # @!attribute created + # Timestamp of when first Dispute was reported. + # + # @return [Time] + required :created, Time + + # @!attribute customer_filed_date + # Date that the dispute was filed by the customer making the dispute. + # + # @return [Time, nil] + required :customer_filed_date, Time, nil?: true + + # @!attribute customer_note + # End customer description of the reason for the dispute. + # + # @return [String, nil] + required :customer_note, String, nil?: true + + # @!attribute network_claim_ids + # Unique identifiers for the dispute from the network. + # + # @return [Array, nil] + required :network_claim_ids, Lithic::Internal::Type::ArrayOf[String], nil?: true + + # @!attribute network_filed_date + # Date that the dispute was submitted to the network. + # + # @return [Time, nil] + required :network_filed_date, Time, nil?: true + + # @!attribute network_reason_code + # Network reason code used to file the dispute. + # + # @return [String, nil] + required :network_reason_code, String, nil?: true + + # @!attribute prearbitration_date + # Date dispute entered pre-arbitration. + # + # @return [Time, nil] + required :prearbitration_date, Time, nil?: true + + # @!attribute primary_claim_id + # Unique identifier for the dispute from the network. If there are multiple, this + # will be the first claim id set by the network + # + # @return [String, nil] + required :primary_claim_id, String, nil?: true + + # @!attribute reason + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + # + # @return [Symbol, Lithic::Models::DisputeDeleteResponse::Reason] + required :reason, enum: -> { Lithic::Models::DisputeDeleteResponse::Reason } + + # @!attribute representment_date + # Date the representment was received. + # + # @return [Time, nil] + required :representment_date, Time, nil?: true + + # @!attribute resolution_date + # Date that the dispute was resolved. + # + # @return [Time, nil] + required :resolution_date, Time, nil?: true + + # @!attribute resolution_note + # Note by Dispute team on the case resolution. + # + # @return [String, nil] + required :resolution_note, String, nil?: true + + # @!attribute resolution_reason + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + # + # @return [Symbol, Lithic::Models::DisputeDeleteResponse::ResolutionReason, nil] + required :resolution_reason, + enum: -> { Lithic::Models::DisputeDeleteResponse::ResolutionReason }, + nil?: true + + # @!attribute status + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + # + # @return [Symbol, Lithic::Models::DisputeDeleteResponse::Status] + required :status, enum: -> { Lithic::Models::DisputeDeleteResponse::Status } + + # @!attribute transaction_token + # The transaction that is being disputed. A transaction can only be disputed once + # but may have multiple dispute cases. + # + # @return [String] + required :transaction_token, String + + # @!method initialize(token:, amount:, arbitration_date:, created:, customer_filed_date:, customer_note:, network_claim_ids:, network_filed_date:, network_reason_code:, prearbitration_date:, primary_claim_id:, reason:, representment_date:, resolution_date:, resolution_note:, resolution_reason:, status:, transaction_token:) + # Some parameter documentations has been truncated, see + # {Lithic::Models::DisputeDeleteResponse} for more details. + # + # Dispute. + # + # @param token [String] Globally unique identifier. + # + # @param amount [Integer] Amount under dispute. May be different from the original transaction amount. + # + # @param arbitration_date [Time, nil] Date dispute entered arbitration. + # + # @param created [Time] Timestamp of when first Dispute was reported. + # + # @param customer_filed_date [Time, nil] Date that the dispute was filed by the customer making the dispute. + # + # @param customer_note [String, nil] End customer description of the reason for the dispute. + # + # @param network_claim_ids [Array, nil] Unique identifiers for the dispute from the network. + # + # @param network_filed_date [Time, nil] Date that the dispute was submitted to the network. + # + # @param network_reason_code [String, nil] Network reason code used to file the dispute. + # + # @param prearbitration_date [Time, nil] Date dispute entered pre-arbitration. + # + # @param primary_claim_id [String, nil] Unique identifier for the dispute from the network. If there are multiple, this + # + # @param reason [Symbol, Lithic::Models::DisputeDeleteResponse::Reason] Dispute reason: + # + # @param representment_date [Time, nil] Date the representment was received. + # + # @param resolution_date [Time, nil] Date that the dispute was resolved. + # + # @param resolution_note [String, nil] Note by Dispute team on the case resolution. + # + # @param resolution_reason [Symbol, Lithic::Models::DisputeDeleteResponse::ResolutionReason, nil] Reason for the dispute resolution: + # + # @param status [Symbol, Lithic::Models::DisputeDeleteResponse::Status] Status types: + # + # @param transaction_token [String] The transaction that is being disputed. A transaction can only be disputed once + + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + # + # @see Lithic::Models::DisputeDeleteResponse#reason + module Reason + extend Lithic::Internal::Type::Enum + + ATM_CASH_MISDISPENSE = :ATM_CASH_MISDISPENSE + CANCELLED = :CANCELLED + DUPLICATED = :DUPLICATED + FRAUD_CARD_NOT_PRESENT = :FRAUD_CARD_NOT_PRESENT + FRAUD_CARD_PRESENT = :FRAUD_CARD_PRESENT + FRAUD_OTHER = :FRAUD_OTHER + GOODS_SERVICES_NOT_AS_DESCRIBED = :GOODS_SERVICES_NOT_AS_DESCRIBED + GOODS_SERVICES_NOT_RECEIVED = :GOODS_SERVICES_NOT_RECEIVED + INCORRECT_AMOUNT = :INCORRECT_AMOUNT + MISSING_AUTH = :MISSING_AUTH + OTHER = :OTHER + PROCESSING_ERROR = :PROCESSING_ERROR + RECURRING_TRANSACTION_NOT_CANCELLED = :RECURRING_TRANSACTION_NOT_CANCELLED + REFUND_NOT_PROCESSED = :REFUND_NOT_PROCESSED + + # @!method self.values + # @return [Array] + end + + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + # + # @see Lithic::Models::DisputeDeleteResponse#resolution_reason + module ResolutionReason + extend Lithic::Internal::Type::Enum + + CASE_LOST = :CASE_LOST + NETWORK_REJECTED = :NETWORK_REJECTED + NO_DISPUTE_RIGHTS_3DS = :NO_DISPUTE_RIGHTS_3DS + NO_DISPUTE_RIGHTS_BELOW_THRESHOLD = :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD + NO_DISPUTE_RIGHTS_CONTACTLESS = :NO_DISPUTE_RIGHTS_CONTACTLESS + NO_DISPUTE_RIGHTS_HYBRID = :NO_DISPUTE_RIGHTS_HYBRID + NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS = :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS + NO_DISPUTE_RIGHTS_OTHER = :NO_DISPUTE_RIGHTS_OTHER + PAST_FILING_DATE = :PAST_FILING_DATE + PREARBITRATION_REJECTED = :PREARBITRATION_REJECTED + PROCESSOR_REJECTED_OTHER = :PROCESSOR_REJECTED_OTHER + REFUNDED = :REFUNDED + REFUNDED_AFTER_CHARGEBACK = :REFUNDED_AFTER_CHARGEBACK + WITHDRAWN = :WITHDRAWN + WON_ARBITRATION = :WON_ARBITRATION + WON_FIRST_CHARGEBACK = :WON_FIRST_CHARGEBACK + WON_PREARBITRATION = :WON_PREARBITRATION + + # @!method self.values + # @return [Array] + end + + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + # + # @see Lithic::Models::DisputeDeleteResponse#status + module Status + extend Lithic::Internal::Type::Enum + + ARBITRATION = :ARBITRATION + CASE_CLOSED = :CASE_CLOSED + CASE_WON = :CASE_WON + NEW = :NEW + PENDING_CUSTOMER = :PENDING_CUSTOMER + PREARBITRATION = :PREARBITRATION + REPRESENTMENT = :REPRESENTMENT + SUBMITTED = :SUBMITTED + + # @!method self.values + # @return [Array] + end + end + end +end diff --git a/lib/lithic/models/dispute_list_response.rb b/lib/lithic/models/dispute_list_response.rb new file mode 100644 index 00000000..3cb20040 --- /dev/null +++ b/lib/lithic/models/dispute_list_response.rb @@ -0,0 +1,326 @@ +# frozen_string_literal: true + +module Lithic + module Models + # @see Lithic::Resources::Disputes#list + class DisputeListResponse < Lithic::Internal::Type::BaseModel + # @!attribute token + # Globally unique identifier. + # + # @return [String] + required :token, String + + # @!attribute amount + # Amount under dispute. May be different from the original transaction amount. + # + # @return [Integer] + required :amount, Integer + + # @!attribute arbitration_date + # Date dispute entered arbitration. + # + # @return [Time, nil] + required :arbitration_date, Time, nil?: true + + # @!attribute created + # Timestamp of when first Dispute was reported. + # + # @return [Time] + required :created, Time + + # @!attribute customer_filed_date + # Date that the dispute was filed by the customer making the dispute. + # + # @return [Time, nil] + required :customer_filed_date, Time, nil?: true + + # @!attribute customer_note + # End customer description of the reason for the dispute. + # + # @return [String, nil] + required :customer_note, String, nil?: true + + # @!attribute network_claim_ids + # Unique identifiers for the dispute from the network. + # + # @return [Array, nil] + required :network_claim_ids, Lithic::Internal::Type::ArrayOf[String], nil?: true + + # @!attribute network_filed_date + # Date that the dispute was submitted to the network. + # + # @return [Time, nil] + required :network_filed_date, Time, nil?: true + + # @!attribute network_reason_code + # Network reason code used to file the dispute. + # + # @return [String, nil] + required :network_reason_code, String, nil?: true + + # @!attribute prearbitration_date + # Date dispute entered pre-arbitration. + # + # @return [Time, nil] + required :prearbitration_date, Time, nil?: true + + # @!attribute primary_claim_id + # Unique identifier for the dispute from the network. If there are multiple, this + # will be the first claim id set by the network + # + # @return [String, nil] + required :primary_claim_id, String, nil?: true + + # @!attribute reason + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + # + # @return [Symbol, Lithic::Models::DisputeListResponse::Reason] + required :reason, enum: -> { Lithic::Models::DisputeListResponse::Reason } + + # @!attribute representment_date + # Date the representment was received. + # + # @return [Time, nil] + required :representment_date, Time, nil?: true + + # @!attribute resolution_date + # Date that the dispute was resolved. + # + # @return [Time, nil] + required :resolution_date, Time, nil?: true + + # @!attribute resolution_note + # Note by Dispute team on the case resolution. + # + # @return [String, nil] + required :resolution_note, String, nil?: true + + # @!attribute resolution_reason + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + # + # @return [Symbol, Lithic::Models::DisputeListResponse::ResolutionReason, nil] + required :resolution_reason, + enum: -> { Lithic::Models::DisputeListResponse::ResolutionReason }, + nil?: true + + # @!attribute status + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + # + # @return [Symbol, Lithic::Models::DisputeListResponse::Status] + required :status, enum: -> { Lithic::Models::DisputeListResponse::Status } + + # @!attribute transaction_token + # The transaction that is being disputed. A transaction can only be disputed once + # but may have multiple dispute cases. + # + # @return [String] + required :transaction_token, String + + # @!method initialize(token:, amount:, arbitration_date:, created:, customer_filed_date:, customer_note:, network_claim_ids:, network_filed_date:, network_reason_code:, prearbitration_date:, primary_claim_id:, reason:, representment_date:, resolution_date:, resolution_note:, resolution_reason:, status:, transaction_token:) + # Some parameter documentations has been truncated, see + # {Lithic::Models::DisputeListResponse} for more details. + # + # Dispute. + # + # @param token [String] Globally unique identifier. + # + # @param amount [Integer] Amount under dispute. May be different from the original transaction amount. + # + # @param arbitration_date [Time, nil] Date dispute entered arbitration. + # + # @param created [Time] Timestamp of when first Dispute was reported. + # + # @param customer_filed_date [Time, nil] Date that the dispute was filed by the customer making the dispute. + # + # @param customer_note [String, nil] End customer description of the reason for the dispute. + # + # @param network_claim_ids [Array, nil] Unique identifiers for the dispute from the network. + # + # @param network_filed_date [Time, nil] Date that the dispute was submitted to the network. + # + # @param network_reason_code [String, nil] Network reason code used to file the dispute. + # + # @param prearbitration_date [Time, nil] Date dispute entered pre-arbitration. + # + # @param primary_claim_id [String, nil] Unique identifier for the dispute from the network. If there are multiple, this + # + # @param reason [Symbol, Lithic::Models::DisputeListResponse::Reason] Dispute reason: + # + # @param representment_date [Time, nil] Date the representment was received. + # + # @param resolution_date [Time, nil] Date that the dispute was resolved. + # + # @param resolution_note [String, nil] Note by Dispute team on the case resolution. + # + # @param resolution_reason [Symbol, Lithic::Models::DisputeListResponse::ResolutionReason, nil] Reason for the dispute resolution: + # + # @param status [Symbol, Lithic::Models::DisputeListResponse::Status] Status types: + # + # @param transaction_token [String] The transaction that is being disputed. A transaction can only be disputed once + + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + # + # @see Lithic::Models::DisputeListResponse#reason + module Reason + extend Lithic::Internal::Type::Enum + + ATM_CASH_MISDISPENSE = :ATM_CASH_MISDISPENSE + CANCELLED = :CANCELLED + DUPLICATED = :DUPLICATED + FRAUD_CARD_NOT_PRESENT = :FRAUD_CARD_NOT_PRESENT + FRAUD_CARD_PRESENT = :FRAUD_CARD_PRESENT + FRAUD_OTHER = :FRAUD_OTHER + GOODS_SERVICES_NOT_AS_DESCRIBED = :GOODS_SERVICES_NOT_AS_DESCRIBED + GOODS_SERVICES_NOT_RECEIVED = :GOODS_SERVICES_NOT_RECEIVED + INCORRECT_AMOUNT = :INCORRECT_AMOUNT + MISSING_AUTH = :MISSING_AUTH + OTHER = :OTHER + PROCESSING_ERROR = :PROCESSING_ERROR + RECURRING_TRANSACTION_NOT_CANCELLED = :RECURRING_TRANSACTION_NOT_CANCELLED + REFUND_NOT_PROCESSED = :REFUND_NOT_PROCESSED + + # @!method self.values + # @return [Array] + end + + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + # + # @see Lithic::Models::DisputeListResponse#resolution_reason + module ResolutionReason + extend Lithic::Internal::Type::Enum + + CASE_LOST = :CASE_LOST + NETWORK_REJECTED = :NETWORK_REJECTED + NO_DISPUTE_RIGHTS_3DS = :NO_DISPUTE_RIGHTS_3DS + NO_DISPUTE_RIGHTS_BELOW_THRESHOLD = :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD + NO_DISPUTE_RIGHTS_CONTACTLESS = :NO_DISPUTE_RIGHTS_CONTACTLESS + NO_DISPUTE_RIGHTS_HYBRID = :NO_DISPUTE_RIGHTS_HYBRID + NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS = :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS + NO_DISPUTE_RIGHTS_OTHER = :NO_DISPUTE_RIGHTS_OTHER + PAST_FILING_DATE = :PAST_FILING_DATE + PREARBITRATION_REJECTED = :PREARBITRATION_REJECTED + PROCESSOR_REJECTED_OTHER = :PROCESSOR_REJECTED_OTHER + REFUNDED = :REFUNDED + REFUNDED_AFTER_CHARGEBACK = :REFUNDED_AFTER_CHARGEBACK + WITHDRAWN = :WITHDRAWN + WON_ARBITRATION = :WON_ARBITRATION + WON_FIRST_CHARGEBACK = :WON_FIRST_CHARGEBACK + WON_PREARBITRATION = :WON_PREARBITRATION + + # @!method self.values + # @return [Array] + end + + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + # + # @see Lithic::Models::DisputeListResponse#status + module Status + extend Lithic::Internal::Type::Enum + + ARBITRATION = :ARBITRATION + CASE_CLOSED = :CASE_CLOSED + CASE_WON = :CASE_WON + NEW = :NEW + PENDING_CUSTOMER = :PENDING_CUSTOMER + PREARBITRATION = :PREARBITRATION + REPRESENTMENT = :REPRESENTMENT + SUBMITTED = :SUBMITTED + + # @!method self.values + # @return [Array] + end + end + end +end diff --git a/lib/lithic/models/dispute_retrieve_response.rb b/lib/lithic/models/dispute_retrieve_response.rb new file mode 100644 index 00000000..82beb226 --- /dev/null +++ b/lib/lithic/models/dispute_retrieve_response.rb @@ -0,0 +1,326 @@ +# frozen_string_literal: true + +module Lithic + module Models + # @see Lithic::Resources::Disputes#retrieve + class DisputeRetrieveResponse < Lithic::Internal::Type::BaseModel + # @!attribute token + # Globally unique identifier. + # + # @return [String] + required :token, String + + # @!attribute amount + # Amount under dispute. May be different from the original transaction amount. + # + # @return [Integer] + required :amount, Integer + + # @!attribute arbitration_date + # Date dispute entered arbitration. + # + # @return [Time, nil] + required :arbitration_date, Time, nil?: true + + # @!attribute created + # Timestamp of when first Dispute was reported. + # + # @return [Time] + required :created, Time + + # @!attribute customer_filed_date + # Date that the dispute was filed by the customer making the dispute. + # + # @return [Time, nil] + required :customer_filed_date, Time, nil?: true + + # @!attribute customer_note + # End customer description of the reason for the dispute. + # + # @return [String, nil] + required :customer_note, String, nil?: true + + # @!attribute network_claim_ids + # Unique identifiers for the dispute from the network. + # + # @return [Array, nil] + required :network_claim_ids, Lithic::Internal::Type::ArrayOf[String], nil?: true + + # @!attribute network_filed_date + # Date that the dispute was submitted to the network. + # + # @return [Time, nil] + required :network_filed_date, Time, nil?: true + + # @!attribute network_reason_code + # Network reason code used to file the dispute. + # + # @return [String, nil] + required :network_reason_code, String, nil?: true + + # @!attribute prearbitration_date + # Date dispute entered pre-arbitration. + # + # @return [Time, nil] + required :prearbitration_date, Time, nil?: true + + # @!attribute primary_claim_id + # Unique identifier for the dispute from the network. If there are multiple, this + # will be the first claim id set by the network + # + # @return [String, nil] + required :primary_claim_id, String, nil?: true + + # @!attribute reason + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + # + # @return [Symbol, Lithic::Models::DisputeRetrieveResponse::Reason] + required :reason, enum: -> { Lithic::Models::DisputeRetrieveResponse::Reason } + + # @!attribute representment_date + # Date the representment was received. + # + # @return [Time, nil] + required :representment_date, Time, nil?: true + + # @!attribute resolution_date + # Date that the dispute was resolved. + # + # @return [Time, nil] + required :resolution_date, Time, nil?: true + + # @!attribute resolution_note + # Note by Dispute team on the case resolution. + # + # @return [String, nil] + required :resolution_note, String, nil?: true + + # @!attribute resolution_reason + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + # + # @return [Symbol, Lithic::Models::DisputeRetrieveResponse::ResolutionReason, nil] + required :resolution_reason, + enum: -> { Lithic::Models::DisputeRetrieveResponse::ResolutionReason }, + nil?: true + + # @!attribute status + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + # + # @return [Symbol, Lithic::Models::DisputeRetrieveResponse::Status] + required :status, enum: -> { Lithic::Models::DisputeRetrieveResponse::Status } + + # @!attribute transaction_token + # The transaction that is being disputed. A transaction can only be disputed once + # but may have multiple dispute cases. + # + # @return [String] + required :transaction_token, String + + # @!method initialize(token:, amount:, arbitration_date:, created:, customer_filed_date:, customer_note:, network_claim_ids:, network_filed_date:, network_reason_code:, prearbitration_date:, primary_claim_id:, reason:, representment_date:, resolution_date:, resolution_note:, resolution_reason:, status:, transaction_token:) + # Some parameter documentations has been truncated, see + # {Lithic::Models::DisputeRetrieveResponse} for more details. + # + # Dispute. + # + # @param token [String] Globally unique identifier. + # + # @param amount [Integer] Amount under dispute. May be different from the original transaction amount. + # + # @param arbitration_date [Time, nil] Date dispute entered arbitration. + # + # @param created [Time] Timestamp of when first Dispute was reported. + # + # @param customer_filed_date [Time, nil] Date that the dispute was filed by the customer making the dispute. + # + # @param customer_note [String, nil] End customer description of the reason for the dispute. + # + # @param network_claim_ids [Array, nil] Unique identifiers for the dispute from the network. + # + # @param network_filed_date [Time, nil] Date that the dispute was submitted to the network. + # + # @param network_reason_code [String, nil] Network reason code used to file the dispute. + # + # @param prearbitration_date [Time, nil] Date dispute entered pre-arbitration. + # + # @param primary_claim_id [String, nil] Unique identifier for the dispute from the network. If there are multiple, this + # + # @param reason [Symbol, Lithic::Models::DisputeRetrieveResponse::Reason] Dispute reason: + # + # @param representment_date [Time, nil] Date the representment was received. + # + # @param resolution_date [Time, nil] Date that the dispute was resolved. + # + # @param resolution_note [String, nil] Note by Dispute team on the case resolution. + # + # @param resolution_reason [Symbol, Lithic::Models::DisputeRetrieveResponse::ResolutionReason, nil] Reason for the dispute resolution: + # + # @param status [Symbol, Lithic::Models::DisputeRetrieveResponse::Status] Status types: + # + # @param transaction_token [String] The transaction that is being disputed. A transaction can only be disputed once + + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + # + # @see Lithic::Models::DisputeRetrieveResponse#reason + module Reason + extend Lithic::Internal::Type::Enum + + ATM_CASH_MISDISPENSE = :ATM_CASH_MISDISPENSE + CANCELLED = :CANCELLED + DUPLICATED = :DUPLICATED + FRAUD_CARD_NOT_PRESENT = :FRAUD_CARD_NOT_PRESENT + FRAUD_CARD_PRESENT = :FRAUD_CARD_PRESENT + FRAUD_OTHER = :FRAUD_OTHER + GOODS_SERVICES_NOT_AS_DESCRIBED = :GOODS_SERVICES_NOT_AS_DESCRIBED + GOODS_SERVICES_NOT_RECEIVED = :GOODS_SERVICES_NOT_RECEIVED + INCORRECT_AMOUNT = :INCORRECT_AMOUNT + MISSING_AUTH = :MISSING_AUTH + OTHER = :OTHER + PROCESSING_ERROR = :PROCESSING_ERROR + RECURRING_TRANSACTION_NOT_CANCELLED = :RECURRING_TRANSACTION_NOT_CANCELLED + REFUND_NOT_PROCESSED = :REFUND_NOT_PROCESSED + + # @!method self.values + # @return [Array] + end + + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + # + # @see Lithic::Models::DisputeRetrieveResponse#resolution_reason + module ResolutionReason + extend Lithic::Internal::Type::Enum + + CASE_LOST = :CASE_LOST + NETWORK_REJECTED = :NETWORK_REJECTED + NO_DISPUTE_RIGHTS_3DS = :NO_DISPUTE_RIGHTS_3DS + NO_DISPUTE_RIGHTS_BELOW_THRESHOLD = :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD + NO_DISPUTE_RIGHTS_CONTACTLESS = :NO_DISPUTE_RIGHTS_CONTACTLESS + NO_DISPUTE_RIGHTS_HYBRID = :NO_DISPUTE_RIGHTS_HYBRID + NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS = :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS + NO_DISPUTE_RIGHTS_OTHER = :NO_DISPUTE_RIGHTS_OTHER + PAST_FILING_DATE = :PAST_FILING_DATE + PREARBITRATION_REJECTED = :PREARBITRATION_REJECTED + PROCESSOR_REJECTED_OTHER = :PROCESSOR_REJECTED_OTHER + REFUNDED = :REFUNDED + REFUNDED_AFTER_CHARGEBACK = :REFUNDED_AFTER_CHARGEBACK + WITHDRAWN = :WITHDRAWN + WON_ARBITRATION = :WON_ARBITRATION + WON_FIRST_CHARGEBACK = :WON_FIRST_CHARGEBACK + WON_PREARBITRATION = :WON_PREARBITRATION + + # @!method self.values + # @return [Array] + end + + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + # + # @see Lithic::Models::DisputeRetrieveResponse#status + module Status + extend Lithic::Internal::Type::Enum + + ARBITRATION = :ARBITRATION + CASE_CLOSED = :CASE_CLOSED + CASE_WON = :CASE_WON + NEW = :NEW + PENDING_CUSTOMER = :PENDING_CUSTOMER + PREARBITRATION = :PREARBITRATION + REPRESENTMENT = :REPRESENTMENT + SUBMITTED = :SUBMITTED + + # @!method self.values + # @return [Array] + end + end + end +end diff --git a/lib/lithic/models/dispute_update_response.rb b/lib/lithic/models/dispute_update_response.rb new file mode 100644 index 00000000..6bfa3acb --- /dev/null +++ b/lib/lithic/models/dispute_update_response.rb @@ -0,0 +1,326 @@ +# frozen_string_literal: true + +module Lithic + module Models + # @see Lithic::Resources::Disputes#update + class DisputeUpdateResponse < Lithic::Internal::Type::BaseModel + # @!attribute token + # Globally unique identifier. + # + # @return [String] + required :token, String + + # @!attribute amount + # Amount under dispute. May be different from the original transaction amount. + # + # @return [Integer] + required :amount, Integer + + # @!attribute arbitration_date + # Date dispute entered arbitration. + # + # @return [Time, nil] + required :arbitration_date, Time, nil?: true + + # @!attribute created + # Timestamp of when first Dispute was reported. + # + # @return [Time] + required :created, Time + + # @!attribute customer_filed_date + # Date that the dispute was filed by the customer making the dispute. + # + # @return [Time, nil] + required :customer_filed_date, Time, nil?: true + + # @!attribute customer_note + # End customer description of the reason for the dispute. + # + # @return [String, nil] + required :customer_note, String, nil?: true + + # @!attribute network_claim_ids + # Unique identifiers for the dispute from the network. + # + # @return [Array, nil] + required :network_claim_ids, Lithic::Internal::Type::ArrayOf[String], nil?: true + + # @!attribute network_filed_date + # Date that the dispute was submitted to the network. + # + # @return [Time, nil] + required :network_filed_date, Time, nil?: true + + # @!attribute network_reason_code + # Network reason code used to file the dispute. + # + # @return [String, nil] + required :network_reason_code, String, nil?: true + + # @!attribute prearbitration_date + # Date dispute entered pre-arbitration. + # + # @return [Time, nil] + required :prearbitration_date, Time, nil?: true + + # @!attribute primary_claim_id + # Unique identifier for the dispute from the network. If there are multiple, this + # will be the first claim id set by the network + # + # @return [String, nil] + required :primary_claim_id, String, nil?: true + + # @!attribute reason + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + # + # @return [Symbol, Lithic::Models::DisputeUpdateResponse::Reason] + required :reason, enum: -> { Lithic::Models::DisputeUpdateResponse::Reason } + + # @!attribute representment_date + # Date the representment was received. + # + # @return [Time, nil] + required :representment_date, Time, nil?: true + + # @!attribute resolution_date + # Date that the dispute was resolved. + # + # @return [Time, nil] + required :resolution_date, Time, nil?: true + + # @!attribute resolution_note + # Note by Dispute team on the case resolution. + # + # @return [String, nil] + required :resolution_note, String, nil?: true + + # @!attribute resolution_reason + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + # + # @return [Symbol, Lithic::Models::DisputeUpdateResponse::ResolutionReason, nil] + required :resolution_reason, + enum: -> { Lithic::Models::DisputeUpdateResponse::ResolutionReason }, + nil?: true + + # @!attribute status + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + # + # @return [Symbol, Lithic::Models::DisputeUpdateResponse::Status] + required :status, enum: -> { Lithic::Models::DisputeUpdateResponse::Status } + + # @!attribute transaction_token + # The transaction that is being disputed. A transaction can only be disputed once + # but may have multiple dispute cases. + # + # @return [String] + required :transaction_token, String + + # @!method initialize(token:, amount:, arbitration_date:, created:, customer_filed_date:, customer_note:, network_claim_ids:, network_filed_date:, network_reason_code:, prearbitration_date:, primary_claim_id:, reason:, representment_date:, resolution_date:, resolution_note:, resolution_reason:, status:, transaction_token:) + # Some parameter documentations has been truncated, see + # {Lithic::Models::DisputeUpdateResponse} for more details. + # + # Dispute. + # + # @param token [String] Globally unique identifier. + # + # @param amount [Integer] Amount under dispute. May be different from the original transaction amount. + # + # @param arbitration_date [Time, nil] Date dispute entered arbitration. + # + # @param created [Time] Timestamp of when first Dispute was reported. + # + # @param customer_filed_date [Time, nil] Date that the dispute was filed by the customer making the dispute. + # + # @param customer_note [String, nil] End customer description of the reason for the dispute. + # + # @param network_claim_ids [Array, nil] Unique identifiers for the dispute from the network. + # + # @param network_filed_date [Time, nil] Date that the dispute was submitted to the network. + # + # @param network_reason_code [String, nil] Network reason code used to file the dispute. + # + # @param prearbitration_date [Time, nil] Date dispute entered pre-arbitration. + # + # @param primary_claim_id [String, nil] Unique identifier for the dispute from the network. If there are multiple, this + # + # @param reason [Symbol, Lithic::Models::DisputeUpdateResponse::Reason] Dispute reason: + # + # @param representment_date [Time, nil] Date the representment was received. + # + # @param resolution_date [Time, nil] Date that the dispute was resolved. + # + # @param resolution_note [String, nil] Note by Dispute team on the case resolution. + # + # @param resolution_reason [Symbol, Lithic::Models::DisputeUpdateResponse::ResolutionReason, nil] Reason for the dispute resolution: + # + # @param status [Symbol, Lithic::Models::DisputeUpdateResponse::Status] Status types: + # + # @param transaction_token [String] The transaction that is being disputed. A transaction can only be disputed once + + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + # + # @see Lithic::Models::DisputeUpdateResponse#reason + module Reason + extend Lithic::Internal::Type::Enum + + ATM_CASH_MISDISPENSE = :ATM_CASH_MISDISPENSE + CANCELLED = :CANCELLED + DUPLICATED = :DUPLICATED + FRAUD_CARD_NOT_PRESENT = :FRAUD_CARD_NOT_PRESENT + FRAUD_CARD_PRESENT = :FRAUD_CARD_PRESENT + FRAUD_OTHER = :FRAUD_OTHER + GOODS_SERVICES_NOT_AS_DESCRIBED = :GOODS_SERVICES_NOT_AS_DESCRIBED + GOODS_SERVICES_NOT_RECEIVED = :GOODS_SERVICES_NOT_RECEIVED + INCORRECT_AMOUNT = :INCORRECT_AMOUNT + MISSING_AUTH = :MISSING_AUTH + OTHER = :OTHER + PROCESSING_ERROR = :PROCESSING_ERROR + RECURRING_TRANSACTION_NOT_CANCELLED = :RECURRING_TRANSACTION_NOT_CANCELLED + REFUND_NOT_PROCESSED = :REFUND_NOT_PROCESSED + + # @!method self.values + # @return [Array] + end + + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + # + # @see Lithic::Models::DisputeUpdateResponse#resolution_reason + module ResolutionReason + extend Lithic::Internal::Type::Enum + + CASE_LOST = :CASE_LOST + NETWORK_REJECTED = :NETWORK_REJECTED + NO_DISPUTE_RIGHTS_3DS = :NO_DISPUTE_RIGHTS_3DS + NO_DISPUTE_RIGHTS_BELOW_THRESHOLD = :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD + NO_DISPUTE_RIGHTS_CONTACTLESS = :NO_DISPUTE_RIGHTS_CONTACTLESS + NO_DISPUTE_RIGHTS_HYBRID = :NO_DISPUTE_RIGHTS_HYBRID + NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS = :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS + NO_DISPUTE_RIGHTS_OTHER = :NO_DISPUTE_RIGHTS_OTHER + PAST_FILING_DATE = :PAST_FILING_DATE + PREARBITRATION_REJECTED = :PREARBITRATION_REJECTED + PROCESSOR_REJECTED_OTHER = :PROCESSOR_REJECTED_OTHER + REFUNDED = :REFUNDED + REFUNDED_AFTER_CHARGEBACK = :REFUNDED_AFTER_CHARGEBACK + WITHDRAWN = :WITHDRAWN + WON_ARBITRATION = :WON_ARBITRATION + WON_FIRST_CHARGEBACK = :WON_FIRST_CHARGEBACK + WON_PREARBITRATION = :WON_PREARBITRATION + + # @!method self.values + # @return [Array] + end + + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + # + # @see Lithic::Models::DisputeUpdateResponse#status + module Status + extend Lithic::Internal::Type::Enum + + ARBITRATION = :ARBITRATION + CASE_CLOSED = :CASE_CLOSED + CASE_WON = :CASE_WON + NEW = :NEW + PENDING_CUSTOMER = :PENDING_CUSTOMER + PREARBITRATION = :PREARBITRATION + REPRESENTMENT = :REPRESENTMENT + SUBMITTED = :SUBMITTED + + # @!method self.values + # @return [Array] + end + end + end +end diff --git a/lib/lithic/models/event.rb b/lib/lithic/models/event.rb index 79e10dec..a613fa61 100644 --- a/lib/lithic/models/event.rb +++ b/lib/lithic/models/event.rb @@ -19,37 +19,106 @@ class Event < Lithic::Internal::Type::BaseModel required :created, Time # @!attribute event_type - # Event types: - # - # - `account_holder.created` - Notification that a new account holder has been - # created and was not rejected. - # - `account_holder.updated` - Notification that an account holder was updated. - # - `account_holder.verification` - Notification than an account holder's identity - # verification is complete. - # - `card.created` - Notification that a card has been created. - # - `card.renewed` - Notification that a card has been renewed. - # - `card.reissued` - Notification that a card has been reissued. - # - `card.shipped` - Physical card shipment notification. See - # https://docs.lithic.com/docs/cards#physical-card-shipped-webhook. - # - `card.converted` - Notification that a virtual card has been converted to a - # physical card. - # - `card_transaction.updated` - Transaction Lifecycle webhook. See - # https://docs.lithic.com/docs/transaction-webhooks. - # - `dispute.updated` - A dispute has been updated. - # - `dispute_transaction.created` - A new dispute transaction has been created. - # - `dispute_transaction.updated` - A dispute transaction has been updated. - # - `digital_wallet.tokenization_approval_request` - Card network's request to - # Lithic to activate a digital wallet token. - # - `digital_wallet.tokenization_result` - Notification of the end result of a - # tokenization, whether successful or failed. - # - `digital_wallet.tokenization_two_factor_authentication_code` - A code to be - # passed to an end user to complete digital wallet authentication. See - # https://docs.lithic.com/docs/tokenization-control#digital-wallet-tokenization-auth-code. - # - `digital_wallet.tokenization_two_factor_authentication_code_sent` - - # Notification that a two factor authentication code for activating a digital - # wallet has been sent to the end user. - # - `digital_wallet.tokenization_updated` - Notification that a digital wallet - # tokenization's status has changed. + # The type of event that occurred. Possible values: + # + # - account_holder_document.updated: Occurs when an account holder's document + # upload status has been updated + # - account_holder.created: Occurs when a new account_holder is created. + # - account_holder.updated: Occurs when an account_holder is updated. + # - account_holder.verification: Occurs when an asynchronous account_holder's + # verification is completed. + # - auth_rules.backtest_report.created: Auth Rules backtest report created. + # - balance.updated: Financial Account Balance Update + # - book_transfer_transaction.created: Occurs when a book transfer transaction is + # created. + # - book_transfer_transaction.updated: Occurs when a book transfer transaction is + # updated. + # - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial + # data is processed for a transaction event. + # - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial + # data is reprocessed for a transaction event. + # - card_transaction.updated: Occurs when a card transaction happens. + # - card.converted: Occurs when a card is converted from virtual to physical + # cards. + # - card.created: Occurs when a new card is created. + # - card.reissued: Occurs when a card is reissued. + # - card.renewed: Occurs when a card is renewed. + # - card.shipped: Occurs when a card is shipped. + # - digital_wallet.tokenization_approval_request: Occurs when a tokenization + # approval request is made. This event will be deprecated in the future. We + # recommend using `tokenization.approval_request` instead. + # - digital_wallet.tokenization_result: Occurs when a tokenization request + # succeeded or failed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.result` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code: Occurs when a + # tokenization request 2FA code is sent to the Lithic customer for self serve + # delivery. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code_sent: Occurs when a + # tokenization request 2FA code is sent to our downstream messaging providers + # for delivery. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code_sent` instead. + # + # - digital_wallet.tokenization_updated: Occurs when a tokenization's status has + # changed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.updated` instead. + # + # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_transaction.created: Occurs when a new dispute transaction is created + # - dispute_transaction.updated: Occurs when a dispute transaction is updated + # - dispute.updated: Occurs when a dispute is updated. + # - external_bank_account.created: Occurs when an external bank account is + # created. + # - external_bank_account.updated: Occurs when an external bank account is + # updated. + # - external_payment.created: Occurs when an external payment is created. + # - external_payment.updated: Occurs when an external payment is updated. + # - financial_account.created: Occurs when a financial account is created. + # - financial_account.updated: Occurs when a financial account is updated. + # - funding_event.created: Occurs when a funding event is created. + # - internal_transaction.created: Occurs when an internal adjustment is created. + # - internal_transaction.updated: Occurs when an internal adjustment is updated. + # - loan_tape.created: Occurs when a loan tape is created. + # - loan_tape.updated: Occurs when a loan tape is updated. + # - management_operation.created: Occurs when an management operation is created. + # - management_operation.updated: Occurs when an management operation is updated. + # - network_total.created: Occurs when a network total is created. + # - network_total.updated: Occurs when a network total is updated. + # - payment_transaction.created: Occurs when a payment transaction is created. + # - payment_transaction.updated: Occurs when a payment transaction is updated. + # - settlement_report.updated: Occurs when a settlement report is created or + # updated. + # - statements.created: Occurs when a statement has been created + # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` + # event. Upon receiving this request, the Card Program should issue its own + # challenge to the cardholder. After a cardholder challenge is successfully + # completed, the Card Program needs to respond back to Lithic by call to + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # Then the cardholder must navigate back to the merchant checkout flow to + # complete the transaction. Some merchants will include an `app_requestor_url` + # for app-based purchases; Lithic recommends triggering a redirect to that URL + # after the cardholder completes an app-based challenge. + # - three_ds_authentication.created: Occurs when a 3DS authentication is created. + # - three_ds_authentication.updated: Occurs when a 3DS authentication is updated + # (eg. challenge is completed). + # - tokenization.approval_request: Occurs when a tokenization approval request is + # made. + # - tokenization.result: Occurs when a tokenization request succeeded or failed. + # - tokenization.two_factor_authentication_code: Occurs when a tokenization + # request 2FA code is sent to the Lithic customer for self serve delivery. + # - tokenization.two_factor_authentication_code_sent: Occurs when a tokenization + # request 2FA code is sent to our downstream messaging providers for delivery. + # - tokenization.updated: Occurs when a tokenization's status has changed. # # @return [Symbol, Lithic::Models::Event::EventType] required :event_type, enum: -> { Lithic::Event::EventType } @@ -69,57 +138,131 @@ class Event < Lithic::Internal::Type::BaseModel # # @param created [Time] An RFC 3339 timestamp for when the event was created. UTC time zone. # - # @param event_type [Symbol, Lithic::Models::Event::EventType] Event types: + # @param event_type [Symbol, Lithic::Models::Event::EventType] The type of event that occurred. Possible values: # # @param payload [Hash{Symbol=>Object}] - # Event types: - # - # - `account_holder.created` - Notification that a new account holder has been - # created and was not rejected. - # - `account_holder.updated` - Notification that an account holder was updated. - # - `account_holder.verification` - Notification than an account holder's identity - # verification is complete. - # - `card.created` - Notification that a card has been created. - # - `card.renewed` - Notification that a card has been renewed. - # - `card.reissued` - Notification that a card has been reissued. - # - `card.shipped` - Physical card shipment notification. See - # https://docs.lithic.com/docs/cards#physical-card-shipped-webhook. - # - `card.converted` - Notification that a virtual card has been converted to a - # physical card. - # - `card_transaction.updated` - Transaction Lifecycle webhook. See - # https://docs.lithic.com/docs/transaction-webhooks. - # - `dispute.updated` - A dispute has been updated. - # - `dispute_transaction.created` - A new dispute transaction has been created. - # - `dispute_transaction.updated` - A dispute transaction has been updated. - # - `digital_wallet.tokenization_approval_request` - Card network's request to - # Lithic to activate a digital wallet token. - # - `digital_wallet.tokenization_result` - Notification of the end result of a - # tokenization, whether successful or failed. - # - `digital_wallet.tokenization_two_factor_authentication_code` - A code to be - # passed to an end user to complete digital wallet authentication. See - # https://docs.lithic.com/docs/tokenization-control#digital-wallet-tokenization-auth-code. - # - `digital_wallet.tokenization_two_factor_authentication_code_sent` - - # Notification that a two factor authentication code for activating a digital - # wallet has been sent to the end user. - # - `digital_wallet.tokenization_updated` - Notification that a digital wallet - # tokenization's status has changed. + # The type of event that occurred. Possible values: + # + # - account_holder_document.updated: Occurs when an account holder's document + # upload status has been updated + # - account_holder.created: Occurs when a new account_holder is created. + # - account_holder.updated: Occurs when an account_holder is updated. + # - account_holder.verification: Occurs when an asynchronous account_holder's + # verification is completed. + # - auth_rules.backtest_report.created: Auth Rules backtest report created. + # - balance.updated: Financial Account Balance Update + # - book_transfer_transaction.created: Occurs when a book transfer transaction is + # created. + # - book_transfer_transaction.updated: Occurs when a book transfer transaction is + # updated. + # - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial + # data is processed for a transaction event. + # - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial + # data is reprocessed for a transaction event. + # - card_transaction.updated: Occurs when a card transaction happens. + # - card.converted: Occurs when a card is converted from virtual to physical + # cards. + # - card.created: Occurs when a new card is created. + # - card.reissued: Occurs when a card is reissued. + # - card.renewed: Occurs when a card is renewed. + # - card.shipped: Occurs when a card is shipped. + # - digital_wallet.tokenization_approval_request: Occurs when a tokenization + # approval request is made. This event will be deprecated in the future. We + # recommend using `tokenization.approval_request` instead. + # - digital_wallet.tokenization_result: Occurs when a tokenization request + # succeeded or failed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.result` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code: Occurs when a + # tokenization request 2FA code is sent to the Lithic customer for self serve + # delivery. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code_sent: Occurs when a + # tokenization request 2FA code is sent to our downstream messaging providers + # for delivery. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code_sent` instead. + # + # - digital_wallet.tokenization_updated: Occurs when a tokenization's status has + # changed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.updated` instead. + # + # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_transaction.created: Occurs when a new dispute transaction is created + # - dispute_transaction.updated: Occurs when a dispute transaction is updated + # - dispute.updated: Occurs when a dispute is updated. + # - external_bank_account.created: Occurs when an external bank account is + # created. + # - external_bank_account.updated: Occurs when an external bank account is + # updated. + # - external_payment.created: Occurs when an external payment is created. + # - external_payment.updated: Occurs when an external payment is updated. + # - financial_account.created: Occurs when a financial account is created. + # - financial_account.updated: Occurs when a financial account is updated. + # - funding_event.created: Occurs when a funding event is created. + # - internal_transaction.created: Occurs when an internal adjustment is created. + # - internal_transaction.updated: Occurs when an internal adjustment is updated. + # - loan_tape.created: Occurs when a loan tape is created. + # - loan_tape.updated: Occurs when a loan tape is updated. + # - management_operation.created: Occurs when an management operation is created. + # - management_operation.updated: Occurs when an management operation is updated. + # - network_total.created: Occurs when a network total is created. + # - network_total.updated: Occurs when a network total is updated. + # - payment_transaction.created: Occurs when a payment transaction is created. + # - payment_transaction.updated: Occurs when a payment transaction is updated. + # - settlement_report.updated: Occurs when a settlement report is created or + # updated. + # - statements.created: Occurs when a statement has been created + # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` + # event. Upon receiving this request, the Card Program should issue its own + # challenge to the cardholder. After a cardholder challenge is successfully + # completed, the Card Program needs to respond back to Lithic by call to + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # Then the cardholder must navigate back to the merchant checkout flow to + # complete the transaction. Some merchants will include an `app_requestor_url` + # for app-based purchases; Lithic recommends triggering a redirect to that URL + # after the cardholder completes an app-based challenge. + # - three_ds_authentication.created: Occurs when a 3DS authentication is created. + # - three_ds_authentication.updated: Occurs when a 3DS authentication is updated + # (eg. challenge is completed). + # - tokenization.approval_request: Occurs when a tokenization approval request is + # made. + # - tokenization.result: Occurs when a tokenization request succeeded or failed. + # - tokenization.two_factor_authentication_code: Occurs when a tokenization + # request 2FA code is sent to the Lithic customer for self serve delivery. + # - tokenization.two_factor_authentication_code_sent: Occurs when a tokenization + # request 2FA code is sent to our downstream messaging providers for delivery. + # - tokenization.updated: Occurs when a tokenization's status has changed. # # @see Lithic::Models::Event#event_type module EventType extend Lithic::Internal::Type::Enum + ACCOUNT_HOLDER_DOCUMENT_UPDATED = :"account_holder_document.updated" ACCOUNT_HOLDER_CREATED = :"account_holder.created" ACCOUNT_HOLDER_UPDATED = :"account_holder.updated" ACCOUNT_HOLDER_VERIFICATION = :"account_holder.verification" + AUTH_RULES_BACKTEST_REPORT_CREATED = :"auth_rules.backtest_report.created" BALANCE_UPDATED = :"balance.updated" BOOK_TRANSFER_TRANSACTION_CREATED = :"book_transfer_transaction.created" + BOOK_TRANSFER_TRANSACTION_UPDATED = :"book_transfer_transaction.updated" + CARD_TRANSACTION_ENHANCED_DATA_CREATED = :"card_transaction.enhanced_data.created" + CARD_TRANSACTION_ENHANCED_DATA_UPDATED = :"card_transaction.enhanced_data.updated" + CARD_TRANSACTION_UPDATED = :"card_transaction.updated" + CARD_CONVERTED = :"card.converted" CARD_CREATED = :"card.created" - CARD_RENEWED = :"card.renewed" CARD_REISSUED = :"card.reissued" - CARD_CONVERTED = :"card.converted" + CARD_RENEWED = :"card.renewed" CARD_SHIPPED = :"card.shipped" - CARD_TRANSACTION_UPDATED = :"card_transaction.updated" DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST = :"digital_wallet.tokenization_approval_request" DIGITAL_WALLET_TOKENIZATION_RESULT = :"digital_wallet.tokenization_result" DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE = @@ -127,10 +270,10 @@ module EventType DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT = :"digital_wallet.tokenization_two_factor_authentication_code_sent" DIGITAL_WALLET_TOKENIZATION_UPDATED = :"digital_wallet.tokenization_updated" - DISPUTE_UPDATED = :"dispute.updated" DISPUTE_EVIDENCE_UPLOAD_FAILED = :"dispute_evidence.upload_failed" DISPUTE_TRANSACTION_CREATED = :"dispute_transaction.created" DISPUTE_TRANSACTION_UPDATED = :"dispute_transaction.updated" + DISPUTE_UPDATED = :"dispute.updated" EXTERNAL_BANK_ACCOUNT_CREATED = :"external_bank_account.created" EXTERNAL_BANK_ACCOUNT_UPDATED = :"external_bank_account.updated" EXTERNAL_PAYMENT_CREATED = :"external_payment.created" @@ -138,6 +281,8 @@ module EventType FINANCIAL_ACCOUNT_CREATED = :"financial_account.created" FINANCIAL_ACCOUNT_UPDATED = :"financial_account.updated" FUNDING_EVENT_CREATED = :"funding_event.created" + INTERNAL_TRANSACTION_CREATED = :"internal_transaction.created" + INTERNAL_TRANSACTION_UPDATED = :"internal_transaction.updated" LOAN_TAPE_CREATED = :"loan_tape.created" LOAN_TAPE_UPDATED = :"loan_tape.updated" MANAGEMENT_OPERATION_CREATED = :"management_operation.created" @@ -146,10 +291,9 @@ module EventType NETWORK_TOTAL_UPDATED = :"network_total.updated" PAYMENT_TRANSACTION_CREATED = :"payment_transaction.created" PAYMENT_TRANSACTION_UPDATED = :"payment_transaction.updated" - INTERNAL_TRANSACTION_CREATED = :"internal_transaction.created" - INTERNAL_TRANSACTION_UPDATED = :"internal_transaction.updated" SETTLEMENT_REPORT_UPDATED = :"settlement_report.updated" STATEMENTS_CREATED = :"statements.created" + THREE_DS_AUTHENTICATION_CHALLENGE = :"three_ds_authentication.challenge" THREE_DS_AUTHENTICATION_CREATED = :"three_ds_authentication.created" THREE_DS_AUTHENTICATION_UPDATED = :"three_ds_authentication.updated" TOKENIZATION_APPROVAL_REQUEST = :"tokenization.approval_request" diff --git a/lib/lithic/models/event_list_params.rb b/lib/lithic/models/event_list_params.rb index cef0e44e..f74e1d04 100644 --- a/lib/lithic/models/event_list_params.rb +++ b/lib/lithic/models/event_list_params.rb @@ -73,20 +73,125 @@ class EventListParams < Lithic::Internal::Type::BaseModel # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] + # The type of event that occurred. Possible values: + # + # - account_holder_document.updated: Occurs when an account holder's document + # upload status has been updated + # - account_holder.created: Occurs when a new account_holder is created. + # - account_holder.updated: Occurs when an account_holder is updated. + # - account_holder.verification: Occurs when an asynchronous account_holder's + # verification is completed. + # - auth_rules.backtest_report.created: Auth Rules backtest report created. + # - balance.updated: Financial Account Balance Update + # - book_transfer_transaction.created: Occurs when a book transfer transaction is + # created. + # - book_transfer_transaction.updated: Occurs when a book transfer transaction is + # updated. + # - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial + # data is processed for a transaction event. + # - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial + # data is reprocessed for a transaction event. + # - card_transaction.updated: Occurs when a card transaction happens. + # - card.converted: Occurs when a card is converted from virtual to physical + # cards. + # - card.created: Occurs when a new card is created. + # - card.reissued: Occurs when a card is reissued. + # - card.renewed: Occurs when a card is renewed. + # - card.shipped: Occurs when a card is shipped. + # - digital_wallet.tokenization_approval_request: Occurs when a tokenization + # approval request is made. This event will be deprecated in the future. We + # recommend using `tokenization.approval_request` instead. + # - digital_wallet.tokenization_result: Occurs when a tokenization request + # succeeded or failed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.result` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code: Occurs when a + # tokenization request 2FA code is sent to the Lithic customer for self serve + # delivery. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code_sent: Occurs when a + # tokenization request 2FA code is sent to our downstream messaging providers + # for delivery. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code_sent` instead. + # + # - digital_wallet.tokenization_updated: Occurs when a tokenization's status has + # changed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.updated` instead. + # + # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_transaction.created: Occurs when a new dispute transaction is created + # - dispute_transaction.updated: Occurs when a dispute transaction is updated + # - dispute.updated: Occurs when a dispute is updated. + # - external_bank_account.created: Occurs when an external bank account is + # created. + # - external_bank_account.updated: Occurs when an external bank account is + # updated. + # - external_payment.created: Occurs when an external payment is created. + # - external_payment.updated: Occurs when an external payment is updated. + # - financial_account.created: Occurs when a financial account is created. + # - financial_account.updated: Occurs when a financial account is updated. + # - funding_event.created: Occurs when a funding event is created. + # - internal_transaction.created: Occurs when an internal adjustment is created. + # - internal_transaction.updated: Occurs when an internal adjustment is updated. + # - loan_tape.created: Occurs when a loan tape is created. + # - loan_tape.updated: Occurs when a loan tape is updated. + # - management_operation.created: Occurs when an management operation is created. + # - management_operation.updated: Occurs when an management operation is updated. + # - network_total.created: Occurs when a network total is created. + # - network_total.updated: Occurs when a network total is updated. + # - payment_transaction.created: Occurs when a payment transaction is created. + # - payment_transaction.updated: Occurs when a payment transaction is updated. + # - settlement_report.updated: Occurs when a settlement report is created or + # updated. + # - statements.created: Occurs when a statement has been created + # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` + # event. Upon receiving this request, the Card Program should issue its own + # challenge to the cardholder. After a cardholder challenge is successfully + # completed, the Card Program needs to respond back to Lithic by call to + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # Then the cardholder must navigate back to the merchant checkout flow to + # complete the transaction. Some merchants will include an `app_requestor_url` + # for app-based purchases; Lithic recommends triggering a redirect to that URL + # after the cardholder completes an app-based challenge. + # - three_ds_authentication.created: Occurs when a 3DS authentication is created. + # - three_ds_authentication.updated: Occurs when a 3DS authentication is updated + # (eg. challenge is completed). + # - tokenization.approval_request: Occurs when a tokenization approval request is + # made. + # - tokenization.result: Occurs when a tokenization request succeeded or failed. + # - tokenization.two_factor_authentication_code: Occurs when a tokenization + # request 2FA code is sent to the Lithic customer for self serve delivery. + # - tokenization.two_factor_authentication_code_sent: Occurs when a tokenization + # request 2FA code is sent to our downstream messaging providers for delivery. + # - tokenization.updated: Occurs when a tokenization's status has changed. module EventType extend Lithic::Internal::Type::Enum + ACCOUNT_HOLDER_DOCUMENT_UPDATED = :"account_holder_document.updated" ACCOUNT_HOLDER_CREATED = :"account_holder.created" ACCOUNT_HOLDER_UPDATED = :"account_holder.updated" ACCOUNT_HOLDER_VERIFICATION = :"account_holder.verification" + AUTH_RULES_BACKTEST_REPORT_CREATED = :"auth_rules.backtest_report.created" BALANCE_UPDATED = :"balance.updated" BOOK_TRANSFER_TRANSACTION_CREATED = :"book_transfer_transaction.created" + BOOK_TRANSFER_TRANSACTION_UPDATED = :"book_transfer_transaction.updated" + CARD_TRANSACTION_ENHANCED_DATA_CREATED = :"card_transaction.enhanced_data.created" + CARD_TRANSACTION_ENHANCED_DATA_UPDATED = :"card_transaction.enhanced_data.updated" + CARD_TRANSACTION_UPDATED = :"card_transaction.updated" + CARD_CONVERTED = :"card.converted" CARD_CREATED = :"card.created" - CARD_RENEWED = :"card.renewed" CARD_REISSUED = :"card.reissued" - CARD_CONVERTED = :"card.converted" + CARD_RENEWED = :"card.renewed" CARD_SHIPPED = :"card.shipped" - CARD_TRANSACTION_UPDATED = :"card_transaction.updated" DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST = :"digital_wallet.tokenization_approval_request" DIGITAL_WALLET_TOKENIZATION_RESULT = :"digital_wallet.tokenization_result" DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE = @@ -94,10 +199,10 @@ module EventType DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT = :"digital_wallet.tokenization_two_factor_authentication_code_sent" DIGITAL_WALLET_TOKENIZATION_UPDATED = :"digital_wallet.tokenization_updated" - DISPUTE_UPDATED = :"dispute.updated" DISPUTE_EVIDENCE_UPLOAD_FAILED = :"dispute_evidence.upload_failed" DISPUTE_TRANSACTION_CREATED = :"dispute_transaction.created" DISPUTE_TRANSACTION_UPDATED = :"dispute_transaction.updated" + DISPUTE_UPDATED = :"dispute.updated" EXTERNAL_BANK_ACCOUNT_CREATED = :"external_bank_account.created" EXTERNAL_BANK_ACCOUNT_UPDATED = :"external_bank_account.updated" EXTERNAL_PAYMENT_CREATED = :"external_payment.created" @@ -105,6 +210,8 @@ module EventType FINANCIAL_ACCOUNT_CREATED = :"financial_account.created" FINANCIAL_ACCOUNT_UPDATED = :"financial_account.updated" FUNDING_EVENT_CREATED = :"funding_event.created" + INTERNAL_TRANSACTION_CREATED = :"internal_transaction.created" + INTERNAL_TRANSACTION_UPDATED = :"internal_transaction.updated" LOAN_TAPE_CREATED = :"loan_tape.created" LOAN_TAPE_UPDATED = :"loan_tape.updated" MANAGEMENT_OPERATION_CREATED = :"management_operation.created" @@ -113,10 +220,9 @@ module EventType NETWORK_TOTAL_UPDATED = :"network_total.updated" PAYMENT_TRANSACTION_CREATED = :"payment_transaction.created" PAYMENT_TRANSACTION_UPDATED = :"payment_transaction.updated" - INTERNAL_TRANSACTION_CREATED = :"internal_transaction.created" - INTERNAL_TRANSACTION_UPDATED = :"internal_transaction.updated" SETTLEMENT_REPORT_UPDATED = :"settlement_report.updated" STATEMENTS_CREATED = :"statements.created" + THREE_DS_AUTHENTICATION_CHALLENGE = :"three_ds_authentication.challenge" THREE_DS_AUTHENTICATION_CREATED = :"three_ds_authentication.created" THREE_DS_AUTHENTICATION_UPDATED = :"three_ds_authentication.updated" TOKENIZATION_APPROVAL_REQUEST = :"tokenization.approval_request" diff --git a/lib/lithic/models/event_subscription.rb b/lib/lithic/models/event_subscription.rb index 7c5b7a1e..ad0a5dc4 100644 --- a/lib/lithic/models/event_subscription.rb +++ b/lib/lithic/models/event_subscription.rb @@ -46,20 +46,125 @@ class EventSubscription < Lithic::Internal::Type::BaseModel # # @param event_types [Array, nil] + # The type of event that occurred. Possible values: + # + # - account_holder_document.updated: Occurs when an account holder's document + # upload status has been updated + # - account_holder.created: Occurs when a new account_holder is created. + # - account_holder.updated: Occurs when an account_holder is updated. + # - account_holder.verification: Occurs when an asynchronous account_holder's + # verification is completed. + # - auth_rules.backtest_report.created: Auth Rules backtest report created. + # - balance.updated: Financial Account Balance Update + # - book_transfer_transaction.created: Occurs when a book transfer transaction is + # created. + # - book_transfer_transaction.updated: Occurs when a book transfer transaction is + # updated. + # - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial + # data is processed for a transaction event. + # - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial + # data is reprocessed for a transaction event. + # - card_transaction.updated: Occurs when a card transaction happens. + # - card.converted: Occurs when a card is converted from virtual to physical + # cards. + # - card.created: Occurs when a new card is created. + # - card.reissued: Occurs when a card is reissued. + # - card.renewed: Occurs when a card is renewed. + # - card.shipped: Occurs when a card is shipped. + # - digital_wallet.tokenization_approval_request: Occurs when a tokenization + # approval request is made. This event will be deprecated in the future. We + # recommend using `tokenization.approval_request` instead. + # - digital_wallet.tokenization_result: Occurs when a tokenization request + # succeeded or failed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.result` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code: Occurs when a + # tokenization request 2FA code is sent to the Lithic customer for self serve + # delivery. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code_sent: Occurs when a + # tokenization request 2FA code is sent to our downstream messaging providers + # for delivery. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code_sent` instead. + # + # - digital_wallet.tokenization_updated: Occurs when a tokenization's status has + # changed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.updated` instead. + # + # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_transaction.created: Occurs when a new dispute transaction is created + # - dispute_transaction.updated: Occurs when a dispute transaction is updated + # - dispute.updated: Occurs when a dispute is updated. + # - external_bank_account.created: Occurs when an external bank account is + # created. + # - external_bank_account.updated: Occurs when an external bank account is + # updated. + # - external_payment.created: Occurs when an external payment is created. + # - external_payment.updated: Occurs when an external payment is updated. + # - financial_account.created: Occurs when a financial account is created. + # - financial_account.updated: Occurs when a financial account is updated. + # - funding_event.created: Occurs when a funding event is created. + # - internal_transaction.created: Occurs when an internal adjustment is created. + # - internal_transaction.updated: Occurs when an internal adjustment is updated. + # - loan_tape.created: Occurs when a loan tape is created. + # - loan_tape.updated: Occurs when a loan tape is updated. + # - management_operation.created: Occurs when an management operation is created. + # - management_operation.updated: Occurs when an management operation is updated. + # - network_total.created: Occurs when a network total is created. + # - network_total.updated: Occurs when a network total is updated. + # - payment_transaction.created: Occurs when a payment transaction is created. + # - payment_transaction.updated: Occurs when a payment transaction is updated. + # - settlement_report.updated: Occurs when a settlement report is created or + # updated. + # - statements.created: Occurs when a statement has been created + # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` + # event. Upon receiving this request, the Card Program should issue its own + # challenge to the cardholder. After a cardholder challenge is successfully + # completed, the Card Program needs to respond back to Lithic by call to + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # Then the cardholder must navigate back to the merchant checkout flow to + # complete the transaction. Some merchants will include an `app_requestor_url` + # for app-based purchases; Lithic recommends triggering a redirect to that URL + # after the cardholder completes an app-based challenge. + # - three_ds_authentication.created: Occurs when a 3DS authentication is created. + # - three_ds_authentication.updated: Occurs when a 3DS authentication is updated + # (eg. challenge is completed). + # - tokenization.approval_request: Occurs when a tokenization approval request is + # made. + # - tokenization.result: Occurs when a tokenization request succeeded or failed. + # - tokenization.two_factor_authentication_code: Occurs when a tokenization + # request 2FA code is sent to the Lithic customer for self serve delivery. + # - tokenization.two_factor_authentication_code_sent: Occurs when a tokenization + # request 2FA code is sent to our downstream messaging providers for delivery. + # - tokenization.updated: Occurs when a tokenization's status has changed. module EventType extend Lithic::Internal::Type::Enum + ACCOUNT_HOLDER_DOCUMENT_UPDATED = :"account_holder_document.updated" ACCOUNT_HOLDER_CREATED = :"account_holder.created" ACCOUNT_HOLDER_UPDATED = :"account_holder.updated" ACCOUNT_HOLDER_VERIFICATION = :"account_holder.verification" + AUTH_RULES_BACKTEST_REPORT_CREATED = :"auth_rules.backtest_report.created" BALANCE_UPDATED = :"balance.updated" BOOK_TRANSFER_TRANSACTION_CREATED = :"book_transfer_transaction.created" + BOOK_TRANSFER_TRANSACTION_UPDATED = :"book_transfer_transaction.updated" + CARD_TRANSACTION_ENHANCED_DATA_CREATED = :"card_transaction.enhanced_data.created" + CARD_TRANSACTION_ENHANCED_DATA_UPDATED = :"card_transaction.enhanced_data.updated" + CARD_TRANSACTION_UPDATED = :"card_transaction.updated" + CARD_CONVERTED = :"card.converted" CARD_CREATED = :"card.created" - CARD_RENEWED = :"card.renewed" CARD_REISSUED = :"card.reissued" - CARD_CONVERTED = :"card.converted" + CARD_RENEWED = :"card.renewed" CARD_SHIPPED = :"card.shipped" - CARD_TRANSACTION_UPDATED = :"card_transaction.updated" DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST = :"digital_wallet.tokenization_approval_request" DIGITAL_WALLET_TOKENIZATION_RESULT = :"digital_wallet.tokenization_result" DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE = @@ -67,10 +172,10 @@ module EventType DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT = :"digital_wallet.tokenization_two_factor_authentication_code_sent" DIGITAL_WALLET_TOKENIZATION_UPDATED = :"digital_wallet.tokenization_updated" - DISPUTE_UPDATED = :"dispute.updated" DISPUTE_EVIDENCE_UPLOAD_FAILED = :"dispute_evidence.upload_failed" DISPUTE_TRANSACTION_CREATED = :"dispute_transaction.created" DISPUTE_TRANSACTION_UPDATED = :"dispute_transaction.updated" + DISPUTE_UPDATED = :"dispute.updated" EXTERNAL_BANK_ACCOUNT_CREATED = :"external_bank_account.created" EXTERNAL_BANK_ACCOUNT_UPDATED = :"external_bank_account.updated" EXTERNAL_PAYMENT_CREATED = :"external_payment.created" @@ -78,6 +183,8 @@ module EventType FINANCIAL_ACCOUNT_CREATED = :"financial_account.created" FINANCIAL_ACCOUNT_UPDATED = :"financial_account.updated" FUNDING_EVENT_CREATED = :"funding_event.created" + INTERNAL_TRANSACTION_CREATED = :"internal_transaction.created" + INTERNAL_TRANSACTION_UPDATED = :"internal_transaction.updated" LOAN_TAPE_CREATED = :"loan_tape.created" LOAN_TAPE_UPDATED = :"loan_tape.updated" MANAGEMENT_OPERATION_CREATED = :"management_operation.created" @@ -86,10 +193,9 @@ module EventType NETWORK_TOTAL_UPDATED = :"network_total.updated" PAYMENT_TRANSACTION_CREATED = :"payment_transaction.created" PAYMENT_TRANSACTION_UPDATED = :"payment_transaction.updated" - INTERNAL_TRANSACTION_CREATED = :"internal_transaction.created" - INTERNAL_TRANSACTION_UPDATED = :"internal_transaction.updated" SETTLEMENT_REPORT_UPDATED = :"settlement_report.updated" STATEMENTS_CREATED = :"statements.created" + THREE_DS_AUTHENTICATION_CHALLENGE = :"three_ds_authentication.challenge" THREE_DS_AUTHENTICATION_CREATED = :"three_ds_authentication.created" THREE_DS_AUTHENTICATION_UPDATED = :"three_ds_authentication.updated" TOKENIZATION_APPROVAL_REQUEST = :"tokenization.approval_request" diff --git a/lib/lithic/models/events/subscription_create_params.rb b/lib/lithic/models/events/subscription_create_params.rb index 287b57aa..c0daecd1 100644 --- a/lib/lithic/models/events/subscription_create_params.rb +++ b/lib/lithic/models/events/subscription_create_params.rb @@ -48,20 +48,125 @@ class SubscriptionCreateParams < Lithic::Internal::Type::BaseModel # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] + # The type of event that occurred. Possible values: + # + # - account_holder_document.updated: Occurs when an account holder's document + # upload status has been updated + # - account_holder.created: Occurs when a new account_holder is created. + # - account_holder.updated: Occurs when an account_holder is updated. + # - account_holder.verification: Occurs when an asynchronous account_holder's + # verification is completed. + # - auth_rules.backtest_report.created: Auth Rules backtest report created. + # - balance.updated: Financial Account Balance Update + # - book_transfer_transaction.created: Occurs when a book transfer transaction is + # created. + # - book_transfer_transaction.updated: Occurs when a book transfer transaction is + # updated. + # - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial + # data is processed for a transaction event. + # - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial + # data is reprocessed for a transaction event. + # - card_transaction.updated: Occurs when a card transaction happens. + # - card.converted: Occurs when a card is converted from virtual to physical + # cards. + # - card.created: Occurs when a new card is created. + # - card.reissued: Occurs when a card is reissued. + # - card.renewed: Occurs when a card is renewed. + # - card.shipped: Occurs when a card is shipped. + # - digital_wallet.tokenization_approval_request: Occurs when a tokenization + # approval request is made. This event will be deprecated in the future. We + # recommend using `tokenization.approval_request` instead. + # - digital_wallet.tokenization_result: Occurs when a tokenization request + # succeeded or failed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.result` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code: Occurs when a + # tokenization request 2FA code is sent to the Lithic customer for self serve + # delivery. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code_sent: Occurs when a + # tokenization request 2FA code is sent to our downstream messaging providers + # for delivery. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code_sent` instead. + # + # - digital_wallet.tokenization_updated: Occurs when a tokenization's status has + # changed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.updated` instead. + # + # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_transaction.created: Occurs when a new dispute transaction is created + # - dispute_transaction.updated: Occurs when a dispute transaction is updated + # - dispute.updated: Occurs when a dispute is updated. + # - external_bank_account.created: Occurs when an external bank account is + # created. + # - external_bank_account.updated: Occurs when an external bank account is + # updated. + # - external_payment.created: Occurs when an external payment is created. + # - external_payment.updated: Occurs when an external payment is updated. + # - financial_account.created: Occurs when a financial account is created. + # - financial_account.updated: Occurs when a financial account is updated. + # - funding_event.created: Occurs when a funding event is created. + # - internal_transaction.created: Occurs when an internal adjustment is created. + # - internal_transaction.updated: Occurs when an internal adjustment is updated. + # - loan_tape.created: Occurs when a loan tape is created. + # - loan_tape.updated: Occurs when a loan tape is updated. + # - management_operation.created: Occurs when an management operation is created. + # - management_operation.updated: Occurs when an management operation is updated. + # - network_total.created: Occurs when a network total is created. + # - network_total.updated: Occurs when a network total is updated. + # - payment_transaction.created: Occurs when a payment transaction is created. + # - payment_transaction.updated: Occurs when a payment transaction is updated. + # - settlement_report.updated: Occurs when a settlement report is created or + # updated. + # - statements.created: Occurs when a statement has been created + # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` + # event. Upon receiving this request, the Card Program should issue its own + # challenge to the cardholder. After a cardholder challenge is successfully + # completed, the Card Program needs to respond back to Lithic by call to + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # Then the cardholder must navigate back to the merchant checkout flow to + # complete the transaction. Some merchants will include an `app_requestor_url` + # for app-based purchases; Lithic recommends triggering a redirect to that URL + # after the cardholder completes an app-based challenge. + # - three_ds_authentication.created: Occurs when a 3DS authentication is created. + # - three_ds_authentication.updated: Occurs when a 3DS authentication is updated + # (eg. challenge is completed). + # - tokenization.approval_request: Occurs when a tokenization approval request is + # made. + # - tokenization.result: Occurs when a tokenization request succeeded or failed. + # - tokenization.two_factor_authentication_code: Occurs when a tokenization + # request 2FA code is sent to the Lithic customer for self serve delivery. + # - tokenization.two_factor_authentication_code_sent: Occurs when a tokenization + # request 2FA code is sent to our downstream messaging providers for delivery. + # - tokenization.updated: Occurs when a tokenization's status has changed. module EventType extend Lithic::Internal::Type::Enum + ACCOUNT_HOLDER_DOCUMENT_UPDATED = :"account_holder_document.updated" ACCOUNT_HOLDER_CREATED = :"account_holder.created" ACCOUNT_HOLDER_UPDATED = :"account_holder.updated" ACCOUNT_HOLDER_VERIFICATION = :"account_holder.verification" + AUTH_RULES_BACKTEST_REPORT_CREATED = :"auth_rules.backtest_report.created" BALANCE_UPDATED = :"balance.updated" BOOK_TRANSFER_TRANSACTION_CREATED = :"book_transfer_transaction.created" + BOOK_TRANSFER_TRANSACTION_UPDATED = :"book_transfer_transaction.updated" + CARD_TRANSACTION_ENHANCED_DATA_CREATED = :"card_transaction.enhanced_data.created" + CARD_TRANSACTION_ENHANCED_DATA_UPDATED = :"card_transaction.enhanced_data.updated" + CARD_TRANSACTION_UPDATED = :"card_transaction.updated" + CARD_CONVERTED = :"card.converted" CARD_CREATED = :"card.created" - CARD_RENEWED = :"card.renewed" CARD_REISSUED = :"card.reissued" - CARD_CONVERTED = :"card.converted" + CARD_RENEWED = :"card.renewed" CARD_SHIPPED = :"card.shipped" - CARD_TRANSACTION_UPDATED = :"card_transaction.updated" DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST = :"digital_wallet.tokenization_approval_request" DIGITAL_WALLET_TOKENIZATION_RESULT = :"digital_wallet.tokenization_result" DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE = @@ -69,10 +174,10 @@ module EventType DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT = :"digital_wallet.tokenization_two_factor_authentication_code_sent" DIGITAL_WALLET_TOKENIZATION_UPDATED = :"digital_wallet.tokenization_updated" - DISPUTE_UPDATED = :"dispute.updated" DISPUTE_EVIDENCE_UPLOAD_FAILED = :"dispute_evidence.upload_failed" DISPUTE_TRANSACTION_CREATED = :"dispute_transaction.created" DISPUTE_TRANSACTION_UPDATED = :"dispute_transaction.updated" + DISPUTE_UPDATED = :"dispute.updated" EXTERNAL_BANK_ACCOUNT_CREATED = :"external_bank_account.created" EXTERNAL_BANK_ACCOUNT_UPDATED = :"external_bank_account.updated" EXTERNAL_PAYMENT_CREATED = :"external_payment.created" @@ -80,6 +185,8 @@ module EventType FINANCIAL_ACCOUNT_CREATED = :"financial_account.created" FINANCIAL_ACCOUNT_UPDATED = :"financial_account.updated" FUNDING_EVENT_CREATED = :"funding_event.created" + INTERNAL_TRANSACTION_CREATED = :"internal_transaction.created" + INTERNAL_TRANSACTION_UPDATED = :"internal_transaction.updated" LOAN_TAPE_CREATED = :"loan_tape.created" LOAN_TAPE_UPDATED = :"loan_tape.updated" MANAGEMENT_OPERATION_CREATED = :"management_operation.created" @@ -88,10 +195,9 @@ module EventType NETWORK_TOTAL_UPDATED = :"network_total.updated" PAYMENT_TRANSACTION_CREATED = :"payment_transaction.created" PAYMENT_TRANSACTION_UPDATED = :"payment_transaction.updated" - INTERNAL_TRANSACTION_CREATED = :"internal_transaction.created" - INTERNAL_TRANSACTION_UPDATED = :"internal_transaction.updated" SETTLEMENT_REPORT_UPDATED = :"settlement_report.updated" STATEMENTS_CREATED = :"statements.created" + THREE_DS_AUTHENTICATION_CHALLENGE = :"three_ds_authentication.challenge" THREE_DS_AUTHENTICATION_CREATED = :"three_ds_authentication.created" THREE_DS_AUTHENTICATION_UPDATED = :"three_ds_authentication.updated" TOKENIZATION_APPROVAL_REQUEST = :"tokenization.approval_request" diff --git a/lib/lithic/models/events/subscription_send_simulated_example_params.rb b/lib/lithic/models/events/subscription_send_simulated_example_params.rb index 7e3b27b4..131d46e8 100644 --- a/lib/lithic/models/events/subscription_send_simulated_example_params.rb +++ b/lib/lithic/models/events/subscription_send_simulated_example_params.rb @@ -23,17 +23,22 @@ class SubscriptionSendSimulatedExampleParams < Lithic::Internal::Type::BaseModel module EventType extend Lithic::Internal::Type::Enum + ACCOUNT_HOLDER_DOCUMENT_UPDATED = :"account_holder_document.updated" ACCOUNT_HOLDER_CREATED = :"account_holder.created" ACCOUNT_HOLDER_UPDATED = :"account_holder.updated" ACCOUNT_HOLDER_VERIFICATION = :"account_holder.verification" + AUTH_RULES_BACKTEST_REPORT_CREATED = :"auth_rules.backtest_report.created" BALANCE_UPDATED = :"balance.updated" BOOK_TRANSFER_TRANSACTION_CREATED = :"book_transfer_transaction.created" + BOOK_TRANSFER_TRANSACTION_UPDATED = :"book_transfer_transaction.updated" + CARD_TRANSACTION_ENHANCED_DATA_CREATED = :"card_transaction.enhanced_data.created" + CARD_TRANSACTION_ENHANCED_DATA_UPDATED = :"card_transaction.enhanced_data.updated" + CARD_TRANSACTION_UPDATED = :"card_transaction.updated" + CARD_CONVERTED = :"card.converted" CARD_CREATED = :"card.created" - CARD_RENEWED = :"card.renewed" CARD_REISSUED = :"card.reissued" - CARD_CONVERTED = :"card.converted" + CARD_RENEWED = :"card.renewed" CARD_SHIPPED = :"card.shipped" - CARD_TRANSACTION_UPDATED = :"card_transaction.updated" DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST = :"digital_wallet.tokenization_approval_request" DIGITAL_WALLET_TOKENIZATION_RESULT = :"digital_wallet.tokenization_result" DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE = @@ -41,10 +46,10 @@ module EventType DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT = :"digital_wallet.tokenization_two_factor_authentication_code_sent" DIGITAL_WALLET_TOKENIZATION_UPDATED = :"digital_wallet.tokenization_updated" - DISPUTE_UPDATED = :"dispute.updated" DISPUTE_EVIDENCE_UPLOAD_FAILED = :"dispute_evidence.upload_failed" DISPUTE_TRANSACTION_CREATED = :"dispute_transaction.created" DISPUTE_TRANSACTION_UPDATED = :"dispute_transaction.updated" + DISPUTE_UPDATED = :"dispute.updated" EXTERNAL_BANK_ACCOUNT_CREATED = :"external_bank_account.created" EXTERNAL_BANK_ACCOUNT_UPDATED = :"external_bank_account.updated" EXTERNAL_PAYMENT_CREATED = :"external_payment.created" @@ -52,6 +57,8 @@ module EventType FINANCIAL_ACCOUNT_CREATED = :"financial_account.created" FINANCIAL_ACCOUNT_UPDATED = :"financial_account.updated" FUNDING_EVENT_CREATED = :"funding_event.created" + INTERNAL_TRANSACTION_CREATED = :"internal_transaction.created" + INTERNAL_TRANSACTION_UPDATED = :"internal_transaction.updated" LOAN_TAPE_CREATED = :"loan_tape.created" LOAN_TAPE_UPDATED = :"loan_tape.updated" MANAGEMENT_OPERATION_CREATED = :"management_operation.created" @@ -60,10 +67,9 @@ module EventType NETWORK_TOTAL_UPDATED = :"network_total.updated" PAYMENT_TRANSACTION_CREATED = :"payment_transaction.created" PAYMENT_TRANSACTION_UPDATED = :"payment_transaction.updated" - INTERNAL_TRANSACTION_CREATED = :"internal_transaction.created" - INTERNAL_TRANSACTION_UPDATED = :"internal_transaction.updated" SETTLEMENT_REPORT_UPDATED = :"settlement_report.updated" STATEMENTS_CREATED = :"statements.created" + THREE_DS_AUTHENTICATION_CHALLENGE = :"three_ds_authentication.challenge" THREE_DS_AUTHENTICATION_CREATED = :"three_ds_authentication.created" THREE_DS_AUTHENTICATION_UPDATED = :"three_ds_authentication.updated" TOKENIZATION_APPROVAL_REQUEST = :"tokenization.approval_request" diff --git a/lib/lithic/models/events/subscription_update_params.rb b/lib/lithic/models/events/subscription_update_params.rb index a923a811..c46ff59c 100644 --- a/lib/lithic/models/events/subscription_update_params.rb +++ b/lib/lithic/models/events/subscription_update_params.rb @@ -48,20 +48,125 @@ class SubscriptionUpdateParams < Lithic::Internal::Type::BaseModel # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] + # The type of event that occurred. Possible values: + # + # - account_holder_document.updated: Occurs when an account holder's document + # upload status has been updated + # - account_holder.created: Occurs when a new account_holder is created. + # - account_holder.updated: Occurs when an account_holder is updated. + # - account_holder.verification: Occurs when an asynchronous account_holder's + # verification is completed. + # - auth_rules.backtest_report.created: Auth Rules backtest report created. + # - balance.updated: Financial Account Balance Update + # - book_transfer_transaction.created: Occurs when a book transfer transaction is + # created. + # - book_transfer_transaction.updated: Occurs when a book transfer transaction is + # updated. + # - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial + # data is processed for a transaction event. + # - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial + # data is reprocessed for a transaction event. + # - card_transaction.updated: Occurs when a card transaction happens. + # - card.converted: Occurs when a card is converted from virtual to physical + # cards. + # - card.created: Occurs when a new card is created. + # - card.reissued: Occurs when a card is reissued. + # - card.renewed: Occurs when a card is renewed. + # - card.shipped: Occurs when a card is shipped. + # - digital_wallet.tokenization_approval_request: Occurs when a tokenization + # approval request is made. This event will be deprecated in the future. We + # recommend using `tokenization.approval_request` instead. + # - digital_wallet.tokenization_result: Occurs when a tokenization request + # succeeded or failed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.result` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code: Occurs when a + # tokenization request 2FA code is sent to the Lithic customer for self serve + # delivery. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code_sent: Occurs when a + # tokenization request 2FA code is sent to our downstream messaging providers + # for delivery. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code_sent` instead. + # + # - digital_wallet.tokenization_updated: Occurs when a tokenization's status has + # changed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.updated` instead. + # + # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_transaction.created: Occurs when a new dispute transaction is created + # - dispute_transaction.updated: Occurs when a dispute transaction is updated + # - dispute.updated: Occurs when a dispute is updated. + # - external_bank_account.created: Occurs when an external bank account is + # created. + # - external_bank_account.updated: Occurs when an external bank account is + # updated. + # - external_payment.created: Occurs when an external payment is created. + # - external_payment.updated: Occurs when an external payment is updated. + # - financial_account.created: Occurs when a financial account is created. + # - financial_account.updated: Occurs when a financial account is updated. + # - funding_event.created: Occurs when a funding event is created. + # - internal_transaction.created: Occurs when an internal adjustment is created. + # - internal_transaction.updated: Occurs when an internal adjustment is updated. + # - loan_tape.created: Occurs when a loan tape is created. + # - loan_tape.updated: Occurs when a loan tape is updated. + # - management_operation.created: Occurs when an management operation is created. + # - management_operation.updated: Occurs when an management operation is updated. + # - network_total.created: Occurs when a network total is created. + # - network_total.updated: Occurs when a network total is updated. + # - payment_transaction.created: Occurs when a payment transaction is created. + # - payment_transaction.updated: Occurs when a payment transaction is updated. + # - settlement_report.updated: Occurs when a settlement report is created or + # updated. + # - statements.created: Occurs when a statement has been created + # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` + # event. Upon receiving this request, the Card Program should issue its own + # challenge to the cardholder. After a cardholder challenge is successfully + # completed, the Card Program needs to respond back to Lithic by call to + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # Then the cardholder must navigate back to the merchant checkout flow to + # complete the transaction. Some merchants will include an `app_requestor_url` + # for app-based purchases; Lithic recommends triggering a redirect to that URL + # after the cardholder completes an app-based challenge. + # - three_ds_authentication.created: Occurs when a 3DS authentication is created. + # - three_ds_authentication.updated: Occurs when a 3DS authentication is updated + # (eg. challenge is completed). + # - tokenization.approval_request: Occurs when a tokenization approval request is + # made. + # - tokenization.result: Occurs when a tokenization request succeeded or failed. + # - tokenization.two_factor_authentication_code: Occurs when a tokenization + # request 2FA code is sent to the Lithic customer for self serve delivery. + # - tokenization.two_factor_authentication_code_sent: Occurs when a tokenization + # request 2FA code is sent to our downstream messaging providers for delivery. + # - tokenization.updated: Occurs when a tokenization's status has changed. module EventType extend Lithic::Internal::Type::Enum + ACCOUNT_HOLDER_DOCUMENT_UPDATED = :"account_holder_document.updated" ACCOUNT_HOLDER_CREATED = :"account_holder.created" ACCOUNT_HOLDER_UPDATED = :"account_holder.updated" ACCOUNT_HOLDER_VERIFICATION = :"account_holder.verification" + AUTH_RULES_BACKTEST_REPORT_CREATED = :"auth_rules.backtest_report.created" BALANCE_UPDATED = :"balance.updated" BOOK_TRANSFER_TRANSACTION_CREATED = :"book_transfer_transaction.created" + BOOK_TRANSFER_TRANSACTION_UPDATED = :"book_transfer_transaction.updated" + CARD_TRANSACTION_ENHANCED_DATA_CREATED = :"card_transaction.enhanced_data.created" + CARD_TRANSACTION_ENHANCED_DATA_UPDATED = :"card_transaction.enhanced_data.updated" + CARD_TRANSACTION_UPDATED = :"card_transaction.updated" + CARD_CONVERTED = :"card.converted" CARD_CREATED = :"card.created" - CARD_RENEWED = :"card.renewed" CARD_REISSUED = :"card.reissued" - CARD_CONVERTED = :"card.converted" + CARD_RENEWED = :"card.renewed" CARD_SHIPPED = :"card.shipped" - CARD_TRANSACTION_UPDATED = :"card_transaction.updated" DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST = :"digital_wallet.tokenization_approval_request" DIGITAL_WALLET_TOKENIZATION_RESULT = :"digital_wallet.tokenization_result" DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE = @@ -69,10 +174,10 @@ module EventType DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT = :"digital_wallet.tokenization_two_factor_authentication_code_sent" DIGITAL_WALLET_TOKENIZATION_UPDATED = :"digital_wallet.tokenization_updated" - DISPUTE_UPDATED = :"dispute.updated" DISPUTE_EVIDENCE_UPLOAD_FAILED = :"dispute_evidence.upload_failed" DISPUTE_TRANSACTION_CREATED = :"dispute_transaction.created" DISPUTE_TRANSACTION_UPDATED = :"dispute_transaction.updated" + DISPUTE_UPDATED = :"dispute.updated" EXTERNAL_BANK_ACCOUNT_CREATED = :"external_bank_account.created" EXTERNAL_BANK_ACCOUNT_UPDATED = :"external_bank_account.updated" EXTERNAL_PAYMENT_CREATED = :"external_payment.created" @@ -80,6 +185,8 @@ module EventType FINANCIAL_ACCOUNT_CREATED = :"financial_account.created" FINANCIAL_ACCOUNT_UPDATED = :"financial_account.updated" FUNDING_EVENT_CREATED = :"funding_event.created" + INTERNAL_TRANSACTION_CREATED = :"internal_transaction.created" + INTERNAL_TRANSACTION_UPDATED = :"internal_transaction.updated" LOAN_TAPE_CREATED = :"loan_tape.created" LOAN_TAPE_UPDATED = :"loan_tape.updated" MANAGEMENT_OPERATION_CREATED = :"management_operation.created" @@ -88,10 +195,9 @@ module EventType NETWORK_TOTAL_UPDATED = :"network_total.updated" PAYMENT_TRANSACTION_CREATED = :"payment_transaction.created" PAYMENT_TRANSACTION_UPDATED = :"payment_transaction.updated" - INTERNAL_TRANSACTION_CREATED = :"internal_transaction.created" - INTERNAL_TRANSACTION_UPDATED = :"internal_transaction.updated" SETTLEMENT_REPORT_UPDATED = :"settlement_report.updated" STATEMENTS_CREATED = :"statements.created" + THREE_DS_AUTHENTICATION_CHALLENGE = :"three_ds_authentication.challenge" THREE_DS_AUTHENTICATION_CREATED = :"three_ds_authentication.created" THREE_DS_AUTHENTICATION_UPDATED = :"three_ds_authentication.updated" TOKENIZATION_APPROVAL_REQUEST = :"tokenization.approval_request" diff --git a/lib/lithic/models/financial_account.rb b/lib/lithic/models/financial_account.rb index a4e48108..e1f4687a 100644 --- a/lib/lithic/models/financial_account.rb +++ b/lib/lithic/models/financial_account.rb @@ -123,33 +123,7 @@ class CreditConfiguration < Lithic::Internal::Type::BaseModel # @return [String, nil] required :tier, String, nil?: true - # @!attribute charged_off_reason - # @deprecated - # - # Reason for the financial account being marked as Charged Off - # - # @return [Symbol, Lithic::Models::FinancialAccount::CreditConfiguration::ChargedOffReason, nil] - optional :charged_off_reason, - enum: -> { Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason }, - nil?: true - - # @!attribute financial_account_state - # @deprecated - # - # State of the financial account - # - # @return [Symbol, Lithic::Models::FinancialAccount::CreditConfiguration::FinancialAccountState, nil] - optional :financial_account_state, - enum: -> { Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState }, - nil?: true - - # @!attribute is_spend_blocked - # @deprecated - # - # @return [Boolean, nil] - optional :is_spend_blocked, Lithic::Internal::Type::Boolean - - # @!method initialize(auto_collection_configuration:, credit_limit:, credit_product_token:, external_bank_account_token:, tier:, charged_off_reason: nil, financial_account_state: nil, is_spend_blocked: nil) + # @!method initialize(auto_collection_configuration:, credit_limit:, credit_product_token:, external_bank_account_token:, tier:) # @param auto_collection_configuration [Lithic::Models::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration] # # @param credit_limit [Integer, nil] @@ -159,12 +133,6 @@ class CreditConfiguration < Lithic::Internal::Type::BaseModel # @param external_bank_account_token [String, nil] # # @param tier [String, nil] Tier assigned to the financial account - # - # @param charged_off_reason [Symbol, Lithic::Models::FinancialAccount::CreditConfiguration::ChargedOffReason, nil] Reason for the financial account being marked as Charged Off - # - # @param financial_account_state [Symbol, Lithic::Models::FinancialAccount::CreditConfiguration::FinancialAccountState, nil] State of the financial account - # - # @param is_spend_blocked [Boolean] # @see Lithic::Models::FinancialAccount::CreditConfiguration#auto_collection_configuration class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel @@ -177,38 +145,6 @@ class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel # @!method initialize(auto_collection_enabled:) # @param auto_collection_enabled [Boolean] If auto collection is enabled for this account end - - # @deprecated - # - # Reason for the financial account being marked as Charged Off - # - # @see Lithic::Models::FinancialAccount::CreditConfiguration#charged_off_reason - module ChargedOffReason - extend Lithic::Internal::Type::Enum - - DELINQUENT = :DELINQUENT - FRAUD = :FRAUD - - # @!method self.values - # @return [Array] - end - - # @deprecated - # - # State of the financial account - # - # @see Lithic::Models::FinancialAccount::CreditConfiguration#financial_account_state - module FinancialAccountState - extend Lithic::Internal::Type::Enum - - PENDING = :PENDING - CURRENT = :CURRENT - DELINQUENT = :DELINQUENT - CHARGED_OFF = :CHARGED_OFF - - # @!method self.values - # @return [Array] - end end # Status of the financial account diff --git a/lib/lithic/models/financial_accounts/financial_account_credit_config.rb b/lib/lithic/models/financial_accounts/financial_account_credit_config.rb index f698e422..6bec52e5 100644 --- a/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +++ b/lib/lithic/models/financial_accounts/financial_account_credit_config.rb @@ -39,32 +39,7 @@ class FinancialAccountCreditConfig < Lithic::Internal::Type::BaseModel # @return [String, nil] required :tier, String, nil?: true - # @!attribute charged_off_reason - # @deprecated - # - # Reason for the financial account being marked as Charged Off - # - # @return [Symbol, Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason, nil] - optional :charged_off_reason, - enum: -> { Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason }, - nil?: true - - # @!attribute financial_account_state - # @deprecated - # - # State of the financial account - # - # @return [Symbol, Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState, nil] - optional :financial_account_state, - enum: -> { Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState } - - # @!attribute is_spend_blocked - # @deprecated - # - # @return [Boolean, nil] - optional :is_spend_blocked, Lithic::Internal::Type::Boolean - - # @!method initialize(account_token:, auto_collection_configuration:, credit_limit:, credit_product_token:, external_bank_account_token:, tier:, charged_off_reason: nil, financial_account_state: nil, is_spend_blocked: nil) + # @!method initialize(account_token:, auto_collection_configuration:, credit_limit:, credit_product_token:, external_bank_account_token:, tier:) # @param account_token [String] Globally unique identifier for the account # # @param auto_collection_configuration [Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration] @@ -76,12 +51,6 @@ class FinancialAccountCreditConfig < Lithic::Internal::Type::BaseModel # @param external_bank_account_token [String, nil] # # @param tier [String, nil] Tier assigned to the financial account - # - # @param charged_off_reason [Symbol, Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason, nil] Reason for the financial account being marked as Charged Off - # - # @param financial_account_state [Symbol, Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState] State of the financial account - # - # @param is_spend_blocked [Boolean] # @see Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig#auto_collection_configuration class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel @@ -94,38 +63,6 @@ class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel # @!method initialize(auto_collection_enabled:) # @param auto_collection_enabled [Boolean] If auto collection is enabled for this account end - - # @deprecated - # - # Reason for the financial account being marked as Charged Off - # - # @see Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig#charged_off_reason - module ChargedOffReason - extend Lithic::Internal::Type::Enum - - DELINQUENT = :DELINQUENT - FRAUD = :FRAUD - - # @!method self.values - # @return [Array] - end - - # @deprecated - # - # State of the financial account - # - # @see Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig#financial_account_state - module FinancialAccountState - extend Lithic::Internal::Type::Enum - - PENDING = :PENDING - CURRENT = :CURRENT - DELINQUENT = :DELINQUENT - CHARGED_OFF = :CHARGED_OFF - - # @!method self.values - # @return [Array] - end end end diff --git a/lib/lithic/models/financial_accounts/loan_tape.rb b/lib/lithic/models/financial_accounts/loan_tape.rb index b2b18371..bc10a225 100644 --- a/lib/lithic/models/financial_accounts/loan_tape.rb +++ b/lib/lithic/models/financial_accounts/loan_tape.rb @@ -484,6 +484,12 @@ class DayTotals < Lithic::Internal::Type::BaseModel # @return [Integer] required :credits, Integer + # @!attribute debits + # Volume of debit management operation transactions less any interest in cents + # + # @return [Integer] + required :debits, Integer + # @!attribute fees # Volume of debit management operation transactions less any interest in cents # @@ -508,7 +514,25 @@ class DayTotals < Lithic::Internal::Type::BaseModel # @return [Integer] required :purchases, Integer - # @!method initialize(balance_transfers:, cash_advances:, credits:, fees:, interest:, payments:, purchases:) + # @!attribute credit_details + # Breakdown of credits + # + # @return [Object, nil] + optional :credit_details, Lithic::Internal::Type::Unknown + + # @!attribute debit_details + # Breakdown of debits + # + # @return [Object, nil] + optional :debit_details, Lithic::Internal::Type::Unknown + + # @!attribute payment_details + # Breakdown of payments + # + # @return [Object, nil] + optional :payment_details, Lithic::Internal::Type::Unknown + + # @!method initialize(balance_transfers:, cash_advances:, credits:, debits:, fees:, interest:, payments:, purchases:, credit_details: nil, debit_details: nil, payment_details: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::FinancialAccounts::LoanTape::DayTotals} for more details. # @@ -518,6 +542,8 @@ class DayTotals < Lithic::Internal::Type::BaseModel # # @param credits [Integer] Volume of credit management operation transactions less any balance transfers in # + # @param debits [Integer] Volume of debit management operation transactions less any interest in cents + # # @param fees [Integer] Volume of debit management operation transactions less any interest in cents # # @param interest [Integer] Interest accrued in cents @@ -525,6 +551,12 @@ class DayTotals < Lithic::Internal::Type::BaseModel # @param payments [Integer] Any funds transfers which affective the balance in cents # # @param purchases [Integer] Net card transaction volume less any cash advances in cents + # + # @param credit_details [Object] Breakdown of credits + # + # @param debit_details [Object] Breakdown of debits + # + # @param payment_details [Object] Breakdown of payments end # @see Lithic::Models::FinancialAccounts::LoanTape#interest_details @@ -718,6 +750,12 @@ class PeriodTotals < Lithic::Internal::Type::BaseModel # @return [Integer] required :credits, Integer + # @!attribute debits + # Volume of debit management operation transactions less any interest in cents + # + # @return [Integer] + required :debits, Integer + # @!attribute fees # Volume of debit management operation transactions less any interest in cents # @@ -742,7 +780,25 @@ class PeriodTotals < Lithic::Internal::Type::BaseModel # @return [Integer] required :purchases, Integer - # @!method initialize(balance_transfers:, cash_advances:, credits:, fees:, interest:, payments:, purchases:) + # @!attribute credit_details + # Breakdown of credits + # + # @return [Object, nil] + optional :credit_details, Lithic::Internal::Type::Unknown + + # @!attribute debit_details + # Breakdown of debits + # + # @return [Object, nil] + optional :debit_details, Lithic::Internal::Type::Unknown + + # @!attribute payment_details + # Breakdown of payments + # + # @return [Object, nil] + optional :payment_details, Lithic::Internal::Type::Unknown + + # @!method initialize(balance_transfers:, cash_advances:, credits:, debits:, fees:, interest:, payments:, purchases:, credit_details: nil, debit_details: nil, payment_details: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::FinancialAccounts::LoanTape::PeriodTotals} for more details. # @@ -752,6 +808,8 @@ class PeriodTotals < Lithic::Internal::Type::BaseModel # # @param credits [Integer] Volume of credit management operation transactions less any balance transfers in # + # @param debits [Integer] Volume of debit management operation transactions less any interest in cents + # # @param fees [Integer] Volume of debit management operation transactions less any interest in cents # # @param interest [Integer] Interest accrued in cents @@ -759,6 +817,12 @@ class PeriodTotals < Lithic::Internal::Type::BaseModel # @param payments [Integer] Any funds transfers which affective the balance in cents # # @param purchases [Integer] Net card transaction volume less any cash advances in cents + # + # @param credit_details [Object] Breakdown of credits + # + # @param debit_details [Object] Breakdown of debits + # + # @param payment_details [Object] Breakdown of payments end # @see Lithic::Models::FinancialAccounts::LoanTape#previous_statement_balance @@ -799,6 +863,12 @@ class YtdTotals < Lithic::Internal::Type::BaseModel # @return [Integer] required :credits, Integer + # @!attribute debits + # Volume of debit management operation transactions less any interest in cents + # + # @return [Integer] + required :debits, Integer + # @!attribute fees # Volume of debit management operation transactions less any interest in cents # @@ -823,7 +893,25 @@ class YtdTotals < Lithic::Internal::Type::BaseModel # @return [Integer] required :purchases, Integer - # @!method initialize(balance_transfers:, cash_advances:, credits:, fees:, interest:, payments:, purchases:) + # @!attribute credit_details + # Breakdown of credits + # + # @return [Object, nil] + optional :credit_details, Lithic::Internal::Type::Unknown + + # @!attribute debit_details + # Breakdown of debits + # + # @return [Object, nil] + optional :debit_details, Lithic::Internal::Type::Unknown + + # @!attribute payment_details + # Breakdown of payments + # + # @return [Object, nil] + optional :payment_details, Lithic::Internal::Type::Unknown + + # @!method initialize(balance_transfers:, cash_advances:, credits:, debits:, fees:, interest:, payments:, purchases:, credit_details: nil, debit_details: nil, payment_details: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::FinancialAccounts::LoanTape::YtdTotals} for more details. # @@ -833,6 +921,8 @@ class YtdTotals < Lithic::Internal::Type::BaseModel # # @param credits [Integer] Volume of credit management operation transactions less any balance transfers in # + # @param debits [Integer] Volume of debit management operation transactions less any interest in cents + # # @param fees [Integer] Volume of debit management operation transactions less any interest in cents # # @param interest [Integer] Interest accrued in cents @@ -840,6 +930,12 @@ class YtdTotals < Lithic::Internal::Type::BaseModel # @param payments [Integer] Any funds transfers which affective the balance in cents # # @param purchases [Integer] Net card transaction volume less any cash advances in cents + # + # @param credit_details [Object] Breakdown of credits + # + # @param debit_details [Object] Breakdown of debits + # + # @param payment_details [Object] Breakdown of payments end end end diff --git a/lib/lithic/models/financial_accounts/statement.rb b/lib/lithic/models/financial_accounts/statement.rb index e8924766..cdeb28dd 100644 --- a/lib/lithic/models/financial_accounts/statement.rb +++ b/lib/lithic/models/financial_accounts/statement.rb @@ -357,6 +357,12 @@ class PeriodTotals < Lithic::Internal::Type::BaseModel # @return [Integer] required :credits, Integer + # @!attribute debits + # Volume of debit management operation transactions less any interest in cents + # + # @return [Integer] + required :debits, Integer + # @!attribute fees # Volume of debit management operation transactions less any interest in cents # @@ -381,7 +387,25 @@ class PeriodTotals < Lithic::Internal::Type::BaseModel # @return [Integer] required :purchases, Integer - # @!method initialize(balance_transfers:, cash_advances:, credits:, fees:, interest:, payments:, purchases:) + # @!attribute credit_details + # Breakdown of credits + # + # @return [Object, nil] + optional :credit_details, Lithic::Internal::Type::Unknown + + # @!attribute debit_details + # Breakdown of debits + # + # @return [Object, nil] + optional :debit_details, Lithic::Internal::Type::Unknown + + # @!attribute payment_details + # Breakdown of payments + # + # @return [Object, nil] + optional :payment_details, Lithic::Internal::Type::Unknown + + # @!method initialize(balance_transfers:, cash_advances:, credits:, debits:, fees:, interest:, payments:, purchases:, credit_details: nil, debit_details: nil, payment_details: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::FinancialAccounts::Statement::PeriodTotals} for more details. # @@ -391,6 +415,8 @@ class PeriodTotals < Lithic::Internal::Type::BaseModel # # @param credits [Integer] Volume of credit management operation transactions less any balance transfers in # + # @param debits [Integer] Volume of debit management operation transactions less any interest in cents + # # @param fees [Integer] Volume of debit management operation transactions less any interest in cents # # @param interest [Integer] Interest accrued in cents @@ -398,6 +424,12 @@ class PeriodTotals < Lithic::Internal::Type::BaseModel # @param payments [Integer] Any funds transfers which affective the balance in cents # # @param purchases [Integer] Net card transaction volume less any cash advances in cents + # + # @param credit_details [Object] Breakdown of credits + # + # @param debit_details [Object] Breakdown of debits + # + # @param payment_details [Object] Breakdown of payments end # @see Lithic::Models::FinancialAccounts::Statement#statement_type @@ -433,6 +465,12 @@ class YtdTotals < Lithic::Internal::Type::BaseModel # @return [Integer] required :credits, Integer + # @!attribute debits + # Volume of debit management operation transactions less any interest in cents + # + # @return [Integer] + required :debits, Integer + # @!attribute fees # Volume of debit management operation transactions less any interest in cents # @@ -457,7 +495,25 @@ class YtdTotals < Lithic::Internal::Type::BaseModel # @return [Integer] required :purchases, Integer - # @!method initialize(balance_transfers:, cash_advances:, credits:, fees:, interest:, payments:, purchases:) + # @!attribute credit_details + # Breakdown of credits + # + # @return [Object, nil] + optional :credit_details, Lithic::Internal::Type::Unknown + + # @!attribute debit_details + # Breakdown of debits + # + # @return [Object, nil] + optional :debit_details, Lithic::Internal::Type::Unknown + + # @!attribute payment_details + # Breakdown of payments + # + # @return [Object, nil] + optional :payment_details, Lithic::Internal::Type::Unknown + + # @!method initialize(balance_transfers:, cash_advances:, credits:, debits:, fees:, interest:, payments:, purchases:, credit_details: nil, debit_details: nil, payment_details: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::FinancialAccounts::Statement::YtdTotals} for more details. # @@ -467,6 +523,8 @@ class YtdTotals < Lithic::Internal::Type::BaseModel # # @param credits [Integer] Volume of credit management operation transactions less any balance transfers in # + # @param debits [Integer] Volume of debit management operation transactions less any interest in cents + # # @param fees [Integer] Volume of debit management operation transactions less any interest in cents # # @param interest [Integer] Interest accrued in cents @@ -474,6 +532,12 @@ class YtdTotals < Lithic::Internal::Type::BaseModel # @param payments [Integer] Any funds transfers which affective the balance in cents # # @param purchases [Integer] Net card transaction volume less any cash advances in cents + # + # @param credit_details [Object] Breakdown of credits + # + # @param debit_details [Object] Breakdown of debits + # + # @param payment_details [Object] Breakdown of payments end # @see Lithic::Models::FinancialAccounts::Statement#interest_details diff --git a/lib/lithic/models/payment.rb b/lib/lithic/models/payment.rb index 8bcdf879..14c74cde 100644 --- a/lib/lithic/models/payment.rb +++ b/lib/lithic/models/payment.rb @@ -483,6 +483,12 @@ module SecCode end class WireMethodAttributes < Lithic::Internal::Type::BaseModel + # @!attribute wire_message_type + # Type of wire message + # + # @return [String, nil] + required :wire_message_type, String, nil?: true + # @!attribute wire_network # Type of wire transfer # @@ -512,17 +518,13 @@ class WireMethodAttributes < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :remittance_information, String, nil?: true - # @!attribute wire_message_type - # Type of wire message - # - # @return [String, nil] - optional :wire_message_type, String - - # @!method initialize(wire_network:, creditor: nil, debtor: nil, message_id: nil, remittance_information: nil, wire_message_type: nil) + # @!method initialize(wire_message_type:, wire_network:, creditor: nil, debtor: nil, message_id: nil, remittance_information: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::Payment::MethodAttributes::WireMethodAttributes} for more # details. # + # @param wire_message_type [String, nil] Type of wire message + # # @param wire_network [Symbol, Lithic::Models::Payment::MethodAttributes::WireMethodAttributes::WireNetwork] Type of wire transfer # # @param creditor [Lithic::Models::WirePartyDetails] @@ -532,8 +534,6 @@ class WireMethodAttributes < Lithic::Internal::Type::BaseModel # @param message_id [String, nil] Point to point reference identifier, as assigned by the instructing party, used # # @param remittance_information [String, nil] Payment details or invoice reference - # - # @param wire_message_type [String] Type of wire message # Type of wire transfer # diff --git a/lib/lithic/models/payment_simulate_action_params.rb b/lib/lithic/models/payment_simulate_action_params.rb index 4f5756b1..d21e5b67 100644 --- a/lib/lithic/models/payment_simulate_action_params.rb +++ b/lib/lithic/models/payment_simulate_action_params.rb @@ -13,23 +13,39 @@ class PaymentSimulateActionParams < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::PaymentSimulateActionParams::EventType] required :event_type, enum: -> { Lithic::PaymentSimulateActionParams::EventType } + # @!attribute date_of_death + # Date of Death for ACH Return + # + # @return [Date, nil] + optional :date_of_death, Date + # @!attribute decline_reason # Decline reason # # @return [Symbol, Lithic::Models::PaymentSimulateActionParams::DeclineReason, nil] optional :decline_reason, enum: -> { Lithic::PaymentSimulateActionParams::DeclineReason } + # @!attribute return_addenda + # Return Addenda + # + # @return [String, nil] + optional :return_addenda, String + # @!attribute return_reason_code # Return Reason Code # # @return [String, nil] optional :return_reason_code, String - # @!method initialize(event_type:, decline_reason: nil, return_reason_code: nil, request_options: {}) + # @!method initialize(event_type:, date_of_death: nil, decline_reason: nil, return_addenda: nil, return_reason_code: nil, request_options: {}) # @param event_type [Symbol, Lithic::Models::PaymentSimulateActionParams::EventType] Event Type # + # @param date_of_death [Date] Date of Death for ACH Return + # # @param decline_reason [Symbol, Lithic::Models::PaymentSimulateActionParams::DeclineReason] Decline reason # + # @param return_addenda [String] Return Addenda + # # @param return_reason_code [String] Return Reason Code # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/lithic/models/tokenization.rb b/lib/lithic/models/tokenization.rb index c2c64d23..3a4c79f2 100644 --- a/lib/lithic/models/tokenization.rb +++ b/lib/lithic/models/tokenization.rb @@ -28,12 +28,6 @@ class Tokenization < Lithic::Internal::Type::BaseModel # @return [Time] required :created_at, Time - # @!attribute device_id - # The device identifier associated with the tokenization. - # - # @return [String, nil] - required :device_id, String, nil?: true - # @!attribute dpan # The dynamic pan assigned to the token by the network. # @@ -47,11 +41,12 @@ class Tokenization < Lithic::Internal::Type::BaseModel required :status, enum: -> { Lithic::Tokenization::Status } # @!attribute token_requestor_name - # The entity that requested the tokenization. Represents a Digital Wallet or - # merchant. + # The entity that requested the tokenization. For digital wallets, this will be + # one of the defined wallet types. For merchant tokenizations, this will be a + # free-form merchant name string. # - # @return [Symbol, Lithic::Models::Tokenization::TokenRequestorName] - required :token_requestor_name, enum: -> { Lithic::Tokenization::TokenRequestorName } + # @return [Symbol, String, Lithic::Models::Tokenization::TokenRequestorName] + required :token_requestor_name, union: -> { Lithic::Tokenization::TokenRequestorName } # @!attribute token_unique_reference # The network's unique reference for the tokenization. @@ -71,14 +66,20 @@ class Tokenization < Lithic::Internal::Type::BaseModel # @return [Time] required :updated_at, Time + # @!attribute device_id + # The device identifier associated with the tokenization. + # + # @return [String, nil] + optional :device_id, String, nil?: true + # @!attribute digital_card_art_token - # Specifies the digital card art displayed in the user’s digital wallet after + # Specifies the digital card art displayed in the user's digital wallet after # tokenization. This will be null if the tokenization was created without an # associated digital card art. See # [Flexible Card Art Guide](https://docs.lithic.com/docs/about-digital-wallets#flexible-card-art). # # @return [String, nil] - optional :digital_card_art_token, String + optional :digital_card_art_token, String, nil?: true # @!attribute events # A list of events related to the tokenization. @@ -92,7 +93,7 @@ class Tokenization < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :payment_account_reference_id, String, nil?: true - # @!method initialize(token:, account_token:, card_token:, created_at:, device_id:, dpan:, status:, token_requestor_name:, token_unique_reference:, tokenization_channel:, updated_at:, digital_card_art_token: nil, events: nil, payment_account_reference_id: nil) + # @!method initialize(token:, account_token:, card_token:, created_at:, dpan:, status:, token_requestor_name:, token_unique_reference:, tokenization_channel:, updated_at:, device_id: nil, digital_card_art_token: nil, events: nil, payment_account_reference_id: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::Tokenization} for more details. # @@ -104,13 +105,11 @@ class Tokenization < Lithic::Internal::Type::BaseModel # # @param created_at [Time] Date and time when the tokenization first occurred. UTC time zone. # - # @param device_id [String, nil] The device identifier associated with the tokenization. - # # @param dpan [String, nil] The dynamic pan assigned to the token by the network. # # @param status [Symbol, Lithic::Models::Tokenization::Status] The status of the tokenization request # - # @param token_requestor_name [Symbol, Lithic::Models::Tokenization::TokenRequestorName] The entity that requested the tokenization. Represents a Digital Wallet or merch + # @param token_requestor_name [Symbol, String, Lithic::Models::Tokenization::TokenRequestorName] The entity that requested the tokenization. For digital wallets, this will be on # # @param token_unique_reference [String] The network's unique reference for the tokenization. # @@ -118,7 +117,9 @@ class Tokenization < Lithic::Internal::Type::BaseModel # # @param updated_at [Time] Latest date and time when the tokenization was updated. UTC time zone. # - # @param digital_card_art_token [String] Specifies the digital card art displayed in the user’s digital wallet after toke + # @param device_id [String, nil] The device identifier associated with the tokenization. + # + # @param digital_card_art_token [String, nil] Specifies the digital card art displayed in the user's digital wallet after toke # # @param events [Array] A list of events related to the tokenization. # @@ -142,12 +143,49 @@ module Status # @return [Array] end - # The entity that requested the tokenization. Represents a Digital Wallet or - # merchant. + # The entity that requested the tokenization. For digital wallets, this will be + # one of the defined wallet types. For merchant tokenizations, this will be a + # free-form merchant name string. # # @see Lithic::Models::Tokenization#token_requestor_name module TokenRequestorName - extend Lithic::Internal::Type::Enum + extend Lithic::Internal::Type::Union + + variant const: -> { Lithic::Models::Tokenization::TokenRequestorName::AMAZON_ONE } + + variant const: -> { Lithic::Models::Tokenization::TokenRequestorName::ANDROID_PAY } + + variant const: -> { Lithic::Models::Tokenization::TokenRequestorName::APPLE_PAY } + + variant const: -> { Lithic::Models::Tokenization::TokenRequestorName::FACEBOOK } + + variant const: -> { Lithic::Models::Tokenization::TokenRequestorName::FITBIT_PAY } + + variant const: -> { Lithic::Models::Tokenization::TokenRequestorName::GARMIN_PAY } + + variant const: -> { Lithic::Models::Tokenization::TokenRequestorName::GOOGLE_PAY } + + variant const: -> { Lithic::Models::Tokenization::TokenRequestorName::MICROSOFT_PAY } + + variant const: -> { Lithic::Models::Tokenization::TokenRequestorName::NETFLIX } + + variant const: -> { Lithic::Models::Tokenization::TokenRequestorName::SAMSUNG_PAY } + + variant const: -> { Lithic::Models::Tokenization::TokenRequestorName::UNKNOWN } + + variant const: -> { Lithic::Models::Tokenization::TokenRequestorName::VISA_CHECKOUT } + + # Merchant name for merchant tokenizations + variant String + + # @!method self.variants + # @return [Array(Symbol, String)] + + define_sorbet_constant!(:Variants) do + T.type_alias { T.any(Lithic::Tokenization::TokenRequestorName::TaggedSymbol, String) } + end + + # @!group AMAZON_ONE = :AMAZON_ONE ANDROID_PAY = :ANDROID_PAY @@ -155,14 +193,14 @@ module TokenRequestorName FACEBOOK = :FACEBOOK FITBIT_PAY = :FITBIT_PAY GARMIN_PAY = :GARMIN_PAY + GOOGLE_PAY = :GOOGLE_PAY MICROSOFT_PAY = :MICROSOFT_PAY NETFLIX = :NETFLIX SAMSUNG_PAY = :SAMSUNG_PAY UNKNOWN = :UNKNOWN VISA_CHECKOUT = :VISA_CHECKOUT - # @!method self.values - # @return [Array] + # @!endgroup end # The channel through which the tokenization was made. @@ -197,19 +235,45 @@ class Event < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::Tokenization::Event::Result, nil] optional :result, enum: -> { Lithic::Tokenization::Event::Result } + # @!attribute rule_results + # Results from rules that were evaluated for this tokenization + # + # @return [Array, nil] + optional :rule_results, -> { Lithic::Internal::Type::ArrayOf[Lithic::Tokenization::Event::RuleResult] } + + # @!attribute tokenization_decline_reasons + # List of reasons why the tokenization was declined + # + # @return [Array, nil] + optional :tokenization_decline_reasons, + -> { Lithic::Internal::Type::ArrayOf[enum: Lithic::Tokenization::Event::TokenizationDeclineReason] } + + # @!attribute tokenization_tfa_reasons + # List of reasons why two-factor authentication was required + # + # @return [Array, nil] + optional :tokenization_tfa_reasons, + -> { Lithic::Internal::Type::ArrayOf[enum: Lithic::Tokenization::Event::TokenizationTfaReason] } + # @!attribute type # Enum representing the type of tokenization event that occurred # # @return [Symbol, Lithic::Models::Tokenization::Event::Type, nil] optional :type, enum: -> { Lithic::Tokenization::Event::Type } - # @!method initialize(token: nil, created_at: nil, result: nil, type: nil) + # @!method initialize(token: nil, created_at: nil, result: nil, rule_results: nil, tokenization_decline_reasons: nil, tokenization_tfa_reasons: nil, type: nil) # @param token [String] Globally unique identifier for a Tokenization Event # # @param created_at [Time] Date and time when the tokenization event first occurred. UTC time zone. # # @param result [Symbol, Lithic::Models::Tokenization::Event::Result] Enum representing the result of the tokenization event # + # @param rule_results [Array] Results from rules that were evaluated for this tokenization + # + # @param tokenization_decline_reasons [Array] List of reasons why the tokenization was declined + # + # @param tokenization_tfa_reasons [Array] List of reasons why two-factor authentication was required + # # @param type [Symbol, Lithic::Models::Tokenization::Event::Type] Enum representing the type of tokenization event that occurred # Enum representing the result of the tokenization event @@ -235,6 +299,108 @@ module Result # @return [Array] end + class RuleResult < Lithic::Internal::Type::BaseModel + # @!attribute auth_rule_token + # The Auth Rule Token associated with the rule. If this is set to null, then the + # result was not associated with a customer-configured rule. This may happen in + # cases where a tokenization is declined or requires TFA due to a + # Lithic-configured security or compliance rule, for example. + # + # @return [String, nil] + required :auth_rule_token, String, nil?: true + + # @!attribute explanation + # A human-readable explanation outlining the motivation for the rule's result + # + # @return [String, nil] + required :explanation, String, nil?: true + + # @!attribute name + # The name for the rule, if any was configured + # + # @return [String, nil] + required :name, String, nil?: true + + # @!attribute result + # The result associated with this rule + # + # @return [Symbol, Lithic::Models::Tokenization::Event::RuleResult::Result] + required :result, enum: -> { Lithic::Tokenization::Event::RuleResult::Result } + + # @!method initialize(auth_rule_token:, explanation:, name:, result:) + # Some parameter documentations has been truncated, see + # {Lithic::Models::Tokenization::Event::RuleResult} for more details. + # + # @param auth_rule_token [String, nil] The Auth Rule Token associated with the rule. If this is set to null, then the r + # + # @param explanation [String, nil] A human-readable explanation outlining the motivation for the rule's result + # + # @param name [String, nil] The name for the rule, if any was configured + # + # @param result [Symbol, Lithic::Models::Tokenization::Event::RuleResult::Result] The result associated with this rule + + # The result associated with this rule + # + # @see Lithic::Models::Tokenization::Event::RuleResult#result + module Result + extend Lithic::Internal::Type::Enum + + APPROVED = :APPROVED + DECLINED = :DECLINED + REQUIRE_TFA = :REQUIRE_TFA + ERROR = :ERROR + + # @!method self.values + # @return [Array] + end + end + + # Reason code for why a tokenization was declined + module TokenizationDeclineReason + extend Lithic::Internal::Type::Enum + + ACCOUNT_SCORE_1 = :ACCOUNT_SCORE_1 + DEVICE_SCORE_1 = :DEVICE_SCORE_1 + ALL_WALLET_DECLINE_REASONS_PRESENT = :ALL_WALLET_DECLINE_REASONS_PRESENT + WALLET_RECOMMENDED_DECISION_RED = :WALLET_RECOMMENDED_DECISION_RED + CVC_MISMATCH = :CVC_MISMATCH + CARD_EXPIRY_MONTH_MISMATCH = :CARD_EXPIRY_MONTH_MISMATCH + CARD_EXPIRY_YEAR_MISMATCH = :CARD_EXPIRY_YEAR_MISMATCH + CARD_INVALID_STATE = :CARD_INVALID_STATE + CUSTOMER_RED_PATH = :CUSTOMER_RED_PATH + INVALID_CUSTOMER_RESPONSE = :INVALID_CUSTOMER_RESPONSE + NETWORK_FAILURE = :NETWORK_FAILURE + GENERIC_DECLINE = :GENERIC_DECLINE + DIGITAL_CARD_ART_REQUIRED = :DIGITAL_CARD_ART_REQUIRED + + # @!method self.values + # @return [Array] + end + + # Reason code for why a tokenization required two-factor authentication + module TokenizationTfaReason + extend Lithic::Internal::Type::Enum + + WALLET_RECOMMENDED_TFA = :WALLET_RECOMMENDED_TFA + SUSPICIOUS_ACTIVITY = :SUSPICIOUS_ACTIVITY + DEVICE_RECENTLY_LOST = :DEVICE_RECENTLY_LOST + TOO_MANY_RECENT_ATTEMPTS = :TOO_MANY_RECENT_ATTEMPTS + TOO_MANY_RECENT_TOKENS = :TOO_MANY_RECENT_TOKENS + TOO_MANY_DIFFERENT_CARDHOLDERS = :TOO_MANY_DIFFERENT_CARDHOLDERS + OUTSIDE_HOME_TERRITORY = :OUTSIDE_HOME_TERRITORY + HAS_SUSPENDED_TOKENS = :HAS_SUSPENDED_TOKENS + HIGH_RISK = :HIGH_RISK + ACCOUNT_SCORE_LOW = :ACCOUNT_SCORE_LOW + DEVICE_SCORE_LOW = :DEVICE_SCORE_LOW + CARD_STATE_TFA = :CARD_STATE_TFA + HARDCODED_TFA = :HARDCODED_TFA + CUSTOMER_RULE_TFA = :CUSTOMER_RULE_TFA + DEVICE_HOST_CARD_EMULATION = :DEVICE_HOST_CARD_EMULATION + + # @!method self.values + # @return [Array] + end + # Enum representing the type of tokenization event that occurred # # @see Lithic::Models::Tokenization::Event#type diff --git a/lib/lithic/models/transaction.rb b/lib/lithic/models/transaction.rb index 880b522a..5f10d6f9 100644 --- a/lib/lithic/models/transaction.rb +++ b/lib/lithic/models/transaction.rb @@ -378,23 +378,12 @@ class Avs < Lithic::Internal::Type::BaseModel # @see Lithic::Models::Transaction#cardholder_authentication class CardholderAuthentication < Lithic::Internal::Type::BaseModel - # @!attribute three_ds_version - # @deprecated - # - # The 3DS version used for the authentication - # - # @return [String, nil] - required :three_ds_version, String, api_name: :"3ds_version", nil?: true - - # @!attribute acquirer_exemption - # @deprecated - # - # Whether an acquirer exemption applied to the transaction. Not currently - # populated and will be removed in the future. + # @!attribute authentication_method + # Indicates the method used to authenticate the cardholder. # - # @return [Symbol, Lithic::Models::Transaction::CardholderAuthentication::AcquirerExemption] - required :acquirer_exemption, - enum: -> { Lithic::Transaction::CardholderAuthentication::AcquirerExemption } + # @return [Symbol, Lithic::Models::Transaction::CardholderAuthentication::AuthenticationMethod] + required :authentication_method, + enum: -> { Lithic::Transaction::CardholderAuthentication::AuthenticationMethod } # @!attribute authentication_result # Indicates the outcome of the 3DS authentication process. @@ -433,40 +422,11 @@ class CardholderAuthentication < Lithic::Internal::Type::BaseModel # @return [String, nil] required :three_ds_authentication_token, String, nil?: true - # @!attribute verification_attempted - # @deprecated - # - # Indicates whether a 3DS challenge flow was used, and if so, what the - # verification method was. (deprecated, use `authentication_result`) - # - # @return [Symbol, Lithic::Models::Transaction::CardholderAuthentication::VerificationAttempted] - required :verification_attempted, - enum: -> { Lithic::Transaction::CardholderAuthentication::VerificationAttempted } - - # @!attribute verification_result - # @deprecated - # - # Indicates whether a transaction is considered 3DS authenticated. (deprecated, - # use `authentication_result`) - # - # @return [Symbol, Lithic::Models::Transaction::CardholderAuthentication::VerificationResult] - required :verification_result, - enum: -> { Lithic::Transaction::CardholderAuthentication::VerificationResult } - - # @!attribute authentication_method - # Indicates the method used to authenticate the cardholder. - # - # @return [Symbol, Lithic::Models::Transaction::CardholderAuthentication::AuthenticationMethod, nil] - optional :authentication_method, - enum: -> { Lithic::Transaction::CardholderAuthentication::AuthenticationMethod } - - # @!method initialize(three_ds_version:, acquirer_exemption:, authentication_result:, decision_made_by:, liability_shift:, three_ds_authentication_token:, verification_attempted:, verification_result:, authentication_method: nil) + # @!method initialize(authentication_method:, authentication_result:, decision_made_by:, liability_shift:, three_ds_authentication_token:) # Some parameter documentations has been truncated, see # {Lithic::Models::Transaction::CardholderAuthentication} for more details. # - # @param three_ds_version [String, nil] The 3DS version used for the authentication - # - # @param acquirer_exemption [Symbol, Lithic::Models::Transaction::CardholderAuthentication::AcquirerExemption] Whether an acquirer exemption applied to the transaction. Not currently populate + # @param authentication_method [Symbol, Lithic::Models::Transaction::CardholderAuthentication::AuthenticationMethod] Indicates the method used to authenticate the cardholder. # # @param authentication_result [Symbol, Lithic::Models::Transaction::CardholderAuthentication::AuthenticationResult] Indicates the outcome of the 3DS authentication process. # @@ -475,30 +435,16 @@ class CardholderAuthentication < Lithic::Internal::Type::BaseModel # @param liability_shift [Symbol, Lithic::Models::Transaction::CardholderAuthentication::LiabilityShift] Indicates whether chargeback liability shift applies to the transaction. Possibl # # @param three_ds_authentication_token [String, nil] Unique identifier you can use to match a given 3DS authentication (available via - # - # @param verification_attempted [Symbol, Lithic::Models::Transaction::CardholderAuthentication::VerificationAttempted] Indicates whether a 3DS challenge flow was used, and if so, what the verificatio - # - # @param verification_result [Symbol, Lithic::Models::Transaction::CardholderAuthentication::VerificationResult] Indicates whether a transaction is considered 3DS authenticated. (deprecated, us - # - # @param authentication_method [Symbol, Lithic::Models::Transaction::CardholderAuthentication::AuthenticationMethod] Indicates the method used to authenticate the cardholder. - # @deprecated - # - # Whether an acquirer exemption applied to the transaction. Not currently - # populated and will be removed in the future. + # Indicates the method used to authenticate the cardholder. # - # @see Lithic::Models::Transaction::CardholderAuthentication#acquirer_exemption - module AcquirerExemption + # @see Lithic::Models::Transaction::CardholderAuthentication#authentication_method + module AuthenticationMethod extend Lithic::Internal::Type::Enum - AUTHENTICATION_OUTAGE_EXCEPTION = :AUTHENTICATION_OUTAGE_EXCEPTION - LOW_VALUE = :LOW_VALUE - MERCHANT_INITIATED_TRANSACTION = :MERCHANT_INITIATED_TRANSACTION + FRICTIONLESS = :FRICTIONLESS + CHALLENGE = :CHALLENGE NONE = :NONE - RECURRING_PAYMENT = :RECURRING_PAYMENT - SECURE_CORPORATE_PAYMENT = :SECURE_CORPORATE_PAYMENT - STRONG_CUSTOMER_AUTHENTICATION_DELEGATION = :STRONG_CUSTOMER_AUTHENTICATION_DELEGATION - TRANSACTION_RISK_ANALYSIS = :TRANSACTION_RISK_ANALYSIS # @!method self.values # @return [Array] @@ -558,56 +504,6 @@ module LiabilityShift # @!method self.values # @return [Array] end - - # @deprecated - # - # Indicates whether a 3DS challenge flow was used, and if so, what the - # verification method was. (deprecated, use `authentication_result`) - # - # @see Lithic::Models::Transaction::CardholderAuthentication#verification_attempted - module VerificationAttempted - extend Lithic::Internal::Type::Enum - - NONE = :NONE - OTHER = :OTHER - - # @!method self.values - # @return [Array] - end - - # @deprecated - # - # Indicates whether a transaction is considered 3DS authenticated. (deprecated, - # use `authentication_result`) - # - # @see Lithic::Models::Transaction::CardholderAuthentication#verification_result - module VerificationResult - extend Lithic::Internal::Type::Enum - - CANCELLED = :CANCELLED - FAILED = :FAILED - FRICTIONLESS = :FRICTIONLESS - NOT_ATTEMPTED = :NOT_ATTEMPTED - REJECTED = :REJECTED - SUCCESS = :SUCCESS - - # @!method self.values - # @return [Array] - end - - # Indicates the method used to authenticate the cardholder. - # - # @see Lithic::Models::Transaction::CardholderAuthentication#authentication_method - module AuthenticationMethod - extend Lithic::Internal::Type::Enum - - FRICTIONLESS = :FRICTIONLESS - CHALLENGE = :CHALLENGE - NONE = :NONE - - # @!method self.values - # @return [Array] - end end # @see Lithic::Models::Transaction#merchant diff --git a/lib/lithic/models/transactions/events/enhanced_data.rb b/lib/lithic/models/transactions/events/enhanced_data.rb index f697b12e..91f6424f 100644 --- a/lib/lithic/models/transactions/events/enhanced_data.rb +++ b/lib/lithic/models/transactions/events/enhanced_data.rb @@ -91,8 +91,8 @@ class LineItem < Lithic::Internal::Type::BaseModel # @!attribute amount # The price of the item purchased in merchant currency. # - # @return [Float, nil] - optional :amount, Float + # @return [String, nil] + optional :amount, String # @!attribute description # A human-readable description of the item. @@ -109,19 +109,19 @@ class LineItem < Lithic::Internal::Type::BaseModel # @!attribute quantity # The quantity of the item purchased. # - # @return [Float, nil] - optional :quantity, Float + # @return [String, nil] + optional :quantity, String # @!method initialize(amount: nil, description: nil, product_code: nil, quantity: nil) # An L2/L3 enhanced commercial data line item. # - # @param amount [Float] The price of the item purchased in merchant currency. + # @param amount [String] The price of the item purchased in merchant currency. # # @param description [String] A human-readable description of the item. # # @param product_code [String] An identifier for the item purchased. # - # @param quantity [Float] The quantity of the item purchased. + # @param quantity [String] The quantity of the item purchased. end # @see Lithic::Models::Transactions::Events::EnhancedData::Common#tax @@ -253,8 +253,8 @@ class Fuel < Lithic::Internal::Type::BaseModel # @!attribute quantity # The quantity of fuel purchased. # - # @return [Float, nil] - optional :quantity, Float + # @return [String, nil] + optional :quantity, String # @!attribute type # The type of fuel purchased. @@ -276,7 +276,7 @@ class Fuel < Lithic::Internal::Type::BaseModel optional :unit_price, Integer # @!method initialize(quantity: nil, type: nil, unit_of_measure: nil, unit_price: nil) - # @param quantity [Float] The quantity of fuel purchased. + # @param quantity [String] The quantity of fuel purchased. # # @param type [Symbol, Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel::Type] The type of fuel purchased. # diff --git a/lib/lithic/resources/auth_rules/v2.rb b/lib/lithic/resources/auth_rules/v2.rb index bf6db479..f1584f20 100644 --- a/lib/lithic/resources/auth_rules/v2.rb +++ b/lib/lithic/resources/auth_rules/v2.rb @@ -12,7 +12,11 @@ class V2 # # Creates a new V2 Auth rule in draft mode # - # @overload create(card_tokens:, program_level:, account_tokens: nil, business_account_tokens: nil, event_stream: nil, name: nil, parameters: nil, type: nil, excluded_card_tokens: nil, request_options: {}) + # @overload create(parameters:, type:, card_tokens:, program_level:, account_tokens: nil, business_account_tokens: nil, event_stream: nil, name: nil, excluded_card_tokens: nil, request_options: {}) + # + # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule + # + # @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type] The type of Auth Rule. For certain rule types, this determines the event stream # # @param card_tokens [Array] Card tokens to which the Auth Rule applies. # @@ -26,10 +30,6 @@ class V2 # # @param name [String, nil] Auth Rule Name # - # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule - # - # @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type] The type of Auth Rule. For certain rule types, this determines the event stream - # # @param excluded_card_tokens [Array] Card tokens to which the Auth Rule does not apply. # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] @@ -52,8 +52,7 @@ def create(params) # # @overload retrieve(auth_rule_token, request_options: {}) # - # @param auth_rule_token [String] Globally unique identifier for the Auth Rule. - # + # @param auth_rule_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [Lithic::Models::AuthRules::V2RetrieveResponse] @@ -79,7 +78,7 @@ def retrieve(auth_rule_token, params = {}) # # @overload update(auth_rule_token, account_tokens: nil, business_account_tokens: nil, name: nil, state: nil, card_tokens: nil, excluded_card_tokens: nil, program_level: nil, request_options: {}) # - # @param auth_rule_token [String] Globally unique identifier for the Auth Rule. + # @param auth_rule_token [String] # # @param account_tokens [Array] Account tokens to which the Auth Rule applies. # @@ -155,8 +154,7 @@ def list(params = {}) # # @overload delete(auth_rule_token, request_options: {}) # - # @param auth_rule_token [String] Globally unique identifier for the Auth Rule. - # + # @param auth_rule_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [nil] @@ -171,43 +169,6 @@ def delete(auth_rule_token, params = {}) ) end - # @deprecated - # - # Associates a V2 Auth rule with a card program, the provided account(s) or - # card(s). - # - # Prefer using the `PATCH` method for this operation. - # - # @overload apply(auth_rule_token, card_tokens:, program_level:, account_tokens: nil, business_account_tokens: nil, excluded_card_tokens: nil, request_options: {}) - # - # @param auth_rule_token [String] Globally unique identifier for the Auth Rule. - # - # @param card_tokens [Array] Card tokens to which the Auth Rule applies. - # - # @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program. - # - # @param account_tokens [Array] Account tokens to which the Auth Rule applies. - # - # @param business_account_tokens [Array] Business Account tokens to which the Auth Rule applies. - # - # @param excluded_card_tokens [Array] Card tokens to which the Auth Rule does not apply. - # - # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] - # - # @return [Lithic::Models::AuthRules::V2ApplyResponse] - # - # @see Lithic::Models::AuthRules::V2ApplyParams - def apply(auth_rule_token, params) - parsed, options = Lithic::AuthRules::V2ApplyParams.dump_request(params) - @client.request( - method: :post, - path: ["v2/auth_rules/%1$s/apply", auth_rule_token], - body: parsed, - model: Lithic::Models::AuthRules::V2ApplyResponse, - options: options - ) - end - # Creates a new draft version of a rule that will be ran in shadow mode. # # This can also be utilized to reset the draft parameters, causing a draft version @@ -215,9 +176,9 @@ def apply(auth_rule_token, params) # # @overload draft(auth_rule_token, parameters: nil, request_options: {}) # - # @param auth_rule_token [String] Globally unique identifier for the Auth Rule. + # @param auth_rule_token [String] # - # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters, nil] Parameters for the Auth Rule + # @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, nil] Parameters for the Auth Rule # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -240,8 +201,7 @@ def draft(auth_rule_token, params = {}) # # @overload promote(auth_rule_token, request_options: {}) # - # @param auth_rule_token [String] Globally unique identifier for the Auth Rule. - # + # @param auth_rule_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [Lithic::Models::AuthRules::V2PromoteResponse] @@ -268,12 +228,9 @@ def promote(auth_rule_token, params = {}) # # @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 auth_rule_token [String] # @param account_token [String] - # # @param card_token [String] - # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [Lithic::Models::AuthRules::V2RetrieveFeaturesResponse] @@ -306,7 +263,7 @@ def retrieve_features(auth_rule_token, params = {}) # # @overload retrieve_report(auth_rule_token, begin_:, end_:, request_options: {}) # - # @param auth_rule_token [String] Globally unique identifier for the Auth Rule. + # @param auth_rule_token [String] # # @param begin_ [Date] Start date for the report # diff --git a/lib/lithic/resources/auth_rules/v2/backtests.rb b/lib/lithic/resources/auth_rules/v2/backtests.rb index 8506b659..644efe67 100644 --- a/lib/lithic/resources/auth_rules/v2/backtests.rb +++ b/lib/lithic/resources/auth_rules/v2/backtests.rb @@ -33,7 +33,7 @@ class Backtests # # @overload create(auth_rule_token, end_: nil, start: nil, request_options: {}) # - # @param auth_rule_token [String] Globally unique identifier for the Auth Rule. + # @param auth_rule_token [String] # # @param end_ [Time] The end time of the backtest. # @@ -76,10 +76,8 @@ def create(auth_rule_token, params = {}) # # @overload retrieve(auth_rule_backtest_token, auth_rule_token:, request_options: {}) # - # @param auth_rule_backtest_token [String] Globally unique identifier for an Auth Rule backtest. - # - # @param auth_rule_token [String] Globally unique identifier for the Auth Rule. - # + # @param auth_rule_backtest_token [String] + # @param auth_rule_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [Lithic::Models::AuthRules::V2::BacktestResults] diff --git a/lib/lithic/resources/disputes.rb b/lib/lithic/resources/disputes.rb index ef91109b..76009cb7 100644 --- a/lib/lithic/resources/disputes.rb +++ b/lib/lithic/resources/disputes.rb @@ -19,7 +19,7 @@ class Disputes # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Lithic::Models::Dispute] + # @return [Lithic::Models::DisputeCreateResponse] # # @see Lithic::Models::DisputeCreateParams def create(params) @@ -28,7 +28,7 @@ def create(params) method: :post, path: "v1/disputes", body: parsed, - model: Lithic::Dispute, + model: Lithic::Models::DisputeCreateResponse, options: options ) end @@ -40,14 +40,14 @@ def create(params) # @param dispute_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Lithic::Models::Dispute] + # @return [Lithic::Models::DisputeRetrieveResponse] # # @see Lithic::Models::DisputeRetrieveParams def retrieve(dispute_token, params = {}) @client.request( method: :get, path: ["v1/disputes/%1$s", dispute_token], - model: Lithic::Dispute, + model: Lithic::Models::DisputeRetrieveResponse, options: params[:request_options] ) end @@ -68,7 +68,7 @@ def retrieve(dispute_token, params = {}) # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Lithic::Models::Dispute] + # @return [Lithic::Models::DisputeUpdateResponse] # # @see Lithic::Models::DisputeUpdateParams def update(dispute_token, params = {}) @@ -77,7 +77,7 @@ def update(dispute_token, params = {}) method: :patch, path: ["v1/disputes/%1$s", dispute_token], body: parsed, - model: Lithic::Dispute, + model: Lithic::Models::DisputeUpdateResponse, options: options ) end @@ -105,7 +105,7 @@ def update(dispute_token, params = {}) # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Lithic::Internal::CursorPage] + # @return [Lithic::Internal::CursorPage] # # @see Lithic::Models::DisputeListParams def list(params = {}) @@ -115,7 +115,7 @@ def list(params = {}) path: "v1/disputes", query: parsed.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, - model: Lithic::Dispute, + model: Lithic::Models::DisputeListResponse, options: options ) end @@ -127,14 +127,14 @@ def list(params = {}) # @param dispute_token [String] # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Lithic::Models::Dispute] + # @return [Lithic::Models::DisputeDeleteResponse] # # @see Lithic::Models::DisputeDeleteParams def delete(dispute_token, params = {}) @client.request( method: :delete, path: ["v1/disputes/%1$s", dispute_token], - model: Lithic::Dispute, + model: Lithic::Models::DisputeDeleteResponse, options: params[:request_options] ) end diff --git a/lib/lithic/resources/payments.rb b/lib/lithic/resources/payments.rb index e13fad1a..1a4326bf 100644 --- a/lib/lithic/resources/payments.rb +++ b/lib/lithic/resources/payments.rb @@ -130,14 +130,18 @@ def retry_(payment_token, params = {}) # Simulate payment lifecycle event # - # @overload simulate_action(payment_token, event_type:, decline_reason: nil, return_reason_code: nil, request_options: {}) + # @overload simulate_action(payment_token, event_type:, date_of_death: nil, decline_reason: nil, return_addenda: nil, return_reason_code: nil, request_options: {}) # # @param payment_token [String] # # @param event_type [Symbol, Lithic::Models::PaymentSimulateActionParams::EventType] Event Type # + # @param date_of_death [Date] Date of Death for ACH Return + # # @param decline_reason [Symbol, Lithic::Models::PaymentSimulateActionParams::DeclineReason] Decline reason # + # @param return_addenda [String] Return Addenda + # # @param return_reason_code [String] Return Reason Code # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] diff --git a/lib/lithic/version.rb b/lib/lithic/version.rb index 0e3e2a3a..ad17b6ad 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.54" + VERSION = "0.1.0.pre.alpha.55" end diff --git a/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi b/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi index b2f2f303..0229a2ae 100644 --- a/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +++ b/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi @@ -67,10 +67,7 @@ module Lithic # users of businesses. Pass the account_token of the enrolled business associated # with the AUTHORIZED_USER in this field. sig { returns(T.nilable(String)) } - attr_reader :business_account_token - - sig { params(business_account_token: String).void } - attr_writer :business_account_token + attr_accessor :business_account_token # Only present when user_type == "BUSINESS". Information about the business for # which the account is being opened and KYB is being run. @@ -302,7 +299,7 @@ module Lithic T::Array[ Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::BeneficialOwnerIndividual::OrHash ], - business_account_token: String, + business_account_token: T.nilable(String), business_entity: Lithic::KYBBusinessEntity::OrHash, control_person: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ControlPerson::OrHash, @@ -420,7 +417,7 @@ module Lithic T::Array[ Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::BeneficialOwnerIndividual ], - business_account_token: String, + business_account_token: T.nilable(String), business_entity: Lithic::KYBBusinessEntity, control_person: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ControlPerson, diff --git a/rbi/lithic/models/account_holder_update_response.rbi b/rbi/lithic/models/account_holder_update_response.rbi index 5bc9f910..3a7b75c9 100644 --- a/rbi/lithic/models/account_holder_update_response.rbi +++ b/rbi/lithic/models/account_holder_update_response.rbi @@ -79,10 +79,7 @@ module Lithic # users of businesses. Pass the account_token of the enrolled business associated # with the AUTHORIZED_USER in this field. sig { returns(T.nilable(String)) } - attr_reader :business_account_token - - sig { params(business_account_token: String).void } - attr_writer :business_account_token + attr_accessor :business_account_token # Only present when user_type == "BUSINESS". Information about the business for # which the account is being opened and KYB is being run. @@ -314,7 +311,7 @@ module Lithic T::Array[ Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::BeneficialOwnerIndividual::OrHash ], - business_account_token: String, + business_account_token: T.nilable(String), business_entity: Lithic::KYBBusinessEntity::OrHash, control_person: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::ControlPerson::OrHash, @@ -432,7 +429,7 @@ module Lithic T::Array[ Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::BeneficialOwnerIndividual ], - business_account_token: String, + business_account_token: T.nilable(String), business_entity: Lithic::KYBBusinessEntity, control_person: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::ControlPerson, @@ -1664,10 +1661,7 @@ module Lithic # The token for the business account that the account holder is associated with sig { returns(T.nilable(String)) } - attr_reader :business_account_token - - sig { params(business_account_token: String).void } - attr_writer :business_account_token + attr_accessor :business_account_token # The email for the account holder sig { returns(T.nilable(String)) } @@ -1709,7 +1703,7 @@ module Lithic token: String, address: Lithic::Models::AccountHolderUpdateResponse::PatchResponse::Address::OrHash, - business_account_token: String, + business_account_token: T.nilable(String), email: String, first_name: String, last_name: String, @@ -1743,7 +1737,7 @@ module Lithic token: String, address: Lithic::Models::AccountHolderUpdateResponse::PatchResponse::Address, - business_account_token: String, + business_account_token: T.nilable(String), email: String, first_name: String, last_name: String, diff --git a/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi b/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi new file mode 100644 index 00000000..167a45b2 --- /dev/null +++ b/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi @@ -0,0 +1,577 @@ +# typed: strong + +module Lithic + module Models + module AuthRules + class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AuthRules::ConditionalAuthorizationActionParameters, + Lithic::Internal::AnyHash + ) + end + + # The action to take if the conditions are met. + sig do + returns( + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::OrSymbol + ) + end + attr_accessor :action + + sig do + returns( + T::Array[ + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition + ] + ) + end + attr_accessor :conditions + + sig do + params( + action: + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::OrSymbol, + conditions: + T::Array[ + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # The action to take if the conditions are met. + action:, + conditions: + ) + end + + sig do + override.returns( + { + action: + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::OrSymbol, + conditions: + T::Array[ + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition + ] + } + ) + end + def to_hash + end + + # The action to take if the conditions are met. + module Action + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + DECLINE = + T.let( + :DECLINE, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::TaggedSymbol + ) + CHALLENGE = + T.let( + :CHALLENGE, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::TaggedSymbol + ] + ) + end + def self.values + end + end + + class Condition < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition, + Lithic::Internal::AnyHash + ) + end + + # The attribute to target. + # + # The following attributes may be targeted: + # + # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a + # business by the types of goods or services it provides. + # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all + # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for + # Netherlands Antilles. + # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of + # the transaction. + # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor + # (merchant). + # - `DESCRIPTOR`: Short description of card acceptor. + # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer + # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or + # `TOKEN_AUTHENTICATED`. + # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number + # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, + # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, + # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, + # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. + # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer + # 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, + # where the raw score has a range of 0-99, Lithic will normalize the score by + # multiplying the raw score by 10x. + # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the + # trailing 15 minutes before the authorization. + # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the + # trailing hour up and until the authorization. + # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the + # trailing 24 hours up and until the authorization. + # - `CARD_STATE`: The current state of the card associated with the transaction. + # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, + # `PENDING_FULFILLMENT`. + # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. + # Valid values are `TRUE`, `FALSE`. + # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, + # `OK`, `BLOCKED`. + # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the + # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, + # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. + # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates + # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. + sig do + returns( + T.nilable( + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol + ) + ) + end + attr_reader :attribute + + sig do + params( + attribute: + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol + ).void + end + attr_writer :attribute + + # The operation to apply to the attribute + sig do + returns( + T.nilable( + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol + ) + ) + end + attr_reader :operation + + sig do + params( + operation: + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol + ).void + end + attr_writer :operation + + # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` + sig do + returns( + T.nilable( + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Value::Variants + ) + ) + end + attr_reader :value + + sig do + params( + value: + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Value::Variants + ).void + end + attr_writer :value + + sig do + params( + attribute: + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol, + operation: + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol, + value: + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Value::Variants + ).returns(T.attached_class) + end + def self.new( + # The attribute to target. + # + # The following attributes may be targeted: + # + # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a + # business by the types of goods or services it provides. + # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all + # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for + # Netherlands Antilles. + # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of + # the transaction. + # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor + # (merchant). + # - `DESCRIPTOR`: Short description of card acceptor. + # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer + # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or + # `TOKEN_AUTHENTICATED`. + # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number + # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, + # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, + # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, + # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. + # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer + # 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, + # where the raw score has a range of 0-99, Lithic will normalize the score by + # multiplying the raw score by 10x. + # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the + # trailing 15 minutes before the authorization. + # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the + # trailing hour up and until the authorization. + # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the + # trailing 24 hours up and until the authorization. + # - `CARD_STATE`: The current state of the card associated with the transaction. + # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, + # `PENDING_FULFILLMENT`. + # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. + # Valid values are `TRUE`, `FALSE`. + # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, + # `OK`, `BLOCKED`. + # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the + # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, + # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. + # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates + # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. + attribute: nil, + # The operation to apply to the attribute + operation: nil, + # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` + value: nil + ) + end + + sig do + override.returns( + { + attribute: + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol, + operation: + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol, + value: + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Value::Variants + } + ) + end + def to_hash + end + + # The attribute to target. + # + # The following attributes may be targeted: + # + # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a + # business by the types of goods or services it provides. + # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all + # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for + # Netherlands Antilles. + # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of + # the transaction. + # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor + # (merchant). + # - `DESCRIPTOR`: Short description of card acceptor. + # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer + # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or + # `TOKEN_AUTHENTICATED`. + # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number + # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, + # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, + # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, + # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. + # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer + # 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, + # where the raw score has a range of 0-99, Lithic will normalize the score by + # multiplying the raw score by 10x. + # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the + # trailing 15 minutes before the authorization. + # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the + # trailing hour up and until the authorization. + # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the + # trailing 24 hours up and until the authorization. + # - `CARD_STATE`: The current state of the card associated with the transaction. + # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, + # `PENDING_FULFILLMENT`. + # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. + # Valid values are `TRUE`, `FALSE`. + # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, + # `OK`, `BLOCKED`. + # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the + # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, + # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. + # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates + # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. + module Attribute + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MCC = + T.let( + :MCC, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) + COUNTRY = + T.let( + :COUNTRY, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) + CURRENCY = + T.let( + :CURRENCY, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) + MERCHANT_ID = + T.let( + :MERCHANT_ID, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) + DESCRIPTOR = + T.let( + :DESCRIPTOR, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) + LIABILITY_SHIFT = + T.let( + :LIABILITY_SHIFT, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) + PAN_ENTRY_MODE = + T.let( + :PAN_ENTRY_MODE, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) + TRANSACTION_AMOUNT = + T.let( + :TRANSACTION_AMOUNT, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) + CASH_AMOUNT = + T.let( + :CASH_AMOUNT, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) + RISK_SCORE = + T.let( + :RISK_SCORE, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) + CARD_TRANSACTION_COUNT_15_M = + T.let( + :CARD_TRANSACTION_COUNT_15M, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) + CARD_TRANSACTION_COUNT_1_H = + T.let( + :CARD_TRANSACTION_COUNT_1H, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) + CARD_TRANSACTION_COUNT_24_H = + T.let( + :CARD_TRANSACTION_COUNT_24H, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) + CARD_STATE = + T.let( + :CARD_STATE, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) + PIN_ENTERED = + T.let( + :PIN_ENTERED, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) + PIN_STATUS = + T.let( + :PIN_STATUS, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) + WALLET_TYPE = + T.let( + :WALLET_TYPE, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) + TRANSACTION_INITIATOR = + T.let( + :TRANSACTION_INITIATOR, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) + ADDRESS_MATCH = + T.let( + :ADDRESS_MATCH, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ] + ) + end + def self.values + end + end + + # The operation to apply to the attribute + module Operation + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Operation + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IS_ONE_OF = + T.let( + :IS_ONE_OF, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol + ) + IS_NOT_ONE_OF = + T.let( + :IS_NOT_ONE_OF, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol + ) + MATCHES = + T.let( + :MATCHES, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol + ) + DOES_NOT_MATCH = + T.let( + :DOES_NOT_MATCH, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol + ) + IS_EQUAL_TO = + T.let( + :IS_EQUAL_TO, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol + ) + IS_NOT_EQUAL_TO = + T.let( + :IS_NOT_EQUAL_TO, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol + ) + IS_GREATER_THAN = + T.let( + :IS_GREATER_THAN, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol + ) + IS_GREATER_THAN_OR_EQUAL_TO = + T.let( + :IS_GREATER_THAN_OR_EQUAL_TO, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol + ) + IS_LESS_THAN = + T.let( + :IS_LESS_THAN, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol + ) + IS_LESS_THAN_OR_EQUAL_TO = + T.let( + :IS_LESS_THAN_OR_EQUAL_TO, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol + ] + ) + end + def self.values + end + end + + # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` + module Value + extend Lithic::Internal::Type::Union + + Variants = T.type_alias { T.any(String, Integer, T::Array[String]) } + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Value::Variants + ] + ) + end + def self.variants + end + + StringArray = + T.let( + Lithic::Internal::Type::ArrayOf[String], + Lithic::Internal::Type::Converter + ) + end + end + end + end + end +end diff --git a/rbi/lithic/models/auth_rules/v2_apply_params.rbi b/rbi/lithic/models/auth_rules/v2_apply_params.rbi deleted file mode 100644 index 57acec9b..00000000 --- a/rbi/lithic/models/auth_rules/v2_apply_params.rbi +++ /dev/null @@ -1,86 +0,0 @@ -# typed: strong - -module Lithic - module Models - module AuthRules - class V2ApplyParams < Lithic::Internal::Type::BaseModel - extend Lithic::Internal::Type::RequestParameters::Converter - include Lithic::Internal::Type::RequestParameters - - OrHash = - T.type_alias do - T.any(Lithic::AuthRules::V2ApplyParams, Lithic::Internal::AnyHash) - end - - # Account tokens to which the Auth Rule applies. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :account_tokens - - sig { params(account_tokens: T::Array[String]).void } - attr_writer :account_tokens - - # Business Account tokens to which the Auth Rule applies. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :business_account_tokens - - sig { params(business_account_tokens: T::Array[String]).void } - attr_writer :business_account_tokens - - # Card tokens to which the Auth Rule applies. - sig { returns(T::Array[String]) } - attr_accessor :card_tokens - - # Whether the Auth Rule applies to all authorizations on the card program. - sig { returns(T::Boolean) } - attr_accessor :program_level - - # Card tokens to which the Auth Rule does not apply. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :excluded_card_tokens - - sig { params(excluded_card_tokens: T::Array[String]).void } - attr_writer :excluded_card_tokens - - sig do - params( - card_tokens: T::Array[String], - program_level: T::Boolean, - account_tokens: T::Array[String], - business_account_tokens: T::Array[String], - excluded_card_tokens: T::Array[String], - request_options: Lithic::RequestOptions::OrHash - ).returns(T.attached_class) - end - def self.new( - # Card tokens to which the Auth Rule applies. - card_tokens:, - # Whether the Auth Rule applies to all authorizations on the card program. - program_level:, - # Account tokens to which the Auth Rule applies. - account_tokens: nil, - # Business Account tokens to which the Auth Rule applies. - business_account_tokens: nil, - # Card tokens to which the Auth Rule does not apply. - excluded_card_tokens: nil, - request_options: {} - ) - end - - sig do - override.returns( - { - account_tokens: T::Array[String], - business_account_tokens: T::Array[String], - card_tokens: T::Array[String], - program_level: T::Boolean, - excluded_card_tokens: T::Array[String], - request_options: Lithic::RequestOptions - } - ) - end - def to_hash - end - end - end - end -end diff --git a/rbi/lithic/models/auth_rules/v2_apply_response.rbi b/rbi/lithic/models/auth_rules/v2_apply_response.rbi deleted file mode 100644 index 48604c6b..00000000 --- a/rbi/lithic/models/auth_rules/v2_apply_response.rbi +++ /dev/null @@ -1,1638 +0,0 @@ -# typed: strong - -module Lithic - module Models - module AuthRules - class V2ApplyResponse < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2ApplyResponse, - Lithic::Internal::AnyHash - ) - end - - # Auth Rule Token - sig { returns(String) } - attr_accessor :token - - # Account tokens to which the Auth Rule applies. - sig { returns(T::Array[String]) } - attr_accessor :account_tokens - - # Business Account tokens to which the Auth Rule applies. - sig { returns(T::Array[String]) } - attr_accessor :business_account_tokens - - # Card tokens to which the Auth Rule applies. - sig { returns(T::Array[String]) } - attr_accessor :card_tokens - - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion - ) - ) - end - attr_reader :current_version - - sig do - params( - current_version: - T.nilable( - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::OrHash - ) - ).void - end - attr_writer :current_version - - sig do - returns( - T.nilable(Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion) - ) - end - attr_reader :draft_version - - sig do - params( - draft_version: - T.nilable( - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::OrHash - ) - ).void - end - attr_writer :draft_version - - # The event stream during which the rule will be evaluated. - sig do - returns( - Lithic::Models::AuthRules::V2ApplyResponse::EventStream::TaggedSymbol - ) - 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 - - # Whether the Auth Rule applies to all authorizations on the card program. - sig { returns(T::Boolean) } - attr_accessor :program_level - - # The state of the Auth Rule - sig do - returns( - Lithic::Models::AuthRules::V2ApplyResponse::State::TaggedSymbol - ) - end - attr_accessor :state - - # The type of Auth Rule. For certain rule types, this determines the event stream - # during which it will be evaluated. For rules that can be applied to one of - # several event streams, the effective one is defined by the separate - # `event_stream` field. - # - # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream. - # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. - # - `MERCHANT_LOCK`: AUTHORIZATION event stream. - # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream. - sig do - returns( - Lithic::Models::AuthRules::V2ApplyResponse::Type::TaggedSymbol - ) - end - attr_accessor :type - - # Card tokens to which the Auth Rule does not apply. - sig { returns(T.nilable(T::Array[String])) } - attr_reader :excluded_card_tokens - - sig { params(excluded_card_tokens: T::Array[String]).void } - attr_writer :excluded_card_tokens - - sig do - params( - token: String, - account_tokens: T::Array[String], - business_account_tokens: T::Array[String], - card_tokens: T::Array[String], - current_version: - T.nilable( - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::OrHash - ), - draft_version: - T.nilable( - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::OrHash - ), - 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, - type: Lithic::Models::AuthRules::V2ApplyResponse::Type::OrSymbol, - excluded_card_tokens: T::Array[String] - ).returns(T.attached_class) - end - def self.new( - # Auth Rule Token - token:, - # Account tokens to which the Auth Rule applies. - account_tokens:, - # Business Account tokens to which the Auth Rule applies. - business_account_tokens:, - # Card tokens to which the Auth Rule applies. - card_tokens:, - current_version:, - 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. - program_level:, - # The state of the Auth Rule - state:, - # The type of Auth Rule. For certain rule types, this determines the event stream - # during which it will be evaluated. For rules that can be applied to one of - # several event streams, the effective one is defined by the separate - # `event_stream` field. - # - # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream. - # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. - # - `MERCHANT_LOCK`: AUTHORIZATION event stream. - # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream. - type:, - # Card tokens to which the Auth Rule does not apply. - excluded_card_tokens: nil - ) - end - - sig do - override.returns( - { - token: String, - account_tokens: T::Array[String], - business_account_tokens: T::Array[String], - card_tokens: T::Array[String], - current_version: - T.nilable( - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion - ), - draft_version: - T.nilable( - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion - ), - event_stream: - Lithic::Models::AuthRules::V2ApplyResponse::EventStream::TaggedSymbol, - lithic_managed: T::Boolean, - name: T.nilable(String), - program_level: T::Boolean, - state: - Lithic::Models::AuthRules::V2ApplyResponse::State::TaggedSymbol, - type: - Lithic::Models::AuthRules::V2ApplyResponse::Type::TaggedSymbol, - excluded_card_tokens: T::Array[String] - } - ) - end - def to_hash - end - - class CurrentVersion < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion, - Lithic::Internal::AnyHash - ) - end - - # Parameters for the Auth Rule - sig do - returns( - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Variants - ) - end - attr_accessor :parameters - - # The version of the rule, this is incremented whenever the rule's parameters - # change. - sig { returns(Integer) } - attr_accessor :version - - sig do - params( - parameters: - T.any( - Lithic::AuthRules::ConditionalBlockParameters::OrHash, - Lithic::AuthRules::VelocityLimitParams::OrHash, - Lithic::AuthRules::MerchantLockParameters::OrHash, - Lithic::AuthRules::Conditional3DSActionParameters::OrHash, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::OrHash - ), - version: Integer - ).returns(T.attached_class) - end - def self.new( - # Parameters for the Auth Rule - parameters:, - # The version of the rule, this is incremented whenever the rule's parameters - # change. - version: - ) - end - - sig do - override.returns( - { - parameters: - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Variants, - version: Integer - } - ) - end - def to_hash - end - - # Parameters for the Auth Rule - module Parameters - extend Lithic::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Lithic::AuthRules::ConditionalBlockParameters, - Lithic::AuthRules::VelocityLimitParams, - Lithic::AuthRules::MerchantLockParameters, - Lithic::AuthRules::Conditional3DSActionParameters, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters - ) - end - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters, - Lithic::Internal::AnyHash - ) - end - - # The action to take if the conditions are met. - sig do - returns( - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - end - attr_accessor :action - - sig do - returns( - T::Array[ - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - ) - end - attr_accessor :conditions - - sig do - params( - action: - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::OrHash - ] - ).returns(T.attached_class) - end - def self.new( - # The action to take if the conditions are met. - action:, - conditions: - ) - end - - sig do - override.returns( - { - action: - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - } - ) - end - def to_hash - end - - # The action to take if the conditions are met. - module Action - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DECLINE = - T.let( - :DECLINE, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - CHALLENGE = - T.let( - :CHALLENGE, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Condition < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition, - Lithic::Internal::AnyHash - ) - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ) - end - attr_reader :attribute - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol - ).void - end - attr_writer :attribute - - # The operation to apply to the attribute - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - ) - end - attr_reader :operation - - sig do - params( - operation: - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol - ).void - end - attr_writer :operation - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ) - ) - end - attr_reader :value - - sig do - params( - value: - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).void - end - attr_writer :value - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol, - operation: - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol, - value: - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).returns(T.attached_class) - end - def self.new( - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - attribute: nil, - # The operation to apply to the attribute - operation: nil, - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - value: nil - ) - end - - sig do - override.returns( - { - attribute: - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol, - operation: - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol, - value: - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - } - ) - end - def to_hash - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - module Attribute - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MCC = - T.let( - :MCC, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - COUNTRY = - T.let( - :COUNTRY, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CURRENCY = - T.let( - :CURRENCY, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - MERCHANT_ID = - T.let( - :MERCHANT_ID, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - DESCRIPTOR = - T.let( - :DESCRIPTOR, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - LIABILITY_SHIFT = - T.let( - :LIABILITY_SHIFT, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PAN_ENTRY_MODE = - T.let( - :PAN_ENTRY_MODE, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_AMOUNT = - T.let( - :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, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_15_M = - T.let( - :CARD_TRANSACTION_COUNT_15M, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_1_H = - T.let( - :CARD_TRANSACTION_COUNT_1H, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_24_H = - T.let( - :CARD_TRANSACTION_COUNT_24H, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_STATE = - T.let( - :CARD_STATE, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_ENTERED = - T.let( - :PIN_ENTERED, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_STATUS = - T.let( - :PIN_STATUS, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - WALLET_TYPE = - T.let( - :WALLET_TYPE, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_INITIATOR = - T.let( - :TRANSACTION_INITIATOR, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ADDRESS_MATCH = - T.let( - :ADDRESS_MATCH, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The operation to apply to the attribute - module Operation - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - IS_ONE_OF = - T.let( - :IS_ONE_OF, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_ONE_OF = - T.let( - :IS_NOT_ONE_OF, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - MATCHES = - T.let( - :MATCHES, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - DOES_NOT_MATCH = - T.let( - :DOES_NOT_MATCH, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_EQUAL_TO = - T.let( - :IS_EQUAL_TO, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_EQUAL_TO = - T.let( - :IS_NOT_EQUAL_TO, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN = - T.let( - :IS_GREATER_THAN, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN_OR_EQUAL_TO = - T.let( - :IS_GREATER_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN = - T.let( - :IS_LESS_THAN, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN_OR_EQUAL_TO = - T.let( - :IS_LESS_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ] - ) - end - def self.values - end - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - module Value - extend Lithic::Internal::Type::Union - - Variants = - T.type_alias { T.any(String, Integer, T::Array[String]) } - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ] - ) - end - def self.variants - end - - StringArray = - T.let( - Lithic::Internal::Type::ArrayOf[String], - Lithic::Internal::Type::Converter - ) - end - end - end - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Variants - ] - ) - end - def self.variants - end - end - end - - class DraftVersion < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion, - Lithic::Internal::AnyHash - ) - end - - # Parameters for the Auth Rule - sig do - returns( - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Variants - ) - end - attr_accessor :parameters - - # The version of the rule, this is incremented whenever the rule's parameters - # change. - sig { returns(Integer) } - attr_accessor :version - - sig do - params( - parameters: - T.any( - Lithic::AuthRules::ConditionalBlockParameters::OrHash, - Lithic::AuthRules::VelocityLimitParams::OrHash, - Lithic::AuthRules::MerchantLockParameters::OrHash, - Lithic::AuthRules::Conditional3DSActionParameters::OrHash, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::OrHash - ), - version: Integer - ).returns(T.attached_class) - end - def self.new( - # Parameters for the Auth Rule - parameters:, - # The version of the rule, this is incremented whenever the rule's parameters - # change. - version: - ) - end - - sig do - override.returns( - { - parameters: - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Variants, - version: Integer - } - ) - end - def to_hash - end - - # Parameters for the Auth Rule - module Parameters - extend Lithic::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Lithic::AuthRules::ConditionalBlockParameters, - Lithic::AuthRules::VelocityLimitParams, - Lithic::AuthRules::MerchantLockParameters, - Lithic::AuthRules::Conditional3DSActionParameters, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters - ) - end - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters, - Lithic::Internal::AnyHash - ) - end - - # The action to take if the conditions are met. - sig do - returns( - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - end - attr_accessor :action - - sig do - returns( - T::Array[ - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - ) - end - attr_accessor :conditions - - sig do - params( - action: - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::OrHash - ] - ).returns(T.attached_class) - end - def self.new( - # The action to take if the conditions are met. - action:, - conditions: - ) - end - - sig do - override.returns( - { - action: - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - } - ) - end - def to_hash - end - - # The action to take if the conditions are met. - module Action - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DECLINE = - T.let( - :DECLINE, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - CHALLENGE = - T.let( - :CHALLENGE, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Condition < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition, - Lithic::Internal::AnyHash - ) - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ) - end - attr_reader :attribute - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol - ).void - end - attr_writer :attribute - - # The operation to apply to the attribute - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - ) - end - attr_reader :operation - - sig do - params( - operation: - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol - ).void - end - attr_writer :operation - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ) - ) - end - attr_reader :value - - sig do - params( - value: - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).void - end - attr_writer :value - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol, - operation: - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol, - value: - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).returns(T.attached_class) - end - def self.new( - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - attribute: nil, - # The operation to apply to the attribute - operation: nil, - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - value: nil - ) - end - - sig do - override.returns( - { - attribute: - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol, - operation: - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol, - value: - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - } - ) - end - def to_hash - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - module Attribute - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MCC = - T.let( - :MCC, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - COUNTRY = - T.let( - :COUNTRY, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CURRENCY = - T.let( - :CURRENCY, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - MERCHANT_ID = - T.let( - :MERCHANT_ID, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - DESCRIPTOR = - T.let( - :DESCRIPTOR, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - LIABILITY_SHIFT = - T.let( - :LIABILITY_SHIFT, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PAN_ENTRY_MODE = - T.let( - :PAN_ENTRY_MODE, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_AMOUNT = - T.let( - :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, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_15_M = - T.let( - :CARD_TRANSACTION_COUNT_15M, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_1_H = - T.let( - :CARD_TRANSACTION_COUNT_1H, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_24_H = - T.let( - :CARD_TRANSACTION_COUNT_24H, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_STATE = - T.let( - :CARD_STATE, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_ENTERED = - T.let( - :PIN_ENTERED, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_STATUS = - T.let( - :PIN_STATUS, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - WALLET_TYPE = - T.let( - :WALLET_TYPE, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_INITIATOR = - T.let( - :TRANSACTION_INITIATOR, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ADDRESS_MATCH = - T.let( - :ADDRESS_MATCH, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The operation to apply to the attribute - module Operation - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - IS_ONE_OF = - T.let( - :IS_ONE_OF, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_ONE_OF = - T.let( - :IS_NOT_ONE_OF, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - MATCHES = - T.let( - :MATCHES, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - DOES_NOT_MATCH = - T.let( - :DOES_NOT_MATCH, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_EQUAL_TO = - T.let( - :IS_EQUAL_TO, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_EQUAL_TO = - T.let( - :IS_NOT_EQUAL_TO, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN = - T.let( - :IS_GREATER_THAN, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN_OR_EQUAL_TO = - T.let( - :IS_GREATER_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN = - T.let( - :IS_LESS_THAN, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN_OR_EQUAL_TO = - T.let( - :IS_LESS_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ] - ) - end - def self.values - end - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - module Value - extend Lithic::Internal::Type::Union - - Variants = - T.type_alias { T.any(String, Integer, T::Array[String]) } - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ] - ) - end - def self.variants - end - - StringArray = - T.let( - Lithic::Internal::Type::ArrayOf[String], - Lithic::Internal::Type::Converter - ) - end - end - end - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Variants - ] - ) - end - def self.variants - end - end - end - - # The event stream during which the rule will be evaluated. - module EventStream - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2ApplyResponse::EventStream - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - AUTHORIZATION = - T.let( - :AUTHORIZATION, - Lithic::Models::AuthRules::V2ApplyResponse::EventStream::TaggedSymbol - ) - THREE_DS_AUTHENTICATION = - T.let( - :THREE_DS_AUTHENTICATION, - Lithic::Models::AuthRules::V2ApplyResponse::EventStream::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2ApplyResponse::EventStream::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The state of the Auth Rule - module State - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Lithic::Models::AuthRules::V2ApplyResponse::State) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ACTIVE = - T.let( - :ACTIVE, - Lithic::Models::AuthRules::V2ApplyResponse::State::TaggedSymbol - ) - INACTIVE = - T.let( - :INACTIVE, - Lithic::Models::AuthRules::V2ApplyResponse::State::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2ApplyResponse::State::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The type of Auth Rule. For certain rule types, this determines the event stream - # during which it will be evaluated. For rules that can be applied to one of - # several event streams, the effective one is defined by the separate - # `event_stream` field. - # - # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream. - # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. - # - `MERCHANT_LOCK`: AUTHORIZATION event stream. - # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream. - module Type - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Lithic::Models::AuthRules::V2ApplyResponse::Type) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CONDITIONAL_BLOCK = - T.let( - :CONDITIONAL_BLOCK, - Lithic::Models::AuthRules::V2ApplyResponse::Type::TaggedSymbol - ) - VELOCITY_LIMIT = - T.let( - :VELOCITY_LIMIT, - Lithic::Models::AuthRules::V2ApplyResponse::Type::TaggedSymbol - ) - MERCHANT_LOCK = - T.let( - :MERCHANT_LOCK, - Lithic::Models::AuthRules::V2ApplyResponse::Type::TaggedSymbol - ) - CONDITIONAL_ACTION = - T.let( - :CONDITIONAL_ACTION, - Lithic::Models::AuthRules::V2ApplyResponse::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2ApplyResponse::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end - end -end diff --git a/rbi/lithic/models/auth_rules/v2_create_params.rbi b/rbi/lithic/models/auth_rules/v2_create_params.rbi index 4ebe568f..ec17fa50 100644 --- a/rbi/lithic/models/auth_rules/v2_create_params.rbi +++ b/rbi/lithic/models/auth_rules/v2_create_params.rbi @@ -12,6 +12,32 @@ module Lithic T.any(Lithic::AuthRules::V2CreateParams, Lithic::Internal::AnyHash) end + # Parameters for the Auth Rule + sig do + returns( + T.any( + Lithic::AuthRules::ConditionalBlockParameters, + Lithic::AuthRules::VelocityLimitParams, + Lithic::AuthRules::MerchantLockParameters, + Lithic::AuthRules::Conditional3DSActionParameters, + Lithic::AuthRules::ConditionalAuthorizationActionParameters + ) + ) + end + attr_accessor :parameters + + # The type of Auth Rule. For certain rule types, this determines the event stream + # during which it will be evaluated. For rules that can be applied to one of + # several event streams, the effective one is defined by the separate + # `event_stream` field. + # + # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream. + # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. + # - `MERCHANT_LOCK`: AUTHORIZATION event stream. + # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream. + sig { returns(Lithic::AuthRules::V2CreateParams::Type::OrSymbol) } + attr_accessor :type + # Account tokens to which the Auth Rule applies. sig { returns(T.nilable(T::Array[String])) } attr_reader :account_tokens @@ -46,55 +72,6 @@ module Lithic sig { returns(T.nilable(String)) } attr_accessor :name - # Parameters for the Auth Rule - sig do - returns( - T.nilable( - T.any( - Lithic::AuthRules::ConditionalBlockParameters, - Lithic::AuthRules::VelocityLimitParams, - Lithic::AuthRules::MerchantLockParameters, - Lithic::AuthRules::Conditional3DSActionParameters, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters - ) - ) - ) - end - attr_reader :parameters - - sig do - params( - parameters: - T.any( - Lithic::AuthRules::ConditionalBlockParameters::OrHash, - Lithic::AuthRules::VelocityLimitParams::OrHash, - Lithic::AuthRules::MerchantLockParameters::OrHash, - Lithic::AuthRules::Conditional3DSActionParameters::OrHash, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::OrHash - ) - ).void - end - attr_writer :parameters - - # The type of Auth Rule. For certain rule types, this determines the event stream - # during which it will be evaluated. For rules that can be applied to one of - # several event streams, the effective one is defined by the separate - # `event_stream` field. - # - # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream. - # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. - # - `MERCHANT_LOCK`: AUTHORIZATION event stream. - # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream. - sig do - returns(T.nilable(Lithic::AuthRules::V2CreateParams::Type::OrSymbol)) - end - attr_reader :type - - sig do - params(type: Lithic::AuthRules::V2CreateParams::Type::OrSymbol).void - end - attr_writer :type - # Card tokens to which the Auth Rule applies. sig { returns(T::Array[String]) } attr_accessor :card_tokens @@ -112,27 +89,39 @@ module Lithic sig do params( - card_tokens: T::Array[String], - program_level: T::Boolean, - account_tokens: T::Array[String], - business_account_tokens: T::Array[String], - event_stream: - Lithic::AuthRules::V2CreateParams::EventStream::OrSymbol, - name: T.nilable(String), parameters: T.any( Lithic::AuthRules::ConditionalBlockParameters::OrHash, Lithic::AuthRules::VelocityLimitParams::OrHash, Lithic::AuthRules::MerchantLockParameters::OrHash, Lithic::AuthRules::Conditional3DSActionParameters::OrHash, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::OrHash + Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash ), type: Lithic::AuthRules::V2CreateParams::Type::OrSymbol, + card_tokens: T::Array[String], + program_level: T::Boolean, + account_tokens: T::Array[String], + business_account_tokens: T::Array[String], + event_stream: + Lithic::AuthRules::V2CreateParams::EventStream::OrSymbol, + name: T.nilable(String), excluded_card_tokens: T::Array[String], request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( + # Parameters for the Auth Rule + parameters:, + # The type of Auth Rule. For certain rule types, this determines the event stream + # during which it will be evaluated. For rules that can be applied to one of + # several event streams, the effective one is defined by the separate + # `event_stream` field. + # + # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream. + # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. + # - `MERCHANT_LOCK`: AUTHORIZATION event stream. + # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream. + type:, # Card tokens to which the Auth Rule applies. card_tokens:, # Whether the Auth Rule applies to all authorizations on the card program. @@ -145,18 +134,6 @@ module Lithic event_stream: nil, # Auth Rule Name name: nil, - # Parameters for the Auth Rule - parameters: nil, - # The type of Auth Rule. For certain rule types, this determines the event stream - # during which it will be evaluated. For rules that can be applied to one of - # several event streams, the effective one is defined by the separate - # `event_stream` field. - # - # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream. - # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. - # - `MERCHANT_LOCK`: AUTHORIZATION event stream. - # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream. - type: nil, # Card tokens to which the Auth Rule does not apply. excluded_card_tokens: nil, request_options: {} @@ -166,20 +143,20 @@ module Lithic sig do override.returns( { - account_tokens: T::Array[String], - business_account_tokens: T::Array[String], - event_stream: - Lithic::AuthRules::V2CreateParams::EventStream::OrSymbol, - name: T.nilable(String), parameters: T.any( Lithic::AuthRules::ConditionalBlockParameters, Lithic::AuthRules::VelocityLimitParams, Lithic::AuthRules::MerchantLockParameters, Lithic::AuthRules::Conditional3DSActionParameters, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters + Lithic::AuthRules::ConditionalAuthorizationActionParameters ), type: Lithic::AuthRules::V2CreateParams::Type::OrSymbol, + account_tokens: T::Array[String], + business_account_tokens: T::Array[String], + event_stream: + Lithic::AuthRules::V2CreateParams::EventStream::OrSymbol, + name: T.nilable(String), card_tokens: T::Array[String], program_level: T::Boolean, excluded_card_tokens: T::Array[String], @@ -190,38 +167,6 @@ module Lithic def to_hash end - # The event stream during which the rule will be evaluated. - module EventStream - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Lithic::AuthRules::V2CreateParams::EventStream) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - AUTHORIZATION = - T.let( - :AUTHORIZATION, - Lithic::AuthRules::V2CreateParams::EventStream::TaggedSymbol - ) - THREE_DS_AUTHENTICATION = - T.let( - :THREE_DS_AUTHENTICATION, - Lithic::AuthRules::V2CreateParams::EventStream::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::AuthRules::V2CreateParams::EventStream::TaggedSymbol - ] - ) - end - def self.values - end - end - # Parameters for the Auth Rule module Parameters extend Lithic::Internal::Type::Union @@ -233,580 +178,9 @@ module Lithic Lithic::AuthRules::VelocityLimitParams, Lithic::AuthRules::MerchantLockParameters, Lithic::AuthRules::Conditional3DSActionParameters, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters - ) - end - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters, - Lithic::Internal::AnyHash - ) - end - - # The action to take if the conditions are met. - sig do - returns( - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol - ) - end - attr_accessor :action - - sig do - returns( - T::Array[ - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - ) - end - attr_accessor :conditions - - sig do - params( - action: - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol, - conditions: - T::Array[ - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::OrHash - ] - ).returns(T.attached_class) - end - def self.new( - # The action to take if the conditions are met. - action:, - conditions: - ) - end - - sig do - override.returns( - { - action: - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol, - conditions: - T::Array[ - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - } + Lithic::AuthRules::ConditionalAuthorizationActionParameters ) end - def to_hash - end - - # The action to take if the conditions are met. - module Action - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DECLINE = - T.let( - :DECLINE, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - CHALLENGE = - T.let( - :CHALLENGE, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Condition < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition, - Lithic::Internal::AnyHash - ) - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - sig do - returns( - T.nilable( - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol - ) - ) - end - attr_reader :attribute - - sig do - params( - attribute: - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol - ).void - end - attr_writer :attribute - - # The operation to apply to the attribute - sig do - returns( - T.nilable( - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol - ) - ) - end - attr_reader :operation - - sig do - params( - operation: - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol - ).void - end - attr_writer :operation - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - sig do - returns( - T.nilable( - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ) - ) - end - attr_reader :value - - sig do - params( - value: - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).void - end - attr_writer :value - - sig do - params( - attribute: - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol, - operation: - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol, - value: - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).returns(T.attached_class) - end - def self.new( - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - attribute: nil, - # The operation to apply to the attribute - operation: nil, - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - value: nil - ) - end - - sig do - override.returns( - { - attribute: - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol, - operation: - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol, - value: - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - } - ) - end - def to_hash - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - module Attribute - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MCC = - T.let( - :MCC, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - COUNTRY = - T.let( - :COUNTRY, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CURRENCY = - T.let( - :CURRENCY, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - MERCHANT_ID = - T.let( - :MERCHANT_ID, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - DESCRIPTOR = - T.let( - :DESCRIPTOR, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - LIABILITY_SHIFT = - T.let( - :LIABILITY_SHIFT, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PAN_ENTRY_MODE = - T.let( - :PAN_ENTRY_MODE, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_AMOUNT = - T.let( - :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, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_15_M = - T.let( - :CARD_TRANSACTION_COUNT_15M, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_1_H = - T.let( - :CARD_TRANSACTION_COUNT_1H, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_24_H = - T.let( - :CARD_TRANSACTION_COUNT_24H, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_STATE = - T.let( - :CARD_STATE, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_ENTERED = - T.let( - :PIN_ENTERED, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_STATUS = - T.let( - :PIN_STATUS, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - WALLET_TYPE = - T.let( - :WALLET_TYPE, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_INITIATOR = - T.let( - :TRANSACTION_INITIATOR, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ADDRESS_MATCH = - T.let( - :ADDRESS_MATCH, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The operation to apply to the attribute - module Operation - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - IS_ONE_OF = - T.let( - :IS_ONE_OF, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_ONE_OF = - T.let( - :IS_NOT_ONE_OF, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - MATCHES = - T.let( - :MATCHES, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - DOES_NOT_MATCH = - T.let( - :DOES_NOT_MATCH, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_EQUAL_TO = - T.let( - :IS_EQUAL_TO, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_EQUAL_TO = - T.let( - :IS_NOT_EQUAL_TO, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN = - T.let( - :IS_GREATER_THAN, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN_OR_EQUAL_TO = - T.let( - :IS_GREATER_THAN_OR_EQUAL_TO, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN = - T.let( - :IS_LESS_THAN, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN_OR_EQUAL_TO = - T.let( - :IS_LESS_THAN_OR_EQUAL_TO, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ] - ) - end - def self.values - end - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - module Value - extend Lithic::Internal::Type::Union - - Variants = - T.type_alias { T.any(String, Integer, T::Array[String]) } - - sig do - override.returns( - T::Array[ - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ] - ) - end - def self.variants - end - - StringArray = - T.let( - Lithic::Internal::Type::ArrayOf[String], - Lithic::Internal::Type::Converter - ) - end - end - end sig do override.returns( @@ -864,6 +238,38 @@ module Lithic def self.values end end + + # The event stream during which the rule will be evaluated. + module EventStream + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Lithic::AuthRules::V2CreateParams::EventStream) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + AUTHORIZATION = + T.let( + :AUTHORIZATION, + Lithic::AuthRules::V2CreateParams::EventStream::TaggedSymbol + ) + THREE_DS_AUTHENTICATION = + T.let( + :THREE_DS_AUTHENTICATION, + Lithic::AuthRules::V2CreateParams::EventStream::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::AuthRules::V2CreateParams::EventStream::TaggedSymbol + ] + ) + end + def self.values + end + end end end end diff --git a/rbi/lithic/models/auth_rules/v2_create_response.rbi b/rbi/lithic/models/auth_rules/v2_create_response.rbi index a539598b..53e94ee2 100644 --- a/rbi/lithic/models/auth_rules/v2_create_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_create_response.rbi @@ -238,7 +238,7 @@ module Lithic Lithic::AuthRules::VelocityLimitParams::OrHash, Lithic::AuthRules::MerchantLockParameters::OrHash, Lithic::AuthRules::Conditional3DSActionParameters::OrHash, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::OrHash + Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash ), version: Integer ).returns(T.attached_class) @@ -275,581 +275,10 @@ module Lithic Lithic::AuthRules::VelocityLimitParams, Lithic::AuthRules::MerchantLockParameters, Lithic::AuthRules::Conditional3DSActionParameters, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters + Lithic::AuthRules::ConditionalAuthorizationActionParameters ) end - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters, - Lithic::Internal::AnyHash - ) - end - - # The action to take if the conditions are met. - sig do - returns( - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - end - attr_accessor :action - - sig do - returns( - T::Array[ - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - ) - end - attr_accessor :conditions - - sig do - params( - action: - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::OrHash - ] - ).returns(T.attached_class) - end - def self.new( - # The action to take if the conditions are met. - action:, - conditions: - ) - end - - sig do - override.returns( - { - action: - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - } - ) - end - def to_hash - end - - # The action to take if the conditions are met. - module Action - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DECLINE = - T.let( - :DECLINE, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - CHALLENGE = - T.let( - :CHALLENGE, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Condition < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition, - Lithic::Internal::AnyHash - ) - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ) - end - attr_reader :attribute - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol - ).void - end - attr_writer :attribute - - # The operation to apply to the attribute - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - ) - end - attr_reader :operation - - sig do - params( - operation: - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol - ).void - end - attr_writer :operation - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ) - ) - end - attr_reader :value - - sig do - params( - value: - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).void - end - attr_writer :value - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol, - operation: - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol, - value: - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).returns(T.attached_class) - end - def self.new( - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - attribute: nil, - # The operation to apply to the attribute - operation: nil, - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - value: nil - ) - end - - sig do - override.returns( - { - attribute: - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol, - operation: - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol, - value: - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - } - ) - end - def to_hash - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - module Attribute - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MCC = - T.let( - :MCC, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - COUNTRY = - T.let( - :COUNTRY, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CURRENCY = - T.let( - :CURRENCY, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - MERCHANT_ID = - T.let( - :MERCHANT_ID, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - DESCRIPTOR = - T.let( - :DESCRIPTOR, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - LIABILITY_SHIFT = - T.let( - :LIABILITY_SHIFT, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PAN_ENTRY_MODE = - T.let( - :PAN_ENTRY_MODE, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_AMOUNT = - T.let( - :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, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_15_M = - T.let( - :CARD_TRANSACTION_COUNT_15M, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_1_H = - T.let( - :CARD_TRANSACTION_COUNT_1H, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_24_H = - T.let( - :CARD_TRANSACTION_COUNT_24H, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_STATE = - T.let( - :CARD_STATE, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_ENTERED = - T.let( - :PIN_ENTERED, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_STATUS = - T.let( - :PIN_STATUS, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - WALLET_TYPE = - T.let( - :WALLET_TYPE, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_INITIATOR = - T.let( - :TRANSACTION_INITIATOR, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ADDRESS_MATCH = - T.let( - :ADDRESS_MATCH, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The operation to apply to the attribute - module Operation - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - IS_ONE_OF = - T.let( - :IS_ONE_OF, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_ONE_OF = - T.let( - :IS_NOT_ONE_OF, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - MATCHES = - T.let( - :MATCHES, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - DOES_NOT_MATCH = - T.let( - :DOES_NOT_MATCH, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_EQUAL_TO = - T.let( - :IS_EQUAL_TO, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_EQUAL_TO = - T.let( - :IS_NOT_EQUAL_TO, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN = - T.let( - :IS_GREATER_THAN, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN_OR_EQUAL_TO = - T.let( - :IS_GREATER_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN = - T.let( - :IS_LESS_THAN, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN_OR_EQUAL_TO = - T.let( - :IS_LESS_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ] - ) - end - def self.values - end - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - module Value - extend Lithic::Internal::Type::Union - - Variants = - T.type_alias { T.any(String, Integer, T::Array[String]) } - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ] - ) - end - def self.variants - end - - StringArray = - T.let( - Lithic::Internal::Type::ArrayOf[String], - Lithic::Internal::Type::Converter - ) - end - end - end - sig do override.returns( T::Array[ @@ -892,7 +321,7 @@ module Lithic Lithic::AuthRules::VelocityLimitParams::OrHash, Lithic::AuthRules::MerchantLockParameters::OrHash, Lithic::AuthRules::Conditional3DSActionParameters::OrHash, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::OrHash + Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash ), version: Integer ).returns(T.attached_class) @@ -929,581 +358,10 @@ module Lithic Lithic::AuthRules::VelocityLimitParams, Lithic::AuthRules::MerchantLockParameters, Lithic::AuthRules::Conditional3DSActionParameters, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters + Lithic::AuthRules::ConditionalAuthorizationActionParameters ) end - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters, - Lithic::Internal::AnyHash - ) - end - - # The action to take if the conditions are met. - sig do - returns( - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - end - attr_accessor :action - - sig do - returns( - T::Array[ - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - ) - end - attr_accessor :conditions - - sig do - params( - action: - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::OrHash - ] - ).returns(T.attached_class) - end - def self.new( - # The action to take if the conditions are met. - action:, - conditions: - ) - end - - sig do - override.returns( - { - action: - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - } - ) - end - def to_hash - end - - # The action to take if the conditions are met. - module Action - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DECLINE = - T.let( - :DECLINE, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - CHALLENGE = - T.let( - :CHALLENGE, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Condition < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition, - Lithic::Internal::AnyHash - ) - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ) - end - attr_reader :attribute - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol - ).void - end - attr_writer :attribute - - # The operation to apply to the attribute - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - ) - end - attr_reader :operation - - sig do - params( - operation: - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol - ).void - end - attr_writer :operation - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ) - ) - end - attr_reader :value - - sig do - params( - value: - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).void - end - attr_writer :value - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol, - operation: - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol, - value: - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).returns(T.attached_class) - end - def self.new( - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - attribute: nil, - # The operation to apply to the attribute - operation: nil, - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - value: nil - ) - end - - sig do - override.returns( - { - attribute: - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol, - operation: - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol, - value: - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - } - ) - end - def to_hash - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - module Attribute - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MCC = - T.let( - :MCC, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - COUNTRY = - T.let( - :COUNTRY, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CURRENCY = - T.let( - :CURRENCY, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - MERCHANT_ID = - T.let( - :MERCHANT_ID, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - DESCRIPTOR = - T.let( - :DESCRIPTOR, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - LIABILITY_SHIFT = - T.let( - :LIABILITY_SHIFT, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PAN_ENTRY_MODE = - T.let( - :PAN_ENTRY_MODE, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_AMOUNT = - T.let( - :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, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_15_M = - T.let( - :CARD_TRANSACTION_COUNT_15M, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_1_H = - T.let( - :CARD_TRANSACTION_COUNT_1H, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_24_H = - T.let( - :CARD_TRANSACTION_COUNT_24H, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_STATE = - T.let( - :CARD_STATE, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_ENTERED = - T.let( - :PIN_ENTERED, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_STATUS = - T.let( - :PIN_STATUS, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - WALLET_TYPE = - T.let( - :WALLET_TYPE, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_INITIATOR = - T.let( - :TRANSACTION_INITIATOR, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ADDRESS_MATCH = - T.let( - :ADDRESS_MATCH, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The operation to apply to the attribute - module Operation - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - IS_ONE_OF = - T.let( - :IS_ONE_OF, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_ONE_OF = - T.let( - :IS_NOT_ONE_OF, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - MATCHES = - T.let( - :MATCHES, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - DOES_NOT_MATCH = - T.let( - :DOES_NOT_MATCH, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_EQUAL_TO = - T.let( - :IS_EQUAL_TO, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_EQUAL_TO = - T.let( - :IS_NOT_EQUAL_TO, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN = - T.let( - :IS_GREATER_THAN, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN_OR_EQUAL_TO = - T.let( - :IS_GREATER_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN = - T.let( - :IS_LESS_THAN, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN_OR_EQUAL_TO = - T.let( - :IS_LESS_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ] - ) - end - def self.values - end - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - module Value - extend Lithic::Internal::Type::Union - - Variants = - T.type_alias { T.any(String, Integer, T::Array[String]) } - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ] - ) - end - def self.variants - end - - StringArray = - T.let( - Lithic::Internal::Type::ArrayOf[String], - Lithic::Internal::Type::Converter - ) - end - end - end - sig do override.returns( T::Array[ diff --git a/rbi/lithic/models/auth_rules/v2_draft_params.rbi b/rbi/lithic/models/auth_rules/v2_draft_params.rbi index 69138e33..a111e43f 100644 --- a/rbi/lithic/models/auth_rules/v2_draft_params.rbi +++ b/rbi/lithic/models/auth_rules/v2_draft_params.rbi @@ -21,7 +21,7 @@ module Lithic Lithic::AuthRules::VelocityLimitParams, Lithic::AuthRules::MerchantLockParameters, Lithic::AuthRules::Conditional3DSActionParameters, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters + Lithic::AuthRules::ConditionalAuthorizationActionParameters ) ) ) @@ -37,7 +37,7 @@ module Lithic Lithic::AuthRules::VelocityLimitParams::OrHash, Lithic::AuthRules::MerchantLockParameters::OrHash, Lithic::AuthRules::Conditional3DSActionParameters::OrHash, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::OrHash + Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash ) ), request_options: Lithic::RequestOptions::OrHash @@ -60,7 +60,7 @@ module Lithic Lithic::AuthRules::VelocityLimitParams, Lithic::AuthRules::MerchantLockParameters, Lithic::AuthRules::Conditional3DSActionParameters, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters + Lithic::AuthRules::ConditionalAuthorizationActionParameters ) ), request_options: Lithic::RequestOptions @@ -81,581 +81,10 @@ module Lithic Lithic::AuthRules::VelocityLimitParams, Lithic::AuthRules::MerchantLockParameters, Lithic::AuthRules::Conditional3DSActionParameters, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters + Lithic::AuthRules::ConditionalAuthorizationActionParameters ) end - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters, - Lithic::Internal::AnyHash - ) - end - - # The action to take if the conditions are met. - sig do - returns( - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol - ) - end - attr_accessor :action - - sig do - returns( - T::Array[ - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - ) - end - attr_accessor :conditions - - sig do - params( - action: - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol, - conditions: - T::Array[ - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::OrHash - ] - ).returns(T.attached_class) - end - def self.new( - # The action to take if the conditions are met. - action:, - conditions: - ) - end - - sig do - override.returns( - { - action: - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol, - conditions: - T::Array[ - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - } - ) - end - def to_hash - end - - # The action to take if the conditions are met. - module Action - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Action - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DECLINE = - T.let( - :DECLINE, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - CHALLENGE = - T.let( - :CHALLENGE, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Condition < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition, - Lithic::Internal::AnyHash - ) - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - sig do - returns( - T.nilable( - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol - ) - ) - end - attr_reader :attribute - - sig do - params( - attribute: - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol - ).void - end - attr_writer :attribute - - # The operation to apply to the attribute - sig do - returns( - T.nilable( - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol - ) - ) - end - attr_reader :operation - - sig do - params( - operation: - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol - ).void - end - attr_writer :operation - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - sig do - returns( - T.nilable( - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ) - ) - end - attr_reader :value - - sig do - params( - value: - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).void - end - attr_writer :value - - sig do - params( - attribute: - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol, - operation: - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol, - value: - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).returns(T.attached_class) - end - def self.new( - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - attribute: nil, - # The operation to apply to the attribute - operation: nil, - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - value: nil - ) - end - - sig do - override.returns( - { - attribute: - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol, - operation: - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol, - value: - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - } - ) - end - def to_hash - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - module Attribute - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MCC = - T.let( - :MCC, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - COUNTRY = - T.let( - :COUNTRY, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CURRENCY = - T.let( - :CURRENCY, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - MERCHANT_ID = - T.let( - :MERCHANT_ID, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - DESCRIPTOR = - T.let( - :DESCRIPTOR, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - LIABILITY_SHIFT = - T.let( - :LIABILITY_SHIFT, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PAN_ENTRY_MODE = - T.let( - :PAN_ENTRY_MODE, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_AMOUNT = - T.let( - :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, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_15_M = - T.let( - :CARD_TRANSACTION_COUNT_15M, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_1_H = - T.let( - :CARD_TRANSACTION_COUNT_1H, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_24_H = - T.let( - :CARD_TRANSACTION_COUNT_24H, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_STATE = - T.let( - :CARD_STATE, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_ENTERED = - T.let( - :PIN_ENTERED, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_STATUS = - T.let( - :PIN_STATUS, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - WALLET_TYPE = - T.let( - :WALLET_TYPE, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_INITIATOR = - T.let( - :TRANSACTION_INITIATOR, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ADDRESS_MATCH = - T.let( - :ADDRESS_MATCH, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The operation to apply to the attribute - module Operation - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - IS_ONE_OF = - T.let( - :IS_ONE_OF, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_ONE_OF = - T.let( - :IS_NOT_ONE_OF, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - MATCHES = - T.let( - :MATCHES, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - DOES_NOT_MATCH = - T.let( - :DOES_NOT_MATCH, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_EQUAL_TO = - T.let( - :IS_EQUAL_TO, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_EQUAL_TO = - T.let( - :IS_NOT_EQUAL_TO, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN = - T.let( - :IS_GREATER_THAN, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN_OR_EQUAL_TO = - T.let( - :IS_GREATER_THAN_OR_EQUAL_TO, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN = - T.let( - :IS_LESS_THAN, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN_OR_EQUAL_TO = - T.let( - :IS_LESS_THAN_OR_EQUAL_TO, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ] - ) - end - def self.values - end - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - module Value - extend Lithic::Internal::Type::Union - - Variants = - T.type_alias { T.any(String, Integer, T::Array[String]) } - - sig do - override.returns( - T::Array[ - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ] - ) - end - def self.variants - end - - StringArray = - T.let( - Lithic::Internal::Type::ArrayOf[String], - Lithic::Internal::Type::Converter - ) - end - end - end - sig do override.returns( T::Array[Lithic::AuthRules::V2DraftParams::Parameters::Variants] diff --git a/rbi/lithic/models/auth_rules/v2_draft_response.rbi b/rbi/lithic/models/auth_rules/v2_draft_response.rbi index efb93924..416386ad 100644 --- a/rbi/lithic/models/auth_rules/v2_draft_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_draft_response.rbi @@ -238,7 +238,7 @@ module Lithic Lithic::AuthRules::VelocityLimitParams::OrHash, Lithic::AuthRules::MerchantLockParameters::OrHash, Lithic::AuthRules::Conditional3DSActionParameters::OrHash, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::OrHash + Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash ), version: Integer ).returns(T.attached_class) @@ -275,581 +275,10 @@ module Lithic Lithic::AuthRules::VelocityLimitParams, Lithic::AuthRules::MerchantLockParameters, Lithic::AuthRules::Conditional3DSActionParameters, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters + Lithic::AuthRules::ConditionalAuthorizationActionParameters ) end - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters, - Lithic::Internal::AnyHash - ) - end - - # The action to take if the conditions are met. - sig do - returns( - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - end - attr_accessor :action - - sig do - returns( - T::Array[ - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - ) - end - attr_accessor :conditions - - sig do - params( - action: - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::OrHash - ] - ).returns(T.attached_class) - end - def self.new( - # The action to take if the conditions are met. - action:, - conditions: - ) - end - - sig do - override.returns( - { - action: - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - } - ) - end - def to_hash - end - - # The action to take if the conditions are met. - module Action - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DECLINE = - T.let( - :DECLINE, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - CHALLENGE = - T.let( - :CHALLENGE, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Condition < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition, - Lithic::Internal::AnyHash - ) - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ) - end - attr_reader :attribute - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol - ).void - end - attr_writer :attribute - - # The operation to apply to the attribute - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - ) - end - attr_reader :operation - - sig do - params( - operation: - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol - ).void - end - attr_writer :operation - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ) - ) - end - attr_reader :value - - sig do - params( - value: - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).void - end - attr_writer :value - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol, - operation: - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol, - value: - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).returns(T.attached_class) - end - def self.new( - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - attribute: nil, - # The operation to apply to the attribute - operation: nil, - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - value: nil - ) - end - - sig do - override.returns( - { - attribute: - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol, - operation: - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol, - value: - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - } - ) - end - def to_hash - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - module Attribute - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MCC = - T.let( - :MCC, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - COUNTRY = - T.let( - :COUNTRY, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CURRENCY = - T.let( - :CURRENCY, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - MERCHANT_ID = - T.let( - :MERCHANT_ID, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - DESCRIPTOR = - T.let( - :DESCRIPTOR, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - LIABILITY_SHIFT = - T.let( - :LIABILITY_SHIFT, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PAN_ENTRY_MODE = - T.let( - :PAN_ENTRY_MODE, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_AMOUNT = - T.let( - :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, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_15_M = - T.let( - :CARD_TRANSACTION_COUNT_15M, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_1_H = - T.let( - :CARD_TRANSACTION_COUNT_1H, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_24_H = - T.let( - :CARD_TRANSACTION_COUNT_24H, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_STATE = - T.let( - :CARD_STATE, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_ENTERED = - T.let( - :PIN_ENTERED, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_STATUS = - T.let( - :PIN_STATUS, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - WALLET_TYPE = - T.let( - :WALLET_TYPE, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_INITIATOR = - T.let( - :TRANSACTION_INITIATOR, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ADDRESS_MATCH = - T.let( - :ADDRESS_MATCH, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The operation to apply to the attribute - module Operation - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - IS_ONE_OF = - T.let( - :IS_ONE_OF, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_ONE_OF = - T.let( - :IS_NOT_ONE_OF, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - MATCHES = - T.let( - :MATCHES, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - DOES_NOT_MATCH = - T.let( - :DOES_NOT_MATCH, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_EQUAL_TO = - T.let( - :IS_EQUAL_TO, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_EQUAL_TO = - T.let( - :IS_NOT_EQUAL_TO, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN = - T.let( - :IS_GREATER_THAN, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN_OR_EQUAL_TO = - T.let( - :IS_GREATER_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN = - T.let( - :IS_LESS_THAN, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN_OR_EQUAL_TO = - T.let( - :IS_LESS_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ] - ) - end - def self.values - end - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - module Value - extend Lithic::Internal::Type::Union - - Variants = - T.type_alias { T.any(String, Integer, T::Array[String]) } - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ] - ) - end - def self.variants - end - - StringArray = - T.let( - Lithic::Internal::Type::ArrayOf[String], - Lithic::Internal::Type::Converter - ) - end - end - end - sig do override.returns( T::Array[ @@ -892,7 +321,7 @@ module Lithic Lithic::AuthRules::VelocityLimitParams::OrHash, Lithic::AuthRules::MerchantLockParameters::OrHash, Lithic::AuthRules::Conditional3DSActionParameters::OrHash, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::OrHash + Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash ), version: Integer ).returns(T.attached_class) @@ -929,581 +358,10 @@ module Lithic Lithic::AuthRules::VelocityLimitParams, Lithic::AuthRules::MerchantLockParameters, Lithic::AuthRules::Conditional3DSActionParameters, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters + Lithic::AuthRules::ConditionalAuthorizationActionParameters ) end - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters, - Lithic::Internal::AnyHash - ) - end - - # The action to take if the conditions are met. - sig do - returns( - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - end - attr_accessor :action - - sig do - returns( - T::Array[ - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - ) - end - attr_accessor :conditions - - sig do - params( - action: - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::OrHash - ] - ).returns(T.attached_class) - end - def self.new( - # The action to take if the conditions are met. - action:, - conditions: - ) - end - - sig do - override.returns( - { - action: - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - } - ) - end - def to_hash - end - - # The action to take if the conditions are met. - module Action - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DECLINE = - T.let( - :DECLINE, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - CHALLENGE = - T.let( - :CHALLENGE, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Condition < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition, - Lithic::Internal::AnyHash - ) - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ) - end - attr_reader :attribute - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol - ).void - end - attr_writer :attribute - - # The operation to apply to the attribute - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - ) - end - attr_reader :operation - - sig do - params( - operation: - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol - ).void - end - attr_writer :operation - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ) - ) - end - attr_reader :value - - sig do - params( - value: - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).void - end - attr_writer :value - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol, - operation: - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol, - value: - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).returns(T.attached_class) - end - def self.new( - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - attribute: nil, - # The operation to apply to the attribute - operation: nil, - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - value: nil - ) - end - - sig do - override.returns( - { - attribute: - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol, - operation: - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol, - value: - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - } - ) - end - def to_hash - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - module Attribute - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MCC = - T.let( - :MCC, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - COUNTRY = - T.let( - :COUNTRY, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CURRENCY = - T.let( - :CURRENCY, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - MERCHANT_ID = - T.let( - :MERCHANT_ID, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - DESCRIPTOR = - T.let( - :DESCRIPTOR, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - LIABILITY_SHIFT = - T.let( - :LIABILITY_SHIFT, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PAN_ENTRY_MODE = - T.let( - :PAN_ENTRY_MODE, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_AMOUNT = - T.let( - :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, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_15_M = - T.let( - :CARD_TRANSACTION_COUNT_15M, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_1_H = - T.let( - :CARD_TRANSACTION_COUNT_1H, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_24_H = - T.let( - :CARD_TRANSACTION_COUNT_24H, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_STATE = - T.let( - :CARD_STATE, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_ENTERED = - T.let( - :PIN_ENTERED, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_STATUS = - T.let( - :PIN_STATUS, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - WALLET_TYPE = - T.let( - :WALLET_TYPE, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_INITIATOR = - T.let( - :TRANSACTION_INITIATOR, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ADDRESS_MATCH = - T.let( - :ADDRESS_MATCH, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The operation to apply to the attribute - module Operation - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - IS_ONE_OF = - T.let( - :IS_ONE_OF, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_ONE_OF = - T.let( - :IS_NOT_ONE_OF, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - MATCHES = - T.let( - :MATCHES, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - DOES_NOT_MATCH = - T.let( - :DOES_NOT_MATCH, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_EQUAL_TO = - T.let( - :IS_EQUAL_TO, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_EQUAL_TO = - T.let( - :IS_NOT_EQUAL_TO, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN = - T.let( - :IS_GREATER_THAN, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN_OR_EQUAL_TO = - T.let( - :IS_GREATER_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN = - T.let( - :IS_LESS_THAN, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN_OR_EQUAL_TO = - T.let( - :IS_LESS_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ] - ) - end - def self.values - end - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - module Value - extend Lithic::Internal::Type::Union - - Variants = - T.type_alias { T.any(String, Integer, T::Array[String]) } - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ] - ) - end - def self.variants - end - - StringArray = - T.let( - Lithic::Internal::Type::ArrayOf[String], - Lithic::Internal::Type::Converter - ) - end - end - end - sig do override.returns( T::Array[ diff --git a/rbi/lithic/models/auth_rules/v2_list_response.rbi b/rbi/lithic/models/auth_rules/v2_list_response.rbi index 5e570c74..08cfee5e 100644 --- a/rbi/lithic/models/auth_rules/v2_list_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_list_response.rbi @@ -234,7 +234,7 @@ module Lithic Lithic::AuthRules::VelocityLimitParams::OrHash, Lithic::AuthRules::MerchantLockParameters::OrHash, Lithic::AuthRules::Conditional3DSActionParameters::OrHash, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::OrHash + Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash ), version: Integer ).returns(T.attached_class) @@ -271,581 +271,10 @@ module Lithic Lithic::AuthRules::VelocityLimitParams, Lithic::AuthRules::MerchantLockParameters, Lithic::AuthRules::Conditional3DSActionParameters, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters + Lithic::AuthRules::ConditionalAuthorizationActionParameters ) end - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters, - Lithic::Internal::AnyHash - ) - end - - # The action to take if the conditions are met. - sig do - returns( - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - end - attr_accessor :action - - sig do - returns( - T::Array[ - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - ) - end - attr_accessor :conditions - - sig do - params( - action: - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::OrHash - ] - ).returns(T.attached_class) - end - def self.new( - # The action to take if the conditions are met. - action:, - conditions: - ) - end - - sig do - override.returns( - { - action: - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - } - ) - end - def to_hash - end - - # The action to take if the conditions are met. - module Action - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DECLINE = - T.let( - :DECLINE, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - CHALLENGE = - T.let( - :CHALLENGE, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Condition < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition, - Lithic::Internal::AnyHash - ) - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ) - end - attr_reader :attribute - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol - ).void - end - attr_writer :attribute - - # The operation to apply to the attribute - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - ) - end - attr_reader :operation - - sig do - params( - operation: - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol - ).void - end - attr_writer :operation - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ) - ) - end - attr_reader :value - - sig do - params( - value: - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).void - end - attr_writer :value - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol, - operation: - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol, - value: - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).returns(T.attached_class) - end - def self.new( - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - attribute: nil, - # The operation to apply to the attribute - operation: nil, - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - value: nil - ) - end - - sig do - override.returns( - { - attribute: - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol, - operation: - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol, - value: - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - } - ) - end - def to_hash - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - module Attribute - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MCC = - T.let( - :MCC, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - COUNTRY = - T.let( - :COUNTRY, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CURRENCY = - T.let( - :CURRENCY, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - MERCHANT_ID = - T.let( - :MERCHANT_ID, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - DESCRIPTOR = - T.let( - :DESCRIPTOR, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - LIABILITY_SHIFT = - T.let( - :LIABILITY_SHIFT, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PAN_ENTRY_MODE = - T.let( - :PAN_ENTRY_MODE, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_AMOUNT = - T.let( - :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, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_15_M = - T.let( - :CARD_TRANSACTION_COUNT_15M, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_1_H = - T.let( - :CARD_TRANSACTION_COUNT_1H, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_24_H = - T.let( - :CARD_TRANSACTION_COUNT_24H, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_STATE = - T.let( - :CARD_STATE, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_ENTERED = - T.let( - :PIN_ENTERED, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_STATUS = - T.let( - :PIN_STATUS, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - WALLET_TYPE = - T.let( - :WALLET_TYPE, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_INITIATOR = - T.let( - :TRANSACTION_INITIATOR, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ADDRESS_MATCH = - T.let( - :ADDRESS_MATCH, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The operation to apply to the attribute - module Operation - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - IS_ONE_OF = - T.let( - :IS_ONE_OF, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_ONE_OF = - T.let( - :IS_NOT_ONE_OF, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - MATCHES = - T.let( - :MATCHES, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - DOES_NOT_MATCH = - T.let( - :DOES_NOT_MATCH, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_EQUAL_TO = - T.let( - :IS_EQUAL_TO, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_EQUAL_TO = - T.let( - :IS_NOT_EQUAL_TO, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN = - T.let( - :IS_GREATER_THAN, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN_OR_EQUAL_TO = - T.let( - :IS_GREATER_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN = - T.let( - :IS_LESS_THAN, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN_OR_EQUAL_TO = - T.let( - :IS_LESS_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ] - ) - end - def self.values - end - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - module Value - extend Lithic::Internal::Type::Union - - Variants = - T.type_alias { T.any(String, Integer, T::Array[String]) } - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ] - ) - end - def self.variants - end - - StringArray = - T.let( - Lithic::Internal::Type::ArrayOf[String], - Lithic::Internal::Type::Converter - ) - end - end - end - sig do override.returns( T::Array[ @@ -888,7 +317,7 @@ module Lithic Lithic::AuthRules::VelocityLimitParams::OrHash, Lithic::AuthRules::MerchantLockParameters::OrHash, Lithic::AuthRules::Conditional3DSActionParameters::OrHash, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::OrHash + Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash ), version: Integer ).returns(T.attached_class) @@ -925,581 +354,10 @@ module Lithic Lithic::AuthRules::VelocityLimitParams, Lithic::AuthRules::MerchantLockParameters, Lithic::AuthRules::Conditional3DSActionParameters, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters + Lithic::AuthRules::ConditionalAuthorizationActionParameters ) end - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters, - Lithic::Internal::AnyHash - ) - end - - # The action to take if the conditions are met. - sig do - returns( - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - end - attr_accessor :action - - sig do - returns( - T::Array[ - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - ) - end - attr_accessor :conditions - - sig do - params( - action: - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::OrHash - ] - ).returns(T.attached_class) - end - def self.new( - # The action to take if the conditions are met. - action:, - conditions: - ) - end - - sig do - override.returns( - { - action: - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - } - ) - end - def to_hash - end - - # The action to take if the conditions are met. - module Action - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DECLINE = - T.let( - :DECLINE, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - CHALLENGE = - T.let( - :CHALLENGE, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Condition < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition, - Lithic::Internal::AnyHash - ) - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ) - end - attr_reader :attribute - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol - ).void - end - attr_writer :attribute - - # The operation to apply to the attribute - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - ) - end - attr_reader :operation - - sig do - params( - operation: - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol - ).void - end - attr_writer :operation - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ) - ) - end - attr_reader :value - - sig do - params( - value: - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).void - end - attr_writer :value - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol, - operation: - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol, - value: - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).returns(T.attached_class) - end - def self.new( - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - attribute: nil, - # The operation to apply to the attribute - operation: nil, - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - value: nil - ) - end - - sig do - override.returns( - { - attribute: - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol, - operation: - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol, - value: - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - } - ) - end - def to_hash - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - module Attribute - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MCC = - T.let( - :MCC, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - COUNTRY = - T.let( - :COUNTRY, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CURRENCY = - T.let( - :CURRENCY, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - MERCHANT_ID = - T.let( - :MERCHANT_ID, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - DESCRIPTOR = - T.let( - :DESCRIPTOR, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - LIABILITY_SHIFT = - T.let( - :LIABILITY_SHIFT, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PAN_ENTRY_MODE = - T.let( - :PAN_ENTRY_MODE, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_AMOUNT = - T.let( - :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, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_15_M = - T.let( - :CARD_TRANSACTION_COUNT_15M, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_1_H = - T.let( - :CARD_TRANSACTION_COUNT_1H, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_24_H = - T.let( - :CARD_TRANSACTION_COUNT_24H, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_STATE = - T.let( - :CARD_STATE, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_ENTERED = - T.let( - :PIN_ENTERED, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_STATUS = - T.let( - :PIN_STATUS, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - WALLET_TYPE = - T.let( - :WALLET_TYPE, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_INITIATOR = - T.let( - :TRANSACTION_INITIATOR, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ADDRESS_MATCH = - T.let( - :ADDRESS_MATCH, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The operation to apply to the attribute - module Operation - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - IS_ONE_OF = - T.let( - :IS_ONE_OF, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_ONE_OF = - T.let( - :IS_NOT_ONE_OF, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - MATCHES = - T.let( - :MATCHES, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - DOES_NOT_MATCH = - T.let( - :DOES_NOT_MATCH, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_EQUAL_TO = - T.let( - :IS_EQUAL_TO, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_EQUAL_TO = - T.let( - :IS_NOT_EQUAL_TO, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN = - T.let( - :IS_GREATER_THAN, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN_OR_EQUAL_TO = - T.let( - :IS_GREATER_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN = - T.let( - :IS_LESS_THAN, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN_OR_EQUAL_TO = - T.let( - :IS_LESS_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ] - ) - end - def self.values - end - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - module Value - extend Lithic::Internal::Type::Union - - Variants = - T.type_alias { T.any(String, Integer, T::Array[String]) } - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ] - ) - end - def self.variants - end - - StringArray = - T.let( - Lithic::Internal::Type::ArrayOf[String], - Lithic::Internal::Type::Converter - ) - end - end - end - sig do override.returns( T::Array[ diff --git a/rbi/lithic/models/auth_rules/v2_promote_response.rbi b/rbi/lithic/models/auth_rules/v2_promote_response.rbi index 3a895305..4889561f 100644 --- a/rbi/lithic/models/auth_rules/v2_promote_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_promote_response.rbi @@ -241,7 +241,7 @@ module Lithic Lithic::AuthRules::VelocityLimitParams::OrHash, Lithic::AuthRules::MerchantLockParameters::OrHash, Lithic::AuthRules::Conditional3DSActionParameters::OrHash, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::OrHash + Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash ), version: Integer ).returns(T.attached_class) @@ -278,581 +278,10 @@ module Lithic Lithic::AuthRules::VelocityLimitParams, Lithic::AuthRules::MerchantLockParameters, Lithic::AuthRules::Conditional3DSActionParameters, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters + Lithic::AuthRules::ConditionalAuthorizationActionParameters ) end - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters, - Lithic::Internal::AnyHash - ) - end - - # The action to take if the conditions are met. - sig do - returns( - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - end - attr_accessor :action - - sig do - returns( - T::Array[ - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - ) - end - attr_accessor :conditions - - sig do - params( - action: - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::OrHash - ] - ).returns(T.attached_class) - end - def self.new( - # The action to take if the conditions are met. - action:, - conditions: - ) - end - - sig do - override.returns( - { - action: - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - } - ) - end - def to_hash - end - - # The action to take if the conditions are met. - module Action - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DECLINE = - T.let( - :DECLINE, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - CHALLENGE = - T.let( - :CHALLENGE, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Condition < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition, - Lithic::Internal::AnyHash - ) - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ) - end - attr_reader :attribute - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol - ).void - end - attr_writer :attribute - - # The operation to apply to the attribute - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - ) - end - attr_reader :operation - - sig do - params( - operation: - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol - ).void - end - attr_writer :operation - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ) - ) - end - attr_reader :value - - sig do - params( - value: - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).void - end - attr_writer :value - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol, - operation: - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol, - value: - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).returns(T.attached_class) - end - def self.new( - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - attribute: nil, - # The operation to apply to the attribute - operation: nil, - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - value: nil - ) - end - - sig do - override.returns( - { - attribute: - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol, - operation: - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol, - value: - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - } - ) - end - def to_hash - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - module Attribute - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MCC = - T.let( - :MCC, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - COUNTRY = - T.let( - :COUNTRY, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CURRENCY = - T.let( - :CURRENCY, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - MERCHANT_ID = - T.let( - :MERCHANT_ID, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - DESCRIPTOR = - T.let( - :DESCRIPTOR, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - LIABILITY_SHIFT = - T.let( - :LIABILITY_SHIFT, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PAN_ENTRY_MODE = - T.let( - :PAN_ENTRY_MODE, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_AMOUNT = - T.let( - :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, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_15_M = - T.let( - :CARD_TRANSACTION_COUNT_15M, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_1_H = - T.let( - :CARD_TRANSACTION_COUNT_1H, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_24_H = - T.let( - :CARD_TRANSACTION_COUNT_24H, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_STATE = - T.let( - :CARD_STATE, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_ENTERED = - T.let( - :PIN_ENTERED, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_STATUS = - T.let( - :PIN_STATUS, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - WALLET_TYPE = - T.let( - :WALLET_TYPE, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_INITIATOR = - T.let( - :TRANSACTION_INITIATOR, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ADDRESS_MATCH = - T.let( - :ADDRESS_MATCH, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The operation to apply to the attribute - module Operation - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - IS_ONE_OF = - T.let( - :IS_ONE_OF, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_ONE_OF = - T.let( - :IS_NOT_ONE_OF, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - MATCHES = - T.let( - :MATCHES, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - DOES_NOT_MATCH = - T.let( - :DOES_NOT_MATCH, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_EQUAL_TO = - T.let( - :IS_EQUAL_TO, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_EQUAL_TO = - T.let( - :IS_NOT_EQUAL_TO, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN = - T.let( - :IS_GREATER_THAN, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN_OR_EQUAL_TO = - T.let( - :IS_GREATER_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN = - T.let( - :IS_LESS_THAN, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN_OR_EQUAL_TO = - T.let( - :IS_LESS_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ] - ) - end - def self.values - end - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - module Value - extend Lithic::Internal::Type::Union - - Variants = - T.type_alias { T.any(String, Integer, T::Array[String]) } - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ] - ) - end - def self.variants - end - - StringArray = - T.let( - Lithic::Internal::Type::ArrayOf[String], - Lithic::Internal::Type::Converter - ) - end - end - end - sig do override.returns( T::Array[ @@ -895,7 +324,7 @@ module Lithic Lithic::AuthRules::VelocityLimitParams::OrHash, Lithic::AuthRules::MerchantLockParameters::OrHash, Lithic::AuthRules::Conditional3DSActionParameters::OrHash, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::OrHash + Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash ), version: Integer ).returns(T.attached_class) @@ -932,581 +361,10 @@ module Lithic Lithic::AuthRules::VelocityLimitParams, Lithic::AuthRules::MerchantLockParameters, Lithic::AuthRules::Conditional3DSActionParameters, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters + Lithic::AuthRules::ConditionalAuthorizationActionParameters ) end - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters, - Lithic::Internal::AnyHash - ) - end - - # The action to take if the conditions are met. - sig do - returns( - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - end - attr_accessor :action - - sig do - returns( - T::Array[ - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - ) - end - attr_accessor :conditions - - sig do - params( - action: - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::OrHash - ] - ).returns(T.attached_class) - end - def self.new( - # The action to take if the conditions are met. - action:, - conditions: - ) - end - - sig do - override.returns( - { - action: - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - } - ) - end - def to_hash - end - - # The action to take if the conditions are met. - module Action - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DECLINE = - T.let( - :DECLINE, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - CHALLENGE = - T.let( - :CHALLENGE, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Condition < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition, - Lithic::Internal::AnyHash - ) - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ) - end - attr_reader :attribute - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol - ).void - end - attr_writer :attribute - - # The operation to apply to the attribute - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - ) - end - attr_reader :operation - - sig do - params( - operation: - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol - ).void - end - attr_writer :operation - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ) - ) - end - attr_reader :value - - sig do - params( - value: - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).void - end - attr_writer :value - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol, - operation: - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol, - value: - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).returns(T.attached_class) - end - def self.new( - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - attribute: nil, - # The operation to apply to the attribute - operation: nil, - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - value: nil - ) - end - - sig do - override.returns( - { - attribute: - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol, - operation: - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol, - value: - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - } - ) - end - def to_hash - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - module Attribute - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MCC = - T.let( - :MCC, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - COUNTRY = - T.let( - :COUNTRY, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CURRENCY = - T.let( - :CURRENCY, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - MERCHANT_ID = - T.let( - :MERCHANT_ID, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - DESCRIPTOR = - T.let( - :DESCRIPTOR, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - LIABILITY_SHIFT = - T.let( - :LIABILITY_SHIFT, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PAN_ENTRY_MODE = - T.let( - :PAN_ENTRY_MODE, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_AMOUNT = - T.let( - :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, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_15_M = - T.let( - :CARD_TRANSACTION_COUNT_15M, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_1_H = - T.let( - :CARD_TRANSACTION_COUNT_1H, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_24_H = - T.let( - :CARD_TRANSACTION_COUNT_24H, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_STATE = - T.let( - :CARD_STATE, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_ENTERED = - T.let( - :PIN_ENTERED, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_STATUS = - T.let( - :PIN_STATUS, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - WALLET_TYPE = - T.let( - :WALLET_TYPE, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_INITIATOR = - T.let( - :TRANSACTION_INITIATOR, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ADDRESS_MATCH = - T.let( - :ADDRESS_MATCH, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The operation to apply to the attribute - module Operation - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - IS_ONE_OF = - T.let( - :IS_ONE_OF, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_ONE_OF = - T.let( - :IS_NOT_ONE_OF, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - MATCHES = - T.let( - :MATCHES, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - DOES_NOT_MATCH = - T.let( - :DOES_NOT_MATCH, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_EQUAL_TO = - T.let( - :IS_EQUAL_TO, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_EQUAL_TO = - T.let( - :IS_NOT_EQUAL_TO, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN = - T.let( - :IS_GREATER_THAN, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN_OR_EQUAL_TO = - T.let( - :IS_GREATER_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN = - T.let( - :IS_LESS_THAN, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN_OR_EQUAL_TO = - T.let( - :IS_LESS_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ] - ) - end - def self.values - end - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - module Value - extend Lithic::Internal::Type::Union - - Variants = - T.type_alias { T.any(String, Integer, T::Array[String]) } - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ] - ) - end - def self.variants - end - - StringArray = - T.let( - Lithic::Internal::Type::ArrayOf[String], - Lithic::Internal::Type::Converter - ) - end - end - end - sig do override.returns( T::Array[ diff --git a/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi b/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi index 7b124348..df6f8ec5 100644 --- a/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi @@ -81,15 +81,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 - returns( - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::Variants - ) - end + # Velocity over the current day since 00:00 / 12 AM in Eastern Time + sig { returns(Lithic::AuthRules::VelocityLimitPeriod::Variants) } attr_accessor :period # The scope the velocity is calculated for @@ -121,13 +114,11 @@ module Lithic 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 + Lithic::AuthRules::VelocityLimitPeriod::TrailingWindowObject::OrHash, + Lithic::AuthRules::VelocityLimitPeriod::FixedWindowDay::OrHash, + Lithic::AuthRules::VelocityLimitPeriod::FixedWindowWeek::OrHash, + Lithic::AuthRules::VelocityLimitPeriod::FixedWindowMonth::OrHash, + Lithic::AuthRules::VelocityLimitPeriod::FixedWindowYear::OrHash ), scope: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Scope::OrSymbol, @@ -137,10 +128,7 @@ 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). + # Velocity over the current day since 00:00 / 12 AM in Eastern Time period:, # The scope the velocity is calculated for scope:, @@ -153,8 +141,7 @@ module Lithic { filters: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters, - period: - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::Variants, + period: Lithic::AuthRules::VelocityLimitPeriod::Variants, scope: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Scope::TaggedSymbol, value: diff --git a/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi b/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi index 847804ae..567f674b 100644 --- a/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi @@ -241,7 +241,7 @@ module Lithic Lithic::AuthRules::VelocityLimitParams::OrHash, Lithic::AuthRules::MerchantLockParameters::OrHash, Lithic::AuthRules::Conditional3DSActionParameters::OrHash, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::OrHash + Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash ), version: Integer ).returns(T.attached_class) @@ -278,581 +278,10 @@ module Lithic Lithic::AuthRules::VelocityLimitParams, Lithic::AuthRules::MerchantLockParameters, Lithic::AuthRules::Conditional3DSActionParameters, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters + Lithic::AuthRules::ConditionalAuthorizationActionParameters ) end - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters, - Lithic::Internal::AnyHash - ) - end - - # The action to take if the conditions are met. - sig do - returns( - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - end - attr_accessor :action - - sig do - returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - ) - end - attr_accessor :conditions - - sig do - params( - action: - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::OrHash - ] - ).returns(T.attached_class) - end - def self.new( - # The action to take if the conditions are met. - action:, - conditions: - ) - end - - sig do - override.returns( - { - action: - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - } - ) - end - def to_hash - end - - # The action to take if the conditions are met. - module Action - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DECLINE = - T.let( - :DECLINE, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - CHALLENGE = - T.let( - :CHALLENGE, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Condition < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition, - Lithic::Internal::AnyHash - ) - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ) - end - attr_reader :attribute - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol - ).void - end - attr_writer :attribute - - # The operation to apply to the attribute - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - ) - end - attr_reader :operation - - sig do - params( - operation: - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol - ).void - end - attr_writer :operation - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ) - ) - end - attr_reader :value - - sig do - params( - value: - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).void - end - attr_writer :value - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol, - operation: - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol, - value: - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).returns(T.attached_class) - end - def self.new( - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - attribute: nil, - # The operation to apply to the attribute - operation: nil, - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - value: nil - ) - end - - sig do - override.returns( - { - attribute: - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol, - operation: - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol, - value: - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - } - ) - end - def to_hash - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - module Attribute - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MCC = - T.let( - :MCC, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - COUNTRY = - T.let( - :COUNTRY, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CURRENCY = - T.let( - :CURRENCY, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - MERCHANT_ID = - T.let( - :MERCHANT_ID, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - DESCRIPTOR = - T.let( - :DESCRIPTOR, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - LIABILITY_SHIFT = - T.let( - :LIABILITY_SHIFT, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PAN_ENTRY_MODE = - T.let( - :PAN_ENTRY_MODE, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_AMOUNT = - T.let( - :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, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_15_M = - T.let( - :CARD_TRANSACTION_COUNT_15M, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_1_H = - T.let( - :CARD_TRANSACTION_COUNT_1H, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_24_H = - T.let( - :CARD_TRANSACTION_COUNT_24H, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_STATE = - T.let( - :CARD_STATE, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_ENTERED = - T.let( - :PIN_ENTERED, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_STATUS = - T.let( - :PIN_STATUS, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - WALLET_TYPE = - T.let( - :WALLET_TYPE, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_INITIATOR = - T.let( - :TRANSACTION_INITIATOR, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ADDRESS_MATCH = - T.let( - :ADDRESS_MATCH, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The operation to apply to the attribute - module Operation - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - IS_ONE_OF = - T.let( - :IS_ONE_OF, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_ONE_OF = - T.let( - :IS_NOT_ONE_OF, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - MATCHES = - T.let( - :MATCHES, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - DOES_NOT_MATCH = - T.let( - :DOES_NOT_MATCH, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_EQUAL_TO = - T.let( - :IS_EQUAL_TO, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_EQUAL_TO = - T.let( - :IS_NOT_EQUAL_TO, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN = - T.let( - :IS_GREATER_THAN, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN_OR_EQUAL_TO = - T.let( - :IS_GREATER_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN = - T.let( - :IS_LESS_THAN, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN_OR_EQUAL_TO = - T.let( - :IS_LESS_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ] - ) - end - def self.values - end - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - module Value - extend Lithic::Internal::Type::Union - - Variants = - T.type_alias { T.any(String, Integer, T::Array[String]) } - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ] - ) - end - def self.variants - end - - StringArray = - T.let( - Lithic::Internal::Type::ArrayOf[String], - Lithic::Internal::Type::Converter - ) - end - end - end - sig do override.returns( T::Array[ @@ -895,7 +324,7 @@ module Lithic Lithic::AuthRules::VelocityLimitParams::OrHash, Lithic::AuthRules::MerchantLockParameters::OrHash, Lithic::AuthRules::Conditional3DSActionParameters::OrHash, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::OrHash + Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash ), version: Integer ).returns(T.attached_class) @@ -932,581 +361,10 @@ module Lithic Lithic::AuthRules::VelocityLimitParams, Lithic::AuthRules::MerchantLockParameters, Lithic::AuthRules::Conditional3DSActionParameters, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters + Lithic::AuthRules::ConditionalAuthorizationActionParameters ) end - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters, - Lithic::Internal::AnyHash - ) - end - - # The action to take if the conditions are met. - sig do - returns( - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - end - attr_accessor :action - - sig do - returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - ) - end - attr_accessor :conditions - - sig do - params( - action: - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::OrHash - ] - ).returns(T.attached_class) - end - def self.new( - # The action to take if the conditions are met. - action:, - conditions: - ) - end - - sig do - override.returns( - { - action: - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - } - ) - end - def to_hash - end - - # The action to take if the conditions are met. - module Action - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DECLINE = - T.let( - :DECLINE, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - CHALLENGE = - T.let( - :CHALLENGE, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Condition < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition, - Lithic::Internal::AnyHash - ) - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ) - end - attr_reader :attribute - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol - ).void - end - attr_writer :attribute - - # The operation to apply to the attribute - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - ) - end - attr_reader :operation - - sig do - params( - operation: - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol - ).void - end - attr_writer :operation - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ) - ) - end - attr_reader :value - - sig do - params( - value: - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).void - end - attr_writer :value - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol, - operation: - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol, - value: - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).returns(T.attached_class) - end - def self.new( - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - attribute: nil, - # The operation to apply to the attribute - operation: nil, - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - value: nil - ) - end - - sig do - override.returns( - { - attribute: - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol, - operation: - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol, - value: - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - } - ) - end - def to_hash - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - module Attribute - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MCC = - T.let( - :MCC, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - COUNTRY = - T.let( - :COUNTRY, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CURRENCY = - T.let( - :CURRENCY, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - MERCHANT_ID = - T.let( - :MERCHANT_ID, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - DESCRIPTOR = - T.let( - :DESCRIPTOR, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - LIABILITY_SHIFT = - T.let( - :LIABILITY_SHIFT, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PAN_ENTRY_MODE = - T.let( - :PAN_ENTRY_MODE, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_AMOUNT = - T.let( - :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, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_15_M = - T.let( - :CARD_TRANSACTION_COUNT_15M, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_1_H = - T.let( - :CARD_TRANSACTION_COUNT_1H, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_24_H = - T.let( - :CARD_TRANSACTION_COUNT_24H, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_STATE = - T.let( - :CARD_STATE, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_ENTERED = - T.let( - :PIN_ENTERED, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_STATUS = - T.let( - :PIN_STATUS, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - WALLET_TYPE = - T.let( - :WALLET_TYPE, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_INITIATOR = - T.let( - :TRANSACTION_INITIATOR, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ADDRESS_MATCH = - T.let( - :ADDRESS_MATCH, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The operation to apply to the attribute - module Operation - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - IS_ONE_OF = - T.let( - :IS_ONE_OF, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_ONE_OF = - T.let( - :IS_NOT_ONE_OF, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - MATCHES = - T.let( - :MATCHES, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - DOES_NOT_MATCH = - T.let( - :DOES_NOT_MATCH, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_EQUAL_TO = - T.let( - :IS_EQUAL_TO, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_EQUAL_TO = - T.let( - :IS_NOT_EQUAL_TO, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN = - T.let( - :IS_GREATER_THAN, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN_OR_EQUAL_TO = - T.let( - :IS_GREATER_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN = - T.let( - :IS_LESS_THAN, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN_OR_EQUAL_TO = - T.let( - :IS_LESS_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ] - ) - end - def self.values - end - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - module Value - extend Lithic::Internal::Type::Union - - Variants = - T.type_alias { T.any(String, Integer, T::Array[String]) } - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ] - ) - end - def self.variants - end - - StringArray = - T.let( - Lithic::Internal::Type::ArrayOf[String], - Lithic::Internal::Type::Converter - ) - end - end - end - sig do override.returns( T::Array[ diff --git a/rbi/lithic/models/auth_rules/v2_update_response.rbi b/rbi/lithic/models/auth_rules/v2_update_response.rbi index 67861af7..17243f47 100644 --- a/rbi/lithic/models/auth_rules/v2_update_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_update_response.rbi @@ -238,7 +238,7 @@ module Lithic Lithic::AuthRules::VelocityLimitParams::OrHash, Lithic::AuthRules::MerchantLockParameters::OrHash, Lithic::AuthRules::Conditional3DSActionParameters::OrHash, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::OrHash + Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash ), version: Integer ).returns(T.attached_class) @@ -275,581 +275,10 @@ module Lithic Lithic::AuthRules::VelocityLimitParams, Lithic::AuthRules::MerchantLockParameters, Lithic::AuthRules::Conditional3DSActionParameters, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters + Lithic::AuthRules::ConditionalAuthorizationActionParameters ) end - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters, - Lithic::Internal::AnyHash - ) - end - - # The action to take if the conditions are met. - sig do - returns( - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - end - attr_accessor :action - - sig do - returns( - T::Array[ - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - ) - end - attr_accessor :conditions - - sig do - params( - action: - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::OrHash - ] - ).returns(T.attached_class) - end - def self.new( - # The action to take if the conditions are met. - action:, - conditions: - ) - end - - sig do - override.returns( - { - action: - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - } - ) - end - def to_hash - end - - # The action to take if the conditions are met. - module Action - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DECLINE = - T.let( - :DECLINE, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - CHALLENGE = - T.let( - :CHALLENGE, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Condition < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition, - Lithic::Internal::AnyHash - ) - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ) - end - attr_reader :attribute - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol - ).void - end - attr_writer :attribute - - # The operation to apply to the attribute - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - ) - end - attr_reader :operation - - sig do - params( - operation: - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol - ).void - end - attr_writer :operation - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ) - ) - end - attr_reader :value - - sig do - params( - value: - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).void - end - attr_writer :value - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol, - operation: - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol, - value: - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).returns(T.attached_class) - end - def self.new( - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - attribute: nil, - # The operation to apply to the attribute - operation: nil, - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - value: nil - ) - end - - sig do - override.returns( - { - attribute: - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol, - operation: - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol, - value: - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - } - ) - end - def to_hash - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - module Attribute - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MCC = - T.let( - :MCC, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - COUNTRY = - T.let( - :COUNTRY, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CURRENCY = - T.let( - :CURRENCY, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - MERCHANT_ID = - T.let( - :MERCHANT_ID, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - DESCRIPTOR = - T.let( - :DESCRIPTOR, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - LIABILITY_SHIFT = - T.let( - :LIABILITY_SHIFT, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PAN_ENTRY_MODE = - T.let( - :PAN_ENTRY_MODE, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_AMOUNT = - T.let( - :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, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_15_M = - T.let( - :CARD_TRANSACTION_COUNT_15M, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_1_H = - T.let( - :CARD_TRANSACTION_COUNT_1H, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_24_H = - T.let( - :CARD_TRANSACTION_COUNT_24H, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_STATE = - T.let( - :CARD_STATE, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_ENTERED = - T.let( - :PIN_ENTERED, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_STATUS = - T.let( - :PIN_STATUS, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - WALLET_TYPE = - T.let( - :WALLET_TYPE, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_INITIATOR = - T.let( - :TRANSACTION_INITIATOR, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ADDRESS_MATCH = - T.let( - :ADDRESS_MATCH, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The operation to apply to the attribute - module Operation - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - IS_ONE_OF = - T.let( - :IS_ONE_OF, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_ONE_OF = - T.let( - :IS_NOT_ONE_OF, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - MATCHES = - T.let( - :MATCHES, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - DOES_NOT_MATCH = - T.let( - :DOES_NOT_MATCH, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_EQUAL_TO = - T.let( - :IS_EQUAL_TO, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_EQUAL_TO = - T.let( - :IS_NOT_EQUAL_TO, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN = - T.let( - :IS_GREATER_THAN, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN_OR_EQUAL_TO = - T.let( - :IS_GREATER_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN = - T.let( - :IS_LESS_THAN, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN_OR_EQUAL_TO = - T.let( - :IS_LESS_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ] - ) - end - def self.values - end - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - module Value - extend Lithic::Internal::Type::Union - - Variants = - T.type_alias { T.any(String, Integer, T::Array[String]) } - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ] - ) - end - def self.variants - end - - StringArray = - T.let( - Lithic::Internal::Type::ArrayOf[String], - Lithic::Internal::Type::Converter - ) - end - end - end - sig do override.returns( T::Array[ @@ -892,7 +321,7 @@ module Lithic Lithic::AuthRules::VelocityLimitParams::OrHash, Lithic::AuthRules::MerchantLockParameters::OrHash, Lithic::AuthRules::Conditional3DSActionParameters::OrHash, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::OrHash + Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash ), version: Integer ).returns(T.attached_class) @@ -929,581 +358,10 @@ module Lithic Lithic::AuthRules::VelocityLimitParams, Lithic::AuthRules::MerchantLockParameters, Lithic::AuthRules::Conditional3DSActionParameters, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters + Lithic::AuthRules::ConditionalAuthorizationActionParameters ) end - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters, - Lithic::Internal::AnyHash - ) - end - - # The action to take if the conditions are met. - sig do - returns( - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - end - attr_accessor :action - - sig do - returns( - T::Array[ - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - ) - end - attr_accessor :conditions - - sig do - params( - action: - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::OrHash - ] - ).returns(T.attached_class) - end - def self.new( - # The action to take if the conditions are met. - action:, - conditions: - ) - end - - sig do - override.returns( - { - action: - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol, - conditions: - T::Array[ - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition - ] - } - ) - end - def to_hash - end - - # The action to take if the conditions are met. - module Action - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DECLINE = - T.let( - :DECLINE, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - CHALLENGE = - T.let( - :CHALLENGE, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Condition < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition, - Lithic::Internal::AnyHash - ) - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ) - end - attr_reader :attribute - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol - ).void - end - attr_writer :attribute - - # The operation to apply to the attribute - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - ) - end - attr_reader :operation - - sig do - params( - operation: - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol - ).void - end - attr_writer :operation - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ) - ) - end - attr_reader :value - - sig do - params( - value: - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).void - end - attr_writer :value - - sig do - params( - attribute: - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol, - operation: - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol, - value: - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ).returns(T.attached_class) - end - def self.new( - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - attribute: nil, - # The operation to apply to the attribute - operation: nil, - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - value: nil - ) - end - - sig do - override.returns( - { - attribute: - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol, - operation: - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol, - value: - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - } - ) - end - def to_hash - end - - # The attribute to target. - # - # The following attributes may be targeted: - # - # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a - # business by the types of goods or services it provides. - # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all - # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for - # Netherlands Antilles. - # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of - # the transaction. - # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor - # (merchant). - # - `DESCRIPTOR`: Short description of card acceptor. - # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer - # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or - # `TOKEN_AUTHENTICATED`. - # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number - # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`, - # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`, - # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`, - # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`. - # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer - # 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, - # where the raw score has a range of 0-99, Lithic will normalize the score by - # multiplying the raw score by 10x. - # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the - # trailing 15 minutes before the authorization. - # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the - # trailing hour up and until the authorization. - # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the - # trailing 24 hours up and until the authorization. - # - `CARD_STATE`: The current state of the card associated with the transaction. - # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, - # `PENDING_FULFILLMENT`. - # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction. - # Valid values are `TRUE`, `FALSE`. - # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`, - # `OK`, `BLOCKED`. - # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the - # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, - # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. - # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates - # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. - # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address - # data with the cardholder KYC data if it exists. Valid values are `MATCH`, - # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. - module Attribute - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MCC = - T.let( - :MCC, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - COUNTRY = - T.let( - :COUNTRY, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CURRENCY = - T.let( - :CURRENCY, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - MERCHANT_ID = - T.let( - :MERCHANT_ID, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - DESCRIPTOR = - T.let( - :DESCRIPTOR, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - LIABILITY_SHIFT = - T.let( - :LIABILITY_SHIFT, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PAN_ENTRY_MODE = - T.let( - :PAN_ENTRY_MODE, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_AMOUNT = - T.let( - :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, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_15_M = - T.let( - :CARD_TRANSACTION_COUNT_15M, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_1_H = - T.let( - :CARD_TRANSACTION_COUNT_1H, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_TRANSACTION_COUNT_24_H = - T.let( - :CARD_TRANSACTION_COUNT_24H, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - CARD_STATE = - T.let( - :CARD_STATE, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_ENTERED = - T.let( - :PIN_ENTERED, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - PIN_STATUS = - T.let( - :PIN_STATUS, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - WALLET_TYPE = - T.let( - :WALLET_TYPE, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - TRANSACTION_INITIATOR = - T.let( - :TRANSACTION_INITIATOR, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - ADDRESS_MATCH = - T.let( - :ADDRESS_MATCH, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The operation to apply to the attribute - module Operation - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - IS_ONE_OF = - T.let( - :IS_ONE_OF, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_ONE_OF = - T.let( - :IS_NOT_ONE_OF, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - MATCHES = - T.let( - :MATCHES, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - DOES_NOT_MATCH = - T.let( - :DOES_NOT_MATCH, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_EQUAL_TO = - T.let( - :IS_EQUAL_TO, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_NOT_EQUAL_TO = - T.let( - :IS_NOT_EQUAL_TO, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN = - T.let( - :IS_GREATER_THAN, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_GREATER_THAN_OR_EQUAL_TO = - T.let( - :IS_GREATER_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN = - T.let( - :IS_LESS_THAN, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - IS_LESS_THAN_OR_EQUAL_TO = - T.let( - :IS_LESS_THAN_OR_EQUAL_TO, - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol - ] - ) - end - def self.values - end - end - - # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH` - module Value - extend Lithic::Internal::Type::Union - - Variants = - T.type_alias { T.any(String, Integer, T::Array[String]) } - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants - ] - ) - end - def self.variants - end - - StringArray = - T.let( - Lithic::Internal::Type::ArrayOf[String], - Lithic::Internal::Type::Converter - ) - end - end - end - sig do override.returns( T::Array[ diff --git a/rbi/lithic/models/auth_rules/velocity_limit_params.rbi b/rbi/lithic/models/auth_rules/velocity_limit_params.rbi index ec212024..a7fa0ed9 100644 --- a/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +++ b/rbi/lithic/models/auth_rules/velocity_limit_params.rbi @@ -22,20 +22,15 @@ 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). + # Velocity over the current day since 00:00 / 12 AM in Eastern Time sig do returns( T.any( - Integer, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow::OrSymbol, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear + Lithic::AuthRules::VelocityLimitPeriod::TrailingWindowObject, + Lithic::AuthRules::VelocityLimitPeriod::FixedWindowDay, + Lithic::AuthRules::VelocityLimitPeriod::FixedWindowWeek, + Lithic::AuthRules::VelocityLimitPeriod::FixedWindowMonth, + Lithic::AuthRules::VelocityLimitPeriod::FixedWindowYear ) ) end @@ -64,13 +59,11 @@ module Lithic filters: Lithic::AuthRules::VelocityLimitParams::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 + Lithic::AuthRules::VelocityLimitPeriod::TrailingWindowObject::OrHash, + Lithic::AuthRules::VelocityLimitPeriod::FixedWindowDay::OrHash, + Lithic::AuthRules::VelocityLimitPeriod::FixedWindowWeek::OrHash, + Lithic::AuthRules::VelocityLimitPeriod::FixedWindowMonth::OrHash, + Lithic::AuthRules::VelocityLimitPeriod::FixedWindowYear::OrHash ), scope: Lithic::AuthRules::VelocityLimitParams::Scope::OrSymbol, limit_amount: T.nilable(Integer), @@ -79,10 +72,7 @@ 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). + # Velocity over the current day since 00:00 / 12 AM in Eastern Time period:, # The scope the velocity is calculated for scope:, @@ -105,13 +95,11 @@ module Lithic filters: Lithic::AuthRules::VelocityLimitParams::Filters, period: T.any( - Integer, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow::OrSymbol, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear + Lithic::AuthRules::VelocityLimitPeriod::TrailingWindowObject, + Lithic::AuthRules::VelocityLimitPeriod::FixedWindowDay, + Lithic::AuthRules::VelocityLimitPeriod::FixedWindowWeek, + Lithic::AuthRules::VelocityLimitPeriod::FixedWindowMonth, + Lithic::AuthRules::VelocityLimitPeriod::FixedWindowYear ), scope: Lithic::AuthRules::VelocityLimitParams::Scope::OrSymbol, limit_amount: T.nilable(Integer), 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 deleted file mode 100644 index 6f2776c9..00000000 --- a/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +++ /dev/null @@ -1,557 +0,0 @@ -# typed: strong - -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 - - Variants = - T.type_alias do - T.any( - Integer, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow::TaggedSymbol, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear - ) - 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. - # - `WEEK`: Velocity over the current week since 00:00 / 12 AM on Monday in - # Eastern Time. - # - `MONTH`: Velocity over the current month since 00:00 / 12 AM on the first of - # the month in Eastern Time. - # - `YEAR`: Velocity over the current year since 00:00 / 12 AM on January 1st in - # Eastern Time. - module FixedWindow - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DAY = - T.let( - :DAY, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow::TaggedSymbol - ) - WEEK = - T.let( - :WEEK, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow::TaggedSymbol - ) - MONTH = - T.let( - :MONTH, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow::TaggedSymbol - ) - YEAR = - T.let( - :YEAR, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow::TaggedSymbol - ] - ) - end - def self.values - end - end - - class TrailingWindowObject < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject, - Lithic::Internal::AnyHash - ) - end - - # 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 { returns(T.nilable(Integer)) } - attr_reader :duration - - sig { params(duration: Integer).void } - attr_writer :duration - - sig do - returns( - T.nilable( - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::Type::OrSymbol - ) - ) - end - attr_reader :type - - sig do - params( - type: - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::Type::OrSymbol - ).void - end - attr_writer :type - - sig do - params( - duration: Integer, - type: - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::Type::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # 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). - duration: nil, - type: nil - ) - end - - sig do - override.returns( - { - duration: Integer, - type: - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::Type::OrSymbol - } - ) - end - def to_hash - end - - module Type - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CUSTOM = - T.let( - :CUSTOM, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class FixedWindowDay < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay, - Lithic::Internal::AnyHash - ) - end - - sig do - returns( - T.nilable( - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::Type::OrSymbol - ) - ) - end - attr_reader :type - - sig do - params( - type: - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::Type::OrSymbol - ).void - end - attr_writer :type - - # Velocity over the current day since 00:00 / 12 AM in Eastern Time - sig do - params( - type: - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::Type::OrSymbol - ).returns(T.attached_class) - end - def self.new(type: nil) - end - - sig do - override.returns( - { - type: - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::Type::OrSymbol - } - ) - end - def to_hash - end - - module Type - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DAY = - T.let( - :DAY, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class FixedWindowWeek < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek, - Lithic::Internal::AnyHash - ) - end - - # The day of the week to start the week from. Following ISO-8601, 1 is Monday and - # 7 is Sunday. Defaults to Monday if not specified. - sig { returns(T.nilable(Integer)) } - attr_reader :day_of_week - - sig { params(day_of_week: Integer).void } - attr_writer :day_of_week - - sig do - returns( - T.nilable( - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::Type::OrSymbol - ) - ) - end - attr_reader :type - - sig do - params( - type: - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::Type::OrSymbol - ).void - end - attr_writer :type - - # Velocity over the current week since 00:00 / 12 AM in Eastern Time on specified - # `day_of_week` - sig do - params( - day_of_week: Integer, - type: - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::Type::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # The day of the week to start the week from. Following ISO-8601, 1 is Monday and - # 7 is Sunday. Defaults to Monday if not specified. - day_of_week: nil, - type: nil - ) - end - - sig do - override.returns( - { - day_of_week: Integer, - type: - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::Type::OrSymbol - } - ) - end - def to_hash - end - - module Type - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - WEEK = - T.let( - :WEEK, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class FixedWindowMonth < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth, - Lithic::Internal::AnyHash - ) - end - - # The day of the month to start from. Accepts values from 1 to 31, and will reset - # at the end of the month if the day exceeds the number of days in the month. - # Defaults to the 1st of the month if not specified. - sig { returns(T.nilable(Integer)) } - attr_reader :day_of_month - - sig { params(day_of_month: Integer).void } - attr_writer :day_of_month - - sig do - returns( - T.nilable( - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::Type::OrSymbol - ) - ) - end - attr_reader :type - - sig do - params( - type: - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::Type::OrSymbol - ).void - end - attr_writer :type - - # Velocity over the current month since 00:00 / 12 AM in Eastern Time on specified - # `day_of_month`. - sig do - params( - day_of_month: Integer, - type: - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::Type::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # The day of the month to start from. Accepts values from 1 to 31, and will reset - # at the end of the month if the day exceeds the number of days in the month. - # Defaults to the 1st of the month if not specified. - day_of_month: nil, - type: nil - ) - end - - sig do - override.returns( - { - day_of_month: Integer, - type: - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::Type::OrSymbol - } - ) - end - def to_hash - end - - module Type - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - MONTH = - T.let( - :MONTH, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class FixedWindowYear < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear, - Lithic::Internal::AnyHash - ) - end - - # The day of the month to start from. Defaults to the 1st of the month if not - # specified. - sig { returns(T.nilable(Integer)) } - attr_reader :day_of_month - - sig { params(day_of_month: Integer).void } - attr_writer :day_of_month - - # The month to start from. 1 is January and 12 is December. Defaults to January if - # not specified. - sig { returns(T.nilable(Integer)) } - attr_reader :month - - sig { params(month: Integer).void } - attr_writer :month - - sig do - returns( - T.nilable( - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::Type::OrSymbol - ) - ) - end - attr_reader :type - - sig do - params( - type: - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::Type::OrSymbol - ).void - end - attr_writer :type - - # 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. - sig do - params( - day_of_month: Integer, - month: Integer, - type: - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::Type::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # The day of the month to start from. Defaults to the 1st of the month if not - # specified. - day_of_month: nil, - # The month to start from. 1 is January and 12 is December. Defaults to January if - # not specified. - month: nil, - type: nil - ) - end - - sig do - override.returns( - { - day_of_month: Integer, - month: Integer, - type: - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::Type::OrSymbol - } - ) - end - def to_hash - end - - module Type - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - YEAR = - T.let( - :YEAR, - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - sig do - override.returns( - T::Array[ - Lithic::AuthRules::VelocityLimitParamsPeriodWindow::Variants - ] - ) - end - def self.variants - end - end - end - end -end diff --git a/rbi/lithic/models/auth_rules/velocity_limit_period.rbi b/rbi/lithic/models/auth_rules/velocity_limit_period.rbi new file mode 100644 index 00000000..82871b54 --- /dev/null +++ b/rbi/lithic/models/auth_rules/velocity_limit_period.rbi @@ -0,0 +1,223 @@ +# typed: strong + +module Lithic + module Models + module AuthRules + # Velocity over the current day since 00:00 / 12 AM in Eastern Time + module VelocityLimitPeriod + extend Lithic::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + Lithic::AuthRules::VelocityLimitPeriod::TrailingWindowObject, + Lithic::AuthRules::VelocityLimitPeriod::FixedWindowDay, + Lithic::AuthRules::VelocityLimitPeriod::FixedWindowWeek, + Lithic::AuthRules::VelocityLimitPeriod::FixedWindowMonth, + Lithic::AuthRules::VelocityLimitPeriod::FixedWindowYear + ) + end + + class TrailingWindowObject < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AuthRules::VelocityLimitPeriod::TrailingWindowObject, + Lithic::Internal::AnyHash + ) + end + + # 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 { returns(Integer) } + attr_accessor :duration + + sig { returns(Symbol) } + attr_accessor :type + + sig do + params(duration: Integer, type: Symbol).returns(T.attached_class) + end + def self.new( + # 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). + duration:, + type: :CUSTOM + ) + end + + sig { override.returns({ duration: Integer, type: Symbol }) } + def to_hash + end + end + + class FixedWindowDay < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AuthRules::VelocityLimitPeriod::FixedWindowDay, + Lithic::Internal::AnyHash + ) + end + + sig { returns(Symbol) } + attr_accessor :type + + # Velocity over the current day since 00:00 / 12 AM in Eastern Time + sig { params(type: Symbol).returns(T.attached_class) } + def self.new(type: :DAY) + end + + sig { override.returns({ type: Symbol }) } + def to_hash + end + end + + class FixedWindowWeek < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AuthRules::VelocityLimitPeriod::FixedWindowWeek, + Lithic::Internal::AnyHash + ) + end + + sig { returns(Symbol) } + attr_accessor :type + + # The day of the week to start the week from. Following ISO-8601, 1 is Monday and + # 7 is Sunday. Defaults to Monday if not specified. + sig { returns(T.nilable(Integer)) } + attr_reader :day_of_week + + sig { params(day_of_week: Integer).void } + attr_writer :day_of_week + + # Velocity over the current week since 00:00 / 12 AM in Eastern Time on specified + # `day_of_week` + sig do + params(day_of_week: Integer, type: Symbol).returns(T.attached_class) + end + def self.new( + # The day of the week to start the week from. Following ISO-8601, 1 is Monday and + # 7 is Sunday. Defaults to Monday if not specified. + day_of_week: nil, + type: :WEEK + ) + end + + sig { override.returns({ type: Symbol, day_of_week: Integer }) } + def to_hash + end + end + + class FixedWindowMonth < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AuthRules::VelocityLimitPeriod::FixedWindowMonth, + Lithic::Internal::AnyHash + ) + end + + sig { returns(Symbol) } + attr_accessor :type + + # The day of the month to start from. Accepts values from 1 to 31, and will reset + # at the end of the month if the day exceeds the number of days in the month. + # Defaults to the 1st of the month if not specified. + sig { returns(T.nilable(Integer)) } + attr_reader :day_of_month + + sig { params(day_of_month: Integer).void } + attr_writer :day_of_month + + # Velocity over the current month since 00:00 / 12 AM in Eastern Time on specified + # `day_of_month`. + sig do + params(day_of_month: Integer, type: Symbol).returns( + T.attached_class + ) + end + def self.new( + # The day of the month to start from. Accepts values from 1 to 31, and will reset + # at the end of the month if the day exceeds the number of days in the month. + # Defaults to the 1st of the month if not specified. + day_of_month: nil, + type: :MONTH + ) + end + + sig { override.returns({ type: Symbol, day_of_month: Integer }) } + def to_hash + end + end + + class FixedWindowYear < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::AuthRules::VelocityLimitPeriod::FixedWindowYear, + Lithic::Internal::AnyHash + ) + end + + sig { returns(Symbol) } + attr_accessor :type + + # The day of the month to start from. Defaults to the 1st of the month if not + # specified. + sig { returns(T.nilable(Integer)) } + attr_reader :day_of_month + + sig { params(day_of_month: Integer).void } + attr_writer :day_of_month + + # The month to start from. 1 is January and 12 is December. Defaults to January if + # not specified. + sig { returns(T.nilable(Integer)) } + attr_reader :month + + sig { params(month: Integer).void } + attr_writer :month + + # 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. + sig do + params(day_of_month: Integer, month: Integer, type: Symbol).returns( + T.attached_class + ) + end + def self.new( + # The day of the month to start from. Defaults to the 1st of the month if not + # specified. + day_of_month: nil, + # The month to start from. 1 is January and 12 is December. Defaults to January if + # not specified. + month: nil, + type: :YEAR + ) + end + + sig do + override.returns( + { type: Symbol, day_of_month: Integer, month: Integer } + ) + end + def to_hash + end + end + + sig do + override.returns( + T::Array[Lithic::AuthRules::VelocityLimitPeriod::Variants] + ) + end + def self.variants + end + end + end + end +end diff --git a/rbi/lithic/models/book_transfer_response.rbi b/rbi/lithic/models/book_transfer_response.rbi index 6ba0677d..2ad7b838 100644 --- a/rbi/lithic/models/book_transfer_response.rbi +++ b/rbi/lithic/models/book_transfer_response.rbi @@ -255,7 +255,9 @@ module Lithic sig do returns( - Lithic::BookTransferResponse::Event::DetailedResults::TaggedSymbol + T::Array[ + Lithic::BookTransferResponse::Event::DetailedResult::TaggedSymbol + ] ) end attr_accessor :detailed_results @@ -286,7 +288,9 @@ module Lithic amount: Integer, created: Time, detailed_results: - Lithic::BookTransferResponse::Event::DetailedResults::OrSymbol, + T::Array[ + Lithic::BookTransferResponse::Event::DetailedResult::OrSymbol + ], memo: String, result: Lithic::BookTransferResponse::Event::Result::OrSymbol, subtype: String, @@ -321,7 +325,9 @@ module Lithic amount: Integer, created: Time, detailed_results: - Lithic::BookTransferResponse::Event::DetailedResults::TaggedSymbol, + T::Array[ + Lithic::BookTransferResponse::Event::DetailedResult::TaggedSymbol + ], memo: String, result: Lithic::BookTransferResponse::Event::Result::TaggedSymbol, subtype: String, @@ -332,33 +338,30 @@ module Lithic def to_hash end - module DetailedResults + module DetailedResult extend Lithic::Internal::Type::Enum TaggedSymbol = T.type_alias do - T.all( - Symbol, - Lithic::BookTransferResponse::Event::DetailedResults - ) + T.all(Symbol, Lithic::BookTransferResponse::Event::DetailedResult) end OrSymbol = T.type_alias { T.any(Symbol, String) } APPROVED = T.let( :APPROVED, - Lithic::BookTransferResponse::Event::DetailedResults::TaggedSymbol + Lithic::BookTransferResponse::Event::DetailedResult::TaggedSymbol ) FUNDS_INSUFFICIENT = T.let( :FUNDS_INSUFFICIENT, - Lithic::BookTransferResponse::Event::DetailedResults::TaggedSymbol + Lithic::BookTransferResponse::Event::DetailedResult::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::BookTransferResponse::Event::DetailedResults::TaggedSymbol + Lithic::BookTransferResponse::Event::DetailedResult::TaggedSymbol ] ) end diff --git a/rbi/lithic/models/dispute.rbi b/rbi/lithic/models/dispute.rbi index dc0265fb..d3a97c46 100644 --- a/rbi/lithic/models/dispute.rbi +++ b/rbi/lithic/models/dispute.rbi @@ -6,237 +6,129 @@ module Lithic OrHash = T.type_alias { T.any(Lithic::Dispute, Lithic::Internal::AnyHash) } - # Globally unique identifier. + # Token assigned by Lithic for the dispute, in UUID format. sig { returns(String) } attr_accessor :token - # Amount under dispute. May be different from the original transaction amount. - sig { returns(Integer) } - attr_accessor :amount + # Token for the account associated with the dispute, in UUID format. + sig { returns(String) } + attr_accessor :account_token + + # Token for the card used in the dispute, in UUID format. + sig { returns(String) } + attr_accessor :card_token - # Date dispute entered arbitration. - sig { returns(T.nilable(Time)) } - attr_accessor :arbitration_date + # Identifier assigned by the network for this dispute. + sig { returns(T.nilable(String)) } + attr_accessor :case_id - # Timestamp of when first Dispute was reported. + # When the dispute was created. sig { returns(Time) } attr_accessor :created - # Date that the dispute was filed by the customer making the dispute. - sig { returns(T.nilable(Time)) } - attr_accessor :customer_filed_date + # Three-letter ISO 4217 currency code. + sig { returns(String) } + attr_accessor :currency - # End customer description of the reason for the dispute. - sig { returns(T.nilable(String)) } - attr_accessor :customer_note + # Dispute resolution outcome + sig { returns(T.nilable(Lithic::Dispute::Disposition::OrSymbol)) } + attr_accessor :disposition - # Unique identifiers for the dispute from the network. - sig { returns(T.nilable(T::Array[String])) } - attr_accessor :network_claim_ids + # Chronological list of events that have occurred in the dispute lifecycle + sig { returns(T::Array[Lithic::Dispute::Event]) } + attr_accessor :events - # Date that the dispute was submitted to the network. - sig { returns(T.nilable(Time)) } - attr_accessor :network_filed_date + # Current breakdown of how liability is allocated for the disputed amount + sig { returns(Lithic::Dispute::LiabilityAllocation) } + attr_reader :liability_allocation - # Network reason code used to file the dispute. - sig { returns(T.nilable(String)) } - attr_accessor :network_reason_code + sig do + params( + liability_allocation: Lithic::Dispute::LiabilityAllocation::OrHash + ).void + end + attr_writer :liability_allocation - # Date dispute entered pre-arbitration. - sig { returns(T.nilable(Time)) } - attr_accessor :prearbitration_date + sig { returns(Lithic::Dispute::Merchant) } + attr_reader :merchant + + sig { params(merchant: Lithic::Dispute::Merchant::OrHash).void } + attr_writer :merchant + + # Card network handling the dispute. + sig { returns(Lithic::Dispute::Network::OrSymbol) } + attr_accessor :network + + # Current status of the dispute. + sig { returns(T.nilable(Lithic::Dispute::Status::OrSymbol)) } + attr_accessor :status + + # Contains identifiers for the transaction and specific event within being + # disputed; null if no transaction can be identified + sig { returns(T.nilable(Lithic::Dispute::TransactionSeries)) } + attr_reader :transaction_series - # Unique identifier for the dispute from the network. If there are multiple, this - # will be the first claim id set by the network - sig { returns(T.nilable(String)) } - attr_accessor :primary_claim_id - - # Dispute reason: - # - # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. - # - `CANCELLED`: Transaction was cancelled by the customer. - # - `DUPLICATED`: The transaction was a duplicate. - # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. - # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. - # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable - # merchant activity. - # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as - # described. - # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. - # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. - # - `MISSING_AUTH`: The transaction was missing authorization. - # - `OTHER`: Other reason. - # - `PROCESSING_ERROR`: Processing error. - # - `REFUND_NOT_PROCESSED`: The refund was not processed. - # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not - # cancelled. - sig { returns(Lithic::Dispute::Reason::TaggedSymbol) } - attr_accessor :reason - - # Date the representment was received. - sig { returns(T.nilable(Time)) } - attr_accessor :representment_date - - # Date that the dispute was resolved. - sig { returns(T.nilable(Time)) } - attr_accessor :resolution_date - - # Note by Dispute team on the case resolution. - sig { returns(T.nilable(String)) } - attr_accessor :resolution_note - - # Reason for the dispute resolution: - # - # - `CASE_LOST`: This case was lost at final arbitration. - # - `NETWORK_REJECTED`: Network rejected. - # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. - # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. - # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. - # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. - # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. - # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. - # - `PAST_FILING_DATE`: Past filing date. - # - `PREARBITRATION_REJECTED`: Prearbitration rejected. - # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. - # - `REFUNDED`: Refunded. - # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. - # - `WITHDRAWN`: Withdrawn. - # - `WON_ARBITRATION`: Won arbitration. - # - `WON_FIRST_CHARGEBACK`: Won first chargeback. - # - `WON_PREARBITRATION`: Won prearbitration. sig do - returns(T.nilable(Lithic::Dispute::ResolutionReason::TaggedSymbol)) + params( + transaction_series: + T.nilable(Lithic::Dispute::TransactionSeries::OrHash) + ).void end - attr_accessor :resolution_reason - - # Status types: - # - # - `NEW` - New dispute case is opened. - # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more - # information. - # - `SUBMITTED` - Dispute is submitted to the card network. - # - `REPRESENTMENT` - Case has entered second presentment. - # - `PREARBITRATION` - Case has entered prearbitration. - # - `ARBITRATION` - Case has entered arbitration. - # - `CASE_WON` - Case was won and credit will be issued. - # - `CASE_CLOSED` - Case was lost or withdrawn. - sig { returns(Lithic::Dispute::Status::TaggedSymbol) } - attr_accessor :status + attr_writer :transaction_series - # The transaction that is being disputed. A transaction can only be disputed once - # but may have multiple dispute cases. - sig { returns(String) } - attr_accessor :transaction_token + # When the dispute was last updated. + sig { returns(Time) } + attr_accessor :updated - # Dispute. + # The Dispute object tracks the progression of a dispute throughout its lifecycle. sig do params( token: String, - amount: Integer, - arbitration_date: T.nilable(Time), + account_token: String, + card_token: String, + case_id: T.nilable(String), created: Time, - customer_filed_date: T.nilable(Time), - customer_note: T.nilable(String), - network_claim_ids: T.nilable(T::Array[String]), - network_filed_date: T.nilable(Time), - network_reason_code: T.nilable(String), - prearbitration_date: T.nilable(Time), - primary_claim_id: T.nilable(String), - reason: Lithic::Dispute::Reason::OrSymbol, - representment_date: T.nilable(Time), - resolution_date: T.nilable(Time), - resolution_note: T.nilable(String), - resolution_reason: - T.nilable(Lithic::Dispute::ResolutionReason::OrSymbol), - status: Lithic::Dispute::Status::OrSymbol, - transaction_token: String + currency: String, + disposition: T.nilable(Lithic::Dispute::Disposition::OrSymbol), + events: T::Array[Lithic::Dispute::Event::OrHash], + liability_allocation: Lithic::Dispute::LiabilityAllocation::OrHash, + merchant: Lithic::Dispute::Merchant::OrHash, + network: Lithic::Dispute::Network::OrSymbol, + status: T.nilable(Lithic::Dispute::Status::OrSymbol), + transaction_series: + T.nilable(Lithic::Dispute::TransactionSeries::OrHash), + updated: Time ).returns(T.attached_class) end def self.new( - # Globally unique identifier. + # Token assigned by Lithic for the dispute, in UUID format. token:, - # Amount under dispute. May be different from the original transaction amount. - amount:, - # Date dispute entered arbitration. - arbitration_date:, - # Timestamp of when first Dispute was reported. + # Token for the account associated with the dispute, in UUID format. + account_token:, + # Token for the card used in the dispute, in UUID format. + card_token:, + # Identifier assigned by the network for this dispute. + case_id:, + # When the dispute was created. created:, - # Date that the dispute was filed by the customer making the dispute. - customer_filed_date:, - # End customer description of the reason for the dispute. - customer_note:, - # Unique identifiers for the dispute from the network. - network_claim_ids:, - # Date that the dispute was submitted to the network. - network_filed_date:, - # Network reason code used to file the dispute. - network_reason_code:, - # Date dispute entered pre-arbitration. - prearbitration_date:, - # Unique identifier for the dispute from the network. If there are multiple, this - # will be the first claim id set by the network - primary_claim_id:, - # Dispute reason: - # - # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. - # - `CANCELLED`: Transaction was cancelled by the customer. - # - `DUPLICATED`: The transaction was a duplicate. - # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. - # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. - # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable - # merchant activity. - # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as - # described. - # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. - # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. - # - `MISSING_AUTH`: The transaction was missing authorization. - # - `OTHER`: Other reason. - # - `PROCESSING_ERROR`: Processing error. - # - `REFUND_NOT_PROCESSED`: The refund was not processed. - # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not - # cancelled. - reason:, - # Date the representment was received. - representment_date:, - # Date that the dispute was resolved. - resolution_date:, - # Note by Dispute team on the case resolution. - resolution_note:, - # Reason for the dispute resolution: - # - # - `CASE_LOST`: This case was lost at final arbitration. - # - `NETWORK_REJECTED`: Network rejected. - # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. - # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. - # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. - # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. - # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. - # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. - # - `PAST_FILING_DATE`: Past filing date. - # - `PREARBITRATION_REJECTED`: Prearbitration rejected. - # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. - # - `REFUNDED`: Refunded. - # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. - # - `WITHDRAWN`: Withdrawn. - # - `WON_ARBITRATION`: Won arbitration. - # - `WON_FIRST_CHARGEBACK`: Won first chargeback. - # - `WON_PREARBITRATION`: Won prearbitration. - resolution_reason:, - # Status types: - # - # - `NEW` - New dispute case is opened. - # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more - # information. - # - `SUBMITTED` - Dispute is submitted to the card network. - # - `REPRESENTMENT` - Case has entered second presentment. - # - `PREARBITRATION` - Case has entered prearbitration. - # - `ARBITRATION` - Case has entered arbitration. - # - `CASE_WON` - Case was won and credit will be issued. - # - `CASE_CLOSED` - Case was lost or withdrawn. + # Three-letter ISO 4217 currency code. + currency:, + # Dispute resolution outcome + disposition:, + # Chronological list of events that have occurred in the dispute lifecycle + events:, + # Current breakdown of how liability is allocated for the disputed amount + liability_allocation:, + merchant:, + # Card network handling the dispute. + network:, + # Current status of the dispute. status:, - # The transaction that is being disputed. A transaction can only be disputed once - # but may have multiple dispute cases. - transaction_token: + # Contains identifiers for the transaction and specific event within being + # disputed; null if no transaction can be identified + transaction_series:, + # When the dispute was last updated. + updated: ) end @@ -244,236 +136,811 @@ module Lithic override.returns( { token: String, - amount: Integer, - arbitration_date: T.nilable(Time), + account_token: String, + card_token: String, + case_id: T.nilable(String), created: Time, - customer_filed_date: T.nilable(Time), - customer_note: T.nilable(String), - network_claim_ids: T.nilable(T::Array[String]), - network_filed_date: T.nilable(Time), - network_reason_code: T.nilable(String), - prearbitration_date: T.nilable(Time), - primary_claim_id: T.nilable(String), - reason: Lithic::Dispute::Reason::TaggedSymbol, - representment_date: T.nilable(Time), - resolution_date: T.nilable(Time), - resolution_note: T.nilable(String), - resolution_reason: - T.nilable(Lithic::Dispute::ResolutionReason::TaggedSymbol), - status: Lithic::Dispute::Status::TaggedSymbol, - transaction_token: String + currency: String, + disposition: T.nilable(Lithic::Dispute::Disposition::OrSymbol), + events: T::Array[Lithic::Dispute::Event], + liability_allocation: Lithic::Dispute::LiabilityAllocation, + merchant: Lithic::Dispute::Merchant, + network: Lithic::Dispute::Network::OrSymbol, + status: T.nilable(Lithic::Dispute::Status::OrSymbol), + transaction_series: T.nilable(Lithic::Dispute::TransactionSeries), + updated: Time } ) end def to_hash end - # Dispute reason: - # - # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. - # - `CANCELLED`: Transaction was cancelled by the customer. - # - `DUPLICATED`: The transaction was a duplicate. - # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. - # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. - # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable - # merchant activity. - # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as - # described. - # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. - # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. - # - `MISSING_AUTH`: The transaction was missing authorization. - # - `OTHER`: Other reason. - # - `PROCESSING_ERROR`: Processing error. - # - `REFUND_NOT_PROCESSED`: The refund was not processed. - # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not - # cancelled. - module Reason + # Dispute resolution outcome + module Disposition extend Lithic::Internal::Type::Enum - TaggedSymbol = T.type_alias { T.all(Symbol, Lithic::Dispute::Reason) } + TaggedSymbol = + T.type_alias { T.all(Symbol, Lithic::Dispute::Disposition) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ATM_CASH_MISDISPENSE = - T.let(:ATM_CASH_MISDISPENSE, Lithic::Dispute::Reason::TaggedSymbol) - CANCELLED = T.let(:CANCELLED, Lithic::Dispute::Reason::TaggedSymbol) - DUPLICATED = T.let(:DUPLICATED, Lithic::Dispute::Reason::TaggedSymbol) - FRAUD_CARD_NOT_PRESENT = - T.let(:FRAUD_CARD_NOT_PRESENT, Lithic::Dispute::Reason::TaggedSymbol) - FRAUD_CARD_PRESENT = - T.let(:FRAUD_CARD_PRESENT, Lithic::Dispute::Reason::TaggedSymbol) - FRAUD_OTHER = T.let(:FRAUD_OTHER, Lithic::Dispute::Reason::TaggedSymbol) - GOODS_SERVICES_NOT_AS_DESCRIBED = - T.let( - :GOODS_SERVICES_NOT_AS_DESCRIBED, - Lithic::Dispute::Reason::TaggedSymbol - ) - GOODS_SERVICES_NOT_RECEIVED = - T.let( - :GOODS_SERVICES_NOT_RECEIVED, - Lithic::Dispute::Reason::TaggedSymbol - ) - INCORRECT_AMOUNT = - T.let(:INCORRECT_AMOUNT, Lithic::Dispute::Reason::TaggedSymbol) - MISSING_AUTH = - T.let(:MISSING_AUTH, Lithic::Dispute::Reason::TaggedSymbol) - OTHER = T.let(:OTHER, Lithic::Dispute::Reason::TaggedSymbol) - PROCESSING_ERROR = - T.let(:PROCESSING_ERROR, Lithic::Dispute::Reason::TaggedSymbol) - RECURRING_TRANSACTION_NOT_CANCELLED = - T.let( - :RECURRING_TRANSACTION_NOT_CANCELLED, - Lithic::Dispute::Reason::TaggedSymbol - ) - REFUND_NOT_PROCESSED = - T.let(:REFUND_NOT_PROCESSED, Lithic::Dispute::Reason::TaggedSymbol) + WON = T.let(:WON, Lithic::Dispute::Disposition::TaggedSymbol) + LOST = T.let(:LOST, Lithic::Dispute::Disposition::TaggedSymbol) + PARTIALLY_WON = + T.let(:PARTIALLY_WON, Lithic::Dispute::Disposition::TaggedSymbol) + WITHDRAWN = + T.let(:WITHDRAWN, Lithic::Dispute::Disposition::TaggedSymbol) + DENIED = T.let(:DENIED, Lithic::Dispute::Disposition::TaggedSymbol) sig do - override.returns(T::Array[Lithic::Dispute::Reason::TaggedSymbol]) + override.returns(T::Array[Lithic::Dispute::Disposition::TaggedSymbol]) end def self.values end end - # Reason for the dispute resolution: - # - # - `CASE_LOST`: This case was lost at final arbitration. - # - `NETWORK_REJECTED`: Network rejected. - # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. - # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. - # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. - # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. - # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. - # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. - # - `PAST_FILING_DATE`: Past filing date. - # - `PREARBITRATION_REJECTED`: Prearbitration rejected. - # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. - # - `REFUNDED`: Refunded. - # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. - # - `WITHDRAWN`: Withdrawn. - # - `WON_ARBITRATION`: Won arbitration. - # - `WON_FIRST_CHARGEBACK`: Won first chargeback. - # - `WON_PREARBITRATION`: Won prearbitration. - module ResolutionReason - extend Lithic::Internal::Type::Enum + class Event < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(Lithic::Dispute::Event, Lithic::Internal::AnyHash) + end - TaggedSymbol = - T.type_alias { T.all(Symbol, Lithic::Dispute::ResolutionReason) } - OrSymbol = T.type_alias { T.any(Symbol, String) } + # Unique identifier for the event, in UUID format + sig { returns(String) } + attr_accessor :token - CASE_LOST = - T.let(:CASE_LOST, Lithic::Dispute::ResolutionReason::TaggedSymbol) - NETWORK_REJECTED = - T.let( - :NETWORK_REJECTED, - Lithic::Dispute::ResolutionReason::TaggedSymbol - ) - NO_DISPUTE_RIGHTS_3DS = - T.let( - :NO_DISPUTE_RIGHTS_3DS, - Lithic::Dispute::ResolutionReason::TaggedSymbol - ) - NO_DISPUTE_RIGHTS_BELOW_THRESHOLD = - T.let( - :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD, - Lithic::Dispute::ResolutionReason::TaggedSymbol - ) - NO_DISPUTE_RIGHTS_CONTACTLESS = - T.let( - :NO_DISPUTE_RIGHTS_CONTACTLESS, - Lithic::Dispute::ResolutionReason::TaggedSymbol - ) - NO_DISPUTE_RIGHTS_HYBRID = - T.let( - :NO_DISPUTE_RIGHTS_HYBRID, - Lithic::Dispute::ResolutionReason::TaggedSymbol - ) - NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS = - T.let( - :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS, - Lithic::Dispute::ResolutionReason::TaggedSymbol - ) - NO_DISPUTE_RIGHTS_OTHER = - T.let( - :NO_DISPUTE_RIGHTS_OTHER, - Lithic::Dispute::ResolutionReason::TaggedSymbol - ) - PAST_FILING_DATE = - T.let( - :PAST_FILING_DATE, - Lithic::Dispute::ResolutionReason::TaggedSymbol - ) - PREARBITRATION_REJECTED = - T.let( - :PREARBITRATION_REJECTED, - Lithic::Dispute::ResolutionReason::TaggedSymbol - ) - PROCESSOR_REJECTED_OTHER = - T.let( - :PROCESSOR_REJECTED_OTHER, - Lithic::Dispute::ResolutionReason::TaggedSymbol - ) - REFUNDED = - T.let(:REFUNDED, Lithic::Dispute::ResolutionReason::TaggedSymbol) - REFUNDED_AFTER_CHARGEBACK = - T.let( - :REFUNDED_AFTER_CHARGEBACK, - Lithic::Dispute::ResolutionReason::TaggedSymbol - ) - WITHDRAWN = - T.let(:WITHDRAWN, Lithic::Dispute::ResolutionReason::TaggedSymbol) - WON_ARBITRATION = - T.let( - :WON_ARBITRATION, - Lithic::Dispute::ResolutionReason::TaggedSymbol + # When the event occurred + sig { returns(Time) } + attr_accessor :created + + # Details specific to the event type + sig do + returns( + T.any( + Lithic::Dispute::Event::Data::WorkflowEventData, + Lithic::Dispute::Event::Data::FinancialEventData, + Lithic::Dispute::Event::Data::CardholderLiabilityEventData + ) ) - WON_FIRST_CHARGEBACK = - T.let( - :WON_FIRST_CHARGEBACK, - Lithic::Dispute::ResolutionReason::TaggedSymbol + end + attr_accessor :data + + # Type of event + sig { returns(Lithic::Dispute::Event::Type::OrSymbol) } + attr_accessor :type + + # Event that occurred in the dispute lifecycle + sig do + params( + token: String, + created: Time, + data: + T.any( + Lithic::Dispute::Event::Data::WorkflowEventData::OrHash, + Lithic::Dispute::Event::Data::FinancialEventData::OrHash, + Lithic::Dispute::Event::Data::CardholderLiabilityEventData::OrHash + ), + type: Lithic::Dispute::Event::Type::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Unique identifier for the event, in UUID format + token:, + # When the event occurred + created:, + # Details specific to the event type + data:, + # Type of event + type: + ) + end + + sig do + override.returns( + { + token: String, + created: Time, + data: + T.any( + Lithic::Dispute::Event::Data::WorkflowEventData, + Lithic::Dispute::Event::Data::FinancialEventData, + Lithic::Dispute::Event::Data::CardholderLiabilityEventData + ), + type: Lithic::Dispute::Event::Type::OrSymbol + } ) - WON_PREARBITRATION = - T.let( - :WON_PREARBITRATION, - Lithic::Dispute::ResolutionReason::TaggedSymbol + end + def to_hash + end + + # Details specific to the event type + module Data + extend Lithic::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + Lithic::Dispute::Event::Data::WorkflowEventData, + Lithic::Dispute::Event::Data::FinancialEventData, + Lithic::Dispute::Event::Data::CardholderLiabilityEventData + ) + end + + class WorkflowEventData < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::Dispute::Event::Data::WorkflowEventData, + Lithic::Internal::AnyHash + ) + end + + # Action taken in this stage + sig do + returns( + Lithic::Dispute::Event::Data::WorkflowEventData::Action::OrSymbol + ) + end + attr_accessor :action + + # Amount in minor units + sig { returns(T.nilable(Integer)) } + attr_accessor :amount + + # Dispute resolution outcome + sig do + returns( + T.nilable( + Lithic::Dispute::Event::Data::WorkflowEventData::Disposition::OrSymbol + ) + ) + end + attr_accessor :disposition + + # Reason for the action + sig { returns(T.nilable(String)) } + attr_accessor :reason + + # Current stage of the dispute workflow + sig do + returns( + Lithic::Dispute::Event::Data::WorkflowEventData::Stage::OrSymbol + ) + end + attr_accessor :stage + + # Details specific to workflow events + sig do + params( + action: + Lithic::Dispute::Event::Data::WorkflowEventData::Action::OrSymbol, + amount: T.nilable(Integer), + disposition: + T.nilable( + Lithic::Dispute::Event::Data::WorkflowEventData::Disposition::OrSymbol + ), + reason: T.nilable(String), + stage: + Lithic::Dispute::Event::Data::WorkflowEventData::Stage::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Action taken in this stage + action:, + # Amount in minor units + amount:, + # Dispute resolution outcome + disposition:, + # Reason for the action + reason:, + # Current stage of the dispute workflow + stage: + ) + end + + sig do + override.returns( + { + action: + Lithic::Dispute::Event::Data::WorkflowEventData::Action::OrSymbol, + amount: T.nilable(Integer), + disposition: + T.nilable( + Lithic::Dispute::Event::Data::WorkflowEventData::Disposition::OrSymbol + ), + reason: T.nilable(String), + stage: + Lithic::Dispute::Event::Data::WorkflowEventData::Stage::OrSymbol + } + ) + end + def to_hash + end + + # Action taken in this stage + module Action + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::Dispute::Event::Data::WorkflowEventData::Action + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + OPENED = + T.let( + :OPENED, + Lithic::Dispute::Event::Data::WorkflowEventData::Action::TaggedSymbol + ) + CLOSED = + T.let( + :CLOSED, + Lithic::Dispute::Event::Data::WorkflowEventData::Action::TaggedSymbol + ) + REOPENED = + T.let( + :REOPENED, + Lithic::Dispute::Event::Data::WorkflowEventData::Action::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Dispute::Event::Data::WorkflowEventData::Action::TaggedSymbol + ] + ) + end + def self.values + end + end + + # Dispute resolution outcome + module Disposition + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::Dispute::Event::Data::WorkflowEventData::Disposition + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + WON = + T.let( + :WON, + Lithic::Dispute::Event::Data::WorkflowEventData::Disposition::TaggedSymbol + ) + LOST = + T.let( + :LOST, + Lithic::Dispute::Event::Data::WorkflowEventData::Disposition::TaggedSymbol + ) + PARTIALLY_WON = + T.let( + :PARTIALLY_WON, + Lithic::Dispute::Event::Data::WorkflowEventData::Disposition::TaggedSymbol + ) + WITHDRAWN = + T.let( + :WITHDRAWN, + Lithic::Dispute::Event::Data::WorkflowEventData::Disposition::TaggedSymbol + ) + DENIED = + T.let( + :DENIED, + Lithic::Dispute::Event::Data::WorkflowEventData::Disposition::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Dispute::Event::Data::WorkflowEventData::Disposition::TaggedSymbol + ] + ) + end + def self.values + end + end + + # Current stage of the dispute workflow + module Stage + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::Dispute::Event::Data::WorkflowEventData::Stage + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CLAIM = + T.let( + :CLAIM, + Lithic::Dispute::Event::Data::WorkflowEventData::Stage::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Dispute::Event::Data::WorkflowEventData::Stage::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class FinancialEventData < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::Dispute::Event::Data::FinancialEventData, + Lithic::Internal::AnyHash + ) + end + + # Amount in minor units + sig { returns(Integer) } + attr_accessor :amount + + # Direction of funds flow + sig do + returns( + Lithic::Dispute::Event::Data::FinancialEventData::Polarity::OrSymbol + ) + end + attr_accessor :polarity + + # Stage at which the financial event occurred + sig do + returns( + Lithic::Dispute::Event::Data::FinancialEventData::Stage::OrSymbol + ) + end + attr_accessor :stage + + # Details specific to financial events + sig do + params( + amount: Integer, + polarity: + Lithic::Dispute::Event::Data::FinancialEventData::Polarity::OrSymbol, + stage: + Lithic::Dispute::Event::Data::FinancialEventData::Stage::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Amount in minor units + amount:, + # Direction of funds flow + polarity:, + # Stage at which the financial event occurred + stage: + ) + end + + sig do + override.returns( + { + amount: Integer, + polarity: + Lithic::Dispute::Event::Data::FinancialEventData::Polarity::OrSymbol, + stage: + Lithic::Dispute::Event::Data::FinancialEventData::Stage::OrSymbol + } + ) + end + def to_hash + end + + # Direction of funds flow + module Polarity + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::Dispute::Event::Data::FinancialEventData::Polarity + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CREDIT = + T.let( + :CREDIT, + Lithic::Dispute::Event::Data::FinancialEventData::Polarity::TaggedSymbol + ) + DEBIT = + T.let( + :DEBIT, + Lithic::Dispute::Event::Data::FinancialEventData::Polarity::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Dispute::Event::Data::FinancialEventData::Polarity::TaggedSymbol + ] + ) + end + def self.values + end + end + + # Stage at which the financial event occurred + module Stage + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::Dispute::Event::Data::FinancialEventData::Stage + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CHARGEBACK = + T.let( + :CHARGEBACK, + Lithic::Dispute::Event::Data::FinancialEventData::Stage::TaggedSymbol + ) + REPRESENTMENT = + T.let( + :REPRESENTMENT, + Lithic::Dispute::Event::Data::FinancialEventData::Stage::TaggedSymbol + ) + PREARBITRATION = + T.let( + :PREARBITRATION, + Lithic::Dispute::Event::Data::FinancialEventData::Stage::TaggedSymbol + ) + ARBITRATION = + T.let( + :ARBITRATION, + Lithic::Dispute::Event::Data::FinancialEventData::Stage::TaggedSymbol + ) + COLLABORATION = + T.let( + :COLLABORATION, + Lithic::Dispute::Event::Data::FinancialEventData::Stage::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Dispute::Event::Data::FinancialEventData::Stage::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class CardholderLiabilityEventData < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::Dispute::Event::Data::CardholderLiabilityEventData, + Lithic::Internal::AnyHash + ) + end + + # Action taken regarding cardholder liability + sig do + returns( + Lithic::Dispute::Event::Data::CardholderLiabilityEventData::Action::OrSymbol + ) + end + attr_accessor :action + + # Amount in minor units + sig { returns(Integer) } + attr_accessor :amount + + # Reason for the action + sig { returns(String) } + attr_accessor :reason + + # Details specific to cardholder liability events + sig do + params( + action: + Lithic::Dispute::Event::Data::CardholderLiabilityEventData::Action::OrSymbol, + amount: Integer, + reason: String + ).returns(T.attached_class) + end + def self.new( + # Action taken regarding cardholder liability + action:, + # Amount in minor units + amount:, + # Reason for the action + reason: + ) + end + + sig do + override.returns( + { + action: + Lithic::Dispute::Event::Data::CardholderLiabilityEventData::Action::OrSymbol, + amount: Integer, + reason: String + } + ) + end + def to_hash + end + + # Action taken regarding cardholder liability + module Action + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::Dispute::Event::Data::CardholderLiabilityEventData::Action + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + PROVISIONAL_CREDIT_GRANTED = + T.let( + :PROVISIONAL_CREDIT_GRANTED, + Lithic::Dispute::Event::Data::CardholderLiabilityEventData::Action::TaggedSymbol + ) + PROVISIONAL_CREDIT_REVERSED = + T.let( + :PROVISIONAL_CREDIT_REVERSED, + Lithic::Dispute::Event::Data::CardholderLiabilityEventData::Action::TaggedSymbol + ) + WRITTEN_OFF = + T.let( + :WRITTEN_OFF, + Lithic::Dispute::Event::Data::CardholderLiabilityEventData::Action::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Dispute::Event::Data::CardholderLiabilityEventData::Action::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + sig do + override.returns(T::Array[Lithic::Dispute::Event::Data::Variants]) + end + def self.variants + end + end + + # Type of event + module Type + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Lithic::Dispute::Event::Type) } + OrSymbol = T.type_alias { T.any(Symbol, String) } + + WORKFLOW = + T.let(:WORKFLOW, Lithic::Dispute::Event::Type::TaggedSymbol) + FINANCIAL = + T.let(:FINANCIAL, Lithic::Dispute::Event::Type::TaggedSymbol) + CARDHOLDER_LIABILITY = + T.let( + :CARDHOLDER_LIABILITY, + Lithic::Dispute::Event::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[Lithic::Dispute::Event::Type::TaggedSymbol] + ) + end + def self.values + end + end + end + + class LiabilityAllocation < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::Dispute::LiabilityAllocation, + Lithic::Internal::AnyHash + ) + end + + # The amount that has been denied to the cardholder + sig { returns(Integer) } + attr_accessor :denied_amount + + # The initial amount disputed + sig { returns(Integer) } + attr_accessor :original_amount + + # The amount that has been recovered from the merchant through the dispute process + sig { returns(Integer) } + attr_accessor :recovered_amount + + # Any disputed amount that is still outstanding, i.e. has not been recovered, + # written off, or denied + sig { returns(Integer) } + attr_accessor :remaining_amount + + # The amount the issuer has chosen to write off + sig { returns(Integer) } + attr_accessor :written_off_amount + + # Current breakdown of how liability is allocated for the disputed amount + sig do + params( + denied_amount: Integer, + original_amount: Integer, + recovered_amount: Integer, + remaining_amount: Integer, + written_off_amount: Integer + ).returns(T.attached_class) + end + def self.new( + # The amount that has been denied to the cardholder + denied_amount:, + # The initial amount disputed + original_amount:, + # The amount that has been recovered from the merchant through the dispute process + recovered_amount:, + # Any disputed amount that is still outstanding, i.e. has not been recovered, + # written off, or denied + remaining_amount:, + # The amount the issuer has chosen to write off + written_off_amount: + ) + end + + sig do + override.returns( + { + denied_amount: Integer, + original_amount: Integer, + recovered_amount: Integer, + remaining_amount: Integer, + written_off_amount: Integer + } ) + end + def to_hash + end + end + + class Merchant < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(Lithic::Dispute::Merchant, Lithic::Internal::AnyHash) + end + + # Unique alphanumeric identifier for the payment card acceptor (merchant). + sig { returns(String) } + attr_accessor :acceptor_id + + # Unique numeric identifier of the acquiring institution. + sig { returns(String) } + attr_accessor :acquiring_institution_id + + # City of card acceptor. Note that in many cases, particularly in card-not-present + # transactions, merchants may send through a phone number or URL in this field. + sig { returns(String) } + attr_accessor :city + + # Country or entity of card acceptor. Possible values are: (1) all ISO 3166-1 + # alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for Netherlands Antilles. + sig { returns(String) } + attr_accessor :country + + # Short description of card acceptor. + sig { returns(String) } + attr_accessor :descriptor + + # Merchant category code (MCC). A four-digit number listed in ISO 18245. An MCC is + # used to classify a business by the types of goods or services it provides. + sig { returns(String) } + attr_accessor :mcc + + # Geographic state of card acceptor. + sig { returns(String) } + attr_accessor :state + + sig do + params( + acceptor_id: String, + acquiring_institution_id: String, + city: String, + country: String, + descriptor: String, + mcc: String, + state: String + ).returns(T.attached_class) + end + def self.new( + # Unique alphanumeric identifier for the payment card acceptor (merchant). + acceptor_id:, + # Unique numeric identifier of the acquiring institution. + acquiring_institution_id:, + # City of card acceptor. Note that in many cases, particularly in card-not-present + # transactions, merchants may send through a phone number or URL in this field. + city:, + # Country or entity of card acceptor. Possible values are: (1) all ISO 3166-1 + # alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for Netherlands Antilles. + country:, + # Short description of card acceptor. + descriptor:, + # Merchant category code (MCC). A four-digit number listed in ISO 18245. An MCC is + # used to classify a business by the types of goods or services it provides. + mcc:, + # Geographic state of card acceptor. + state: + ) + end sig do override.returns( - T::Array[Lithic::Dispute::ResolutionReason::TaggedSymbol] + { + acceptor_id: String, + acquiring_institution_id: String, + city: String, + country: String, + descriptor: String, + mcc: String, + state: String + } ) end + def to_hash + end + end + + # Card network handling the dispute. + module Network + extend Lithic::Internal::Type::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Lithic::Dispute::Network) } + OrSymbol = T.type_alias { T.any(Symbol, String) } + + VISA = T.let(:VISA, Lithic::Dispute::Network::TaggedSymbol) + MASTERCARD = T.let(:MASTERCARD, Lithic::Dispute::Network::TaggedSymbol) + + sig do + override.returns(T::Array[Lithic::Dispute::Network::TaggedSymbol]) + end def self.values end end - # Status types: - # - # - `NEW` - New dispute case is opened. - # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more - # information. - # - `SUBMITTED` - Dispute is submitted to the card network. - # - `REPRESENTMENT` - Case has entered second presentment. - # - `PREARBITRATION` - Case has entered prearbitration. - # - `ARBITRATION` - Case has entered arbitration. - # - `CASE_WON` - Case was won and credit will be issued. - # - `CASE_CLOSED` - Case was lost or withdrawn. + # Current status of the dispute. module Status extend Lithic::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Lithic::Dispute::Status) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ARBITRATION = T.let(:ARBITRATION, Lithic::Dispute::Status::TaggedSymbol) - CASE_CLOSED = T.let(:CASE_CLOSED, Lithic::Dispute::Status::TaggedSymbol) - CASE_WON = T.let(:CASE_WON, Lithic::Dispute::Status::TaggedSymbol) - NEW = T.let(:NEW, Lithic::Dispute::Status::TaggedSymbol) - PENDING_CUSTOMER = - T.let(:PENDING_CUSTOMER, Lithic::Dispute::Status::TaggedSymbol) - PREARBITRATION = - T.let(:PREARBITRATION, Lithic::Dispute::Status::TaggedSymbol) - REPRESENTMENT = - T.let(:REPRESENTMENT, Lithic::Dispute::Status::TaggedSymbol) - SUBMITTED = T.let(:SUBMITTED, Lithic::Dispute::Status::TaggedSymbol) + OPEN = T.let(:OPEN, Lithic::Dispute::Status::TaggedSymbol) + CLOSED = T.let(:CLOSED, Lithic::Dispute::Status::TaggedSymbol) sig do override.returns(T::Array[Lithic::Dispute::Status::TaggedSymbol]) @@ -481,6 +948,86 @@ module Lithic def self.values end end + + class TransactionSeries < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(Lithic::Dispute::TransactionSeries, Lithic::Internal::AnyHash) + end + + # Token of the specific event in the original transaction being disputed, in UUID + # format; null if no event can be identified + sig { returns(T.nilable(String)) } + attr_accessor :related_transaction_event_token + + # Token of the original transaction being disputed, in UUID format + sig { returns(String) } + attr_accessor :related_transaction_token + + # The type of transaction series associating the dispute and the original + # transaction. Always set to DISPUTE + sig { returns(Lithic::Dispute::TransactionSeries::Type::OrSymbol) } + attr_accessor :type + + # Contains identifiers for the transaction and specific event within being + # disputed; null if no transaction can be identified + sig do + params( + related_transaction_event_token: T.nilable(String), + related_transaction_token: String, + type: Lithic::Dispute::TransactionSeries::Type::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # Token of the specific event in the original transaction being disputed, in UUID + # format; null if no event can be identified + related_transaction_event_token:, + # Token of the original transaction being disputed, in UUID format + related_transaction_token:, + # The type of transaction series associating the dispute and the original + # transaction. Always set to DISPUTE + type: + ) + end + + sig do + override.returns( + { + related_transaction_event_token: T.nilable(String), + related_transaction_token: String, + type: Lithic::Dispute::TransactionSeries::Type::OrSymbol + } + ) + end + def to_hash + end + + # The type of transaction series associating the dispute and the original + # transaction. Always set to DISPUTE + module Type + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Lithic::Dispute::TransactionSeries::Type) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + DISPUTE = + T.let( + :DISPUTE, + Lithic::Dispute::TransactionSeries::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[Lithic::Dispute::TransactionSeries::Type::TaggedSymbol] + ) + end + def self.values + end + end + end end end end diff --git a/rbi/lithic/models/dispute_create_response.rbi b/rbi/lithic/models/dispute_create_response.rbi new file mode 100644 index 00000000..fb7cae3a --- /dev/null +++ b/rbi/lithic/models/dispute_create_response.rbi @@ -0,0 +1,599 @@ +# typed: strong + +module Lithic + module Models + class DisputeCreateResponse < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::Models::DisputeCreateResponse, + Lithic::Internal::AnyHash + ) + end + + # Globally unique identifier. + sig { returns(String) } + attr_accessor :token + + # Amount under dispute. May be different from the original transaction amount. + sig { returns(Integer) } + attr_accessor :amount + + # Date dispute entered arbitration. + sig { returns(T.nilable(Time)) } + attr_accessor :arbitration_date + + # Timestamp of when first Dispute was reported. + sig { returns(Time) } + attr_accessor :created + + # Date that the dispute was filed by the customer making the dispute. + sig { returns(T.nilable(Time)) } + attr_accessor :customer_filed_date + + # End customer description of the reason for the dispute. + sig { returns(T.nilable(String)) } + attr_accessor :customer_note + + # Unique identifiers for the dispute from the network. + sig { returns(T.nilable(T::Array[String])) } + attr_accessor :network_claim_ids + + # Date that the dispute was submitted to the network. + sig { returns(T.nilable(Time)) } + attr_accessor :network_filed_date + + # Network reason code used to file the dispute. + sig { returns(T.nilable(String)) } + attr_accessor :network_reason_code + + # Date dispute entered pre-arbitration. + sig { returns(T.nilable(Time)) } + attr_accessor :prearbitration_date + + # Unique identifier for the dispute from the network. If there are multiple, this + # will be the first claim id set by the network + sig { returns(T.nilable(String)) } + attr_accessor :primary_claim_id + + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + sig do + returns(Lithic::Models::DisputeCreateResponse::Reason::TaggedSymbol) + end + attr_accessor :reason + + # Date the representment was received. + sig { returns(T.nilable(Time)) } + attr_accessor :representment_date + + # Date that the dispute was resolved. + sig { returns(T.nilable(Time)) } + attr_accessor :resolution_date + + # Note by Dispute team on the case resolution. + sig { returns(T.nilable(String)) } + attr_accessor :resolution_note + + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + sig do + returns( + T.nilable( + Lithic::Models::DisputeCreateResponse::ResolutionReason::TaggedSymbol + ) + ) + end + attr_accessor :resolution_reason + + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + sig do + returns(Lithic::Models::DisputeCreateResponse::Status::TaggedSymbol) + end + attr_accessor :status + + # The transaction that is being disputed. A transaction can only be disputed once + # but may have multiple dispute cases. + sig { returns(String) } + attr_accessor :transaction_token + + # Dispute. + sig do + params( + token: String, + amount: Integer, + arbitration_date: T.nilable(Time), + created: Time, + customer_filed_date: T.nilable(Time), + customer_note: T.nilable(String), + network_claim_ids: T.nilable(T::Array[String]), + network_filed_date: T.nilable(Time), + network_reason_code: T.nilable(String), + prearbitration_date: T.nilable(Time), + primary_claim_id: T.nilable(String), + reason: Lithic::Models::DisputeCreateResponse::Reason::OrSymbol, + representment_date: T.nilable(Time), + resolution_date: T.nilable(Time), + resolution_note: T.nilable(String), + resolution_reason: + T.nilable( + Lithic::Models::DisputeCreateResponse::ResolutionReason::OrSymbol + ), + status: Lithic::Models::DisputeCreateResponse::Status::OrSymbol, + transaction_token: String + ).returns(T.attached_class) + end + def self.new( + # Globally unique identifier. + token:, + # Amount under dispute. May be different from the original transaction amount. + amount:, + # Date dispute entered arbitration. + arbitration_date:, + # Timestamp of when first Dispute was reported. + created:, + # Date that the dispute was filed by the customer making the dispute. + customer_filed_date:, + # End customer description of the reason for the dispute. + customer_note:, + # Unique identifiers for the dispute from the network. + network_claim_ids:, + # Date that the dispute was submitted to the network. + network_filed_date:, + # Network reason code used to file the dispute. + network_reason_code:, + # Date dispute entered pre-arbitration. + prearbitration_date:, + # Unique identifier for the dispute from the network. If there are multiple, this + # will be the first claim id set by the network + primary_claim_id:, + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + reason:, + # Date the representment was received. + representment_date:, + # Date that the dispute was resolved. + resolution_date:, + # Note by Dispute team on the case resolution. + resolution_note:, + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + resolution_reason:, + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + status:, + # The transaction that is being disputed. A transaction can only be disputed once + # but may have multiple dispute cases. + transaction_token: + ) + end + + sig do + override.returns( + { + token: String, + amount: Integer, + arbitration_date: T.nilable(Time), + created: Time, + customer_filed_date: T.nilable(Time), + customer_note: T.nilable(String), + network_claim_ids: T.nilable(T::Array[String]), + network_filed_date: T.nilable(Time), + network_reason_code: T.nilable(String), + prearbitration_date: T.nilable(Time), + primary_claim_id: T.nilable(String), + reason: Lithic::Models::DisputeCreateResponse::Reason::TaggedSymbol, + representment_date: T.nilable(Time), + resolution_date: T.nilable(Time), + resolution_note: T.nilable(String), + resolution_reason: + T.nilable( + Lithic::Models::DisputeCreateResponse::ResolutionReason::TaggedSymbol + ), + status: Lithic::Models::DisputeCreateResponse::Status::TaggedSymbol, + transaction_token: String + } + ) + end + def to_hash + end + + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + module Reason + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Lithic::Models::DisputeCreateResponse::Reason) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ATM_CASH_MISDISPENSE = + T.let( + :ATM_CASH_MISDISPENSE, + Lithic::Models::DisputeCreateResponse::Reason::TaggedSymbol + ) + CANCELLED = + T.let( + :CANCELLED, + Lithic::Models::DisputeCreateResponse::Reason::TaggedSymbol + ) + DUPLICATED = + T.let( + :DUPLICATED, + Lithic::Models::DisputeCreateResponse::Reason::TaggedSymbol + ) + FRAUD_CARD_NOT_PRESENT = + T.let( + :FRAUD_CARD_NOT_PRESENT, + Lithic::Models::DisputeCreateResponse::Reason::TaggedSymbol + ) + FRAUD_CARD_PRESENT = + T.let( + :FRAUD_CARD_PRESENT, + Lithic::Models::DisputeCreateResponse::Reason::TaggedSymbol + ) + FRAUD_OTHER = + T.let( + :FRAUD_OTHER, + Lithic::Models::DisputeCreateResponse::Reason::TaggedSymbol + ) + GOODS_SERVICES_NOT_AS_DESCRIBED = + T.let( + :GOODS_SERVICES_NOT_AS_DESCRIBED, + Lithic::Models::DisputeCreateResponse::Reason::TaggedSymbol + ) + GOODS_SERVICES_NOT_RECEIVED = + T.let( + :GOODS_SERVICES_NOT_RECEIVED, + Lithic::Models::DisputeCreateResponse::Reason::TaggedSymbol + ) + INCORRECT_AMOUNT = + T.let( + :INCORRECT_AMOUNT, + Lithic::Models::DisputeCreateResponse::Reason::TaggedSymbol + ) + MISSING_AUTH = + T.let( + :MISSING_AUTH, + Lithic::Models::DisputeCreateResponse::Reason::TaggedSymbol + ) + OTHER = + T.let( + :OTHER, + Lithic::Models::DisputeCreateResponse::Reason::TaggedSymbol + ) + PROCESSING_ERROR = + T.let( + :PROCESSING_ERROR, + Lithic::Models::DisputeCreateResponse::Reason::TaggedSymbol + ) + RECURRING_TRANSACTION_NOT_CANCELLED = + T.let( + :RECURRING_TRANSACTION_NOT_CANCELLED, + Lithic::Models::DisputeCreateResponse::Reason::TaggedSymbol + ) + REFUND_NOT_PROCESSED = + T.let( + :REFUND_NOT_PROCESSED, + Lithic::Models::DisputeCreateResponse::Reason::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Models::DisputeCreateResponse::Reason::TaggedSymbol + ] + ) + end + def self.values + end + end + + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + module ResolutionReason + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::Models::DisputeCreateResponse::ResolutionReason + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CASE_LOST = + T.let( + :CASE_LOST, + Lithic::Models::DisputeCreateResponse::ResolutionReason::TaggedSymbol + ) + NETWORK_REJECTED = + T.let( + :NETWORK_REJECTED, + Lithic::Models::DisputeCreateResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_3DS = + T.let( + :NO_DISPUTE_RIGHTS_3DS, + Lithic::Models::DisputeCreateResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_BELOW_THRESHOLD = + T.let( + :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD, + Lithic::Models::DisputeCreateResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_CONTACTLESS = + T.let( + :NO_DISPUTE_RIGHTS_CONTACTLESS, + Lithic::Models::DisputeCreateResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_HYBRID = + T.let( + :NO_DISPUTE_RIGHTS_HYBRID, + Lithic::Models::DisputeCreateResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS = + T.let( + :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS, + Lithic::Models::DisputeCreateResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_OTHER = + T.let( + :NO_DISPUTE_RIGHTS_OTHER, + Lithic::Models::DisputeCreateResponse::ResolutionReason::TaggedSymbol + ) + PAST_FILING_DATE = + T.let( + :PAST_FILING_DATE, + Lithic::Models::DisputeCreateResponse::ResolutionReason::TaggedSymbol + ) + PREARBITRATION_REJECTED = + T.let( + :PREARBITRATION_REJECTED, + Lithic::Models::DisputeCreateResponse::ResolutionReason::TaggedSymbol + ) + PROCESSOR_REJECTED_OTHER = + T.let( + :PROCESSOR_REJECTED_OTHER, + Lithic::Models::DisputeCreateResponse::ResolutionReason::TaggedSymbol + ) + REFUNDED = + T.let( + :REFUNDED, + Lithic::Models::DisputeCreateResponse::ResolutionReason::TaggedSymbol + ) + REFUNDED_AFTER_CHARGEBACK = + T.let( + :REFUNDED_AFTER_CHARGEBACK, + Lithic::Models::DisputeCreateResponse::ResolutionReason::TaggedSymbol + ) + WITHDRAWN = + T.let( + :WITHDRAWN, + Lithic::Models::DisputeCreateResponse::ResolutionReason::TaggedSymbol + ) + WON_ARBITRATION = + T.let( + :WON_ARBITRATION, + Lithic::Models::DisputeCreateResponse::ResolutionReason::TaggedSymbol + ) + WON_FIRST_CHARGEBACK = + T.let( + :WON_FIRST_CHARGEBACK, + Lithic::Models::DisputeCreateResponse::ResolutionReason::TaggedSymbol + ) + WON_PREARBITRATION = + T.let( + :WON_PREARBITRATION, + Lithic::Models::DisputeCreateResponse::ResolutionReason::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Models::DisputeCreateResponse::ResolutionReason::TaggedSymbol + ] + ) + end + def self.values + end + end + + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + module Status + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Lithic::Models::DisputeCreateResponse::Status) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ARBITRATION = + T.let( + :ARBITRATION, + Lithic::Models::DisputeCreateResponse::Status::TaggedSymbol + ) + CASE_CLOSED = + T.let( + :CASE_CLOSED, + Lithic::Models::DisputeCreateResponse::Status::TaggedSymbol + ) + CASE_WON = + T.let( + :CASE_WON, + Lithic::Models::DisputeCreateResponse::Status::TaggedSymbol + ) + NEW = + T.let( + :NEW, + Lithic::Models::DisputeCreateResponse::Status::TaggedSymbol + ) + PENDING_CUSTOMER = + T.let( + :PENDING_CUSTOMER, + Lithic::Models::DisputeCreateResponse::Status::TaggedSymbol + ) + PREARBITRATION = + T.let( + :PREARBITRATION, + Lithic::Models::DisputeCreateResponse::Status::TaggedSymbol + ) + REPRESENTMENT = + T.let( + :REPRESENTMENT, + Lithic::Models::DisputeCreateResponse::Status::TaggedSymbol + ) + SUBMITTED = + T.let( + :SUBMITTED, + Lithic::Models::DisputeCreateResponse::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Models::DisputeCreateResponse::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end +end diff --git a/rbi/lithic/models/dispute_delete_response.rbi b/rbi/lithic/models/dispute_delete_response.rbi new file mode 100644 index 00000000..5637d9ed --- /dev/null +++ b/rbi/lithic/models/dispute_delete_response.rbi @@ -0,0 +1,599 @@ +# typed: strong + +module Lithic + module Models + class DisputeDeleteResponse < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::Models::DisputeDeleteResponse, + Lithic::Internal::AnyHash + ) + end + + # Globally unique identifier. + sig { returns(String) } + attr_accessor :token + + # Amount under dispute. May be different from the original transaction amount. + sig { returns(Integer) } + attr_accessor :amount + + # Date dispute entered arbitration. + sig { returns(T.nilable(Time)) } + attr_accessor :arbitration_date + + # Timestamp of when first Dispute was reported. + sig { returns(Time) } + attr_accessor :created + + # Date that the dispute was filed by the customer making the dispute. + sig { returns(T.nilable(Time)) } + attr_accessor :customer_filed_date + + # End customer description of the reason for the dispute. + sig { returns(T.nilable(String)) } + attr_accessor :customer_note + + # Unique identifiers for the dispute from the network. + sig { returns(T.nilable(T::Array[String])) } + attr_accessor :network_claim_ids + + # Date that the dispute was submitted to the network. + sig { returns(T.nilable(Time)) } + attr_accessor :network_filed_date + + # Network reason code used to file the dispute. + sig { returns(T.nilable(String)) } + attr_accessor :network_reason_code + + # Date dispute entered pre-arbitration. + sig { returns(T.nilable(Time)) } + attr_accessor :prearbitration_date + + # Unique identifier for the dispute from the network. If there are multiple, this + # will be the first claim id set by the network + sig { returns(T.nilable(String)) } + attr_accessor :primary_claim_id + + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + sig do + returns(Lithic::Models::DisputeDeleteResponse::Reason::TaggedSymbol) + end + attr_accessor :reason + + # Date the representment was received. + sig { returns(T.nilable(Time)) } + attr_accessor :representment_date + + # Date that the dispute was resolved. + sig { returns(T.nilable(Time)) } + attr_accessor :resolution_date + + # Note by Dispute team on the case resolution. + sig { returns(T.nilable(String)) } + attr_accessor :resolution_note + + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + sig do + returns( + T.nilable( + Lithic::Models::DisputeDeleteResponse::ResolutionReason::TaggedSymbol + ) + ) + end + attr_accessor :resolution_reason + + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + sig do + returns(Lithic::Models::DisputeDeleteResponse::Status::TaggedSymbol) + end + attr_accessor :status + + # The transaction that is being disputed. A transaction can only be disputed once + # but may have multiple dispute cases. + sig { returns(String) } + attr_accessor :transaction_token + + # Dispute. + sig do + params( + token: String, + amount: Integer, + arbitration_date: T.nilable(Time), + created: Time, + customer_filed_date: T.nilable(Time), + customer_note: T.nilable(String), + network_claim_ids: T.nilable(T::Array[String]), + network_filed_date: T.nilable(Time), + network_reason_code: T.nilable(String), + prearbitration_date: T.nilable(Time), + primary_claim_id: T.nilable(String), + reason: Lithic::Models::DisputeDeleteResponse::Reason::OrSymbol, + representment_date: T.nilable(Time), + resolution_date: T.nilable(Time), + resolution_note: T.nilable(String), + resolution_reason: + T.nilable( + Lithic::Models::DisputeDeleteResponse::ResolutionReason::OrSymbol + ), + status: Lithic::Models::DisputeDeleteResponse::Status::OrSymbol, + transaction_token: String + ).returns(T.attached_class) + end + def self.new( + # Globally unique identifier. + token:, + # Amount under dispute. May be different from the original transaction amount. + amount:, + # Date dispute entered arbitration. + arbitration_date:, + # Timestamp of when first Dispute was reported. + created:, + # Date that the dispute was filed by the customer making the dispute. + customer_filed_date:, + # End customer description of the reason for the dispute. + customer_note:, + # Unique identifiers for the dispute from the network. + network_claim_ids:, + # Date that the dispute was submitted to the network. + network_filed_date:, + # Network reason code used to file the dispute. + network_reason_code:, + # Date dispute entered pre-arbitration. + prearbitration_date:, + # Unique identifier for the dispute from the network. If there are multiple, this + # will be the first claim id set by the network + primary_claim_id:, + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + reason:, + # Date the representment was received. + representment_date:, + # Date that the dispute was resolved. + resolution_date:, + # Note by Dispute team on the case resolution. + resolution_note:, + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + resolution_reason:, + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + status:, + # The transaction that is being disputed. A transaction can only be disputed once + # but may have multiple dispute cases. + transaction_token: + ) + end + + sig do + override.returns( + { + token: String, + amount: Integer, + arbitration_date: T.nilable(Time), + created: Time, + customer_filed_date: T.nilable(Time), + customer_note: T.nilable(String), + network_claim_ids: T.nilable(T::Array[String]), + network_filed_date: T.nilable(Time), + network_reason_code: T.nilable(String), + prearbitration_date: T.nilable(Time), + primary_claim_id: T.nilable(String), + reason: Lithic::Models::DisputeDeleteResponse::Reason::TaggedSymbol, + representment_date: T.nilable(Time), + resolution_date: T.nilable(Time), + resolution_note: T.nilable(String), + resolution_reason: + T.nilable( + Lithic::Models::DisputeDeleteResponse::ResolutionReason::TaggedSymbol + ), + status: Lithic::Models::DisputeDeleteResponse::Status::TaggedSymbol, + transaction_token: String + } + ) + end + def to_hash + end + + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + module Reason + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Lithic::Models::DisputeDeleteResponse::Reason) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ATM_CASH_MISDISPENSE = + T.let( + :ATM_CASH_MISDISPENSE, + Lithic::Models::DisputeDeleteResponse::Reason::TaggedSymbol + ) + CANCELLED = + T.let( + :CANCELLED, + Lithic::Models::DisputeDeleteResponse::Reason::TaggedSymbol + ) + DUPLICATED = + T.let( + :DUPLICATED, + Lithic::Models::DisputeDeleteResponse::Reason::TaggedSymbol + ) + FRAUD_CARD_NOT_PRESENT = + T.let( + :FRAUD_CARD_NOT_PRESENT, + Lithic::Models::DisputeDeleteResponse::Reason::TaggedSymbol + ) + FRAUD_CARD_PRESENT = + T.let( + :FRAUD_CARD_PRESENT, + Lithic::Models::DisputeDeleteResponse::Reason::TaggedSymbol + ) + FRAUD_OTHER = + T.let( + :FRAUD_OTHER, + Lithic::Models::DisputeDeleteResponse::Reason::TaggedSymbol + ) + GOODS_SERVICES_NOT_AS_DESCRIBED = + T.let( + :GOODS_SERVICES_NOT_AS_DESCRIBED, + Lithic::Models::DisputeDeleteResponse::Reason::TaggedSymbol + ) + GOODS_SERVICES_NOT_RECEIVED = + T.let( + :GOODS_SERVICES_NOT_RECEIVED, + Lithic::Models::DisputeDeleteResponse::Reason::TaggedSymbol + ) + INCORRECT_AMOUNT = + T.let( + :INCORRECT_AMOUNT, + Lithic::Models::DisputeDeleteResponse::Reason::TaggedSymbol + ) + MISSING_AUTH = + T.let( + :MISSING_AUTH, + Lithic::Models::DisputeDeleteResponse::Reason::TaggedSymbol + ) + OTHER = + T.let( + :OTHER, + Lithic::Models::DisputeDeleteResponse::Reason::TaggedSymbol + ) + PROCESSING_ERROR = + T.let( + :PROCESSING_ERROR, + Lithic::Models::DisputeDeleteResponse::Reason::TaggedSymbol + ) + RECURRING_TRANSACTION_NOT_CANCELLED = + T.let( + :RECURRING_TRANSACTION_NOT_CANCELLED, + Lithic::Models::DisputeDeleteResponse::Reason::TaggedSymbol + ) + REFUND_NOT_PROCESSED = + T.let( + :REFUND_NOT_PROCESSED, + Lithic::Models::DisputeDeleteResponse::Reason::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Models::DisputeDeleteResponse::Reason::TaggedSymbol + ] + ) + end + def self.values + end + end + + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + module ResolutionReason + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::Models::DisputeDeleteResponse::ResolutionReason + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CASE_LOST = + T.let( + :CASE_LOST, + Lithic::Models::DisputeDeleteResponse::ResolutionReason::TaggedSymbol + ) + NETWORK_REJECTED = + T.let( + :NETWORK_REJECTED, + Lithic::Models::DisputeDeleteResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_3DS = + T.let( + :NO_DISPUTE_RIGHTS_3DS, + Lithic::Models::DisputeDeleteResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_BELOW_THRESHOLD = + T.let( + :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD, + Lithic::Models::DisputeDeleteResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_CONTACTLESS = + T.let( + :NO_DISPUTE_RIGHTS_CONTACTLESS, + Lithic::Models::DisputeDeleteResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_HYBRID = + T.let( + :NO_DISPUTE_RIGHTS_HYBRID, + Lithic::Models::DisputeDeleteResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS = + T.let( + :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS, + Lithic::Models::DisputeDeleteResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_OTHER = + T.let( + :NO_DISPUTE_RIGHTS_OTHER, + Lithic::Models::DisputeDeleteResponse::ResolutionReason::TaggedSymbol + ) + PAST_FILING_DATE = + T.let( + :PAST_FILING_DATE, + Lithic::Models::DisputeDeleteResponse::ResolutionReason::TaggedSymbol + ) + PREARBITRATION_REJECTED = + T.let( + :PREARBITRATION_REJECTED, + Lithic::Models::DisputeDeleteResponse::ResolutionReason::TaggedSymbol + ) + PROCESSOR_REJECTED_OTHER = + T.let( + :PROCESSOR_REJECTED_OTHER, + Lithic::Models::DisputeDeleteResponse::ResolutionReason::TaggedSymbol + ) + REFUNDED = + T.let( + :REFUNDED, + Lithic::Models::DisputeDeleteResponse::ResolutionReason::TaggedSymbol + ) + REFUNDED_AFTER_CHARGEBACK = + T.let( + :REFUNDED_AFTER_CHARGEBACK, + Lithic::Models::DisputeDeleteResponse::ResolutionReason::TaggedSymbol + ) + WITHDRAWN = + T.let( + :WITHDRAWN, + Lithic::Models::DisputeDeleteResponse::ResolutionReason::TaggedSymbol + ) + WON_ARBITRATION = + T.let( + :WON_ARBITRATION, + Lithic::Models::DisputeDeleteResponse::ResolutionReason::TaggedSymbol + ) + WON_FIRST_CHARGEBACK = + T.let( + :WON_FIRST_CHARGEBACK, + Lithic::Models::DisputeDeleteResponse::ResolutionReason::TaggedSymbol + ) + WON_PREARBITRATION = + T.let( + :WON_PREARBITRATION, + Lithic::Models::DisputeDeleteResponse::ResolutionReason::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Models::DisputeDeleteResponse::ResolutionReason::TaggedSymbol + ] + ) + end + def self.values + end + end + + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + module Status + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Lithic::Models::DisputeDeleteResponse::Status) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ARBITRATION = + T.let( + :ARBITRATION, + Lithic::Models::DisputeDeleteResponse::Status::TaggedSymbol + ) + CASE_CLOSED = + T.let( + :CASE_CLOSED, + Lithic::Models::DisputeDeleteResponse::Status::TaggedSymbol + ) + CASE_WON = + T.let( + :CASE_WON, + Lithic::Models::DisputeDeleteResponse::Status::TaggedSymbol + ) + NEW = + T.let( + :NEW, + Lithic::Models::DisputeDeleteResponse::Status::TaggedSymbol + ) + PENDING_CUSTOMER = + T.let( + :PENDING_CUSTOMER, + Lithic::Models::DisputeDeleteResponse::Status::TaggedSymbol + ) + PREARBITRATION = + T.let( + :PREARBITRATION, + Lithic::Models::DisputeDeleteResponse::Status::TaggedSymbol + ) + REPRESENTMENT = + T.let( + :REPRESENTMENT, + Lithic::Models::DisputeDeleteResponse::Status::TaggedSymbol + ) + SUBMITTED = + T.let( + :SUBMITTED, + Lithic::Models::DisputeDeleteResponse::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Models::DisputeDeleteResponse::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end +end diff --git a/rbi/lithic/models/dispute_list_response.rbi b/rbi/lithic/models/dispute_list_response.rbi new file mode 100644 index 00000000..db8ce494 --- /dev/null +++ b/rbi/lithic/models/dispute_list_response.rbi @@ -0,0 +1,582 @@ +# typed: strong + +module Lithic + module Models + class DisputeListResponse < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(Lithic::Models::DisputeListResponse, Lithic::Internal::AnyHash) + end + + # Globally unique identifier. + sig { returns(String) } + attr_accessor :token + + # Amount under dispute. May be different from the original transaction amount. + sig { returns(Integer) } + attr_accessor :amount + + # Date dispute entered arbitration. + sig { returns(T.nilable(Time)) } + attr_accessor :arbitration_date + + # Timestamp of when first Dispute was reported. + sig { returns(Time) } + attr_accessor :created + + # Date that the dispute was filed by the customer making the dispute. + sig { returns(T.nilable(Time)) } + attr_accessor :customer_filed_date + + # End customer description of the reason for the dispute. + sig { returns(T.nilable(String)) } + attr_accessor :customer_note + + # Unique identifiers for the dispute from the network. + sig { returns(T.nilable(T::Array[String])) } + attr_accessor :network_claim_ids + + # Date that the dispute was submitted to the network. + sig { returns(T.nilable(Time)) } + attr_accessor :network_filed_date + + # Network reason code used to file the dispute. + sig { returns(T.nilable(String)) } + attr_accessor :network_reason_code + + # Date dispute entered pre-arbitration. + sig { returns(T.nilable(Time)) } + attr_accessor :prearbitration_date + + # Unique identifier for the dispute from the network. If there are multiple, this + # will be the first claim id set by the network + sig { returns(T.nilable(String)) } + attr_accessor :primary_claim_id + + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + sig { returns(Lithic::Models::DisputeListResponse::Reason::TaggedSymbol) } + attr_accessor :reason + + # Date the representment was received. + sig { returns(T.nilable(Time)) } + attr_accessor :representment_date + + # Date that the dispute was resolved. + sig { returns(T.nilable(Time)) } + attr_accessor :resolution_date + + # Note by Dispute team on the case resolution. + sig { returns(T.nilable(String)) } + attr_accessor :resolution_note + + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + sig do + returns( + T.nilable( + Lithic::Models::DisputeListResponse::ResolutionReason::TaggedSymbol + ) + ) + end + attr_accessor :resolution_reason + + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + sig { returns(Lithic::Models::DisputeListResponse::Status::TaggedSymbol) } + attr_accessor :status + + # The transaction that is being disputed. A transaction can only be disputed once + # but may have multiple dispute cases. + sig { returns(String) } + attr_accessor :transaction_token + + # Dispute. + sig do + params( + token: String, + amount: Integer, + arbitration_date: T.nilable(Time), + created: Time, + customer_filed_date: T.nilable(Time), + customer_note: T.nilable(String), + network_claim_ids: T.nilable(T::Array[String]), + network_filed_date: T.nilable(Time), + network_reason_code: T.nilable(String), + prearbitration_date: T.nilable(Time), + primary_claim_id: T.nilable(String), + reason: Lithic::Models::DisputeListResponse::Reason::OrSymbol, + representment_date: T.nilable(Time), + resolution_date: T.nilable(Time), + resolution_note: T.nilable(String), + resolution_reason: + T.nilable( + Lithic::Models::DisputeListResponse::ResolutionReason::OrSymbol + ), + status: Lithic::Models::DisputeListResponse::Status::OrSymbol, + transaction_token: String + ).returns(T.attached_class) + end + def self.new( + # Globally unique identifier. + token:, + # Amount under dispute. May be different from the original transaction amount. + amount:, + # Date dispute entered arbitration. + arbitration_date:, + # Timestamp of when first Dispute was reported. + created:, + # Date that the dispute was filed by the customer making the dispute. + customer_filed_date:, + # End customer description of the reason for the dispute. + customer_note:, + # Unique identifiers for the dispute from the network. + network_claim_ids:, + # Date that the dispute was submitted to the network. + network_filed_date:, + # Network reason code used to file the dispute. + network_reason_code:, + # Date dispute entered pre-arbitration. + prearbitration_date:, + # Unique identifier for the dispute from the network. If there are multiple, this + # will be the first claim id set by the network + primary_claim_id:, + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + reason:, + # Date the representment was received. + representment_date:, + # Date that the dispute was resolved. + resolution_date:, + # Note by Dispute team on the case resolution. + resolution_note:, + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + resolution_reason:, + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + status:, + # The transaction that is being disputed. A transaction can only be disputed once + # but may have multiple dispute cases. + transaction_token: + ) + end + + sig do + override.returns( + { + token: String, + amount: Integer, + arbitration_date: T.nilable(Time), + created: Time, + customer_filed_date: T.nilable(Time), + customer_note: T.nilable(String), + network_claim_ids: T.nilable(T::Array[String]), + network_filed_date: T.nilable(Time), + network_reason_code: T.nilable(String), + prearbitration_date: T.nilable(Time), + primary_claim_id: T.nilable(String), + reason: Lithic::Models::DisputeListResponse::Reason::TaggedSymbol, + representment_date: T.nilable(Time), + resolution_date: T.nilable(Time), + resolution_note: T.nilable(String), + resolution_reason: + T.nilable( + Lithic::Models::DisputeListResponse::ResolutionReason::TaggedSymbol + ), + status: Lithic::Models::DisputeListResponse::Status::TaggedSymbol, + transaction_token: String + } + ) + end + def to_hash + end + + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + module Reason + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Lithic::Models::DisputeListResponse::Reason) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ATM_CASH_MISDISPENSE = + T.let( + :ATM_CASH_MISDISPENSE, + Lithic::Models::DisputeListResponse::Reason::TaggedSymbol + ) + CANCELLED = + T.let( + :CANCELLED, + Lithic::Models::DisputeListResponse::Reason::TaggedSymbol + ) + DUPLICATED = + T.let( + :DUPLICATED, + Lithic::Models::DisputeListResponse::Reason::TaggedSymbol + ) + FRAUD_CARD_NOT_PRESENT = + T.let( + :FRAUD_CARD_NOT_PRESENT, + Lithic::Models::DisputeListResponse::Reason::TaggedSymbol + ) + FRAUD_CARD_PRESENT = + T.let( + :FRAUD_CARD_PRESENT, + Lithic::Models::DisputeListResponse::Reason::TaggedSymbol + ) + FRAUD_OTHER = + T.let( + :FRAUD_OTHER, + Lithic::Models::DisputeListResponse::Reason::TaggedSymbol + ) + GOODS_SERVICES_NOT_AS_DESCRIBED = + T.let( + :GOODS_SERVICES_NOT_AS_DESCRIBED, + Lithic::Models::DisputeListResponse::Reason::TaggedSymbol + ) + GOODS_SERVICES_NOT_RECEIVED = + T.let( + :GOODS_SERVICES_NOT_RECEIVED, + Lithic::Models::DisputeListResponse::Reason::TaggedSymbol + ) + INCORRECT_AMOUNT = + T.let( + :INCORRECT_AMOUNT, + Lithic::Models::DisputeListResponse::Reason::TaggedSymbol + ) + MISSING_AUTH = + T.let( + :MISSING_AUTH, + Lithic::Models::DisputeListResponse::Reason::TaggedSymbol + ) + OTHER = + T.let( + :OTHER, + Lithic::Models::DisputeListResponse::Reason::TaggedSymbol + ) + PROCESSING_ERROR = + T.let( + :PROCESSING_ERROR, + Lithic::Models::DisputeListResponse::Reason::TaggedSymbol + ) + RECURRING_TRANSACTION_NOT_CANCELLED = + T.let( + :RECURRING_TRANSACTION_NOT_CANCELLED, + Lithic::Models::DisputeListResponse::Reason::TaggedSymbol + ) + REFUND_NOT_PROCESSED = + T.let( + :REFUND_NOT_PROCESSED, + Lithic::Models::DisputeListResponse::Reason::TaggedSymbol + ) + + sig do + override.returns( + T::Array[Lithic::Models::DisputeListResponse::Reason::TaggedSymbol] + ) + end + def self.values + end + end + + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + module ResolutionReason + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Lithic::Models::DisputeListResponse::ResolutionReason) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CASE_LOST = + T.let( + :CASE_LOST, + Lithic::Models::DisputeListResponse::ResolutionReason::TaggedSymbol + ) + NETWORK_REJECTED = + T.let( + :NETWORK_REJECTED, + Lithic::Models::DisputeListResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_3DS = + T.let( + :NO_DISPUTE_RIGHTS_3DS, + Lithic::Models::DisputeListResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_BELOW_THRESHOLD = + T.let( + :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD, + Lithic::Models::DisputeListResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_CONTACTLESS = + T.let( + :NO_DISPUTE_RIGHTS_CONTACTLESS, + Lithic::Models::DisputeListResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_HYBRID = + T.let( + :NO_DISPUTE_RIGHTS_HYBRID, + Lithic::Models::DisputeListResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS = + T.let( + :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS, + Lithic::Models::DisputeListResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_OTHER = + T.let( + :NO_DISPUTE_RIGHTS_OTHER, + Lithic::Models::DisputeListResponse::ResolutionReason::TaggedSymbol + ) + PAST_FILING_DATE = + T.let( + :PAST_FILING_DATE, + Lithic::Models::DisputeListResponse::ResolutionReason::TaggedSymbol + ) + PREARBITRATION_REJECTED = + T.let( + :PREARBITRATION_REJECTED, + Lithic::Models::DisputeListResponse::ResolutionReason::TaggedSymbol + ) + PROCESSOR_REJECTED_OTHER = + T.let( + :PROCESSOR_REJECTED_OTHER, + Lithic::Models::DisputeListResponse::ResolutionReason::TaggedSymbol + ) + REFUNDED = + T.let( + :REFUNDED, + Lithic::Models::DisputeListResponse::ResolutionReason::TaggedSymbol + ) + REFUNDED_AFTER_CHARGEBACK = + T.let( + :REFUNDED_AFTER_CHARGEBACK, + Lithic::Models::DisputeListResponse::ResolutionReason::TaggedSymbol + ) + WITHDRAWN = + T.let( + :WITHDRAWN, + Lithic::Models::DisputeListResponse::ResolutionReason::TaggedSymbol + ) + WON_ARBITRATION = + T.let( + :WON_ARBITRATION, + Lithic::Models::DisputeListResponse::ResolutionReason::TaggedSymbol + ) + WON_FIRST_CHARGEBACK = + T.let( + :WON_FIRST_CHARGEBACK, + Lithic::Models::DisputeListResponse::ResolutionReason::TaggedSymbol + ) + WON_PREARBITRATION = + T.let( + :WON_PREARBITRATION, + Lithic::Models::DisputeListResponse::ResolutionReason::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Models::DisputeListResponse::ResolutionReason::TaggedSymbol + ] + ) + end + def self.values + end + end + + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + module Status + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Lithic::Models::DisputeListResponse::Status) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ARBITRATION = + T.let( + :ARBITRATION, + Lithic::Models::DisputeListResponse::Status::TaggedSymbol + ) + CASE_CLOSED = + T.let( + :CASE_CLOSED, + Lithic::Models::DisputeListResponse::Status::TaggedSymbol + ) + CASE_WON = + T.let( + :CASE_WON, + Lithic::Models::DisputeListResponse::Status::TaggedSymbol + ) + NEW = + T.let(:NEW, Lithic::Models::DisputeListResponse::Status::TaggedSymbol) + PENDING_CUSTOMER = + T.let( + :PENDING_CUSTOMER, + Lithic::Models::DisputeListResponse::Status::TaggedSymbol + ) + PREARBITRATION = + T.let( + :PREARBITRATION, + Lithic::Models::DisputeListResponse::Status::TaggedSymbol + ) + REPRESENTMENT = + T.let( + :REPRESENTMENT, + Lithic::Models::DisputeListResponse::Status::TaggedSymbol + ) + SUBMITTED = + T.let( + :SUBMITTED, + Lithic::Models::DisputeListResponse::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[Lithic::Models::DisputeListResponse::Status::TaggedSymbol] + ) + end + def self.values + end + end + end + end +end diff --git a/rbi/lithic/models/dispute_retrieve_response.rbi b/rbi/lithic/models/dispute_retrieve_response.rbi new file mode 100644 index 00000000..b57fdeef --- /dev/null +++ b/rbi/lithic/models/dispute_retrieve_response.rbi @@ -0,0 +1,601 @@ +# typed: strong + +module Lithic + module Models + class DisputeRetrieveResponse < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::Models::DisputeRetrieveResponse, + Lithic::Internal::AnyHash + ) + end + + # Globally unique identifier. + sig { returns(String) } + attr_accessor :token + + # Amount under dispute. May be different from the original transaction amount. + sig { returns(Integer) } + attr_accessor :amount + + # Date dispute entered arbitration. + sig { returns(T.nilable(Time)) } + attr_accessor :arbitration_date + + # Timestamp of when first Dispute was reported. + sig { returns(Time) } + attr_accessor :created + + # Date that the dispute was filed by the customer making the dispute. + sig { returns(T.nilable(Time)) } + attr_accessor :customer_filed_date + + # End customer description of the reason for the dispute. + sig { returns(T.nilable(String)) } + attr_accessor :customer_note + + # Unique identifiers for the dispute from the network. + sig { returns(T.nilable(T::Array[String])) } + attr_accessor :network_claim_ids + + # Date that the dispute was submitted to the network. + sig { returns(T.nilable(Time)) } + attr_accessor :network_filed_date + + # Network reason code used to file the dispute. + sig { returns(T.nilable(String)) } + attr_accessor :network_reason_code + + # Date dispute entered pre-arbitration. + sig { returns(T.nilable(Time)) } + attr_accessor :prearbitration_date + + # Unique identifier for the dispute from the network. If there are multiple, this + # will be the first claim id set by the network + sig { returns(T.nilable(String)) } + attr_accessor :primary_claim_id + + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + sig do + returns(Lithic::Models::DisputeRetrieveResponse::Reason::TaggedSymbol) + end + attr_accessor :reason + + # Date the representment was received. + sig { returns(T.nilable(Time)) } + attr_accessor :representment_date + + # Date that the dispute was resolved. + sig { returns(T.nilable(Time)) } + attr_accessor :resolution_date + + # Note by Dispute team on the case resolution. + sig { returns(T.nilable(String)) } + attr_accessor :resolution_note + + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + sig do + returns( + T.nilable( + Lithic::Models::DisputeRetrieveResponse::ResolutionReason::TaggedSymbol + ) + ) + end + attr_accessor :resolution_reason + + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + sig do + returns(Lithic::Models::DisputeRetrieveResponse::Status::TaggedSymbol) + end + attr_accessor :status + + # The transaction that is being disputed. A transaction can only be disputed once + # but may have multiple dispute cases. + sig { returns(String) } + attr_accessor :transaction_token + + # Dispute. + sig do + params( + token: String, + amount: Integer, + arbitration_date: T.nilable(Time), + created: Time, + customer_filed_date: T.nilable(Time), + customer_note: T.nilable(String), + network_claim_ids: T.nilable(T::Array[String]), + network_filed_date: T.nilable(Time), + network_reason_code: T.nilable(String), + prearbitration_date: T.nilable(Time), + primary_claim_id: T.nilable(String), + reason: Lithic::Models::DisputeRetrieveResponse::Reason::OrSymbol, + representment_date: T.nilable(Time), + resolution_date: T.nilable(Time), + resolution_note: T.nilable(String), + resolution_reason: + T.nilable( + Lithic::Models::DisputeRetrieveResponse::ResolutionReason::OrSymbol + ), + status: Lithic::Models::DisputeRetrieveResponse::Status::OrSymbol, + transaction_token: String + ).returns(T.attached_class) + end + def self.new( + # Globally unique identifier. + token:, + # Amount under dispute. May be different from the original transaction amount. + amount:, + # Date dispute entered arbitration. + arbitration_date:, + # Timestamp of when first Dispute was reported. + created:, + # Date that the dispute was filed by the customer making the dispute. + customer_filed_date:, + # End customer description of the reason for the dispute. + customer_note:, + # Unique identifiers for the dispute from the network. + network_claim_ids:, + # Date that the dispute was submitted to the network. + network_filed_date:, + # Network reason code used to file the dispute. + network_reason_code:, + # Date dispute entered pre-arbitration. + prearbitration_date:, + # Unique identifier for the dispute from the network. If there are multiple, this + # will be the first claim id set by the network + primary_claim_id:, + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + reason:, + # Date the representment was received. + representment_date:, + # Date that the dispute was resolved. + resolution_date:, + # Note by Dispute team on the case resolution. + resolution_note:, + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + resolution_reason:, + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + status:, + # The transaction that is being disputed. A transaction can only be disputed once + # but may have multiple dispute cases. + transaction_token: + ) + end + + sig do + override.returns( + { + token: String, + amount: Integer, + arbitration_date: T.nilable(Time), + created: Time, + customer_filed_date: T.nilable(Time), + customer_note: T.nilable(String), + network_claim_ids: T.nilable(T::Array[String]), + network_filed_date: T.nilable(Time), + network_reason_code: T.nilable(String), + prearbitration_date: T.nilable(Time), + primary_claim_id: T.nilable(String), + reason: + Lithic::Models::DisputeRetrieveResponse::Reason::TaggedSymbol, + representment_date: T.nilable(Time), + resolution_date: T.nilable(Time), + resolution_note: T.nilable(String), + resolution_reason: + T.nilable( + Lithic::Models::DisputeRetrieveResponse::ResolutionReason::TaggedSymbol + ), + status: + Lithic::Models::DisputeRetrieveResponse::Status::TaggedSymbol, + transaction_token: String + } + ) + end + def to_hash + end + + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + module Reason + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Lithic::Models::DisputeRetrieveResponse::Reason) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ATM_CASH_MISDISPENSE = + T.let( + :ATM_CASH_MISDISPENSE, + Lithic::Models::DisputeRetrieveResponse::Reason::TaggedSymbol + ) + CANCELLED = + T.let( + :CANCELLED, + Lithic::Models::DisputeRetrieveResponse::Reason::TaggedSymbol + ) + DUPLICATED = + T.let( + :DUPLICATED, + Lithic::Models::DisputeRetrieveResponse::Reason::TaggedSymbol + ) + FRAUD_CARD_NOT_PRESENT = + T.let( + :FRAUD_CARD_NOT_PRESENT, + Lithic::Models::DisputeRetrieveResponse::Reason::TaggedSymbol + ) + FRAUD_CARD_PRESENT = + T.let( + :FRAUD_CARD_PRESENT, + Lithic::Models::DisputeRetrieveResponse::Reason::TaggedSymbol + ) + FRAUD_OTHER = + T.let( + :FRAUD_OTHER, + Lithic::Models::DisputeRetrieveResponse::Reason::TaggedSymbol + ) + GOODS_SERVICES_NOT_AS_DESCRIBED = + T.let( + :GOODS_SERVICES_NOT_AS_DESCRIBED, + Lithic::Models::DisputeRetrieveResponse::Reason::TaggedSymbol + ) + GOODS_SERVICES_NOT_RECEIVED = + T.let( + :GOODS_SERVICES_NOT_RECEIVED, + Lithic::Models::DisputeRetrieveResponse::Reason::TaggedSymbol + ) + INCORRECT_AMOUNT = + T.let( + :INCORRECT_AMOUNT, + Lithic::Models::DisputeRetrieveResponse::Reason::TaggedSymbol + ) + MISSING_AUTH = + T.let( + :MISSING_AUTH, + Lithic::Models::DisputeRetrieveResponse::Reason::TaggedSymbol + ) + OTHER = + T.let( + :OTHER, + Lithic::Models::DisputeRetrieveResponse::Reason::TaggedSymbol + ) + PROCESSING_ERROR = + T.let( + :PROCESSING_ERROR, + Lithic::Models::DisputeRetrieveResponse::Reason::TaggedSymbol + ) + RECURRING_TRANSACTION_NOT_CANCELLED = + T.let( + :RECURRING_TRANSACTION_NOT_CANCELLED, + Lithic::Models::DisputeRetrieveResponse::Reason::TaggedSymbol + ) + REFUND_NOT_PROCESSED = + T.let( + :REFUND_NOT_PROCESSED, + Lithic::Models::DisputeRetrieveResponse::Reason::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Models::DisputeRetrieveResponse::Reason::TaggedSymbol + ] + ) + end + def self.values + end + end + + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + module ResolutionReason + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::Models::DisputeRetrieveResponse::ResolutionReason + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CASE_LOST = + T.let( + :CASE_LOST, + Lithic::Models::DisputeRetrieveResponse::ResolutionReason::TaggedSymbol + ) + NETWORK_REJECTED = + T.let( + :NETWORK_REJECTED, + Lithic::Models::DisputeRetrieveResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_3DS = + T.let( + :NO_DISPUTE_RIGHTS_3DS, + Lithic::Models::DisputeRetrieveResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_BELOW_THRESHOLD = + T.let( + :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD, + Lithic::Models::DisputeRetrieveResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_CONTACTLESS = + T.let( + :NO_DISPUTE_RIGHTS_CONTACTLESS, + Lithic::Models::DisputeRetrieveResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_HYBRID = + T.let( + :NO_DISPUTE_RIGHTS_HYBRID, + Lithic::Models::DisputeRetrieveResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS = + T.let( + :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS, + Lithic::Models::DisputeRetrieveResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_OTHER = + T.let( + :NO_DISPUTE_RIGHTS_OTHER, + Lithic::Models::DisputeRetrieveResponse::ResolutionReason::TaggedSymbol + ) + PAST_FILING_DATE = + T.let( + :PAST_FILING_DATE, + Lithic::Models::DisputeRetrieveResponse::ResolutionReason::TaggedSymbol + ) + PREARBITRATION_REJECTED = + T.let( + :PREARBITRATION_REJECTED, + Lithic::Models::DisputeRetrieveResponse::ResolutionReason::TaggedSymbol + ) + PROCESSOR_REJECTED_OTHER = + T.let( + :PROCESSOR_REJECTED_OTHER, + Lithic::Models::DisputeRetrieveResponse::ResolutionReason::TaggedSymbol + ) + REFUNDED = + T.let( + :REFUNDED, + Lithic::Models::DisputeRetrieveResponse::ResolutionReason::TaggedSymbol + ) + REFUNDED_AFTER_CHARGEBACK = + T.let( + :REFUNDED_AFTER_CHARGEBACK, + Lithic::Models::DisputeRetrieveResponse::ResolutionReason::TaggedSymbol + ) + WITHDRAWN = + T.let( + :WITHDRAWN, + Lithic::Models::DisputeRetrieveResponse::ResolutionReason::TaggedSymbol + ) + WON_ARBITRATION = + T.let( + :WON_ARBITRATION, + Lithic::Models::DisputeRetrieveResponse::ResolutionReason::TaggedSymbol + ) + WON_FIRST_CHARGEBACK = + T.let( + :WON_FIRST_CHARGEBACK, + Lithic::Models::DisputeRetrieveResponse::ResolutionReason::TaggedSymbol + ) + WON_PREARBITRATION = + T.let( + :WON_PREARBITRATION, + Lithic::Models::DisputeRetrieveResponse::ResolutionReason::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Models::DisputeRetrieveResponse::ResolutionReason::TaggedSymbol + ] + ) + end + def self.values + end + end + + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + module Status + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Lithic::Models::DisputeRetrieveResponse::Status) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ARBITRATION = + T.let( + :ARBITRATION, + Lithic::Models::DisputeRetrieveResponse::Status::TaggedSymbol + ) + CASE_CLOSED = + T.let( + :CASE_CLOSED, + Lithic::Models::DisputeRetrieveResponse::Status::TaggedSymbol + ) + CASE_WON = + T.let( + :CASE_WON, + Lithic::Models::DisputeRetrieveResponse::Status::TaggedSymbol + ) + NEW = + T.let( + :NEW, + Lithic::Models::DisputeRetrieveResponse::Status::TaggedSymbol + ) + PENDING_CUSTOMER = + T.let( + :PENDING_CUSTOMER, + Lithic::Models::DisputeRetrieveResponse::Status::TaggedSymbol + ) + PREARBITRATION = + T.let( + :PREARBITRATION, + Lithic::Models::DisputeRetrieveResponse::Status::TaggedSymbol + ) + REPRESENTMENT = + T.let( + :REPRESENTMENT, + Lithic::Models::DisputeRetrieveResponse::Status::TaggedSymbol + ) + SUBMITTED = + T.let( + :SUBMITTED, + Lithic::Models::DisputeRetrieveResponse::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Models::DisputeRetrieveResponse::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end +end diff --git a/rbi/lithic/models/dispute_update_response.rbi b/rbi/lithic/models/dispute_update_response.rbi new file mode 100644 index 00000000..38647ea1 --- /dev/null +++ b/rbi/lithic/models/dispute_update_response.rbi @@ -0,0 +1,599 @@ +# typed: strong + +module Lithic + module Models + class DisputeUpdateResponse < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::Models::DisputeUpdateResponse, + Lithic::Internal::AnyHash + ) + end + + # Globally unique identifier. + sig { returns(String) } + attr_accessor :token + + # Amount under dispute. May be different from the original transaction amount. + sig { returns(Integer) } + attr_accessor :amount + + # Date dispute entered arbitration. + sig { returns(T.nilable(Time)) } + attr_accessor :arbitration_date + + # Timestamp of when first Dispute was reported. + sig { returns(Time) } + attr_accessor :created + + # Date that the dispute was filed by the customer making the dispute. + sig { returns(T.nilable(Time)) } + attr_accessor :customer_filed_date + + # End customer description of the reason for the dispute. + sig { returns(T.nilable(String)) } + attr_accessor :customer_note + + # Unique identifiers for the dispute from the network. + sig { returns(T.nilable(T::Array[String])) } + attr_accessor :network_claim_ids + + # Date that the dispute was submitted to the network. + sig { returns(T.nilable(Time)) } + attr_accessor :network_filed_date + + # Network reason code used to file the dispute. + sig { returns(T.nilable(String)) } + attr_accessor :network_reason_code + + # Date dispute entered pre-arbitration. + sig { returns(T.nilable(Time)) } + attr_accessor :prearbitration_date + + # Unique identifier for the dispute from the network. If there are multiple, this + # will be the first claim id set by the network + sig { returns(T.nilable(String)) } + attr_accessor :primary_claim_id + + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + sig do + returns(Lithic::Models::DisputeUpdateResponse::Reason::TaggedSymbol) + end + attr_accessor :reason + + # Date the representment was received. + sig { returns(T.nilable(Time)) } + attr_accessor :representment_date + + # Date that the dispute was resolved. + sig { returns(T.nilable(Time)) } + attr_accessor :resolution_date + + # Note by Dispute team on the case resolution. + sig { returns(T.nilable(String)) } + attr_accessor :resolution_note + + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + sig do + returns( + T.nilable( + Lithic::Models::DisputeUpdateResponse::ResolutionReason::TaggedSymbol + ) + ) + end + attr_accessor :resolution_reason + + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + sig do + returns(Lithic::Models::DisputeUpdateResponse::Status::TaggedSymbol) + end + attr_accessor :status + + # The transaction that is being disputed. A transaction can only be disputed once + # but may have multiple dispute cases. + sig { returns(String) } + attr_accessor :transaction_token + + # Dispute. + sig do + params( + token: String, + amount: Integer, + arbitration_date: T.nilable(Time), + created: Time, + customer_filed_date: T.nilable(Time), + customer_note: T.nilable(String), + network_claim_ids: T.nilable(T::Array[String]), + network_filed_date: T.nilable(Time), + network_reason_code: T.nilable(String), + prearbitration_date: T.nilable(Time), + primary_claim_id: T.nilable(String), + reason: Lithic::Models::DisputeUpdateResponse::Reason::OrSymbol, + representment_date: T.nilable(Time), + resolution_date: T.nilable(Time), + resolution_note: T.nilable(String), + resolution_reason: + T.nilable( + Lithic::Models::DisputeUpdateResponse::ResolutionReason::OrSymbol + ), + status: Lithic::Models::DisputeUpdateResponse::Status::OrSymbol, + transaction_token: String + ).returns(T.attached_class) + end + def self.new( + # Globally unique identifier. + token:, + # Amount under dispute. May be different from the original transaction amount. + amount:, + # Date dispute entered arbitration. + arbitration_date:, + # Timestamp of when first Dispute was reported. + created:, + # Date that the dispute was filed by the customer making the dispute. + customer_filed_date:, + # End customer description of the reason for the dispute. + customer_note:, + # Unique identifiers for the dispute from the network. + network_claim_ids:, + # Date that the dispute was submitted to the network. + network_filed_date:, + # Network reason code used to file the dispute. + network_reason_code:, + # Date dispute entered pre-arbitration. + prearbitration_date:, + # Unique identifier for the dispute from the network. If there are multiple, this + # will be the first claim id set by the network + primary_claim_id:, + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + reason:, + # Date the representment was received. + representment_date:, + # Date that the dispute was resolved. + resolution_date:, + # Note by Dispute team on the case resolution. + resolution_note:, + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + resolution_reason:, + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + status:, + # The transaction that is being disputed. A transaction can only be disputed once + # but may have multiple dispute cases. + transaction_token: + ) + end + + sig do + override.returns( + { + token: String, + amount: Integer, + arbitration_date: T.nilable(Time), + created: Time, + customer_filed_date: T.nilable(Time), + customer_note: T.nilable(String), + network_claim_ids: T.nilable(T::Array[String]), + network_filed_date: T.nilable(Time), + network_reason_code: T.nilable(String), + prearbitration_date: T.nilable(Time), + primary_claim_id: T.nilable(String), + reason: Lithic::Models::DisputeUpdateResponse::Reason::TaggedSymbol, + representment_date: T.nilable(Time), + resolution_date: T.nilable(Time), + resolution_note: T.nilable(String), + resolution_reason: + T.nilable( + Lithic::Models::DisputeUpdateResponse::ResolutionReason::TaggedSymbol + ), + status: Lithic::Models::DisputeUpdateResponse::Status::TaggedSymbol, + transaction_token: String + } + ) + end + def to_hash + end + + # Dispute reason: + # + # - `ATM_CASH_MISDISPENSE`: ATM cash misdispense. + # - `CANCELLED`: Transaction was cancelled by the customer. + # - `DUPLICATED`: The transaction was a duplicate. + # - `FRAUD_CARD_NOT_PRESENT`: Fraudulent transaction, card not present. + # - `FRAUD_CARD_PRESENT`: Fraudulent transaction, card present. + # - `FRAUD_OTHER`: Fraudulent transaction, other types such as questionable + # merchant activity. + # - `GOODS_SERVICES_NOT_AS_DESCRIBED`: The goods or services were not as + # described. + # - `GOODS_SERVICES_NOT_RECEIVED`: The goods or services were not received. + # - `INCORRECT_AMOUNT`: The transaction amount was incorrect. + # - `MISSING_AUTH`: The transaction was missing authorization. + # - `OTHER`: Other reason. + # - `PROCESSING_ERROR`: Processing error. + # - `REFUND_NOT_PROCESSED`: The refund was not processed. + # - `RECURRING_TRANSACTION_NOT_CANCELLED`: The recurring transaction was not + # cancelled. + module Reason + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Lithic::Models::DisputeUpdateResponse::Reason) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ATM_CASH_MISDISPENSE = + T.let( + :ATM_CASH_MISDISPENSE, + Lithic::Models::DisputeUpdateResponse::Reason::TaggedSymbol + ) + CANCELLED = + T.let( + :CANCELLED, + Lithic::Models::DisputeUpdateResponse::Reason::TaggedSymbol + ) + DUPLICATED = + T.let( + :DUPLICATED, + Lithic::Models::DisputeUpdateResponse::Reason::TaggedSymbol + ) + FRAUD_CARD_NOT_PRESENT = + T.let( + :FRAUD_CARD_NOT_PRESENT, + Lithic::Models::DisputeUpdateResponse::Reason::TaggedSymbol + ) + FRAUD_CARD_PRESENT = + T.let( + :FRAUD_CARD_PRESENT, + Lithic::Models::DisputeUpdateResponse::Reason::TaggedSymbol + ) + FRAUD_OTHER = + T.let( + :FRAUD_OTHER, + Lithic::Models::DisputeUpdateResponse::Reason::TaggedSymbol + ) + GOODS_SERVICES_NOT_AS_DESCRIBED = + T.let( + :GOODS_SERVICES_NOT_AS_DESCRIBED, + Lithic::Models::DisputeUpdateResponse::Reason::TaggedSymbol + ) + GOODS_SERVICES_NOT_RECEIVED = + T.let( + :GOODS_SERVICES_NOT_RECEIVED, + Lithic::Models::DisputeUpdateResponse::Reason::TaggedSymbol + ) + INCORRECT_AMOUNT = + T.let( + :INCORRECT_AMOUNT, + Lithic::Models::DisputeUpdateResponse::Reason::TaggedSymbol + ) + MISSING_AUTH = + T.let( + :MISSING_AUTH, + Lithic::Models::DisputeUpdateResponse::Reason::TaggedSymbol + ) + OTHER = + T.let( + :OTHER, + Lithic::Models::DisputeUpdateResponse::Reason::TaggedSymbol + ) + PROCESSING_ERROR = + T.let( + :PROCESSING_ERROR, + Lithic::Models::DisputeUpdateResponse::Reason::TaggedSymbol + ) + RECURRING_TRANSACTION_NOT_CANCELLED = + T.let( + :RECURRING_TRANSACTION_NOT_CANCELLED, + Lithic::Models::DisputeUpdateResponse::Reason::TaggedSymbol + ) + REFUND_NOT_PROCESSED = + T.let( + :REFUND_NOT_PROCESSED, + Lithic::Models::DisputeUpdateResponse::Reason::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Models::DisputeUpdateResponse::Reason::TaggedSymbol + ] + ) + end + def self.values + end + end + + # Reason for the dispute resolution: + # + # - `CASE_LOST`: This case was lost at final arbitration. + # - `NETWORK_REJECTED`: Network rejected. + # - `NO_DISPUTE_RIGHTS_3DS`: No dispute rights, 3DS. + # - `NO_DISPUTE_RIGHTS_BELOW_THRESHOLD`: No dispute rights, below threshold. + # - `NO_DISPUTE_RIGHTS_CONTACTLESS`: No dispute rights, contactless. + # - `NO_DISPUTE_RIGHTS_HYBRID`: No dispute rights, hybrid. + # - `NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS`: No dispute rights, max chargebacks. + # - `NO_DISPUTE_RIGHTS_OTHER`: No dispute rights, other. + # - `PAST_FILING_DATE`: Past filing date. + # - `PREARBITRATION_REJECTED`: Prearbitration rejected. + # - `PROCESSOR_REJECTED_OTHER`: Processor rejected, other. + # - `REFUNDED`: Refunded. + # - `REFUNDED_AFTER_CHARGEBACK`: Refunded after chargeback. + # - `WITHDRAWN`: Withdrawn. + # - `WON_ARBITRATION`: Won arbitration. + # - `WON_FIRST_CHARGEBACK`: Won first chargeback. + # - `WON_PREARBITRATION`: Won prearbitration. + module ResolutionReason + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::Models::DisputeUpdateResponse::ResolutionReason + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CASE_LOST = + T.let( + :CASE_LOST, + Lithic::Models::DisputeUpdateResponse::ResolutionReason::TaggedSymbol + ) + NETWORK_REJECTED = + T.let( + :NETWORK_REJECTED, + Lithic::Models::DisputeUpdateResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_3DS = + T.let( + :NO_DISPUTE_RIGHTS_3DS, + Lithic::Models::DisputeUpdateResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_BELOW_THRESHOLD = + T.let( + :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD, + Lithic::Models::DisputeUpdateResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_CONTACTLESS = + T.let( + :NO_DISPUTE_RIGHTS_CONTACTLESS, + Lithic::Models::DisputeUpdateResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_HYBRID = + T.let( + :NO_DISPUTE_RIGHTS_HYBRID, + Lithic::Models::DisputeUpdateResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS = + T.let( + :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS, + Lithic::Models::DisputeUpdateResponse::ResolutionReason::TaggedSymbol + ) + NO_DISPUTE_RIGHTS_OTHER = + T.let( + :NO_DISPUTE_RIGHTS_OTHER, + Lithic::Models::DisputeUpdateResponse::ResolutionReason::TaggedSymbol + ) + PAST_FILING_DATE = + T.let( + :PAST_FILING_DATE, + Lithic::Models::DisputeUpdateResponse::ResolutionReason::TaggedSymbol + ) + PREARBITRATION_REJECTED = + T.let( + :PREARBITRATION_REJECTED, + Lithic::Models::DisputeUpdateResponse::ResolutionReason::TaggedSymbol + ) + PROCESSOR_REJECTED_OTHER = + T.let( + :PROCESSOR_REJECTED_OTHER, + Lithic::Models::DisputeUpdateResponse::ResolutionReason::TaggedSymbol + ) + REFUNDED = + T.let( + :REFUNDED, + Lithic::Models::DisputeUpdateResponse::ResolutionReason::TaggedSymbol + ) + REFUNDED_AFTER_CHARGEBACK = + T.let( + :REFUNDED_AFTER_CHARGEBACK, + Lithic::Models::DisputeUpdateResponse::ResolutionReason::TaggedSymbol + ) + WITHDRAWN = + T.let( + :WITHDRAWN, + Lithic::Models::DisputeUpdateResponse::ResolutionReason::TaggedSymbol + ) + WON_ARBITRATION = + T.let( + :WON_ARBITRATION, + Lithic::Models::DisputeUpdateResponse::ResolutionReason::TaggedSymbol + ) + WON_FIRST_CHARGEBACK = + T.let( + :WON_FIRST_CHARGEBACK, + Lithic::Models::DisputeUpdateResponse::ResolutionReason::TaggedSymbol + ) + WON_PREARBITRATION = + T.let( + :WON_PREARBITRATION, + Lithic::Models::DisputeUpdateResponse::ResolutionReason::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Models::DisputeUpdateResponse::ResolutionReason::TaggedSymbol + ] + ) + end + def self.values + end + end + + # Status types: + # + # - `NEW` - New dispute case is opened. + # - `PENDING_CUSTOMER` - Lithic is waiting for customer to provide more + # information. + # - `SUBMITTED` - Dispute is submitted to the card network. + # - `REPRESENTMENT` - Case has entered second presentment. + # - `PREARBITRATION` - Case has entered prearbitration. + # - `ARBITRATION` - Case has entered arbitration. + # - `CASE_WON` - Case was won and credit will be issued. + # - `CASE_CLOSED` - Case was lost or withdrawn. + module Status + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Lithic::Models::DisputeUpdateResponse::Status) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ARBITRATION = + T.let( + :ARBITRATION, + Lithic::Models::DisputeUpdateResponse::Status::TaggedSymbol + ) + CASE_CLOSED = + T.let( + :CASE_CLOSED, + Lithic::Models::DisputeUpdateResponse::Status::TaggedSymbol + ) + CASE_WON = + T.let( + :CASE_WON, + Lithic::Models::DisputeUpdateResponse::Status::TaggedSymbol + ) + NEW = + T.let( + :NEW, + Lithic::Models::DisputeUpdateResponse::Status::TaggedSymbol + ) + PENDING_CUSTOMER = + T.let( + :PENDING_CUSTOMER, + Lithic::Models::DisputeUpdateResponse::Status::TaggedSymbol + ) + PREARBITRATION = + T.let( + :PREARBITRATION, + Lithic::Models::DisputeUpdateResponse::Status::TaggedSymbol + ) + REPRESENTMENT = + T.let( + :REPRESENTMENT, + Lithic::Models::DisputeUpdateResponse::Status::TaggedSymbol + ) + SUBMITTED = + T.let( + :SUBMITTED, + Lithic::Models::DisputeUpdateResponse::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Models::DisputeUpdateResponse::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end +end diff --git a/rbi/lithic/models/event.rbi b/rbi/lithic/models/event.rbi index ce31228e..45298700 100644 --- a/rbi/lithic/models/event.rbi +++ b/rbi/lithic/models/event.rbi @@ -15,37 +15,106 @@ module Lithic sig { returns(Time) } attr_accessor :created - # Event types: + # The type of event that occurred. Possible values: # - # - `account_holder.created` - Notification that a new account holder has been - # created and was not rejected. - # - `account_holder.updated` - Notification that an account holder was updated. - # - `account_holder.verification` - Notification than an account holder's identity - # verification is complete. - # - `card.created` - Notification that a card has been created. - # - `card.renewed` - Notification that a card has been renewed. - # - `card.reissued` - Notification that a card has been reissued. - # - `card.shipped` - Physical card shipment notification. See - # https://docs.lithic.com/docs/cards#physical-card-shipped-webhook. - # - `card.converted` - Notification that a virtual card has been converted to a - # physical card. - # - `card_transaction.updated` - Transaction Lifecycle webhook. See - # https://docs.lithic.com/docs/transaction-webhooks. - # - `dispute.updated` - A dispute has been updated. - # - `dispute_transaction.created` - A new dispute transaction has been created. - # - `dispute_transaction.updated` - A dispute transaction has been updated. - # - `digital_wallet.tokenization_approval_request` - Card network's request to - # Lithic to activate a digital wallet token. - # - `digital_wallet.tokenization_result` - Notification of the end result of a - # tokenization, whether successful or failed. - # - `digital_wallet.tokenization_two_factor_authentication_code` - A code to be - # passed to an end user to complete digital wallet authentication. See - # https://docs.lithic.com/docs/tokenization-control#digital-wallet-tokenization-auth-code. - # - `digital_wallet.tokenization_two_factor_authentication_code_sent` - - # Notification that a two factor authentication code for activating a digital - # wallet has been sent to the end user. - # - `digital_wallet.tokenization_updated` - Notification that a digital wallet - # tokenization's status has changed. + # - account_holder_document.updated: Occurs when an account holder's document + # upload status has been updated + # - account_holder.created: Occurs when a new account_holder is created. + # - account_holder.updated: Occurs when an account_holder is updated. + # - account_holder.verification: Occurs when an asynchronous account_holder's + # verification is completed. + # - auth_rules.backtest_report.created: Auth Rules backtest report created. + # - balance.updated: Financial Account Balance Update + # - book_transfer_transaction.created: Occurs when a book transfer transaction is + # created. + # - book_transfer_transaction.updated: Occurs when a book transfer transaction is + # updated. + # - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial + # data is processed for a transaction event. + # - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial + # data is reprocessed for a transaction event. + # - card_transaction.updated: Occurs when a card transaction happens. + # - card.converted: Occurs when a card is converted from virtual to physical + # cards. + # - card.created: Occurs when a new card is created. + # - card.reissued: Occurs when a card is reissued. + # - card.renewed: Occurs when a card is renewed. + # - card.shipped: Occurs when a card is shipped. + # - digital_wallet.tokenization_approval_request: Occurs when a tokenization + # approval request is made. This event will be deprecated in the future. We + # recommend using `tokenization.approval_request` instead. + # - digital_wallet.tokenization_result: Occurs when a tokenization request + # succeeded or failed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.result` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code: Occurs when a + # tokenization request 2FA code is sent to the Lithic customer for self serve + # delivery. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code_sent: Occurs when a + # tokenization request 2FA code is sent to our downstream messaging providers + # for delivery. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code_sent` instead. + # + # - digital_wallet.tokenization_updated: Occurs when a tokenization's status has + # changed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.updated` instead. + # + # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_transaction.created: Occurs when a new dispute transaction is created + # - dispute_transaction.updated: Occurs when a dispute transaction is updated + # - dispute.updated: Occurs when a dispute is updated. + # - external_bank_account.created: Occurs when an external bank account is + # created. + # - external_bank_account.updated: Occurs when an external bank account is + # updated. + # - external_payment.created: Occurs when an external payment is created. + # - external_payment.updated: Occurs when an external payment is updated. + # - financial_account.created: Occurs when a financial account is created. + # - financial_account.updated: Occurs when a financial account is updated. + # - funding_event.created: Occurs when a funding event is created. + # - internal_transaction.created: Occurs when an internal adjustment is created. + # - internal_transaction.updated: Occurs when an internal adjustment is updated. + # - loan_tape.created: Occurs when a loan tape is created. + # - loan_tape.updated: Occurs when a loan tape is updated. + # - management_operation.created: Occurs when an management operation is created. + # - management_operation.updated: Occurs when an management operation is updated. + # - network_total.created: Occurs when a network total is created. + # - network_total.updated: Occurs when a network total is updated. + # - payment_transaction.created: Occurs when a payment transaction is created. + # - payment_transaction.updated: Occurs when a payment transaction is updated. + # - settlement_report.updated: Occurs when a settlement report is created or + # updated. + # - statements.created: Occurs when a statement has been created + # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` + # event. Upon receiving this request, the Card Program should issue its own + # challenge to the cardholder. After a cardholder challenge is successfully + # completed, the Card Program needs to respond back to Lithic by call to + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # Then the cardholder must navigate back to the merchant checkout flow to + # complete the transaction. Some merchants will include an `app_requestor_url` + # for app-based purchases; Lithic recommends triggering a redirect to that URL + # after the cardholder completes an app-based challenge. + # - three_ds_authentication.created: Occurs when a 3DS authentication is created. + # - three_ds_authentication.updated: Occurs when a 3DS authentication is updated + # (eg. challenge is completed). + # - tokenization.approval_request: Occurs when a tokenization approval request is + # made. + # - tokenization.result: Occurs when a tokenization request succeeded or failed. + # - tokenization.two_factor_authentication_code: Occurs when a tokenization + # request 2FA code is sent to the Lithic customer for self serve delivery. + # - tokenization.two_factor_authentication_code_sent: Occurs when a tokenization + # request 2FA code is sent to our downstream messaging providers for delivery. + # - tokenization.updated: Occurs when a tokenization's status has changed. sig { returns(Lithic::Event::EventType::TaggedSymbol) } attr_accessor :event_type @@ -68,37 +137,106 @@ module Lithic # # If no timezone is specified, UTC will be used. created:, - # Event types: + # The type of event that occurred. Possible values: + # + # - account_holder_document.updated: Occurs when an account holder's document + # upload status has been updated + # - account_holder.created: Occurs when a new account_holder is created. + # - account_holder.updated: Occurs when an account_holder is updated. + # - account_holder.verification: Occurs when an asynchronous account_holder's + # verification is completed. + # - auth_rules.backtest_report.created: Auth Rules backtest report created. + # - balance.updated: Financial Account Balance Update + # - book_transfer_transaction.created: Occurs when a book transfer transaction is + # created. + # - book_transfer_transaction.updated: Occurs when a book transfer transaction is + # updated. + # - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial + # data is processed for a transaction event. + # - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial + # data is reprocessed for a transaction event. + # - card_transaction.updated: Occurs when a card transaction happens. + # - card.converted: Occurs when a card is converted from virtual to physical + # cards. + # - card.created: Occurs when a new card is created. + # - card.reissued: Occurs when a card is reissued. + # - card.renewed: Occurs when a card is renewed. + # - card.shipped: Occurs when a card is shipped. + # - digital_wallet.tokenization_approval_request: Occurs when a tokenization + # approval request is made. This event will be deprecated in the future. We + # recommend using `tokenization.approval_request` instead. + # - digital_wallet.tokenization_result: Occurs when a tokenization request + # succeeded or failed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.result` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code: Occurs when a + # tokenization request 2FA code is sent to the Lithic customer for self serve + # delivery. # - # - `account_holder.created` - Notification that a new account holder has been - # created and was not rejected. - # - `account_holder.updated` - Notification that an account holder was updated. - # - `account_holder.verification` - Notification than an account holder's identity - # verification is complete. - # - `card.created` - Notification that a card has been created. - # - `card.renewed` - Notification that a card has been renewed. - # - `card.reissued` - Notification that a card has been reissued. - # - `card.shipped` - Physical card shipment notification. See - # https://docs.lithic.com/docs/cards#physical-card-shipped-webhook. - # - `card.converted` - Notification that a virtual card has been converted to a - # physical card. - # - `card_transaction.updated` - Transaction Lifecycle webhook. See - # https://docs.lithic.com/docs/transaction-webhooks. - # - `dispute.updated` - A dispute has been updated. - # - `dispute_transaction.created` - A new dispute transaction has been created. - # - `dispute_transaction.updated` - A dispute transaction has been updated. - # - `digital_wallet.tokenization_approval_request` - Card network's request to - # Lithic to activate a digital wallet token. - # - `digital_wallet.tokenization_result` - Notification of the end result of a - # tokenization, whether successful or failed. - # - `digital_wallet.tokenization_two_factor_authentication_code` - A code to be - # passed to an end user to complete digital wallet authentication. See - # https://docs.lithic.com/docs/tokenization-control#digital-wallet-tokenization-auth-code. - # - `digital_wallet.tokenization_two_factor_authentication_code_sent` - - # Notification that a two factor authentication code for activating a digital - # wallet has been sent to the end user. - # - `digital_wallet.tokenization_updated` - Notification that a digital wallet - # tokenization's status has changed. + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code_sent: Occurs when a + # tokenization request 2FA code is sent to our downstream messaging providers + # for delivery. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code_sent` instead. + # + # - digital_wallet.tokenization_updated: Occurs when a tokenization's status has + # changed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.updated` instead. + # + # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_transaction.created: Occurs when a new dispute transaction is created + # - dispute_transaction.updated: Occurs when a dispute transaction is updated + # - dispute.updated: Occurs when a dispute is updated. + # - external_bank_account.created: Occurs when an external bank account is + # created. + # - external_bank_account.updated: Occurs when an external bank account is + # updated. + # - external_payment.created: Occurs when an external payment is created. + # - external_payment.updated: Occurs when an external payment is updated. + # - financial_account.created: Occurs when a financial account is created. + # - financial_account.updated: Occurs when a financial account is updated. + # - funding_event.created: Occurs when a funding event is created. + # - internal_transaction.created: Occurs when an internal adjustment is created. + # - internal_transaction.updated: Occurs when an internal adjustment is updated. + # - loan_tape.created: Occurs when a loan tape is created. + # - loan_tape.updated: Occurs when a loan tape is updated. + # - management_operation.created: Occurs when an management operation is created. + # - management_operation.updated: Occurs when an management operation is updated. + # - network_total.created: Occurs when a network total is created. + # - network_total.updated: Occurs when a network total is updated. + # - payment_transaction.created: Occurs when a payment transaction is created. + # - payment_transaction.updated: Occurs when a payment transaction is updated. + # - settlement_report.updated: Occurs when a settlement report is created or + # updated. + # - statements.created: Occurs when a statement has been created + # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` + # event. Upon receiving this request, the Card Program should issue its own + # challenge to the cardholder. After a cardholder challenge is successfully + # completed, the Card Program needs to respond back to Lithic by call to + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # Then the cardholder must navigate back to the merchant checkout flow to + # complete the transaction. Some merchants will include an `app_requestor_url` + # for app-based purchases; Lithic recommends triggering a redirect to that URL + # after the cardholder completes an app-based challenge. + # - three_ds_authentication.created: Occurs when a 3DS authentication is created. + # - three_ds_authentication.updated: Occurs when a 3DS authentication is updated + # (eg. challenge is completed). + # - tokenization.approval_request: Occurs when a tokenization approval request is + # made. + # - tokenization.result: Occurs when a tokenization request succeeded or failed. + # - tokenization.two_factor_authentication_code: Occurs when a tokenization + # request 2FA code is sent to the Lithic customer for self serve delivery. + # - tokenization.two_factor_authentication_code_sent: Occurs when a tokenization + # request 2FA code is sent to our downstream messaging providers for delivery. + # - tokenization.updated: Occurs when a tokenization's status has changed. event_type:, payload: ) @@ -117,43 +255,117 @@ module Lithic def to_hash end - # Event types: + # The type of event that occurred. Possible values: + # + # - account_holder_document.updated: Occurs when an account holder's document + # upload status has been updated + # - account_holder.created: Occurs when a new account_holder is created. + # - account_holder.updated: Occurs when an account_holder is updated. + # - account_holder.verification: Occurs when an asynchronous account_holder's + # verification is completed. + # - auth_rules.backtest_report.created: Auth Rules backtest report created. + # - balance.updated: Financial Account Balance Update + # - book_transfer_transaction.created: Occurs when a book transfer transaction is + # created. + # - book_transfer_transaction.updated: Occurs when a book transfer transaction is + # updated. + # - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial + # data is processed for a transaction event. + # - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial + # data is reprocessed for a transaction event. + # - card_transaction.updated: Occurs when a card transaction happens. + # - card.converted: Occurs when a card is converted from virtual to physical + # cards. + # - card.created: Occurs when a new card is created. + # - card.reissued: Occurs when a card is reissued. + # - card.renewed: Occurs when a card is renewed. + # - card.shipped: Occurs when a card is shipped. + # - digital_wallet.tokenization_approval_request: Occurs when a tokenization + # approval request is made. This event will be deprecated in the future. We + # recommend using `tokenization.approval_request` instead. + # - digital_wallet.tokenization_result: Occurs when a tokenization request + # succeeded or failed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.result` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code: Occurs when a + # tokenization request 2FA code is sent to the Lithic customer for self serve + # delivery. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code_sent: Occurs when a + # tokenization request 2FA code is sent to our downstream messaging providers + # for delivery. # - # - `account_holder.created` - Notification that a new account holder has been - # created and was not rejected. - # - `account_holder.updated` - Notification that an account holder was updated. - # - `account_holder.verification` - Notification than an account holder's identity - # verification is complete. - # - `card.created` - Notification that a card has been created. - # - `card.renewed` - Notification that a card has been renewed. - # - `card.reissued` - Notification that a card has been reissued. - # - `card.shipped` - Physical card shipment notification. See - # https://docs.lithic.com/docs/cards#physical-card-shipped-webhook. - # - `card.converted` - Notification that a virtual card has been converted to a - # physical card. - # - `card_transaction.updated` - Transaction Lifecycle webhook. See - # https://docs.lithic.com/docs/transaction-webhooks. - # - `dispute.updated` - A dispute has been updated. - # - `dispute_transaction.created` - A new dispute transaction has been created. - # - `dispute_transaction.updated` - A dispute transaction has been updated. - # - `digital_wallet.tokenization_approval_request` - Card network's request to - # Lithic to activate a digital wallet token. - # - `digital_wallet.tokenization_result` - Notification of the end result of a - # tokenization, whether successful or failed. - # - `digital_wallet.tokenization_two_factor_authentication_code` - A code to be - # passed to an end user to complete digital wallet authentication. See - # https://docs.lithic.com/docs/tokenization-control#digital-wallet-tokenization-auth-code. - # - `digital_wallet.tokenization_two_factor_authentication_code_sent` - - # Notification that a two factor authentication code for activating a digital - # wallet has been sent to the end user. - # - `digital_wallet.tokenization_updated` - Notification that a digital wallet - # tokenization's status has changed. + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code_sent` instead. + # + # - digital_wallet.tokenization_updated: Occurs when a tokenization's status has + # changed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.updated` instead. + # + # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_transaction.created: Occurs when a new dispute transaction is created + # - dispute_transaction.updated: Occurs when a dispute transaction is updated + # - dispute.updated: Occurs when a dispute is updated. + # - external_bank_account.created: Occurs when an external bank account is + # created. + # - external_bank_account.updated: Occurs when an external bank account is + # updated. + # - external_payment.created: Occurs when an external payment is created. + # - external_payment.updated: Occurs when an external payment is updated. + # - financial_account.created: Occurs when a financial account is created. + # - financial_account.updated: Occurs when a financial account is updated. + # - funding_event.created: Occurs when a funding event is created. + # - internal_transaction.created: Occurs when an internal adjustment is created. + # - internal_transaction.updated: Occurs when an internal adjustment is updated. + # - loan_tape.created: Occurs when a loan tape is created. + # - loan_tape.updated: Occurs when a loan tape is updated. + # - management_operation.created: Occurs when an management operation is created. + # - management_operation.updated: Occurs when an management operation is updated. + # - network_total.created: Occurs when a network total is created. + # - network_total.updated: Occurs when a network total is updated. + # - payment_transaction.created: Occurs when a payment transaction is created. + # - payment_transaction.updated: Occurs when a payment transaction is updated. + # - settlement_report.updated: Occurs when a settlement report is created or + # updated. + # - statements.created: Occurs when a statement has been created + # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` + # event. Upon receiving this request, the Card Program should issue its own + # challenge to the cardholder. After a cardholder challenge is successfully + # completed, the Card Program needs to respond back to Lithic by call to + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # Then the cardholder must navigate back to the merchant checkout flow to + # complete the transaction. Some merchants will include an `app_requestor_url` + # for app-based purchases; Lithic recommends triggering a redirect to that URL + # after the cardholder completes an app-based challenge. + # - three_ds_authentication.created: Occurs when a 3DS authentication is created. + # - three_ds_authentication.updated: Occurs when a 3DS authentication is updated + # (eg. challenge is completed). + # - tokenization.approval_request: Occurs when a tokenization approval request is + # made. + # - tokenization.result: Occurs when a tokenization request succeeded or failed. + # - tokenization.two_factor_authentication_code: Occurs when a tokenization + # request 2FA code is sent to the Lithic customer for self serve delivery. + # - tokenization.two_factor_authentication_code_sent: Occurs when a tokenization + # request 2FA code is sent to our downstream messaging providers for delivery. + # - tokenization.updated: Occurs when a tokenization's status has changed. module EventType extend Lithic::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Lithic::Event::EventType) } OrSymbol = T.type_alias { T.any(Symbol, String) } + ACCOUNT_HOLDER_DOCUMENT_UPDATED = + T.let( + :"account_holder_document.updated", + Lithic::Event::EventType::TaggedSymbol + ) ACCOUNT_HOLDER_CREATED = T.let( :"account_holder.created", @@ -169,6 +381,11 @@ module Lithic :"account_holder.verification", Lithic::Event::EventType::TaggedSymbol ) + AUTH_RULES_BACKTEST_REPORT_CREATED = + T.let( + :"auth_rules.backtest_report.created", + Lithic::Event::EventType::TaggedSymbol + ) BALANCE_UPDATED = T.let(:"balance.updated", Lithic::Event::EventType::TaggedSymbol) BOOK_TRANSFER_TRANSACTION_CREATED = @@ -176,21 +393,36 @@ module Lithic :"book_transfer_transaction.created", Lithic::Event::EventType::TaggedSymbol ) + BOOK_TRANSFER_TRANSACTION_UPDATED = + T.let( + :"book_transfer_transaction.updated", + Lithic::Event::EventType::TaggedSymbol + ) + CARD_TRANSACTION_ENHANCED_DATA_CREATED = + T.let( + :"card_transaction.enhanced_data.created", + Lithic::Event::EventType::TaggedSymbol + ) + CARD_TRANSACTION_ENHANCED_DATA_UPDATED = + T.let( + :"card_transaction.enhanced_data.updated", + Lithic::Event::EventType::TaggedSymbol + ) + CARD_TRANSACTION_UPDATED = + T.let( + :"card_transaction.updated", + Lithic::Event::EventType::TaggedSymbol + ) + CARD_CONVERTED = + T.let(:"card.converted", Lithic::Event::EventType::TaggedSymbol) CARD_CREATED = T.let(:"card.created", Lithic::Event::EventType::TaggedSymbol) - CARD_RENEWED = - T.let(:"card.renewed", Lithic::Event::EventType::TaggedSymbol) CARD_REISSUED = T.let(:"card.reissued", Lithic::Event::EventType::TaggedSymbol) - CARD_CONVERTED = - T.let(:"card.converted", Lithic::Event::EventType::TaggedSymbol) + CARD_RENEWED = + T.let(:"card.renewed", Lithic::Event::EventType::TaggedSymbol) CARD_SHIPPED = T.let(:"card.shipped", Lithic::Event::EventType::TaggedSymbol) - CARD_TRANSACTION_UPDATED = - T.let( - :"card_transaction.updated", - Lithic::Event::EventType::TaggedSymbol - ) DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST = T.let( :"digital_wallet.tokenization_approval_request", @@ -216,8 +448,6 @@ module Lithic :"digital_wallet.tokenization_updated", Lithic::Event::EventType::TaggedSymbol ) - DISPUTE_UPDATED = - T.let(:"dispute.updated", Lithic::Event::EventType::TaggedSymbol) DISPUTE_EVIDENCE_UPLOAD_FAILED = T.let( :"dispute_evidence.upload_failed", @@ -233,6 +463,8 @@ module Lithic :"dispute_transaction.updated", Lithic::Event::EventType::TaggedSymbol ) + DISPUTE_UPDATED = + T.let(:"dispute.updated", Lithic::Event::EventType::TaggedSymbol) EXTERNAL_BANK_ACCOUNT_CREATED = T.let( :"external_bank_account.created", @@ -268,6 +500,16 @@ module Lithic :"funding_event.created", Lithic::Event::EventType::TaggedSymbol ) + INTERNAL_TRANSACTION_CREATED = + T.let( + :"internal_transaction.created", + Lithic::Event::EventType::TaggedSymbol + ) + INTERNAL_TRANSACTION_UPDATED = + T.let( + :"internal_transaction.updated", + Lithic::Event::EventType::TaggedSymbol + ) LOAN_TAPE_CREATED = T.let(:"loan_tape.created", Lithic::Event::EventType::TaggedSymbol) LOAN_TAPE_UPDATED = @@ -302,16 +544,6 @@ module Lithic :"payment_transaction.updated", Lithic::Event::EventType::TaggedSymbol ) - INTERNAL_TRANSACTION_CREATED = - T.let( - :"internal_transaction.created", - Lithic::Event::EventType::TaggedSymbol - ) - INTERNAL_TRANSACTION_UPDATED = - T.let( - :"internal_transaction.updated", - Lithic::Event::EventType::TaggedSymbol - ) SETTLEMENT_REPORT_UPDATED = T.let( :"settlement_report.updated", @@ -319,6 +551,11 @@ module Lithic ) STATEMENTS_CREATED = T.let(:"statements.created", Lithic::Event::EventType::TaggedSymbol) + THREE_DS_AUTHENTICATION_CHALLENGE = + T.let( + :"three_ds_authentication.challenge", + Lithic::Event::EventType::TaggedSymbol + ) THREE_DS_AUTHENTICATION_CREATED = T.let( :"three_ds_authentication.created", diff --git a/rbi/lithic/models/event_list_params.rbi b/rbi/lithic/models/event_list_params.rbi index c2b7463f..9464b5e1 100644 --- a/rbi/lithic/models/event_list_params.rbi +++ b/rbi/lithic/models/event_list_params.rbi @@ -124,6 +124,106 @@ module Lithic def to_hash end + # The type of event that occurred. Possible values: + # + # - account_holder_document.updated: Occurs when an account holder's document + # upload status has been updated + # - account_holder.created: Occurs when a new account_holder is created. + # - account_holder.updated: Occurs when an account_holder is updated. + # - account_holder.verification: Occurs when an asynchronous account_holder's + # verification is completed. + # - auth_rules.backtest_report.created: Auth Rules backtest report created. + # - balance.updated: Financial Account Balance Update + # - book_transfer_transaction.created: Occurs when a book transfer transaction is + # created. + # - book_transfer_transaction.updated: Occurs when a book transfer transaction is + # updated. + # - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial + # data is processed for a transaction event. + # - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial + # data is reprocessed for a transaction event. + # - card_transaction.updated: Occurs when a card transaction happens. + # - card.converted: Occurs when a card is converted from virtual to physical + # cards. + # - card.created: Occurs when a new card is created. + # - card.reissued: Occurs when a card is reissued. + # - card.renewed: Occurs when a card is renewed. + # - card.shipped: Occurs when a card is shipped. + # - digital_wallet.tokenization_approval_request: Occurs when a tokenization + # approval request is made. This event will be deprecated in the future. We + # recommend using `tokenization.approval_request` instead. + # - digital_wallet.tokenization_result: Occurs when a tokenization request + # succeeded or failed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.result` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code: Occurs when a + # tokenization request 2FA code is sent to the Lithic customer for self serve + # delivery. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code_sent: Occurs when a + # tokenization request 2FA code is sent to our downstream messaging providers + # for delivery. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code_sent` instead. + # + # - digital_wallet.tokenization_updated: Occurs when a tokenization's status has + # changed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.updated` instead. + # + # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_transaction.created: Occurs when a new dispute transaction is created + # - dispute_transaction.updated: Occurs when a dispute transaction is updated + # - dispute.updated: Occurs when a dispute is updated. + # - external_bank_account.created: Occurs when an external bank account is + # created. + # - external_bank_account.updated: Occurs when an external bank account is + # updated. + # - external_payment.created: Occurs when an external payment is created. + # - external_payment.updated: Occurs when an external payment is updated. + # - financial_account.created: Occurs when a financial account is created. + # - financial_account.updated: Occurs when a financial account is updated. + # - funding_event.created: Occurs when a funding event is created. + # - internal_transaction.created: Occurs when an internal adjustment is created. + # - internal_transaction.updated: Occurs when an internal adjustment is updated. + # - loan_tape.created: Occurs when a loan tape is created. + # - loan_tape.updated: Occurs when a loan tape is updated. + # - management_operation.created: Occurs when an management operation is created. + # - management_operation.updated: Occurs when an management operation is updated. + # - network_total.created: Occurs when a network total is created. + # - network_total.updated: Occurs when a network total is updated. + # - payment_transaction.created: Occurs when a payment transaction is created. + # - payment_transaction.updated: Occurs when a payment transaction is updated. + # - settlement_report.updated: Occurs when a settlement report is created or + # updated. + # - statements.created: Occurs when a statement has been created + # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` + # event. Upon receiving this request, the Card Program should issue its own + # challenge to the cardholder. After a cardholder challenge is successfully + # completed, the Card Program needs to respond back to Lithic by call to + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # Then the cardholder must navigate back to the merchant checkout flow to + # complete the transaction. Some merchants will include an `app_requestor_url` + # for app-based purchases; Lithic recommends triggering a redirect to that URL + # after the cardholder completes an app-based challenge. + # - three_ds_authentication.created: Occurs when a 3DS authentication is created. + # - three_ds_authentication.updated: Occurs when a 3DS authentication is updated + # (eg. challenge is completed). + # - tokenization.approval_request: Occurs when a tokenization approval request is + # made. + # - tokenization.result: Occurs when a tokenization request succeeded or failed. + # - tokenization.two_factor_authentication_code: Occurs when a tokenization + # request 2FA code is sent to the Lithic customer for self serve delivery. + # - tokenization.two_factor_authentication_code_sent: Occurs when a tokenization + # request 2FA code is sent to our downstream messaging providers for delivery. + # - tokenization.updated: Occurs when a tokenization's status has changed. module EventType extend Lithic::Internal::Type::Enum @@ -131,6 +231,11 @@ module Lithic T.type_alias { T.all(Symbol, Lithic::EventListParams::EventType) } OrSymbol = T.type_alias { T.any(Symbol, String) } + ACCOUNT_HOLDER_DOCUMENT_UPDATED = + T.let( + :"account_holder_document.updated", + Lithic::EventListParams::EventType::TaggedSymbol + ) ACCOUNT_HOLDER_CREATED = T.let( :"account_holder.created", @@ -146,6 +251,11 @@ module Lithic :"account_holder.verification", Lithic::EventListParams::EventType::TaggedSymbol ) + AUTH_RULES_BACKTEST_REPORT_CREATED = + T.let( + :"auth_rules.backtest_report.created", + Lithic::EventListParams::EventType::TaggedSymbol + ) BALANCE_UPDATED = T.let( :"balance.updated", @@ -156,19 +266,24 @@ module Lithic :"book_transfer_transaction.created", Lithic::EventListParams::EventType::TaggedSymbol ) - CARD_CREATED = + BOOK_TRANSFER_TRANSACTION_UPDATED = T.let( - :"card.created", + :"book_transfer_transaction.updated", Lithic::EventListParams::EventType::TaggedSymbol ) - CARD_RENEWED = + CARD_TRANSACTION_ENHANCED_DATA_CREATED = T.let( - :"card.renewed", + :"card_transaction.enhanced_data.created", Lithic::EventListParams::EventType::TaggedSymbol ) - CARD_REISSUED = + CARD_TRANSACTION_ENHANCED_DATA_UPDATED = T.let( - :"card.reissued", + :"card_transaction.enhanced_data.updated", + Lithic::EventListParams::EventType::TaggedSymbol + ) + CARD_TRANSACTION_UPDATED = + T.let( + :"card_transaction.updated", Lithic::EventListParams::EventType::TaggedSymbol ) CARD_CONVERTED = @@ -176,14 +291,24 @@ module Lithic :"card.converted", Lithic::EventListParams::EventType::TaggedSymbol ) - CARD_SHIPPED = + CARD_CREATED = T.let( - :"card.shipped", + :"card.created", Lithic::EventListParams::EventType::TaggedSymbol ) - CARD_TRANSACTION_UPDATED = + CARD_REISSUED = T.let( - :"card_transaction.updated", + :"card.reissued", + Lithic::EventListParams::EventType::TaggedSymbol + ) + CARD_RENEWED = + T.let( + :"card.renewed", + Lithic::EventListParams::EventType::TaggedSymbol + ) + CARD_SHIPPED = + T.let( + :"card.shipped", Lithic::EventListParams::EventType::TaggedSymbol ) DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST = @@ -211,11 +336,6 @@ module Lithic :"digital_wallet.tokenization_updated", Lithic::EventListParams::EventType::TaggedSymbol ) - DISPUTE_UPDATED = - T.let( - :"dispute.updated", - Lithic::EventListParams::EventType::TaggedSymbol - ) DISPUTE_EVIDENCE_UPLOAD_FAILED = T.let( :"dispute_evidence.upload_failed", @@ -231,6 +351,11 @@ module Lithic :"dispute_transaction.updated", Lithic::EventListParams::EventType::TaggedSymbol ) + DISPUTE_UPDATED = + T.let( + :"dispute.updated", + Lithic::EventListParams::EventType::TaggedSymbol + ) EXTERNAL_BANK_ACCOUNT_CREATED = T.let( :"external_bank_account.created", @@ -266,6 +391,16 @@ module Lithic :"funding_event.created", Lithic::EventListParams::EventType::TaggedSymbol ) + INTERNAL_TRANSACTION_CREATED = + T.let( + :"internal_transaction.created", + Lithic::EventListParams::EventType::TaggedSymbol + ) + INTERNAL_TRANSACTION_UPDATED = + T.let( + :"internal_transaction.updated", + Lithic::EventListParams::EventType::TaggedSymbol + ) LOAN_TAPE_CREATED = T.let( :"loan_tape.created", @@ -306,16 +441,6 @@ module Lithic :"payment_transaction.updated", Lithic::EventListParams::EventType::TaggedSymbol ) - INTERNAL_TRANSACTION_CREATED = - T.let( - :"internal_transaction.created", - Lithic::EventListParams::EventType::TaggedSymbol - ) - INTERNAL_TRANSACTION_UPDATED = - T.let( - :"internal_transaction.updated", - Lithic::EventListParams::EventType::TaggedSymbol - ) SETTLEMENT_REPORT_UPDATED = T.let( :"settlement_report.updated", @@ -326,6 +451,11 @@ module Lithic :"statements.created", Lithic::EventListParams::EventType::TaggedSymbol ) + THREE_DS_AUTHENTICATION_CHALLENGE = + T.let( + :"three_ds_authentication.challenge", + Lithic::EventListParams::EventType::TaggedSymbol + ) THREE_DS_AUTHENTICATION_CREATED = T.let( :"three_ds_authentication.created", diff --git a/rbi/lithic/models/event_subscription.rbi b/rbi/lithic/models/event_subscription.rbi index 07b2a82d..8886afe0 100644 --- a/rbi/lithic/models/event_subscription.rbi +++ b/rbi/lithic/models/event_subscription.rbi @@ -72,6 +72,106 @@ module Lithic def to_hash end + # The type of event that occurred. Possible values: + # + # - account_holder_document.updated: Occurs when an account holder's document + # upload status has been updated + # - account_holder.created: Occurs when a new account_holder is created. + # - account_holder.updated: Occurs when an account_holder is updated. + # - account_holder.verification: Occurs when an asynchronous account_holder's + # verification is completed. + # - auth_rules.backtest_report.created: Auth Rules backtest report created. + # - balance.updated: Financial Account Balance Update + # - book_transfer_transaction.created: Occurs when a book transfer transaction is + # created. + # - book_transfer_transaction.updated: Occurs when a book transfer transaction is + # updated. + # - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial + # data is processed for a transaction event. + # - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial + # data is reprocessed for a transaction event. + # - card_transaction.updated: Occurs when a card transaction happens. + # - card.converted: Occurs when a card is converted from virtual to physical + # cards. + # - card.created: Occurs when a new card is created. + # - card.reissued: Occurs when a card is reissued. + # - card.renewed: Occurs when a card is renewed. + # - card.shipped: Occurs when a card is shipped. + # - digital_wallet.tokenization_approval_request: Occurs when a tokenization + # approval request is made. This event will be deprecated in the future. We + # recommend using `tokenization.approval_request` instead. + # - digital_wallet.tokenization_result: Occurs when a tokenization request + # succeeded or failed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.result` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code: Occurs when a + # tokenization request 2FA code is sent to the Lithic customer for self serve + # delivery. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code_sent: Occurs when a + # tokenization request 2FA code is sent to our downstream messaging providers + # for delivery. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code_sent` instead. + # + # - digital_wallet.tokenization_updated: Occurs when a tokenization's status has + # changed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.updated` instead. + # + # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_transaction.created: Occurs when a new dispute transaction is created + # - dispute_transaction.updated: Occurs when a dispute transaction is updated + # - dispute.updated: Occurs when a dispute is updated. + # - external_bank_account.created: Occurs when an external bank account is + # created. + # - external_bank_account.updated: Occurs when an external bank account is + # updated. + # - external_payment.created: Occurs when an external payment is created. + # - external_payment.updated: Occurs when an external payment is updated. + # - financial_account.created: Occurs when a financial account is created. + # - financial_account.updated: Occurs when a financial account is updated. + # - funding_event.created: Occurs when a funding event is created. + # - internal_transaction.created: Occurs when an internal adjustment is created. + # - internal_transaction.updated: Occurs when an internal adjustment is updated. + # - loan_tape.created: Occurs when a loan tape is created. + # - loan_tape.updated: Occurs when a loan tape is updated. + # - management_operation.created: Occurs when an management operation is created. + # - management_operation.updated: Occurs when an management operation is updated. + # - network_total.created: Occurs when a network total is created. + # - network_total.updated: Occurs when a network total is updated. + # - payment_transaction.created: Occurs when a payment transaction is created. + # - payment_transaction.updated: Occurs when a payment transaction is updated. + # - settlement_report.updated: Occurs when a settlement report is created or + # updated. + # - statements.created: Occurs when a statement has been created + # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` + # event. Upon receiving this request, the Card Program should issue its own + # challenge to the cardholder. After a cardholder challenge is successfully + # completed, the Card Program needs to respond back to Lithic by call to + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # Then the cardholder must navigate back to the merchant checkout flow to + # complete the transaction. Some merchants will include an `app_requestor_url` + # for app-based purchases; Lithic recommends triggering a redirect to that URL + # after the cardholder completes an app-based challenge. + # - three_ds_authentication.created: Occurs when a 3DS authentication is created. + # - three_ds_authentication.updated: Occurs when a 3DS authentication is updated + # (eg. challenge is completed). + # - tokenization.approval_request: Occurs when a tokenization approval request is + # made. + # - tokenization.result: Occurs when a tokenization request succeeded or failed. + # - tokenization.two_factor_authentication_code: Occurs when a tokenization + # request 2FA code is sent to the Lithic customer for self serve delivery. + # - tokenization.two_factor_authentication_code_sent: Occurs when a tokenization + # request 2FA code is sent to our downstream messaging providers for delivery. + # - tokenization.updated: Occurs when a tokenization's status has changed. module EventType extend Lithic::Internal::Type::Enum @@ -79,6 +179,11 @@ module Lithic T.type_alias { T.all(Symbol, Lithic::EventSubscription::EventType) } OrSymbol = T.type_alias { T.any(Symbol, String) } + ACCOUNT_HOLDER_DOCUMENT_UPDATED = + T.let( + :"account_holder_document.updated", + Lithic::EventSubscription::EventType::TaggedSymbol + ) ACCOUNT_HOLDER_CREATED = T.let( :"account_holder.created", @@ -94,6 +199,11 @@ module Lithic :"account_holder.verification", Lithic::EventSubscription::EventType::TaggedSymbol ) + AUTH_RULES_BACKTEST_REPORT_CREATED = + T.let( + :"auth_rules.backtest_report.created", + Lithic::EventSubscription::EventType::TaggedSymbol + ) BALANCE_UPDATED = T.let( :"balance.updated", @@ -104,19 +214,24 @@ module Lithic :"book_transfer_transaction.created", Lithic::EventSubscription::EventType::TaggedSymbol ) - CARD_CREATED = + BOOK_TRANSFER_TRANSACTION_UPDATED = T.let( - :"card.created", + :"book_transfer_transaction.updated", Lithic::EventSubscription::EventType::TaggedSymbol ) - CARD_RENEWED = + CARD_TRANSACTION_ENHANCED_DATA_CREATED = T.let( - :"card.renewed", + :"card_transaction.enhanced_data.created", Lithic::EventSubscription::EventType::TaggedSymbol ) - CARD_REISSUED = + CARD_TRANSACTION_ENHANCED_DATA_UPDATED = T.let( - :"card.reissued", + :"card_transaction.enhanced_data.updated", + Lithic::EventSubscription::EventType::TaggedSymbol + ) + CARD_TRANSACTION_UPDATED = + T.let( + :"card_transaction.updated", Lithic::EventSubscription::EventType::TaggedSymbol ) CARD_CONVERTED = @@ -124,14 +239,24 @@ module Lithic :"card.converted", Lithic::EventSubscription::EventType::TaggedSymbol ) - CARD_SHIPPED = + CARD_CREATED = T.let( - :"card.shipped", + :"card.created", Lithic::EventSubscription::EventType::TaggedSymbol ) - CARD_TRANSACTION_UPDATED = + CARD_REISSUED = T.let( - :"card_transaction.updated", + :"card.reissued", + Lithic::EventSubscription::EventType::TaggedSymbol + ) + CARD_RENEWED = + T.let( + :"card.renewed", + Lithic::EventSubscription::EventType::TaggedSymbol + ) + CARD_SHIPPED = + T.let( + :"card.shipped", Lithic::EventSubscription::EventType::TaggedSymbol ) DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST = @@ -159,11 +284,6 @@ module Lithic :"digital_wallet.tokenization_updated", Lithic::EventSubscription::EventType::TaggedSymbol ) - DISPUTE_UPDATED = - T.let( - :"dispute.updated", - Lithic::EventSubscription::EventType::TaggedSymbol - ) DISPUTE_EVIDENCE_UPLOAD_FAILED = T.let( :"dispute_evidence.upload_failed", @@ -179,6 +299,11 @@ module Lithic :"dispute_transaction.updated", Lithic::EventSubscription::EventType::TaggedSymbol ) + DISPUTE_UPDATED = + T.let( + :"dispute.updated", + Lithic::EventSubscription::EventType::TaggedSymbol + ) EXTERNAL_BANK_ACCOUNT_CREATED = T.let( :"external_bank_account.created", @@ -214,6 +339,16 @@ module Lithic :"funding_event.created", Lithic::EventSubscription::EventType::TaggedSymbol ) + INTERNAL_TRANSACTION_CREATED = + T.let( + :"internal_transaction.created", + Lithic::EventSubscription::EventType::TaggedSymbol + ) + INTERNAL_TRANSACTION_UPDATED = + T.let( + :"internal_transaction.updated", + Lithic::EventSubscription::EventType::TaggedSymbol + ) LOAN_TAPE_CREATED = T.let( :"loan_tape.created", @@ -254,16 +389,6 @@ module Lithic :"payment_transaction.updated", Lithic::EventSubscription::EventType::TaggedSymbol ) - INTERNAL_TRANSACTION_CREATED = - T.let( - :"internal_transaction.created", - Lithic::EventSubscription::EventType::TaggedSymbol - ) - INTERNAL_TRANSACTION_UPDATED = - T.let( - :"internal_transaction.updated", - Lithic::EventSubscription::EventType::TaggedSymbol - ) SETTLEMENT_REPORT_UPDATED = T.let( :"settlement_report.updated", @@ -274,6 +399,11 @@ module Lithic :"statements.created", Lithic::EventSubscription::EventType::TaggedSymbol ) + THREE_DS_AUTHENTICATION_CHALLENGE = + T.let( + :"three_ds_authentication.challenge", + Lithic::EventSubscription::EventType::TaggedSymbol + ) THREE_DS_AUTHENTICATION_CREATED = T.let( :"three_ds_authentication.created", diff --git a/rbi/lithic/models/events/subscription_create_params.rbi b/rbi/lithic/models/events/subscription_create_params.rbi index de70c3b1..56e52a46 100644 --- a/rbi/lithic/models/events/subscription_create_params.rbi +++ b/rbi/lithic/models/events/subscription_create_params.rbi @@ -99,6 +99,106 @@ module Lithic def to_hash end + # The type of event that occurred. Possible values: + # + # - account_holder_document.updated: Occurs when an account holder's document + # upload status has been updated + # - account_holder.created: Occurs when a new account_holder is created. + # - account_holder.updated: Occurs when an account_holder is updated. + # - account_holder.verification: Occurs when an asynchronous account_holder's + # verification is completed. + # - auth_rules.backtest_report.created: Auth Rules backtest report created. + # - balance.updated: Financial Account Balance Update + # - book_transfer_transaction.created: Occurs when a book transfer transaction is + # created. + # - book_transfer_transaction.updated: Occurs when a book transfer transaction is + # updated. + # - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial + # data is processed for a transaction event. + # - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial + # data is reprocessed for a transaction event. + # - card_transaction.updated: Occurs when a card transaction happens. + # - card.converted: Occurs when a card is converted from virtual to physical + # cards. + # - card.created: Occurs when a new card is created. + # - card.reissued: Occurs when a card is reissued. + # - card.renewed: Occurs when a card is renewed. + # - card.shipped: Occurs when a card is shipped. + # - digital_wallet.tokenization_approval_request: Occurs when a tokenization + # approval request is made. This event will be deprecated in the future. We + # recommend using `tokenization.approval_request` instead. + # - digital_wallet.tokenization_result: Occurs when a tokenization request + # succeeded or failed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.result` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code: Occurs when a + # tokenization request 2FA code is sent to the Lithic customer for self serve + # delivery. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code_sent: Occurs when a + # tokenization request 2FA code is sent to our downstream messaging providers + # for delivery. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code_sent` instead. + # + # - digital_wallet.tokenization_updated: Occurs when a tokenization's status has + # changed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.updated` instead. + # + # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_transaction.created: Occurs when a new dispute transaction is created + # - dispute_transaction.updated: Occurs when a dispute transaction is updated + # - dispute.updated: Occurs when a dispute is updated. + # - external_bank_account.created: Occurs when an external bank account is + # created. + # - external_bank_account.updated: Occurs when an external bank account is + # updated. + # - external_payment.created: Occurs when an external payment is created. + # - external_payment.updated: Occurs when an external payment is updated. + # - financial_account.created: Occurs when a financial account is created. + # - financial_account.updated: Occurs when a financial account is updated. + # - funding_event.created: Occurs when a funding event is created. + # - internal_transaction.created: Occurs when an internal adjustment is created. + # - internal_transaction.updated: Occurs when an internal adjustment is updated. + # - loan_tape.created: Occurs when a loan tape is created. + # - loan_tape.updated: Occurs when a loan tape is updated. + # - management_operation.created: Occurs when an management operation is created. + # - management_operation.updated: Occurs when an management operation is updated. + # - network_total.created: Occurs when a network total is created. + # - network_total.updated: Occurs when a network total is updated. + # - payment_transaction.created: Occurs when a payment transaction is created. + # - payment_transaction.updated: Occurs when a payment transaction is updated. + # - settlement_report.updated: Occurs when a settlement report is created or + # updated. + # - statements.created: Occurs when a statement has been created + # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` + # event. Upon receiving this request, the Card Program should issue its own + # challenge to the cardholder. After a cardholder challenge is successfully + # completed, the Card Program needs to respond back to Lithic by call to + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # Then the cardholder must navigate back to the merchant checkout flow to + # complete the transaction. Some merchants will include an `app_requestor_url` + # for app-based purchases; Lithic recommends triggering a redirect to that URL + # after the cardholder completes an app-based challenge. + # - three_ds_authentication.created: Occurs when a 3DS authentication is created. + # - three_ds_authentication.updated: Occurs when a 3DS authentication is updated + # (eg. challenge is completed). + # - tokenization.approval_request: Occurs when a tokenization approval request is + # made. + # - tokenization.result: Occurs when a tokenization request succeeded or failed. + # - tokenization.two_factor_authentication_code: Occurs when a tokenization + # request 2FA code is sent to the Lithic customer for self serve delivery. + # - tokenization.two_factor_authentication_code_sent: Occurs when a tokenization + # request 2FA code is sent to our downstream messaging providers for delivery. + # - tokenization.updated: Occurs when a tokenization's status has changed. module EventType extend Lithic::Internal::Type::Enum @@ -108,6 +208,11 @@ module Lithic end OrSymbol = T.type_alias { T.any(Symbol, String) } + ACCOUNT_HOLDER_DOCUMENT_UPDATED = + T.let( + :"account_holder_document.updated", + Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol + ) ACCOUNT_HOLDER_CREATED = T.let( :"account_holder.created", @@ -123,6 +228,11 @@ module Lithic :"account_holder.verification", Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol ) + AUTH_RULES_BACKTEST_REPORT_CREATED = + T.let( + :"auth_rules.backtest_report.created", + Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol + ) BALANCE_UPDATED = T.let( :"balance.updated", @@ -133,19 +243,24 @@ module Lithic :"book_transfer_transaction.created", Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol ) - CARD_CREATED = + BOOK_TRANSFER_TRANSACTION_UPDATED = T.let( - :"card.created", + :"book_transfer_transaction.updated", Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol ) - CARD_RENEWED = + CARD_TRANSACTION_ENHANCED_DATA_CREATED = T.let( - :"card.renewed", + :"card_transaction.enhanced_data.created", Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol ) - CARD_REISSUED = + CARD_TRANSACTION_ENHANCED_DATA_UPDATED = T.let( - :"card.reissued", + :"card_transaction.enhanced_data.updated", + Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol + ) + CARD_TRANSACTION_UPDATED = + T.let( + :"card_transaction.updated", Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol ) CARD_CONVERTED = @@ -153,14 +268,24 @@ module Lithic :"card.converted", Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol ) - CARD_SHIPPED = + CARD_CREATED = T.let( - :"card.shipped", + :"card.created", Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol ) - CARD_TRANSACTION_UPDATED = + CARD_REISSUED = T.let( - :"card_transaction.updated", + :"card.reissued", + Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol + ) + CARD_RENEWED = + T.let( + :"card.renewed", + Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol + ) + CARD_SHIPPED = + T.let( + :"card.shipped", Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol ) DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST = @@ -188,11 +313,6 @@ module Lithic :"digital_wallet.tokenization_updated", Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol ) - DISPUTE_UPDATED = - T.let( - :"dispute.updated", - Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol - ) DISPUTE_EVIDENCE_UPLOAD_FAILED = T.let( :"dispute_evidence.upload_failed", @@ -208,6 +328,11 @@ module Lithic :"dispute_transaction.updated", Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol ) + DISPUTE_UPDATED = + T.let( + :"dispute.updated", + Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol + ) EXTERNAL_BANK_ACCOUNT_CREATED = T.let( :"external_bank_account.created", @@ -243,6 +368,16 @@ module Lithic :"funding_event.created", Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol ) + INTERNAL_TRANSACTION_CREATED = + T.let( + :"internal_transaction.created", + Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol + ) + INTERNAL_TRANSACTION_UPDATED = + T.let( + :"internal_transaction.updated", + Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol + ) LOAN_TAPE_CREATED = T.let( :"loan_tape.created", @@ -283,16 +418,6 @@ module Lithic :"payment_transaction.updated", Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol ) - INTERNAL_TRANSACTION_CREATED = - T.let( - :"internal_transaction.created", - Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol - ) - INTERNAL_TRANSACTION_UPDATED = - T.let( - :"internal_transaction.updated", - Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol - ) SETTLEMENT_REPORT_UPDATED = T.let( :"settlement_report.updated", @@ -303,6 +428,11 @@ module Lithic :"statements.created", Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol ) + THREE_DS_AUTHENTICATION_CHALLENGE = + T.let( + :"three_ds_authentication.challenge", + Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol + ) THREE_DS_AUTHENTICATION_CREATED = T.let( :"three_ds_authentication.created", diff --git a/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi b/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi index 0bbde7d7..866adaeb 100644 --- a/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +++ b/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi @@ -72,6 +72,11 @@ module Lithic end OrSymbol = T.type_alias { T.any(Symbol, String) } + ACCOUNT_HOLDER_DOCUMENT_UPDATED = + T.let( + :"account_holder_document.updated", + Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol + ) ACCOUNT_HOLDER_CREATED = T.let( :"account_holder.created", @@ -87,6 +92,11 @@ module Lithic :"account_holder.verification", Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol ) + AUTH_RULES_BACKTEST_REPORT_CREATED = + T.let( + :"auth_rules.backtest_report.created", + Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol + ) BALANCE_UPDATED = T.let( :"balance.updated", @@ -97,19 +107,24 @@ module Lithic :"book_transfer_transaction.created", Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol ) - CARD_CREATED = + BOOK_TRANSFER_TRANSACTION_UPDATED = T.let( - :"card.created", + :"book_transfer_transaction.updated", Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol ) - CARD_RENEWED = + CARD_TRANSACTION_ENHANCED_DATA_CREATED = T.let( - :"card.renewed", + :"card_transaction.enhanced_data.created", Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol ) - CARD_REISSUED = + CARD_TRANSACTION_ENHANCED_DATA_UPDATED = T.let( - :"card.reissued", + :"card_transaction.enhanced_data.updated", + Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol + ) + CARD_TRANSACTION_UPDATED = + T.let( + :"card_transaction.updated", Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol ) CARD_CONVERTED = @@ -117,14 +132,24 @@ module Lithic :"card.converted", Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol ) - CARD_SHIPPED = + CARD_CREATED = T.let( - :"card.shipped", + :"card.created", Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol ) - CARD_TRANSACTION_UPDATED = + CARD_REISSUED = T.let( - :"card_transaction.updated", + :"card.reissued", + Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol + ) + CARD_RENEWED = + T.let( + :"card.renewed", + Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol + ) + CARD_SHIPPED = + T.let( + :"card.shipped", Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol ) DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST = @@ -152,11 +177,6 @@ module Lithic :"digital_wallet.tokenization_updated", Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol ) - DISPUTE_UPDATED = - T.let( - :"dispute.updated", - Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol - ) DISPUTE_EVIDENCE_UPLOAD_FAILED = T.let( :"dispute_evidence.upload_failed", @@ -172,6 +192,11 @@ module Lithic :"dispute_transaction.updated", Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol ) + DISPUTE_UPDATED = + T.let( + :"dispute.updated", + Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol + ) EXTERNAL_BANK_ACCOUNT_CREATED = T.let( :"external_bank_account.created", @@ -207,6 +232,16 @@ module Lithic :"funding_event.created", Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol ) + INTERNAL_TRANSACTION_CREATED = + T.let( + :"internal_transaction.created", + Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol + ) + INTERNAL_TRANSACTION_UPDATED = + T.let( + :"internal_transaction.updated", + Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol + ) LOAN_TAPE_CREATED = T.let( :"loan_tape.created", @@ -247,16 +282,6 @@ module Lithic :"payment_transaction.updated", Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol ) - INTERNAL_TRANSACTION_CREATED = - T.let( - :"internal_transaction.created", - Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol - ) - INTERNAL_TRANSACTION_UPDATED = - T.let( - :"internal_transaction.updated", - Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol - ) SETTLEMENT_REPORT_UPDATED = T.let( :"settlement_report.updated", @@ -267,6 +292,11 @@ module Lithic :"statements.created", Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol ) + THREE_DS_AUTHENTICATION_CHALLENGE = + T.let( + :"three_ds_authentication.challenge", + Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol + ) THREE_DS_AUTHENTICATION_CREATED = T.let( :"three_ds_authentication.created", diff --git a/rbi/lithic/models/events/subscription_update_params.rbi b/rbi/lithic/models/events/subscription_update_params.rbi index 6dd292b1..1ec917c5 100644 --- a/rbi/lithic/models/events/subscription_update_params.rbi +++ b/rbi/lithic/models/events/subscription_update_params.rbi @@ -99,6 +99,106 @@ module Lithic def to_hash end + # The type of event that occurred. Possible values: + # + # - account_holder_document.updated: Occurs when an account holder's document + # upload status has been updated + # - account_holder.created: Occurs when a new account_holder is created. + # - account_holder.updated: Occurs when an account_holder is updated. + # - account_holder.verification: Occurs when an asynchronous account_holder's + # verification is completed. + # - auth_rules.backtest_report.created: Auth Rules backtest report created. + # - balance.updated: Financial Account Balance Update + # - book_transfer_transaction.created: Occurs when a book transfer transaction is + # created. + # - book_transfer_transaction.updated: Occurs when a book transfer transaction is + # updated. + # - card_transaction.enhanced_data.created: Occurs when L2/L3 enhanced commercial + # data is processed for a transaction event. + # - card_transaction.enhanced_data.updated: Occurs when L2/L3 enhanced commercial + # data is reprocessed for a transaction event. + # - card_transaction.updated: Occurs when a card transaction happens. + # - card.converted: Occurs when a card is converted from virtual to physical + # cards. + # - card.created: Occurs when a new card is created. + # - card.reissued: Occurs when a card is reissued. + # - card.renewed: Occurs when a card is renewed. + # - card.shipped: Occurs when a card is shipped. + # - digital_wallet.tokenization_approval_request: Occurs when a tokenization + # approval request is made. This event will be deprecated in the future. We + # recommend using `tokenization.approval_request` instead. + # - digital_wallet.tokenization_result: Occurs when a tokenization request + # succeeded or failed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.result` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code: Occurs when a + # tokenization request 2FA code is sent to the Lithic customer for self serve + # delivery. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code` instead. + # + # - digital_wallet.tokenization_two_factor_authentication_code_sent: Occurs when a + # tokenization request 2FA code is sent to our downstream messaging providers + # for delivery. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.two_factor_authentication_code_sent` instead. + # + # - digital_wallet.tokenization_updated: Occurs when a tokenization's status has + # changed. + # + # This event will be deprecated in the future. We recommend using + # `tokenization.updated` instead. + # + # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_transaction.created: Occurs when a new dispute transaction is created + # - dispute_transaction.updated: Occurs when a dispute transaction is updated + # - dispute.updated: Occurs when a dispute is updated. + # - external_bank_account.created: Occurs when an external bank account is + # created. + # - external_bank_account.updated: Occurs when an external bank account is + # updated. + # - external_payment.created: Occurs when an external payment is created. + # - external_payment.updated: Occurs when an external payment is updated. + # - financial_account.created: Occurs when a financial account is created. + # - financial_account.updated: Occurs when a financial account is updated. + # - funding_event.created: Occurs when a funding event is created. + # - internal_transaction.created: Occurs when an internal adjustment is created. + # - internal_transaction.updated: Occurs when an internal adjustment is updated. + # - loan_tape.created: Occurs when a loan tape is created. + # - loan_tape.updated: Occurs when a loan tape is updated. + # - management_operation.created: Occurs when an management operation is created. + # - management_operation.updated: Occurs when an management operation is updated. + # - network_total.created: Occurs when a network total is created. + # - network_total.updated: Occurs when a network total is updated. + # - payment_transaction.created: Occurs when a payment transaction is created. + # - payment_transaction.updated: Occurs when a payment transaction is updated. + # - settlement_report.updated: Occurs when a settlement report is created or + # updated. + # - statements.created: Occurs when a statement has been created + # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` + # event. Upon receiving this request, the Card Program should issue its own + # challenge to the cardholder. After a cardholder challenge is successfully + # completed, the Card Program needs to respond back to Lithic by call to + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # Then the cardholder must navigate back to the merchant checkout flow to + # complete the transaction. Some merchants will include an `app_requestor_url` + # for app-based purchases; Lithic recommends triggering a redirect to that URL + # after the cardholder completes an app-based challenge. + # - three_ds_authentication.created: Occurs when a 3DS authentication is created. + # - three_ds_authentication.updated: Occurs when a 3DS authentication is updated + # (eg. challenge is completed). + # - tokenization.approval_request: Occurs when a tokenization approval request is + # made. + # - tokenization.result: Occurs when a tokenization request succeeded or failed. + # - tokenization.two_factor_authentication_code: Occurs when a tokenization + # request 2FA code is sent to the Lithic customer for self serve delivery. + # - tokenization.two_factor_authentication_code_sent: Occurs when a tokenization + # request 2FA code is sent to our downstream messaging providers for delivery. + # - tokenization.updated: Occurs when a tokenization's status has changed. module EventType extend Lithic::Internal::Type::Enum @@ -108,6 +208,11 @@ module Lithic end OrSymbol = T.type_alias { T.any(Symbol, String) } + ACCOUNT_HOLDER_DOCUMENT_UPDATED = + T.let( + :"account_holder_document.updated", + Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol + ) ACCOUNT_HOLDER_CREATED = T.let( :"account_holder.created", @@ -123,6 +228,11 @@ module Lithic :"account_holder.verification", Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol ) + AUTH_RULES_BACKTEST_REPORT_CREATED = + T.let( + :"auth_rules.backtest_report.created", + Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol + ) BALANCE_UPDATED = T.let( :"balance.updated", @@ -133,19 +243,24 @@ module Lithic :"book_transfer_transaction.created", Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol ) - CARD_CREATED = + BOOK_TRANSFER_TRANSACTION_UPDATED = T.let( - :"card.created", + :"book_transfer_transaction.updated", Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol ) - CARD_RENEWED = + CARD_TRANSACTION_ENHANCED_DATA_CREATED = T.let( - :"card.renewed", + :"card_transaction.enhanced_data.created", Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol ) - CARD_REISSUED = + CARD_TRANSACTION_ENHANCED_DATA_UPDATED = T.let( - :"card.reissued", + :"card_transaction.enhanced_data.updated", + Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol + ) + CARD_TRANSACTION_UPDATED = + T.let( + :"card_transaction.updated", Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol ) CARD_CONVERTED = @@ -153,14 +268,24 @@ module Lithic :"card.converted", Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol ) - CARD_SHIPPED = + CARD_CREATED = T.let( - :"card.shipped", + :"card.created", Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol ) - CARD_TRANSACTION_UPDATED = + CARD_REISSUED = T.let( - :"card_transaction.updated", + :"card.reissued", + Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol + ) + CARD_RENEWED = + T.let( + :"card.renewed", + Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol + ) + CARD_SHIPPED = + T.let( + :"card.shipped", Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol ) DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST = @@ -188,11 +313,6 @@ module Lithic :"digital_wallet.tokenization_updated", Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol ) - DISPUTE_UPDATED = - T.let( - :"dispute.updated", - Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol - ) DISPUTE_EVIDENCE_UPLOAD_FAILED = T.let( :"dispute_evidence.upload_failed", @@ -208,6 +328,11 @@ module Lithic :"dispute_transaction.updated", Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol ) + DISPUTE_UPDATED = + T.let( + :"dispute.updated", + Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol + ) EXTERNAL_BANK_ACCOUNT_CREATED = T.let( :"external_bank_account.created", @@ -243,6 +368,16 @@ module Lithic :"funding_event.created", Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol ) + INTERNAL_TRANSACTION_CREATED = + T.let( + :"internal_transaction.created", + Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol + ) + INTERNAL_TRANSACTION_UPDATED = + T.let( + :"internal_transaction.updated", + Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol + ) LOAN_TAPE_CREATED = T.let( :"loan_tape.created", @@ -283,16 +418,6 @@ module Lithic :"payment_transaction.updated", Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol ) - INTERNAL_TRANSACTION_CREATED = - T.let( - :"internal_transaction.created", - Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol - ) - INTERNAL_TRANSACTION_UPDATED = - T.let( - :"internal_transaction.updated", - Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol - ) SETTLEMENT_REPORT_UPDATED = T.let( :"settlement_report.updated", @@ -303,6 +428,11 @@ module Lithic :"statements.created", Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol ) + THREE_DS_AUTHENTICATION_CHALLENGE = + T.let( + :"three_ds_authentication.challenge", + Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol + ) THREE_DS_AUTHENTICATION_CREATED = T.let( :"three_ds_authentication.created", diff --git a/rbi/lithic/models/financial_account.rbi b/rbi/lithic/models/financial_account.rbi index 8b381a0f..690f3c7e 100644 --- a/rbi/lithic/models/financial_account.rbi +++ b/rbi/lithic/models/financial_account.rbi @@ -156,32 +156,6 @@ module Lithic sig { returns(T.nilable(String)) } attr_accessor :tier - # Reason for the financial account being marked as Charged Off - sig do - returns( - T.nilable( - Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason::TaggedSymbol - ) - ) - end - attr_accessor :charged_off_reason - - # State of the financial account - sig do - returns( - T.nilable( - Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::TaggedSymbol - ) - ) - end - attr_accessor :financial_account_state - - sig { returns(T.nilable(T::Boolean)) } - attr_reader :is_spend_blocked - - sig { params(is_spend_blocked: T::Boolean).void } - attr_writer :is_spend_blocked - sig do params( auto_collection_configuration: @@ -189,16 +163,7 @@ module Lithic credit_limit: T.nilable(Integer), credit_product_token: T.nilable(String), external_bank_account_token: T.nilable(String), - tier: T.nilable(String), - charged_off_reason: - T.nilable( - Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason::OrSymbol - ), - financial_account_state: - T.nilable( - Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::OrSymbol - ), - is_spend_blocked: T::Boolean + tier: T.nilable(String) ).returns(T.attached_class) end def self.new( @@ -208,12 +173,7 @@ module Lithic credit_product_token:, external_bank_account_token:, # Tier assigned to the financial account - tier:, - # Reason for the financial account being marked as Charged Off - charged_off_reason: nil, - # State of the financial account - financial_account_state: nil, - is_spend_blocked: nil + tier: ) end @@ -225,16 +185,7 @@ module Lithic credit_limit: T.nilable(Integer), credit_product_token: T.nilable(String), external_bank_account_token: T.nilable(String), - tier: T.nilable(String), - charged_off_reason: - T.nilable( - Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason::TaggedSymbol - ), - financial_account_state: - T.nilable( - Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::TaggedSymbol - ), - is_spend_blocked: T::Boolean + tier: T.nilable(String) } ) end @@ -269,86 +220,6 @@ module Lithic def to_hash end end - - # Reason for the financial account being marked as Charged Off - module ChargedOffReason - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DELINQUENT = - T.let( - :DELINQUENT, - Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason::TaggedSymbol - ) - FRAUD = - T.let( - :FRAUD, - Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason::TaggedSymbol - ] - ) - end - def self.values - end - end - - # State of the financial account - module FinancialAccountState - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PENDING = - T.let( - :PENDING, - Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::TaggedSymbol - ) - CURRENT = - T.let( - :CURRENT, - Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::TaggedSymbol - ) - DELINQUENT = - T.let( - :DELINQUENT, - Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::TaggedSymbol - ) - CHARGED_OFF = - T.let( - :CHARGED_OFF, - Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::TaggedSymbol - ] - ) - end - def self.values - end - end end # Status of the financial account diff --git a/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi b/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi index 21b3ac4f..8fe8a9c1 100644 --- a/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +++ b/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi @@ -48,40 +48,6 @@ module Lithic sig { returns(T.nilable(String)) } attr_accessor :tier - # Reason for the financial account being marked as Charged Off - sig do - returns( - T.nilable( - Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason::TaggedSymbol - ) - ) - end - attr_accessor :charged_off_reason - - # State of the financial account - sig do - returns( - T.nilable( - Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::TaggedSymbol - ) - ) - end - attr_reader :financial_account_state - - sig do - params( - financial_account_state: - Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::OrSymbol - ).void - end - attr_writer :financial_account_state - - sig { returns(T.nilable(T::Boolean)) } - attr_reader :is_spend_blocked - - sig { params(is_spend_blocked: T::Boolean).void } - attr_writer :is_spend_blocked - sig do params( account_token: String, @@ -90,14 +56,7 @@ module Lithic credit_limit: T.nilable(Integer), credit_product_token: T.nilable(String), external_bank_account_token: T.nilable(String), - tier: T.nilable(String), - charged_off_reason: - T.nilable( - Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason::OrSymbol - ), - financial_account_state: - Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::OrSymbol, - is_spend_blocked: T::Boolean + tier: T.nilable(String) ).returns(T.attached_class) end def self.new( @@ -109,12 +68,7 @@ module Lithic credit_product_token:, external_bank_account_token:, # Tier assigned to the financial account - tier:, - # Reason for the financial account being marked as Charged Off - charged_off_reason: nil, - # State of the financial account - financial_account_state: nil, - is_spend_blocked: nil + tier: ) end @@ -127,14 +81,7 @@ module Lithic credit_limit: T.nilable(Integer), credit_product_token: T.nilable(String), external_bank_account_token: T.nilable(String), - tier: T.nilable(String), - charged_off_reason: - T.nilable( - Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason::TaggedSymbol - ), - financial_account_state: - Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::TaggedSymbol, - is_spend_blocked: T::Boolean + tier: T.nilable(String) } ) end @@ -169,86 +116,6 @@ module Lithic def to_hash end end - - # Reason for the financial account being marked as Charged Off - module ChargedOffReason - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DELINQUENT = - T.let( - :DELINQUENT, - Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason::TaggedSymbol - ) - FRAUD = - T.let( - :FRAUD, - Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason::TaggedSymbol - ] - ) - end - def self.values - end - end - - # State of the financial account - module FinancialAccountState - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PENDING = - T.let( - :PENDING, - Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::TaggedSymbol - ) - CURRENT = - T.let( - :CURRENT, - Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::TaggedSymbol - ) - DELINQUENT = - T.let( - :DELINQUENT, - Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::TaggedSymbol - ) - CHARGED_OFF = - T.let( - :CHARGED_OFF, - Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::TaggedSymbol - ] - ) - end - def self.values - end - end end end end diff --git a/rbi/lithic/models/financial_accounts/loan_tape.rbi b/rbi/lithic/models/financial_accounts/loan_tape.rbi index efaf564a..c18c1e65 100644 --- a/rbi/lithic/models/financial_accounts/loan_tape.rbi +++ b/rbi/lithic/models/financial_accounts/loan_tape.rbi @@ -884,6 +884,10 @@ module Lithic sig { returns(Integer) } attr_accessor :credits + # Volume of debit management operation transactions less any interest in cents + sig { returns(Integer) } + attr_accessor :debits + # Volume of debit management operation transactions less any interest in cents sig { returns(Integer) } attr_accessor :fees @@ -900,15 +904,40 @@ module Lithic sig { returns(Integer) } attr_accessor :purchases + # Breakdown of credits + sig { returns(T.nilable(T.anything)) } + attr_reader :credit_details + + sig { params(credit_details: T.anything).void } + attr_writer :credit_details + + # Breakdown of debits + sig { returns(T.nilable(T.anything)) } + attr_reader :debit_details + + sig { params(debit_details: T.anything).void } + attr_writer :debit_details + + # Breakdown of payments + sig { returns(T.nilable(T.anything)) } + attr_reader :payment_details + + sig { params(payment_details: T.anything).void } + attr_writer :payment_details + sig do params( balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + credit_details: T.anything, + debit_details: T.anything, + payment_details: T.anything ).returns(T.attached_class) end def self.new( @@ -920,13 +949,21 @@ module Lithic # cents credits:, # Volume of debit management operation transactions less any interest in cents + debits:, + # Volume of debit management operation transactions less any interest in cents fees:, # Interest accrued in cents interest:, # Any funds transfers which affective the balance in cents payments:, # Net card transaction volume less any cash advances in cents - purchases: + purchases:, + # Breakdown of credits + credit_details: nil, + # Breakdown of debits + debit_details: nil, + # Breakdown of payments + payment_details: nil ) end @@ -936,10 +973,14 @@ module Lithic balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + credit_details: T.anything, + debit_details: T.anything, + payment_details: T.anything } ) end @@ -1308,6 +1349,10 @@ module Lithic sig { returns(Integer) } attr_accessor :credits + # Volume of debit management operation transactions less any interest in cents + sig { returns(Integer) } + attr_accessor :debits + # Volume of debit management operation transactions less any interest in cents sig { returns(Integer) } attr_accessor :fees @@ -1324,15 +1369,40 @@ module Lithic sig { returns(Integer) } attr_accessor :purchases + # Breakdown of credits + sig { returns(T.nilable(T.anything)) } + attr_reader :credit_details + + sig { params(credit_details: T.anything).void } + attr_writer :credit_details + + # Breakdown of debits + sig { returns(T.nilable(T.anything)) } + attr_reader :debit_details + + sig { params(debit_details: T.anything).void } + attr_writer :debit_details + + # Breakdown of payments + sig { returns(T.nilable(T.anything)) } + attr_reader :payment_details + + sig { params(payment_details: T.anything).void } + attr_writer :payment_details + sig do params( balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + credit_details: T.anything, + debit_details: T.anything, + payment_details: T.anything ).returns(T.attached_class) end def self.new( @@ -1344,13 +1414,21 @@ module Lithic # cents credits:, # Volume of debit management operation transactions less any interest in cents + debits:, + # Volume of debit management operation transactions less any interest in cents fees:, # Interest accrued in cents interest:, # Any funds transfers which affective the balance in cents payments:, # Net card transaction volume less any cash advances in cents - purchases: + purchases:, + # Breakdown of credits + credit_details: nil, + # Breakdown of debits + debit_details: nil, + # Breakdown of payments + payment_details: nil ) end @@ -1360,10 +1438,14 @@ module Lithic balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + credit_details: T.anything, + debit_details: T.anything, + payment_details: T.anything } ) end @@ -1421,6 +1503,10 @@ module Lithic sig { returns(Integer) } attr_accessor :credits + # Volume of debit management operation transactions less any interest in cents + sig { returns(Integer) } + attr_accessor :debits + # Volume of debit management operation transactions less any interest in cents sig { returns(Integer) } attr_accessor :fees @@ -1437,15 +1523,40 @@ module Lithic sig { returns(Integer) } attr_accessor :purchases + # Breakdown of credits + sig { returns(T.nilable(T.anything)) } + attr_reader :credit_details + + sig { params(credit_details: T.anything).void } + attr_writer :credit_details + + # Breakdown of debits + sig { returns(T.nilable(T.anything)) } + attr_reader :debit_details + + sig { params(debit_details: T.anything).void } + attr_writer :debit_details + + # Breakdown of payments + sig { returns(T.nilable(T.anything)) } + attr_reader :payment_details + + sig { params(payment_details: T.anything).void } + attr_writer :payment_details + sig do params( balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + credit_details: T.anything, + debit_details: T.anything, + payment_details: T.anything ).returns(T.attached_class) end def self.new( @@ -1457,13 +1568,21 @@ module Lithic # cents credits:, # Volume of debit management operation transactions less any interest in cents + debits:, + # Volume of debit management operation transactions less any interest in cents fees:, # Interest accrued in cents interest:, # Any funds transfers which affective the balance in cents payments:, # Net card transaction volume less any cash advances in cents - purchases: + purchases:, + # Breakdown of credits + credit_details: nil, + # Breakdown of debits + debit_details: nil, + # Breakdown of payments + payment_details: nil ) end @@ -1473,10 +1592,14 @@ module Lithic balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + credit_details: T.anything, + debit_details: T.anything, + payment_details: T.anything } ) end diff --git a/rbi/lithic/models/financial_accounts/statement.rbi b/rbi/lithic/models/financial_accounts/statement.rbi index d909c475..96326be4 100644 --- a/rbi/lithic/models/financial_accounts/statement.rbi +++ b/rbi/lithic/models/financial_accounts/statement.rbi @@ -618,6 +618,10 @@ module Lithic sig { returns(Integer) } attr_accessor :credits + # Volume of debit management operation transactions less any interest in cents + sig { returns(Integer) } + attr_accessor :debits + # Volume of debit management operation transactions less any interest in cents sig { returns(Integer) } attr_accessor :fees @@ -634,15 +638,40 @@ module Lithic sig { returns(Integer) } attr_accessor :purchases + # Breakdown of credits + sig { returns(T.nilable(T.anything)) } + attr_reader :credit_details + + sig { params(credit_details: T.anything).void } + attr_writer :credit_details + + # Breakdown of debits + sig { returns(T.nilable(T.anything)) } + attr_reader :debit_details + + sig { params(debit_details: T.anything).void } + attr_writer :debit_details + + # Breakdown of payments + sig { returns(T.nilable(T.anything)) } + attr_reader :payment_details + + sig { params(payment_details: T.anything).void } + attr_writer :payment_details + sig do params( balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + credit_details: T.anything, + debit_details: T.anything, + payment_details: T.anything ).returns(T.attached_class) end def self.new( @@ -654,13 +683,21 @@ module Lithic # cents credits:, # Volume of debit management operation transactions less any interest in cents + debits:, + # Volume of debit management operation transactions less any interest in cents fees:, # Interest accrued in cents interest:, # Any funds transfers which affective the balance in cents payments:, # Net card transaction volume less any cash advances in cents - purchases: + purchases:, + # Breakdown of credits + credit_details: nil, + # Breakdown of debits + debit_details: nil, + # Breakdown of payments + payment_details: nil ) end @@ -670,10 +707,14 @@ module Lithic balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + credit_details: T.anything, + debit_details: T.anything, + payment_details: T.anything } ) end @@ -739,6 +780,10 @@ module Lithic sig { returns(Integer) } attr_accessor :credits + # Volume of debit management operation transactions less any interest in cents + sig { returns(Integer) } + attr_accessor :debits + # Volume of debit management operation transactions less any interest in cents sig { returns(Integer) } attr_accessor :fees @@ -755,15 +800,40 @@ module Lithic sig { returns(Integer) } attr_accessor :purchases + # Breakdown of credits + sig { returns(T.nilable(T.anything)) } + attr_reader :credit_details + + sig { params(credit_details: T.anything).void } + attr_writer :credit_details + + # Breakdown of debits + sig { returns(T.nilable(T.anything)) } + attr_reader :debit_details + + sig { params(debit_details: T.anything).void } + attr_writer :debit_details + + # Breakdown of payments + sig { returns(T.nilable(T.anything)) } + attr_reader :payment_details + + sig { params(payment_details: T.anything).void } + attr_writer :payment_details + sig do params( balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + credit_details: T.anything, + debit_details: T.anything, + payment_details: T.anything ).returns(T.attached_class) end def self.new( @@ -775,13 +845,21 @@ module Lithic # cents credits:, # Volume of debit management operation transactions less any interest in cents + debits:, + # Volume of debit management operation transactions less any interest in cents fees:, # Interest accrued in cents interest:, # Any funds transfers which affective the balance in cents payments:, # Net card transaction volume less any cash advances in cents - purchases: + purchases:, + # Breakdown of credits + credit_details: nil, + # Breakdown of debits + debit_details: nil, + # Breakdown of payments + payment_details: nil ) end @@ -791,10 +869,14 @@ module Lithic balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + credit_details: T.anything, + debit_details: T.anything, + payment_details: T.anything } ) end diff --git a/rbi/lithic/models/payment.rbi b/rbi/lithic/models/payment.rbi index 99a2f146..6aae41de 100644 --- a/rbi/lithic/models/payment.rbi +++ b/rbi/lithic/models/payment.rbi @@ -791,6 +791,10 @@ module Lithic ) end + # Type of wire message + sig { returns(T.nilable(String)) } + attr_accessor :wire_message_type + # Type of wire transfer sig do returns( @@ -820,25 +824,20 @@ module Lithic sig { returns(T.nilable(String)) } attr_accessor :remittance_information - # Type of wire message - sig { returns(T.nilable(String)) } - attr_reader :wire_message_type - - sig { params(wire_message_type: String).void } - attr_writer :wire_message_type - sig do params( + wire_message_type: T.nilable(String), wire_network: Lithic::Payment::MethodAttributes::WireMethodAttributes::WireNetwork::OrSymbol, creditor: Lithic::WirePartyDetails::OrHash, debtor: Lithic::WirePartyDetails::OrHash, message_id: T.nilable(String), - remittance_information: T.nilable(String), - wire_message_type: String + remittance_information: T.nilable(String) ).returns(T.attached_class) end def self.new( + # Type of wire message + wire_message_type:, # Type of wire transfer wire_network:, creditor: nil, @@ -847,22 +846,20 @@ module Lithic # for tracking the message through the Fedwire system message_id: nil, # Payment details or invoice reference - remittance_information: nil, - # Type of wire message - wire_message_type: nil + remittance_information: nil ) end sig do override.returns( { + wire_message_type: T.nilable(String), wire_network: Lithic::Payment::MethodAttributes::WireMethodAttributes::WireNetwork::TaggedSymbol, creditor: Lithic::WirePartyDetails, debtor: Lithic::WirePartyDetails, message_id: T.nilable(String), - remittance_information: T.nilable(String), - wire_message_type: String + remittance_information: T.nilable(String) } ) end diff --git a/rbi/lithic/models/payment_simulate_action_params.rbi b/rbi/lithic/models/payment_simulate_action_params.rbi index 4398a462..4c6057d6 100644 --- a/rbi/lithic/models/payment_simulate_action_params.rbi +++ b/rbi/lithic/models/payment_simulate_action_params.rbi @@ -15,6 +15,13 @@ module Lithic sig { returns(Lithic::PaymentSimulateActionParams::EventType::OrSymbol) } attr_accessor :event_type + # Date of Death for ACH Return + sig { returns(T.nilable(Date)) } + attr_reader :date_of_death + + sig { params(date_of_death: Date).void } + attr_writer :date_of_death + # Decline reason sig do returns( @@ -33,6 +40,13 @@ module Lithic end attr_writer :decline_reason + # Return Addenda + sig { returns(T.nilable(String)) } + attr_reader :return_addenda + + sig { params(return_addenda: String).void } + attr_writer :return_addenda + # Return Reason Code sig { returns(T.nilable(String)) } attr_reader :return_reason_code @@ -43,8 +57,10 @@ module Lithic sig do params( event_type: Lithic::PaymentSimulateActionParams::EventType::OrSymbol, + date_of_death: Date, decline_reason: Lithic::PaymentSimulateActionParams::DeclineReason::OrSymbol, + return_addenda: String, return_reason_code: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) @@ -52,8 +68,12 @@ module Lithic def self.new( # Event Type event_type:, + # Date of Death for ACH Return + date_of_death: nil, # Decline reason decline_reason: nil, + # Return Addenda + return_addenda: nil, # Return Reason Code return_reason_code: nil, request_options: {} @@ -65,8 +85,10 @@ module Lithic { event_type: Lithic::PaymentSimulateActionParams::EventType::OrSymbol, + date_of_death: Date, decline_reason: Lithic::PaymentSimulateActionParams::DeclineReason::OrSymbol, + return_addenda: String, return_reason_code: String, request_options: Lithic::RequestOptions } diff --git a/rbi/lithic/models/tokenization.rbi b/rbi/lithic/models/tokenization.rbi index ec914198..76b50065 100644 --- a/rbi/lithic/models/tokenization.rbi +++ b/rbi/lithic/models/tokenization.rbi @@ -22,10 +22,6 @@ module Lithic sig { returns(Time) } attr_accessor :created_at - # The device identifier associated with the tokenization. - sig { returns(T.nilable(String)) } - attr_accessor :device_id - # The dynamic pan assigned to the token by the network. sig { returns(T.nilable(String)) } attr_accessor :dpan @@ -34,9 +30,10 @@ module Lithic sig { returns(Lithic::Tokenization::Status::TaggedSymbol) } attr_accessor :status - # The entity that requested the tokenization. Represents a Digital Wallet or - # merchant. - sig { returns(Lithic::Tokenization::TokenRequestorName::TaggedSymbol) } + # The entity that requested the tokenization. For digital wallets, this will be + # one of the defined wallet types. For merchant tokenizations, this will be a + # free-form merchant name string. + sig { returns(Lithic::Tokenization::TokenRequestorName::Variants) } attr_accessor :token_requestor_name # The network's unique reference for the tokenization. @@ -51,15 +48,16 @@ module Lithic sig { returns(Time) } attr_accessor :updated_at - # Specifies the digital card art displayed in the user’s digital wallet after + # The device identifier associated with the tokenization. + sig { returns(T.nilable(String)) } + attr_accessor :device_id + + # Specifies the digital card art displayed in the user's digital wallet after # tokenization. This will be null if the tokenization was created without an # associated digital card art. See # [Flexible Card Art Guide](https://docs.lithic.com/docs/about-digital-wallets#flexible-card-art). sig { returns(T.nilable(String)) } - attr_reader :digital_card_art_token - - sig { params(digital_card_art_token: String).void } - attr_writer :digital_card_art_token + attr_accessor :digital_card_art_token # A list of events related to the tokenization. sig { returns(T.nilable(T::Array[Lithic::Tokenization::Event])) } @@ -78,16 +76,16 @@ module Lithic account_token: String, card_token: String, created_at: Time, - device_id: T.nilable(String), dpan: T.nilable(String), status: Lithic::Tokenization::Status::OrSymbol, token_requestor_name: - Lithic::Tokenization::TokenRequestorName::OrSymbol, + T.any(Lithic::Tokenization::TokenRequestorName::OrSymbol, String), token_unique_reference: String, tokenization_channel: Lithic::Tokenization::TokenizationChannel::OrSymbol, updated_at: Time, - digital_card_art_token: String, + device_id: T.nilable(String), + digital_card_art_token: T.nilable(String), events: T::Array[Lithic::Tokenization::Event::OrHash], payment_account_reference_id: T.nilable(String) ).returns(T.attached_class) @@ -101,14 +99,13 @@ module Lithic card_token:, # Date and time when the tokenization first occurred. UTC time zone. created_at:, - # The device identifier associated with the tokenization. - device_id:, # The dynamic pan assigned to the token by the network. dpan:, # The status of the tokenization request status:, - # The entity that requested the tokenization. Represents a Digital Wallet or - # merchant. + # The entity that requested the tokenization. For digital wallets, this will be + # one of the defined wallet types. For merchant tokenizations, this will be a + # free-form merchant name string. token_requestor_name:, # The network's unique reference for the tokenization. token_unique_reference:, @@ -116,7 +113,9 @@ module Lithic tokenization_channel:, # Latest date and time when the tokenization was updated. UTC time zone. updated_at:, - # Specifies the digital card art displayed in the user’s digital wallet after + # The device identifier associated with the tokenization. + device_id: nil, + # Specifies the digital card art displayed in the user's digital wallet after # tokenization. This will be null if the tokenization was created without an # associated digital card art. See # [Flexible Card Art Guide](https://docs.lithic.com/docs/about-digital-wallets#flexible-card-art). @@ -135,16 +134,16 @@ module Lithic account_token: String, card_token: String, created_at: Time, - device_id: T.nilable(String), dpan: T.nilable(String), status: Lithic::Tokenization::Status::TaggedSymbol, token_requestor_name: - Lithic::Tokenization::TokenRequestorName::TaggedSymbol, + Lithic::Tokenization::TokenRequestorName::Variants, token_unique_reference: String, tokenization_channel: Lithic::Tokenization::TokenizationChannel::TaggedSymbol, updated_at: Time, - digital_card_art_token: String, + device_id: T.nilable(String), + digital_card_art_token: T.nilable(String), events: T::Array[Lithic::Tokenization::Event], payment_account_reference_id: T.nilable(String) } @@ -179,10 +178,27 @@ module Lithic end end - # The entity that requested the tokenization. Represents a Digital Wallet or - # merchant. + # The entity that requested the tokenization. For digital wallets, this will be + # one of the defined wallet types. For merchant tokenizations, this will be a + # free-form merchant name string. module TokenRequestorName - extend Lithic::Internal::Type::Enum + extend Lithic::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + Lithic::Tokenization::TokenRequestorName::TaggedSymbol, + String + ) + end + + sig do + override.returns( + T::Array[Lithic::Tokenization::TokenRequestorName::Variants] + ) + end + def self.variants + end TaggedSymbol = T.type_alias do @@ -220,6 +236,11 @@ module Lithic :GARMIN_PAY, Lithic::Tokenization::TokenRequestorName::TaggedSymbol ) + GOOGLE_PAY = + T.let( + :GOOGLE_PAY, + Lithic::Tokenization::TokenRequestorName::TaggedSymbol + ) MICROSOFT_PAY = T.let( :MICROSOFT_PAY, @@ -245,14 +266,6 @@ module Lithic :VISA_CHECKOUT, Lithic::Tokenization::TokenRequestorName::TaggedSymbol ) - - sig do - override.returns( - T::Array[Lithic::Tokenization::TokenRequestorName::TaggedSymbol] - ) - end - def self.values - end end # The channel through which the tokenization was made. @@ -316,6 +329,64 @@ module Lithic end attr_writer :result + # Results from rules that were evaluated for this tokenization + sig do + returns(T.nilable(T::Array[Lithic::Tokenization::Event::RuleResult])) + end + attr_reader :rule_results + + sig do + params( + rule_results: + T::Array[Lithic::Tokenization::Event::RuleResult::OrHash] + ).void + end + attr_writer :rule_results + + # List of reasons why the tokenization was declined + sig do + returns( + T.nilable( + T::Array[ + Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol + ] + ) + ) + end + attr_reader :tokenization_decline_reasons + + sig do + params( + tokenization_decline_reasons: + T::Array[ + Lithic::Tokenization::Event::TokenizationDeclineReason::OrSymbol + ] + ).void + end + attr_writer :tokenization_decline_reasons + + # List of reasons why two-factor authentication was required + sig do + returns( + T.nilable( + T::Array[ + Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol + ] + ) + ) + end + attr_reader :tokenization_tfa_reasons + + sig do + params( + tokenization_tfa_reasons: + T::Array[ + Lithic::Tokenization::Event::TokenizationTfaReason::OrSymbol + ] + ).void + end + attr_writer :tokenization_tfa_reasons + # Enum representing the type of tokenization event that occurred sig do returns(T.nilable(Lithic::Tokenization::Event::Type::TaggedSymbol)) @@ -330,6 +401,16 @@ module Lithic token: String, created_at: Time, result: Lithic::Tokenization::Event::Result::OrSymbol, + rule_results: + T::Array[Lithic::Tokenization::Event::RuleResult::OrHash], + tokenization_decline_reasons: + T::Array[ + Lithic::Tokenization::Event::TokenizationDeclineReason::OrSymbol + ], + tokenization_tfa_reasons: + T::Array[ + Lithic::Tokenization::Event::TokenizationTfaReason::OrSymbol + ], type: Lithic::Tokenization::Event::Type::OrSymbol ).returns(T.attached_class) end @@ -340,6 +421,12 @@ module Lithic created_at: nil, # Enum representing the result of the tokenization event result: nil, + # Results from rules that were evaluated for this tokenization + rule_results: nil, + # List of reasons why the tokenization was declined + tokenization_decline_reasons: nil, + # List of reasons why two-factor authentication was required + tokenization_tfa_reasons: nil, # Enum representing the type of tokenization event that occurred type: nil ) @@ -351,6 +438,15 @@ module Lithic token: String, created_at: Time, result: Lithic::Tokenization::Event::Result::TaggedSymbol, + rule_results: T::Array[Lithic::Tokenization::Event::RuleResult], + tokenization_decline_reasons: + T::Array[ + Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol + ], + tokenization_tfa_reasons: + T::Array[ + Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol + ], type: Lithic::Tokenization::Event::Type::TaggedSymbol } ) @@ -430,6 +526,305 @@ module Lithic end end + class RuleResult < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::Tokenization::Event::RuleResult, + Lithic::Internal::AnyHash + ) + end + + # The Auth Rule Token associated with the rule. If this is set to null, then the + # result was not associated with a customer-configured rule. This may happen in + # cases where a tokenization is declined or requires TFA due to a + # Lithic-configured security or compliance rule, for example. + sig { returns(T.nilable(String)) } + attr_accessor :auth_rule_token + + # A human-readable explanation outlining the motivation for the rule's result + sig { returns(T.nilable(String)) } + attr_accessor :explanation + + # The name for the rule, if any was configured + sig { returns(T.nilable(String)) } + attr_accessor :name + + # The result associated with this rule + sig do + returns( + Lithic::Tokenization::Event::RuleResult::Result::TaggedSymbol + ) + end + attr_accessor :result + + sig do + params( + auth_rule_token: T.nilable(String), + explanation: T.nilable(String), + name: T.nilable(String), + result: Lithic::Tokenization::Event::RuleResult::Result::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # The Auth Rule Token associated with the rule. If this is set to null, then the + # result was not associated with a customer-configured rule. This may happen in + # cases where a tokenization is declined or requires TFA due to a + # Lithic-configured security or compliance rule, for example. + auth_rule_token:, + # A human-readable explanation outlining the motivation for the rule's result + explanation:, + # The name for the rule, if any was configured + name:, + # The result associated with this rule + result: + ) + end + + sig do + override.returns( + { + auth_rule_token: T.nilable(String), + explanation: T.nilable(String), + name: T.nilable(String), + result: + Lithic::Tokenization::Event::RuleResult::Result::TaggedSymbol + } + ) + end + def to_hash + end + + # The result associated with this rule + module Result + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Lithic::Tokenization::Event::RuleResult::Result) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + APPROVED = + T.let( + :APPROVED, + Lithic::Tokenization::Event::RuleResult::Result::TaggedSymbol + ) + DECLINED = + T.let( + :DECLINED, + Lithic::Tokenization::Event::RuleResult::Result::TaggedSymbol + ) + REQUIRE_TFA = + T.let( + :REQUIRE_TFA, + Lithic::Tokenization::Event::RuleResult::Result::TaggedSymbol + ) + ERROR = + T.let( + :ERROR, + Lithic::Tokenization::Event::RuleResult::Result::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Tokenization::Event::RuleResult::Result::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + # Reason code for why a tokenization was declined + module TokenizationDeclineReason + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::Tokenization::Event::TokenizationDeclineReason + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACCOUNT_SCORE_1 = + T.let( + :ACCOUNT_SCORE_1, + Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol + ) + DEVICE_SCORE_1 = + T.let( + :DEVICE_SCORE_1, + Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol + ) + ALL_WALLET_DECLINE_REASONS_PRESENT = + T.let( + :ALL_WALLET_DECLINE_REASONS_PRESENT, + Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol + ) + WALLET_RECOMMENDED_DECISION_RED = + T.let( + :WALLET_RECOMMENDED_DECISION_RED, + Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol + ) + CVC_MISMATCH = + T.let( + :CVC_MISMATCH, + Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol + ) + CARD_EXPIRY_MONTH_MISMATCH = + T.let( + :CARD_EXPIRY_MONTH_MISMATCH, + Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol + ) + CARD_EXPIRY_YEAR_MISMATCH = + T.let( + :CARD_EXPIRY_YEAR_MISMATCH, + Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol + ) + CARD_INVALID_STATE = + T.let( + :CARD_INVALID_STATE, + Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol + ) + CUSTOMER_RED_PATH = + T.let( + :CUSTOMER_RED_PATH, + Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol + ) + INVALID_CUSTOMER_RESPONSE = + T.let( + :INVALID_CUSTOMER_RESPONSE, + Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol + ) + NETWORK_FAILURE = + T.let( + :NETWORK_FAILURE, + Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol + ) + GENERIC_DECLINE = + T.let( + :GENERIC_DECLINE, + Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol + ) + DIGITAL_CARD_ART_REQUIRED = + T.let( + :DIGITAL_CARD_ART_REQUIRED, + Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol + ] + ) + end + def self.values + end + end + + # Reason code for why a tokenization required two-factor authentication + module TokenizationTfaReason + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Lithic::Tokenization::Event::TokenizationTfaReason) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + WALLET_RECOMMENDED_TFA = + T.let( + :WALLET_RECOMMENDED_TFA, + Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol + ) + SUSPICIOUS_ACTIVITY = + T.let( + :SUSPICIOUS_ACTIVITY, + Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol + ) + DEVICE_RECENTLY_LOST = + T.let( + :DEVICE_RECENTLY_LOST, + Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol + ) + TOO_MANY_RECENT_ATTEMPTS = + T.let( + :TOO_MANY_RECENT_ATTEMPTS, + Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol + ) + TOO_MANY_RECENT_TOKENS = + T.let( + :TOO_MANY_RECENT_TOKENS, + Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol + ) + TOO_MANY_DIFFERENT_CARDHOLDERS = + T.let( + :TOO_MANY_DIFFERENT_CARDHOLDERS, + Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol + ) + OUTSIDE_HOME_TERRITORY = + T.let( + :OUTSIDE_HOME_TERRITORY, + Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol + ) + HAS_SUSPENDED_TOKENS = + T.let( + :HAS_SUSPENDED_TOKENS, + Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol + ) + HIGH_RISK = + T.let( + :HIGH_RISK, + Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol + ) + ACCOUNT_SCORE_LOW = + T.let( + :ACCOUNT_SCORE_LOW, + Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol + ) + DEVICE_SCORE_LOW = + T.let( + :DEVICE_SCORE_LOW, + Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol + ) + CARD_STATE_TFA = + T.let( + :CARD_STATE_TFA, + Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol + ) + HARDCODED_TFA = + T.let( + :HARDCODED_TFA, + Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol + ) + CUSTOMER_RULE_TFA = + T.let( + :CUSTOMER_RULE_TFA, + Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol + ) + DEVICE_HOST_CARD_EMULATION = + T.let( + :DEVICE_HOST_CARD_EMULATION, + Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol + ] + ) + end + def self.values + end + end + # Enum representing the type of tokenization event that occurred module Type extend Lithic::Internal::Type::Enum diff --git a/rbi/lithic/models/transaction.rbi b/rbi/lithic/models/transaction.rbi index 837a1ae0..cfc6ef88 100644 --- a/rbi/lithic/models/transaction.rbi +++ b/rbi/lithic/models/transaction.rbi @@ -525,18 +525,13 @@ module Lithic ) end - # The 3DS version used for the authentication - sig { returns(T.nilable(String)) } - attr_accessor :three_ds_version - - # Whether an acquirer exemption applied to the transaction. Not currently - # populated and will be removed in the future. + # Indicates the method used to authenticate the cardholder. sig do returns( - Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol + Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol ) end - attr_accessor :acquirer_exemption + attr_accessor :authentication_method # Indicates the outcome of the 3DS authentication process. sig do @@ -578,68 +573,22 @@ module Lithic sig { returns(T.nilable(String)) } attr_accessor :three_ds_authentication_token - # Indicates whether a 3DS challenge flow was used, and if so, what the - # verification method was. (deprecated, use `authentication_result`) - sig do - returns( - Lithic::Transaction::CardholderAuthentication::VerificationAttempted::TaggedSymbol - ) - end - attr_accessor :verification_attempted - - # Indicates whether a transaction is considered 3DS authenticated. (deprecated, - # use `authentication_result`) - sig do - returns( - Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol - ) - end - attr_accessor :verification_result - - # Indicates the method used to authenticate the cardholder. - sig do - returns( - T.nilable( - Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol - ) - ) - end - attr_reader :authentication_method - sig do params( authentication_method: - Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::OrSymbol - ).void - end - attr_writer :authentication_method - - sig do - params( - three_ds_version: T.nilable(String), - acquirer_exemption: - Lithic::Transaction::CardholderAuthentication::AcquirerExemption::OrSymbol, + Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::OrSymbol, authentication_result: Lithic::Transaction::CardholderAuthentication::AuthenticationResult::OrSymbol, decision_made_by: Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::OrSymbol, liability_shift: Lithic::Transaction::CardholderAuthentication::LiabilityShift::OrSymbol, - three_ds_authentication_token: T.nilable(String), - verification_attempted: - Lithic::Transaction::CardholderAuthentication::VerificationAttempted::OrSymbol, - verification_result: - Lithic::Transaction::CardholderAuthentication::VerificationResult::OrSymbol, - authentication_method: - Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::OrSymbol + three_ds_authentication_token: T.nilable(String) ).returns(T.attached_class) end def self.new( - # The 3DS version used for the authentication - three_ds_version:, - # Whether an acquirer exemption applied to the transaction. Not currently - # populated and will be removed in the future. - acquirer_exemption:, + # Indicates the method used to authenticate the cardholder. + authentication_method:, # Indicates the outcome of the 3DS authentication process. authentication_result:, # Indicates which party made the 3DS authentication decision. @@ -659,102 +608,61 @@ module Lithic # the three_ds_authentication.created event webhook) and the transaction. Note # that in cases where liability shift does not occur, this token is matched to the # transaction on a best-effort basis. - three_ds_authentication_token:, - # Indicates whether a 3DS challenge flow was used, and if so, what the - # verification method was. (deprecated, use `authentication_result`) - verification_attempted:, - # Indicates whether a transaction is considered 3DS authenticated. (deprecated, - # use `authentication_result`) - verification_result:, - # Indicates the method used to authenticate the cardholder. - authentication_method: nil + three_ds_authentication_token: ) end sig do override.returns( { - three_ds_version: T.nilable(String), - acquirer_exemption: - Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol, + authentication_method: + Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol, authentication_result: Lithic::Transaction::CardholderAuthentication::AuthenticationResult::TaggedSymbol, decision_made_by: Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::TaggedSymbol, liability_shift: Lithic::Transaction::CardholderAuthentication::LiabilityShift::TaggedSymbol, - three_ds_authentication_token: T.nilable(String), - verification_attempted: - Lithic::Transaction::CardholderAuthentication::VerificationAttempted::TaggedSymbol, - verification_result: - Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol, - authentication_method: - Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol + three_ds_authentication_token: T.nilable(String) } ) end def to_hash end - # Whether an acquirer exemption applied to the transaction. Not currently - # populated and will be removed in the future. - module AcquirerExemption + # Indicates the method used to authenticate the cardholder. + module AuthenticationMethod extend Lithic::Internal::Type::Enum TaggedSymbol = T.type_alias do T.all( Symbol, - Lithic::Transaction::CardholderAuthentication::AcquirerExemption + Lithic::Transaction::CardholderAuthentication::AuthenticationMethod ) end OrSymbol = T.type_alias { T.any(Symbol, String) } - AUTHENTICATION_OUTAGE_EXCEPTION = - T.let( - :AUTHENTICATION_OUTAGE_EXCEPTION, - Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol - ) - LOW_VALUE = + FRICTIONLESS = T.let( - :LOW_VALUE, - Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol + :FRICTIONLESS, + Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol ) - MERCHANT_INITIATED_TRANSACTION = + CHALLENGE = T.let( - :MERCHANT_INITIATED_TRANSACTION, - Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol + :CHALLENGE, + Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol ) NONE = T.let( :NONE, - Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol - ) - RECURRING_PAYMENT = - T.let( - :RECURRING_PAYMENT, - Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol - ) - SECURE_CORPORATE_PAYMENT = - T.let( - :SECURE_CORPORATE_PAYMENT, - Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol - ) - STRONG_CUSTOMER_AUTHENTICATION_DELEGATION = - T.let( - :STRONG_CUSTOMER_AUTHENTICATION_DELEGATION, - Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol - ) - TRANSACTION_RISK_ANALYSIS = - T.let( - :TRANSACTION_RISK_ANALYSIS, - Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol + Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol + Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol ] ) end @@ -910,138 +818,6 @@ module Lithic def self.values end end - - # Indicates whether a 3DS challenge flow was used, and if so, what the - # verification method was. (deprecated, use `authentication_result`) - module VerificationAttempted - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Transaction::CardholderAuthentication::VerificationAttempted - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - NONE = - T.let( - :NONE, - Lithic::Transaction::CardholderAuthentication::VerificationAttempted::TaggedSymbol - ) - OTHER = - T.let( - :OTHER, - Lithic::Transaction::CardholderAuthentication::VerificationAttempted::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Transaction::CardholderAuthentication::VerificationAttempted::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Indicates whether a transaction is considered 3DS authenticated. (deprecated, - # use `authentication_result`) - module VerificationResult - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Transaction::CardholderAuthentication::VerificationResult - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CANCELLED = - T.let( - :CANCELLED, - Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol - ) - FAILED = - T.let( - :FAILED, - Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol - ) - FRICTIONLESS = - T.let( - :FRICTIONLESS, - Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol - ) - NOT_ATTEMPTED = - T.let( - :NOT_ATTEMPTED, - Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol - ) - REJECTED = - T.let( - :REJECTED, - Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol - ) - SUCCESS = - T.let( - :SUCCESS, - Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Indicates the method used to authenticate the cardholder. - module AuthenticationMethod - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Transaction::CardholderAuthentication::AuthenticationMethod - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - FRICTIONLESS = - T.let( - :FRICTIONLESS, - Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol - ) - CHALLENGE = - T.let( - :CHALLENGE, - Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol - ) - NONE = - T.let( - :NONE, - Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol - ] - ) - end - def self.values - end - end end class Merchant < Lithic::Internal::Type::BaseModel diff --git a/rbi/lithic/models/transactions/events/enhanced_data.rbi b/rbi/lithic/models/transactions/events/enhanced_data.rbi index d1601dcb..403cd01d 100644 --- a/rbi/lithic/models/transactions/events/enhanced_data.rbi +++ b/rbi/lithic/models/transactions/events/enhanced_data.rbi @@ -184,10 +184,10 @@ module Lithic end # The price of the item purchased in merchant currency. - sig { returns(T.nilable(Float)) } + sig { returns(T.nilable(String)) } attr_reader :amount - sig { params(amount: Float).void } + sig { params(amount: String).void } attr_writer :amount # A human-readable description of the item. @@ -205,19 +205,19 @@ module Lithic attr_writer :product_code # The quantity of the item purchased. - sig { returns(T.nilable(Float)) } + sig { returns(T.nilable(String)) } attr_reader :quantity - sig { params(quantity: Float).void } + sig { params(quantity: String).void } attr_writer :quantity # An L2/L3 enhanced commercial data line item. sig do params( - amount: Float, + amount: String, description: String, product_code: String, - quantity: Float + quantity: String ).returns(T.attached_class) end def self.new( @@ -235,10 +235,10 @@ module Lithic sig do override.returns( { - amount: Float, + amount: String, description: String, product_code: String, - quantity: Float + quantity: String } ) end @@ -550,10 +550,10 @@ module Lithic end # The quantity of fuel purchased. - sig { returns(T.nilable(Float)) } + sig { returns(T.nilable(String)) } attr_reader :quantity - sig { params(quantity: Float).void } + sig { params(quantity: String).void } attr_writer :quantity # The type of fuel purchased. @@ -601,7 +601,7 @@ module Lithic sig do params( - quantity: Float, + quantity: String, type: Lithic::Transactions::Events::EnhancedData::Fleet::Fuel::Type::OrSymbol, unit_of_measure: @@ -624,7 +624,7 @@ module Lithic sig do override.returns( { - quantity: Float, + quantity: String, type: Lithic::Transactions::Events::EnhancedData::Fleet::Fuel::Type::TaggedSymbol, unit_of_measure: diff --git a/rbi/lithic/resources/auth_rules/v2.rbi b/rbi/lithic/resources/auth_rules/v2.rbi index e41adc1a..f72f2d99 100644 --- a/rbi/lithic/resources/auth_rules/v2.rbi +++ b/rbi/lithic/resources/auth_rules/v2.rbi @@ -10,27 +10,39 @@ module Lithic # Creates a new V2 Auth rule in draft mode sig do params( - card_tokens: T::Array[String], - program_level: T::Boolean, - account_tokens: T::Array[String], - business_account_tokens: T::Array[String], - event_stream: - Lithic::AuthRules::V2CreateParams::EventStream::OrSymbol, - name: T.nilable(String), parameters: T.any( Lithic::AuthRules::ConditionalBlockParameters::OrHash, Lithic::AuthRules::VelocityLimitParams::OrHash, Lithic::AuthRules::MerchantLockParameters::OrHash, Lithic::AuthRules::Conditional3DSActionParameters::OrHash, - Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::OrHash + Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash ), type: Lithic::AuthRules::V2CreateParams::Type::OrSymbol, + card_tokens: T::Array[String], + program_level: T::Boolean, + account_tokens: T::Array[String], + business_account_tokens: T::Array[String], + event_stream: + Lithic::AuthRules::V2CreateParams::EventStream::OrSymbol, + name: T.nilable(String), excluded_card_tokens: T::Array[String], request_options: Lithic::RequestOptions::OrHash ).returns(Lithic::Models::AuthRules::V2CreateResponse) end def create( + # Parameters for the Auth Rule + parameters:, + # The type of Auth Rule. For certain rule types, this determines the event stream + # during which it will be evaluated. For rules that can be applied to one of + # several event streams, the effective one is defined by the separate + # `event_stream` field. + # + # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream. + # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. + # - `MERCHANT_LOCK`: AUTHORIZATION event stream. + # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream. + type:, # Card tokens to which the Auth Rule applies. card_tokens:, # Whether the Auth Rule applies to all authorizations on the card program. @@ -43,18 +55,6 @@ module Lithic event_stream: nil, # Auth Rule Name name: nil, - # Parameters for the Auth Rule - parameters: nil, - # The type of Auth Rule. For certain rule types, this determines the event stream - # during which it will be evaluated. For rules that can be applied to one of - # several event streams, the effective one is defined by the separate - # `event_stream` field. - # - # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream. - # - `VELOCITY_LIMIT`: AUTHORIZATION event stream. - # - `MERCHANT_LOCK`: AUTHORIZATION event stream. - # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream. - type: nil, # Card tokens to which the Auth Rule does not apply. excluded_card_tokens: nil, request_options: {} @@ -68,11 +68,7 @@ module Lithic request_options: Lithic::RequestOptions::OrHash ).returns(Lithic::Models::AuthRules::V2RetrieveResponse) end - def retrieve( - # Globally unique identifier for the Auth Rule. - auth_rule_token, - request_options: {} - ) + def retrieve(auth_rule_token, request_options: {}) end # Updates a V2 Auth rule's properties @@ -94,7 +90,6 @@ module Lithic ).returns(Lithic::Models::AuthRules::V2UpdateResponse) end def update( - # Globally unique identifier for the Auth Rule. auth_rule_token, # Account tokens to which the Auth Rule applies. account_tokens: nil, @@ -167,43 +162,7 @@ module Lithic request_options: Lithic::RequestOptions::OrHash ).void end - def delete( - # Globally unique identifier for the Auth Rule. - auth_rule_token, - request_options: {} - ) - end - - # Associates a V2 Auth rule with a card program, the provided account(s) or - # card(s). - # - # Prefer using the `PATCH` method for this operation. - sig do - params( - auth_rule_token: String, - card_tokens: T::Array[String], - program_level: T::Boolean, - account_tokens: T::Array[String], - business_account_tokens: T::Array[String], - excluded_card_tokens: T::Array[String], - request_options: Lithic::RequestOptions::OrHash - ).returns(Lithic::Models::AuthRules::V2ApplyResponse) - end - def apply( - # Globally unique identifier for the Auth Rule. - auth_rule_token, - # Card tokens to which the Auth Rule applies. - card_tokens:, - # Whether the Auth Rule applies to all authorizations on the card program. - program_level:, - # Account tokens to which the Auth Rule applies. - account_tokens: nil, - # Business Account tokens to which the Auth Rule applies. - business_account_tokens: nil, - # Card tokens to which the Auth Rule does not apply. - excluded_card_tokens: nil, - request_options: {} - ) + def delete(auth_rule_token, request_options: {}) end # Creates a new draft version of a rule that will be ran in shadow mode. @@ -220,14 +179,13 @@ module Lithic Lithic::AuthRules::VelocityLimitParams::OrHash, Lithic::AuthRules::MerchantLockParameters::OrHash, Lithic::AuthRules::Conditional3DSActionParameters::OrHash, - Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::OrHash + Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash ) ), request_options: Lithic::RequestOptions::OrHash ).returns(Lithic::Models::AuthRules::V2DraftResponse) end def draft( - # Globally unique identifier for the Auth Rule. auth_rule_token, # Parameters for the Auth Rule parameters: nil, @@ -243,11 +201,7 @@ module Lithic request_options: Lithic::RequestOptions::OrHash ).returns(Lithic::Models::AuthRules::V2PromoteResponse) end - def promote( - # Globally unique identifier for the Auth Rule. - auth_rule_token, - request_options: {} - ) + def promote(auth_rule_token, request_options: {}) end # Fetches the current calculated Feature values for the given Auth Rule @@ -268,7 +222,6 @@ module Lithic ).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, @@ -298,7 +251,6 @@ module Lithic ).returns(Lithic::Models::AuthRules::V2RetrieveReportResponse) end def retrieve_report( - # Globally unique identifier for the Auth Rule. auth_rule_token, # Start date for the report begin_:, diff --git a/rbi/lithic/resources/auth_rules/v2/backtests.rbi b/rbi/lithic/resources/auth_rules/v2/backtests.rbi index c52112bd..ef926011 100644 --- a/rbi/lithic/resources/auth_rules/v2/backtests.rbi +++ b/rbi/lithic/resources/auth_rules/v2/backtests.rbi @@ -39,7 +39,6 @@ module Lithic ).returns(Lithic::Models::AuthRules::V2::BacktestCreateResponse) end def create( - # Globally unique identifier for the Auth Rule. auth_rule_token, # The end time of the backtest. end_: nil, @@ -75,9 +74,7 @@ module Lithic ).returns(Lithic::AuthRules::V2::BacktestResults) end def retrieve( - # Globally unique identifier for an Auth Rule backtest. auth_rule_backtest_token, - # Globally unique identifier for the Auth Rule. auth_rule_token:, request_options: {} ) diff --git a/rbi/lithic/resources/disputes.rbi b/rbi/lithic/resources/disputes.rbi index 3a1df74f..4f6bbcc3 100644 --- a/rbi/lithic/resources/disputes.rbi +++ b/rbi/lithic/resources/disputes.rbi @@ -12,7 +12,7 @@ module Lithic customer_filed_date: Time, customer_note: String, request_options: Lithic::RequestOptions::OrHash - ).returns(Lithic::Dispute) + ).returns(Lithic::Models::DisputeCreateResponse) end def create( # Amount to dispute @@ -34,7 +34,7 @@ module Lithic params( dispute_token: String, request_options: Lithic::RequestOptions::OrHash - ).returns(Lithic::Dispute) + ).returns(Lithic::Models::DisputeRetrieveResponse) end def retrieve(dispute_token, request_options: {}) end @@ -48,7 +48,7 @@ module Lithic customer_note: String, reason: Lithic::DisputeUpdateParams::Reason::OrSymbol, request_options: Lithic::RequestOptions::OrHash - ).returns(Lithic::Dispute) + ).returns(Lithic::Models::DisputeUpdateResponse) end def update( dispute_token, @@ -75,7 +75,9 @@ module Lithic status: Lithic::DisputeListParams::Status::OrSymbol, transaction_tokens: T::Array[String], request_options: Lithic::RequestOptions::OrHash - ).returns(Lithic::Internal::CursorPage[Lithic::Dispute]) + ).returns( + Lithic::Internal::CursorPage[Lithic::Models::DisputeListResponse] + ) end def list( # Date string in RFC 3339 format. Only entries created after the specified time @@ -105,7 +107,7 @@ module Lithic params( dispute_token: String, request_options: Lithic::RequestOptions::OrHash - ).returns(Lithic::Dispute) + ).returns(Lithic::Models::DisputeDeleteResponse) end def delete(dispute_token, request_options: {}) end diff --git a/rbi/lithic/resources/payments.rbi b/rbi/lithic/resources/payments.rbi index 59268e24..731d697b 100644 --- a/rbi/lithic/resources/payments.rbi +++ b/rbi/lithic/resources/payments.rbi @@ -102,8 +102,10 @@ module Lithic params( payment_token: String, event_type: Lithic::PaymentSimulateActionParams::EventType::OrSymbol, + date_of_death: Date, decline_reason: Lithic::PaymentSimulateActionParams::DeclineReason::OrSymbol, + return_addenda: String, return_reason_code: String, request_options: Lithic::RequestOptions::OrHash ).returns(Lithic::Models::PaymentSimulateActionResponse) @@ -112,8 +114,12 @@ module Lithic payment_token, # Event Type event_type:, + # Date of Death for ACH Return + date_of_death: nil, # Decline reason decline_reason: nil, + # Return Addenda + return_addenda: nil, # Return Reason Code return_reason_code: nil, request_options: {} diff --git a/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs b/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs index e588b69e..ce4c78c3 100644 --- a/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +++ b/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs @@ -6,7 +6,7 @@ module Lithic account_token: String, beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity], beneficial_owner_individuals: ::Array[Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::BeneficialOwnerIndividual], - business_account_token: String, + business_account_token: String?, business_entity: Lithic::KYBBusinessEntity, control_person: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ControlPerson, created: Time, @@ -45,9 +45,7 @@ module Lithic ::Array[Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::BeneficialOwnerIndividual] ) -> ::Array[Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::BeneficialOwnerIndividual] - attr_reader business_account_token: String? - - def business_account_token=: (String) -> String + attr_accessor business_account_token: String? attr_reader business_entity: Lithic::KYBBusinessEntity? @@ -132,7 +130,7 @@ module Lithic ?account_token: String, ?beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity], ?beneficial_owner_individuals: ::Array[Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::BeneficialOwnerIndividual], - ?business_account_token: String, + ?business_account_token: String?, ?business_entity: Lithic::KYBBusinessEntity, ?control_person: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ControlPerson, ?created: Time, @@ -155,7 +153,7 @@ module Lithic account_token: String, beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity], beneficial_owner_individuals: ::Array[Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::BeneficialOwnerIndividual], - business_account_token: String, + business_account_token: String?, business_entity: Lithic::KYBBusinessEntity, control_person: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ControlPerson, created: Time, diff --git a/sig/lithic/models/account_holder_update_response.rbs b/sig/lithic/models/account_holder_update_response.rbs index c8118e38..5e572197 100644 --- a/sig/lithic/models/account_holder_update_response.rbs +++ b/sig/lithic/models/account_holder_update_response.rbs @@ -13,7 +13,7 @@ module Lithic account_token: String, beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity], beneficial_owner_individuals: ::Array[Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::BeneficialOwnerIndividual], - business_account_token: String, + business_account_token: String?, business_entity: Lithic::KYBBusinessEntity, control_person: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::ControlPerson, created: Time, @@ -52,9 +52,7 @@ module Lithic ::Array[Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::BeneficialOwnerIndividual] ) -> ::Array[Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::BeneficialOwnerIndividual] - attr_reader business_account_token: String? - - def business_account_token=: (String) -> String + attr_accessor business_account_token: String? attr_reader business_entity: Lithic::KYBBusinessEntity? @@ -139,7 +137,7 @@ module Lithic ?account_token: String, ?beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity], ?beneficial_owner_individuals: ::Array[Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::BeneficialOwnerIndividual], - ?business_account_token: String, + ?business_account_token: String?, ?business_entity: Lithic::KYBBusinessEntity, ?control_person: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::ControlPerson, ?created: Time, @@ -162,7 +160,7 @@ module Lithic account_token: String, beneficial_owner_entities: ::Array[Lithic::KYBBusinessEntity], beneficial_owner_individuals: ::Array[Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::BeneficialOwnerIndividual], - business_account_token: String, + business_account_token: String?, business_entity: Lithic::KYBBusinessEntity, control_person: Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::ControlPerson, created: Time, @@ -694,7 +692,7 @@ module Lithic { token: String, address: Lithic::Models::AccountHolderUpdateResponse::PatchResponse::Address, - business_account_token: String, + business_account_token: String?, email: String, first_name: String, last_name: String, @@ -713,9 +711,7 @@ module Lithic Lithic::Models::AccountHolderUpdateResponse::PatchResponse::Address ) -> Lithic::Models::AccountHolderUpdateResponse::PatchResponse::Address - attr_reader business_account_token: String? - - def business_account_token=: (String) -> String + attr_accessor business_account_token: String? attr_reader email: String? @@ -740,7 +736,7 @@ module Lithic def initialize: ( ?token: String, ?address: Lithic::Models::AccountHolderUpdateResponse::PatchResponse::Address, - ?business_account_token: String, + ?business_account_token: String?, ?email: String, ?first_name: String, ?last_name: String, @@ -751,7 +747,7 @@ module Lithic def to_hash: -> { token: String, address: Lithic::Models::AccountHolderUpdateResponse::PatchResponse::Address, - business_account_token: String, + business_account_token: String?, email: String, first_name: String, last_name: String, diff --git a/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs b/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs new file mode 100644 index 00000000..8438ddd7 --- /dev/null +++ b/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs @@ -0,0 +1,163 @@ +module Lithic + module Models + module AuthRules + type conditional_authorization_action_parameters = + { + action: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::action, + conditions: ::Array[Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition] + } + + class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel + attr_accessor action: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::action + + attr_accessor conditions: ::Array[Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition] + + def initialize: ( + action: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::action, + conditions: ::Array[Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition] + ) -> void + + def to_hash: -> { + action: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::action, + conditions: ::Array[Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition] + } + + type action = :DECLINE | :CHALLENGE + + module Action + extend Lithic::Internal::Type::Enum + + DECLINE: :DECLINE + CHALLENGE: :CHALLENGE + + def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::action] + end + + type condition = + { + attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute, + operation: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::operation, + value: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::value + } + + class Condition < Lithic::Internal::Type::BaseModel + attr_reader attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute? + + def attribute=: ( + Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute + ) -> Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute + + attr_reader operation: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::operation? + + def operation=: ( + Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::operation + ) -> Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::operation + + attr_reader value: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::value? + + def value=: ( + Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::value + ) -> Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::value + + def initialize: ( + ?attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute, + ?operation: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::operation, + ?value: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::value + ) -> void + + def to_hash: -> { + attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute, + operation: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::operation, + value: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::value + } + + type attribute = + :MCC + | :COUNTRY + | :CURRENCY + | :MERCHANT_ID + | :DESCRIPTOR + | :LIABILITY_SHIFT + | :PAN_ENTRY_MODE + | :TRANSACTION_AMOUNT + | :CASH_AMOUNT + | :RISK_SCORE + | :CARD_TRANSACTION_COUNT_15M + | :CARD_TRANSACTION_COUNT_1H + | :CARD_TRANSACTION_COUNT_24H + | :CARD_STATE + | :PIN_ENTERED + | :PIN_STATUS + | :WALLET_TYPE + | :TRANSACTION_INITIATOR + | :ADDRESS_MATCH + + module Attribute + extend Lithic::Internal::Type::Enum + + MCC: :MCC + COUNTRY: :COUNTRY + CURRENCY: :CURRENCY + MERCHANT_ID: :MERCHANT_ID + DESCRIPTOR: :DESCRIPTOR + 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 + CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H + CARD_STATE: :CARD_STATE + PIN_ENTERED: :PIN_ENTERED + PIN_STATUS: :PIN_STATUS + WALLET_TYPE: :WALLET_TYPE + TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR + ADDRESS_MATCH: :ADDRESS_MATCH + + def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute] + end + + type operation = + :IS_ONE_OF + | :IS_NOT_ONE_OF + | :MATCHES + | :DOES_NOT_MATCH + | :IS_EQUAL_TO + | :IS_NOT_EQUAL_TO + | :IS_GREATER_THAN + | :IS_GREATER_THAN_OR_EQUAL_TO + | :IS_LESS_THAN + | :IS_LESS_THAN_OR_EQUAL_TO + + module Operation + extend Lithic::Internal::Type::Enum + + IS_ONE_OF: :IS_ONE_OF + IS_NOT_ONE_OF: :IS_NOT_ONE_OF + MATCHES: :MATCHES + DOES_NOT_MATCH: :DOES_NOT_MATCH + IS_EQUAL_TO: :IS_EQUAL_TO + IS_NOT_EQUAL_TO: :IS_NOT_EQUAL_TO + IS_GREATER_THAN: :IS_GREATER_THAN + IS_GREATER_THAN_OR_EQUAL_TO: :IS_GREATER_THAN_OR_EQUAL_TO + IS_LESS_THAN: :IS_LESS_THAN + IS_LESS_THAN_OR_EQUAL_TO: :IS_LESS_THAN_OR_EQUAL_TO + + def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::operation] + end + + type value = String | Integer | ::Array[String] + + module Value + extend Lithic::Internal::Type::Union + + def self?.variants: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::value] + + StringArray: Lithic::Internal::Type::Converter + end + end + end + end + end +end diff --git a/sig/lithic/models/auth_rules/v2_apply_params.rbs b/sig/lithic/models/auth_rules/v2_apply_params.rbs deleted file mode 100644 index 38ef4e30..00000000 --- a/sig/lithic/models/auth_rules/v2_apply_params.rbs +++ /dev/null @@ -1,54 +0,0 @@ -module Lithic - module Models - module AuthRules - type v2_apply_params = - { - account_tokens: ::Array[String], - business_account_tokens: ::Array[String], - card_tokens: ::Array[String], - program_level: bool, - excluded_card_tokens: ::Array[String] - } - & Lithic::Internal::Type::request_parameters - - class V2ApplyParams < Lithic::Internal::Type::BaseModel - extend Lithic::Internal::Type::RequestParameters::Converter - include Lithic::Internal::Type::RequestParameters - - attr_reader account_tokens: ::Array[String]? - - def account_tokens=: (::Array[String]) -> ::Array[String] - - attr_reader business_account_tokens: ::Array[String]? - - def business_account_tokens=: (::Array[String]) -> ::Array[String] - - attr_accessor card_tokens: ::Array[String] - - attr_accessor program_level: bool - - attr_reader excluded_card_tokens: ::Array[String]? - - def excluded_card_tokens=: (::Array[String]) -> ::Array[String] - - def initialize: ( - card_tokens: ::Array[String], - program_level: bool, - ?account_tokens: ::Array[String], - ?business_account_tokens: ::Array[String], - ?excluded_card_tokens: ::Array[String], - ?request_options: Lithic::request_opts - ) -> void - - def to_hash: -> { - account_tokens: ::Array[String], - business_account_tokens: ::Array[String], - card_tokens: ::Array[String], - program_level: bool, - excluded_card_tokens: ::Array[String], - request_options: Lithic::RequestOptions - } - end - end - end -end diff --git a/sig/lithic/models/auth_rules/v2_apply_response.rbs b/sig/lithic/models/auth_rules/v2_apply_response.rbs deleted file mode 100644 index c415a969..00000000 --- a/sig/lithic/models/auth_rules/v2_apply_response.rbs +++ /dev/null @@ -1,509 +0,0 @@ -module Lithic - module Models - module AuthRules - type v2_apply_response = - { - token: String, - account_tokens: ::Array[String], - business_account_tokens: ::Array[String], - card_tokens: ::Array[String], - 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, - type: Lithic::Models::AuthRules::V2ApplyResponse::type_, - excluded_card_tokens: ::Array[String] - } - - class V2ApplyResponse < Lithic::Internal::Type::BaseModel - attr_accessor token: String - - attr_accessor account_tokens: ::Array[String] - - attr_accessor business_account_tokens: ::Array[String] - - attr_accessor card_tokens: ::Array[String] - - attr_accessor current_version: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion? - - attr_accessor draft_version: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion? - - attr_accessor event_stream: Lithic::Models::AuthRules::V2ApplyResponse::event_stream - - attr_accessor lithic_managed: bool - - attr_accessor name: String? - - attr_accessor program_level: bool - - attr_accessor state: Lithic::Models::AuthRules::V2ApplyResponse::state - - attr_accessor type: Lithic::Models::AuthRules::V2ApplyResponse::type_ - - attr_reader excluded_card_tokens: ::Array[String]? - - def excluded_card_tokens=: (::Array[String]) -> ::Array[String] - - def initialize: ( - token: String, - account_tokens: ::Array[String], - business_account_tokens: ::Array[String], - card_tokens: ::Array[String], - 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, - type: Lithic::Models::AuthRules::V2ApplyResponse::type_, - ?excluded_card_tokens: ::Array[String] - ) -> void - - def to_hash: -> { - token: String, - account_tokens: ::Array[String], - business_account_tokens: ::Array[String], - card_tokens: ::Array[String], - 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, - type: Lithic::Models::AuthRules::V2ApplyResponse::type_, - excluded_card_tokens: ::Array[String] - } - - type current_version = - { - parameters: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::parameters, - version: Integer - } - - class CurrentVersion < Lithic::Internal::Type::BaseModel - attr_accessor parameters: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::parameters - - attr_accessor version: Integer - - def initialize: ( - parameters: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::parameters, - version: Integer - ) -> void - - def to_hash: -> { - parameters: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::parameters, - version: Integer - } - - type parameters = - Lithic::AuthRules::ConditionalBlockParameters - | Lithic::AuthRules::VelocityLimitParams - | Lithic::AuthRules::MerchantLockParameters - | Lithic::AuthRules::Conditional3DSActionParameters - | Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters - - module Parameters - extend Lithic::Internal::Type::Union - - type conditional_authorization_action_parameters = - { - action: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - attr_accessor action: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action - - attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - - def initialize: ( - action: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - ) -> void - - def to_hash: -> { - action: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - type action = :DECLINE | :CHALLENGE - - module Action - extend Lithic::Internal::Type::Enum - - DECLINE: :DECLINE - CHALLENGE: :CHALLENGE - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action] - end - - type condition = - { - attribute: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - class Condition < Lithic::Internal::Type::BaseModel - attr_reader attribute: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute? - - def attribute=: ( - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - ) -> Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - - attr_reader operation: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation? - - def operation=: ( - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - ) -> Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - - attr_reader value: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value? - - def value=: ( - Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - - def initialize: ( - ?attribute: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - ?operation: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - ?value: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> void - - def to_hash: -> { - attribute: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - type attribute = - :MCC - | :COUNTRY - | :CURRENCY - | :MERCHANT_ID - | :DESCRIPTOR - | :LIABILITY_SHIFT - | :PAN_ENTRY_MODE - | :TRANSACTION_AMOUNT - | :CASH_AMOUNT - | :RISK_SCORE - | :CARD_TRANSACTION_COUNT_15M - | :CARD_TRANSACTION_COUNT_1H - | :CARD_TRANSACTION_COUNT_24H - | :CARD_STATE - | :PIN_ENTERED - | :PIN_STATUS - | :WALLET_TYPE - | :TRANSACTION_INITIATOR - | :ADDRESS_MATCH - - module Attribute - extend Lithic::Internal::Type::Enum - - MCC: :MCC - COUNTRY: :COUNTRY - CURRENCY: :CURRENCY - MERCHANT_ID: :MERCHANT_ID - DESCRIPTOR: :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H - CARD_STATE: :CARD_STATE - PIN_ENTERED: :PIN_ENTERED - PIN_STATUS: :PIN_STATUS - WALLET_TYPE: :WALLET_TYPE - TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR - ADDRESS_MATCH: :ADDRESS_MATCH - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] - end - - type operation = - :IS_ONE_OF - | :IS_NOT_ONE_OF - | :MATCHES - | :DOES_NOT_MATCH - | :IS_EQUAL_TO - | :IS_NOT_EQUAL_TO - | :IS_GREATER_THAN - | :IS_GREATER_THAN_OR_EQUAL_TO - | :IS_LESS_THAN - | :IS_LESS_THAN_OR_EQUAL_TO - - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF: :IS_ONE_OF - IS_NOT_ONE_OF: :IS_NOT_ONE_OF - MATCHES: :MATCHES - DOES_NOT_MATCH: :DOES_NOT_MATCH - IS_EQUAL_TO: :IS_EQUAL_TO - IS_NOT_EQUAL_TO: :IS_NOT_EQUAL_TO - IS_GREATER_THAN: :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO: :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN: :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO: :IS_LESS_THAN_OR_EQUAL_TO - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation] - end - - type value = String | Integer | ::Array[String] - - module Value - extend Lithic::Internal::Type::Union - - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value] - - StringArray: Lithic::Internal::Type::Converter - end - end - end - - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::parameters] - end - end - - type draft_version = - { - parameters: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::parameters, - version: Integer - } - - class DraftVersion < Lithic::Internal::Type::BaseModel - attr_accessor parameters: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::parameters - - attr_accessor version: Integer - - def initialize: ( - parameters: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::parameters, - version: Integer - ) -> void - - def to_hash: -> { - parameters: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::parameters, - version: Integer - } - - type parameters = - Lithic::AuthRules::ConditionalBlockParameters - | Lithic::AuthRules::VelocityLimitParams - | Lithic::AuthRules::MerchantLockParameters - | Lithic::AuthRules::Conditional3DSActionParameters - | Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters - - module Parameters - extend Lithic::Internal::Type::Union - - type conditional_authorization_action_parameters = - { - action: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - attr_accessor action: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action - - attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - - def initialize: ( - action: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - ) -> void - - def to_hash: -> { - action: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - type action = :DECLINE | :CHALLENGE - - module Action - extend Lithic::Internal::Type::Enum - - DECLINE: :DECLINE - CHALLENGE: :CHALLENGE - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action] - end - - type condition = - { - attribute: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - class Condition < Lithic::Internal::Type::BaseModel - attr_reader attribute: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute? - - def attribute=: ( - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - ) -> Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - - attr_reader operation: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation? - - def operation=: ( - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - ) -> Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - - attr_reader value: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value? - - def value=: ( - Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - - def initialize: ( - ?attribute: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - ?operation: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - ?value: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> void - - def to_hash: -> { - attribute: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - type attribute = - :MCC - | :COUNTRY - | :CURRENCY - | :MERCHANT_ID - | :DESCRIPTOR - | :LIABILITY_SHIFT - | :PAN_ENTRY_MODE - | :TRANSACTION_AMOUNT - | :CASH_AMOUNT - | :RISK_SCORE - | :CARD_TRANSACTION_COUNT_15M - | :CARD_TRANSACTION_COUNT_1H - | :CARD_TRANSACTION_COUNT_24H - | :CARD_STATE - | :PIN_ENTERED - | :PIN_STATUS - | :WALLET_TYPE - | :TRANSACTION_INITIATOR - | :ADDRESS_MATCH - - module Attribute - extend Lithic::Internal::Type::Enum - - MCC: :MCC - COUNTRY: :COUNTRY - CURRENCY: :CURRENCY - MERCHANT_ID: :MERCHANT_ID - DESCRIPTOR: :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H - CARD_STATE: :CARD_STATE - PIN_ENTERED: :PIN_ENTERED - PIN_STATUS: :PIN_STATUS - WALLET_TYPE: :WALLET_TYPE - TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR - ADDRESS_MATCH: :ADDRESS_MATCH - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] - end - - type operation = - :IS_ONE_OF - | :IS_NOT_ONE_OF - | :MATCHES - | :DOES_NOT_MATCH - | :IS_EQUAL_TO - | :IS_NOT_EQUAL_TO - | :IS_GREATER_THAN - | :IS_GREATER_THAN_OR_EQUAL_TO - | :IS_LESS_THAN - | :IS_LESS_THAN_OR_EQUAL_TO - - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF: :IS_ONE_OF - IS_NOT_ONE_OF: :IS_NOT_ONE_OF - MATCHES: :MATCHES - DOES_NOT_MATCH: :DOES_NOT_MATCH - IS_EQUAL_TO: :IS_EQUAL_TO - IS_NOT_EQUAL_TO: :IS_NOT_EQUAL_TO - IS_GREATER_THAN: :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO: :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN: :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO: :IS_LESS_THAN_OR_EQUAL_TO - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation] - end - - type value = String | Integer | ::Array[String] - - module Value - extend Lithic::Internal::Type::Union - - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value] - - StringArray: Lithic::Internal::Type::Converter - end - end - end - - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::parameters] - end - end - - type event_stream = :AUTHORIZATION | :THREE_DS_AUTHENTICATION - - module EventStream - extend Lithic::Internal::Type::Enum - - AUTHORIZATION: :AUTHORIZATION - THREE_DS_AUTHENTICATION: :THREE_DS_AUTHENTICATION - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::event_stream] - end - - type state = :ACTIVE | :INACTIVE - - module State - extend Lithic::Internal::Type::Enum - - ACTIVE: :ACTIVE - INACTIVE: :INACTIVE - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::state] - end - - type type_ = - :CONDITIONAL_BLOCK - | :VELOCITY_LIMIT - | :MERCHANT_LOCK - | :CONDITIONAL_ACTION - - module Type - extend Lithic::Internal::Type::Enum - - CONDITIONAL_BLOCK: :CONDITIONAL_BLOCK - VELOCITY_LIMIT: :VELOCITY_LIMIT - MERCHANT_LOCK: :MERCHANT_LOCK - CONDITIONAL_ACTION: :CONDITIONAL_ACTION - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::type_] - end - end - end - end -end diff --git a/sig/lithic/models/auth_rules/v2_create_params.rbs b/sig/lithic/models/auth_rules/v2_create_params.rbs index d4c82e32..255ee195 100644 --- a/sig/lithic/models/auth_rules/v2_create_params.rbs +++ b/sig/lithic/models/auth_rules/v2_create_params.rbs @@ -3,12 +3,12 @@ module Lithic module AuthRules type v2_create_params = { + parameters: Lithic::Models::AuthRules::V2CreateParams::parameters, + type: Lithic::Models::AuthRules::V2CreateParams::type_, account_tokens: ::Array[String], business_account_tokens: ::Array[String], event_stream: Lithic::Models::AuthRules::V2CreateParams::event_stream, name: String?, - parameters: Lithic::Models::AuthRules::V2CreateParams::parameters, - type: Lithic::Models::AuthRules::V2CreateParams::type_, card_tokens: ::Array[String], program_level: bool, excluded_card_tokens: ::Array[String] @@ -19,6 +19,10 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_accessor parameters: Lithic::Models::AuthRules::V2CreateParams::parameters + + attr_accessor type: Lithic::Models::AuthRules::V2CreateParams::type_ + attr_reader account_tokens: ::Array[String]? def account_tokens=: (::Array[String]) -> ::Array[String] @@ -35,18 +39,6 @@ module Lithic attr_accessor name: String? - attr_reader parameters: Lithic::Models::AuthRules::V2CreateParams::parameters? - - def parameters=: ( - Lithic::Models::AuthRules::V2CreateParams::parameters - ) -> Lithic::Models::AuthRules::V2CreateParams::parameters - - attr_reader type: Lithic::Models::AuthRules::V2CreateParams::type_? - - def type=: ( - Lithic::Models::AuthRules::V2CreateParams::type_ - ) -> Lithic::Models::AuthRules::V2CreateParams::type_ - attr_accessor card_tokens: ::Array[String] attr_accessor program_level: bool @@ -56,210 +48,41 @@ module Lithic def excluded_card_tokens=: (::Array[String]) -> ::Array[String] def initialize: ( + parameters: Lithic::Models::AuthRules::V2CreateParams::parameters, + type: Lithic::Models::AuthRules::V2CreateParams::type_, card_tokens: ::Array[String], program_level: bool, ?account_tokens: ::Array[String], ?business_account_tokens: ::Array[String], ?event_stream: Lithic::Models::AuthRules::V2CreateParams::event_stream, ?name: String?, - ?parameters: Lithic::Models::AuthRules::V2CreateParams::parameters, - ?type: Lithic::Models::AuthRules::V2CreateParams::type_, ?excluded_card_tokens: ::Array[String], ?request_options: Lithic::request_opts ) -> void def to_hash: -> { + parameters: Lithic::Models::AuthRules::V2CreateParams::parameters, + type: Lithic::Models::AuthRules::V2CreateParams::type_, account_tokens: ::Array[String], business_account_tokens: ::Array[String], event_stream: Lithic::Models::AuthRules::V2CreateParams::event_stream, name: String?, - parameters: Lithic::Models::AuthRules::V2CreateParams::parameters, - type: Lithic::Models::AuthRules::V2CreateParams::type_, card_tokens: ::Array[String], program_level: bool, excluded_card_tokens: ::Array[String], request_options: Lithic::RequestOptions } - type event_stream = :AUTHORIZATION | :THREE_DS_AUTHENTICATION - - module EventStream - extend Lithic::Internal::Type::Enum - - AUTHORIZATION: :AUTHORIZATION - THREE_DS_AUTHENTICATION: :THREE_DS_AUTHENTICATION - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::event_stream] - end - type parameters = Lithic::AuthRules::ConditionalBlockParameters | Lithic::AuthRules::VelocityLimitParams | Lithic::AuthRules::MerchantLockParameters | Lithic::AuthRules::Conditional3DSActionParameters - | Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters + | Lithic::AuthRules::ConditionalAuthorizationActionParameters module Parameters extend Lithic::Internal::Type::Union - type conditional_authorization_action_parameters = - { - action: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - attr_accessor action: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::action - - attr_accessor conditions: ::Array[Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition] - - def initialize: ( - action: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition] - ) -> void - - def to_hash: -> { - action: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - type action = :DECLINE | :CHALLENGE - - module Action - extend Lithic::Internal::Type::Enum - - DECLINE: :DECLINE - CHALLENGE: :CHALLENGE - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::action] - end - - type condition = - { - attribute: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - class Condition < Lithic::Internal::Type::BaseModel - attr_reader attribute: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute? - - def attribute=: ( - Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - ) -> Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - - attr_reader operation: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::operation? - - def operation=: ( - Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - ) -> Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - - attr_reader value: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::value? - - def value=: ( - Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::value - - def initialize: ( - ?attribute: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - ?operation: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - ?value: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> void - - def to_hash: -> { - attribute: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - type attribute = - :MCC - | :COUNTRY - | :CURRENCY - | :MERCHANT_ID - | :DESCRIPTOR - | :LIABILITY_SHIFT - | :PAN_ENTRY_MODE - | :TRANSACTION_AMOUNT - | :CASH_AMOUNT - | :RISK_SCORE - | :CARD_TRANSACTION_COUNT_15M - | :CARD_TRANSACTION_COUNT_1H - | :CARD_TRANSACTION_COUNT_24H - | :CARD_STATE - | :PIN_ENTERED - | :PIN_STATUS - | :WALLET_TYPE - | :TRANSACTION_INITIATOR - | :ADDRESS_MATCH - - module Attribute - extend Lithic::Internal::Type::Enum - - MCC: :MCC - COUNTRY: :COUNTRY - CURRENCY: :CURRENCY - MERCHANT_ID: :MERCHANT_ID - DESCRIPTOR: :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H - CARD_STATE: :CARD_STATE - PIN_ENTERED: :PIN_ENTERED - PIN_STATUS: :PIN_STATUS - WALLET_TYPE: :WALLET_TYPE - TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR - ADDRESS_MATCH: :ADDRESS_MATCH - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] - end - - type operation = - :IS_ONE_OF - | :IS_NOT_ONE_OF - | :MATCHES - | :DOES_NOT_MATCH - | :IS_EQUAL_TO - | :IS_NOT_EQUAL_TO - | :IS_GREATER_THAN - | :IS_GREATER_THAN_OR_EQUAL_TO - | :IS_LESS_THAN - | :IS_LESS_THAN_OR_EQUAL_TO - - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF: :IS_ONE_OF - IS_NOT_ONE_OF: :IS_NOT_ONE_OF - MATCHES: :MATCHES - DOES_NOT_MATCH: :DOES_NOT_MATCH - IS_EQUAL_TO: :IS_EQUAL_TO - IS_NOT_EQUAL_TO: :IS_NOT_EQUAL_TO - IS_GREATER_THAN: :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO: :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN: :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO: :IS_LESS_THAN_OR_EQUAL_TO - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::operation] - end - - type value = String | Integer | ::Array[String] - - module Value - extend Lithic::Internal::Type::Union - - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::value] - - StringArray: Lithic::Internal::Type::Converter - end - end - end - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::parameters] end @@ -279,6 +102,17 @@ module Lithic def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::type_] end + + type event_stream = :AUTHORIZATION | :THREE_DS_AUTHENTICATION + + module EventStream + extend Lithic::Internal::Type::Enum + + AUTHORIZATION: :AUTHORIZATION + THREE_DS_AUTHENTICATION: :THREE_DS_AUTHENTICATION + + def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::event_stream] + end end end end diff --git a/sig/lithic/models/auth_rules/v2_create_response.rbs b/sig/lithic/models/auth_rules/v2_create_response.rbs index 06f90e66..ff9b52f1 100644 --- a/sig/lithic/models/auth_rules/v2_create_response.rbs +++ b/sig/lithic/models/auth_rules/v2_create_response.rbs @@ -105,169 +105,11 @@ module Lithic | Lithic::AuthRules::VelocityLimitParams | Lithic::AuthRules::MerchantLockParameters | Lithic::AuthRules::Conditional3DSActionParameters - | Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters + | Lithic::AuthRules::ConditionalAuthorizationActionParameters module Parameters extend Lithic::Internal::Type::Union - type conditional_authorization_action_parameters = - { - action: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - attr_accessor action: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action - - attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - - def initialize: ( - action: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - ) -> void - - def to_hash: -> { - action: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - type action = :DECLINE | :CHALLENGE - - module Action - extend Lithic::Internal::Type::Enum - - DECLINE: :DECLINE - CHALLENGE: :CHALLENGE - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action] - end - - type condition = - { - attribute: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - class Condition < Lithic::Internal::Type::BaseModel - attr_reader attribute: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute? - - def attribute=: ( - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - ) -> Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - - attr_reader operation: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation? - - def operation=: ( - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - ) -> Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - - attr_reader value: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value? - - def value=: ( - Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - - def initialize: ( - ?attribute: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - ?operation: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - ?value: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> void - - def to_hash: -> { - attribute: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - type attribute = - :MCC - | :COUNTRY - | :CURRENCY - | :MERCHANT_ID - | :DESCRIPTOR - | :LIABILITY_SHIFT - | :PAN_ENTRY_MODE - | :TRANSACTION_AMOUNT - | :CASH_AMOUNT - | :RISK_SCORE - | :CARD_TRANSACTION_COUNT_15M - | :CARD_TRANSACTION_COUNT_1H - | :CARD_TRANSACTION_COUNT_24H - | :CARD_STATE - | :PIN_ENTERED - | :PIN_STATUS - | :WALLET_TYPE - | :TRANSACTION_INITIATOR - | :ADDRESS_MATCH - - module Attribute - extend Lithic::Internal::Type::Enum - - MCC: :MCC - COUNTRY: :COUNTRY - CURRENCY: :CURRENCY - MERCHANT_ID: :MERCHANT_ID - DESCRIPTOR: :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H - CARD_STATE: :CARD_STATE - PIN_ENTERED: :PIN_ENTERED - PIN_STATUS: :PIN_STATUS - WALLET_TYPE: :WALLET_TYPE - TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR - ADDRESS_MATCH: :ADDRESS_MATCH - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] - end - - type operation = - :IS_ONE_OF - | :IS_NOT_ONE_OF - | :MATCHES - | :DOES_NOT_MATCH - | :IS_EQUAL_TO - | :IS_NOT_EQUAL_TO - | :IS_GREATER_THAN - | :IS_GREATER_THAN_OR_EQUAL_TO - | :IS_LESS_THAN - | :IS_LESS_THAN_OR_EQUAL_TO - - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF: :IS_ONE_OF - IS_NOT_ONE_OF: :IS_NOT_ONE_OF - MATCHES: :MATCHES - DOES_NOT_MATCH: :DOES_NOT_MATCH - IS_EQUAL_TO: :IS_EQUAL_TO - IS_NOT_EQUAL_TO: :IS_NOT_EQUAL_TO - IS_GREATER_THAN: :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO: :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN: :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO: :IS_LESS_THAN_OR_EQUAL_TO - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation] - end - - type value = String | Integer | ::Array[String] - - module Value - extend Lithic::Internal::Type::Union - - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value] - - StringArray: Lithic::Internal::Type::Converter - end - end - end - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::parameters] end end @@ -298,169 +140,11 @@ module Lithic | Lithic::AuthRules::VelocityLimitParams | Lithic::AuthRules::MerchantLockParameters | Lithic::AuthRules::Conditional3DSActionParameters - | Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters + | Lithic::AuthRules::ConditionalAuthorizationActionParameters module Parameters extend Lithic::Internal::Type::Union - type conditional_authorization_action_parameters = - { - action: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - attr_accessor action: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action - - attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - - def initialize: ( - action: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - ) -> void - - def to_hash: -> { - action: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - type action = :DECLINE | :CHALLENGE - - module Action - extend Lithic::Internal::Type::Enum - - DECLINE: :DECLINE - CHALLENGE: :CHALLENGE - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action] - end - - type condition = - { - attribute: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - class Condition < Lithic::Internal::Type::BaseModel - attr_reader attribute: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute? - - def attribute=: ( - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - ) -> Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - - attr_reader operation: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation? - - def operation=: ( - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - ) -> Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - - attr_reader value: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value? - - def value=: ( - Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - - def initialize: ( - ?attribute: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - ?operation: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - ?value: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> void - - def to_hash: -> { - attribute: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - type attribute = - :MCC - | :COUNTRY - | :CURRENCY - | :MERCHANT_ID - | :DESCRIPTOR - | :LIABILITY_SHIFT - | :PAN_ENTRY_MODE - | :TRANSACTION_AMOUNT - | :CASH_AMOUNT - | :RISK_SCORE - | :CARD_TRANSACTION_COUNT_15M - | :CARD_TRANSACTION_COUNT_1H - | :CARD_TRANSACTION_COUNT_24H - | :CARD_STATE - | :PIN_ENTERED - | :PIN_STATUS - | :WALLET_TYPE - | :TRANSACTION_INITIATOR - | :ADDRESS_MATCH - - module Attribute - extend Lithic::Internal::Type::Enum - - MCC: :MCC - COUNTRY: :COUNTRY - CURRENCY: :CURRENCY - MERCHANT_ID: :MERCHANT_ID - DESCRIPTOR: :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H - CARD_STATE: :CARD_STATE - PIN_ENTERED: :PIN_ENTERED - PIN_STATUS: :PIN_STATUS - WALLET_TYPE: :WALLET_TYPE - TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR - ADDRESS_MATCH: :ADDRESS_MATCH - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] - end - - type operation = - :IS_ONE_OF - | :IS_NOT_ONE_OF - | :MATCHES - | :DOES_NOT_MATCH - | :IS_EQUAL_TO - | :IS_NOT_EQUAL_TO - | :IS_GREATER_THAN - | :IS_GREATER_THAN_OR_EQUAL_TO - | :IS_LESS_THAN - | :IS_LESS_THAN_OR_EQUAL_TO - - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF: :IS_ONE_OF - IS_NOT_ONE_OF: :IS_NOT_ONE_OF - MATCHES: :MATCHES - DOES_NOT_MATCH: :DOES_NOT_MATCH - IS_EQUAL_TO: :IS_EQUAL_TO - IS_NOT_EQUAL_TO: :IS_NOT_EQUAL_TO - IS_GREATER_THAN: :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO: :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN: :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO: :IS_LESS_THAN_OR_EQUAL_TO - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation] - end - - type value = String | Integer | ::Array[String] - - module Value - extend Lithic::Internal::Type::Union - - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value] - - StringArray: Lithic::Internal::Type::Converter - end - end - end - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::parameters] end end diff --git a/sig/lithic/models/auth_rules/v2_draft_params.rbs b/sig/lithic/models/auth_rules/v2_draft_params.rbs index a61b6188..728b8d87 100644 --- a/sig/lithic/models/auth_rules/v2_draft_params.rbs +++ b/sig/lithic/models/auth_rules/v2_draft_params.rbs @@ -26,169 +26,11 @@ module Lithic | Lithic::AuthRules::VelocityLimitParams | Lithic::AuthRules::MerchantLockParameters | Lithic::AuthRules::Conditional3DSActionParameters - | Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters + | Lithic::AuthRules::ConditionalAuthorizationActionParameters module Parameters extend Lithic::Internal::Type::Union - type conditional_authorization_action_parameters = - { - action: Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - attr_accessor action: Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::action - - attr_accessor conditions: ::Array[Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition] - - def initialize: ( - action: Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition] - ) -> void - - def to_hash: -> { - action: Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - type action = :DECLINE | :CHALLENGE - - module Action - extend Lithic::Internal::Type::Enum - - DECLINE: :DECLINE - CHALLENGE: :CHALLENGE - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::action] - end - - type condition = - { - attribute: Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - class Condition < Lithic::Internal::Type::BaseModel - attr_reader attribute: Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute? - - def attribute=: ( - Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - ) -> Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - - attr_reader operation: Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::operation? - - def operation=: ( - Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - ) -> Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - - attr_reader value: Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::value? - - def value=: ( - Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::value - - def initialize: ( - ?attribute: Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - ?operation: Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - ?value: Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> void - - def to_hash: -> { - attribute: Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - type attribute = - :MCC - | :COUNTRY - | :CURRENCY - | :MERCHANT_ID - | :DESCRIPTOR - | :LIABILITY_SHIFT - | :PAN_ENTRY_MODE - | :TRANSACTION_AMOUNT - | :CASH_AMOUNT - | :RISK_SCORE - | :CARD_TRANSACTION_COUNT_15M - | :CARD_TRANSACTION_COUNT_1H - | :CARD_TRANSACTION_COUNT_24H - | :CARD_STATE - | :PIN_ENTERED - | :PIN_STATUS - | :WALLET_TYPE - | :TRANSACTION_INITIATOR - | :ADDRESS_MATCH - - module Attribute - extend Lithic::Internal::Type::Enum - - MCC: :MCC - COUNTRY: :COUNTRY - CURRENCY: :CURRENCY - MERCHANT_ID: :MERCHANT_ID - DESCRIPTOR: :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H - CARD_STATE: :CARD_STATE - PIN_ENTERED: :PIN_ENTERED - PIN_STATUS: :PIN_STATUS - WALLET_TYPE: :WALLET_TYPE - TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR - ADDRESS_MATCH: :ADDRESS_MATCH - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] - end - - type operation = - :IS_ONE_OF - | :IS_NOT_ONE_OF - | :MATCHES - | :DOES_NOT_MATCH - | :IS_EQUAL_TO - | :IS_NOT_EQUAL_TO - | :IS_GREATER_THAN - | :IS_GREATER_THAN_OR_EQUAL_TO - | :IS_LESS_THAN - | :IS_LESS_THAN_OR_EQUAL_TO - - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF: :IS_ONE_OF - IS_NOT_ONE_OF: :IS_NOT_ONE_OF - MATCHES: :MATCHES - DOES_NOT_MATCH: :DOES_NOT_MATCH - IS_EQUAL_TO: :IS_EQUAL_TO - IS_NOT_EQUAL_TO: :IS_NOT_EQUAL_TO - IS_GREATER_THAN: :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO: :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN: :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO: :IS_LESS_THAN_OR_EQUAL_TO - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::operation] - end - - type value = String | Integer | ::Array[String] - - module Value - extend Lithic::Internal::Type::Union - - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::value] - - StringArray: Lithic::Internal::Type::Converter - end - end - end - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2DraftParams::parameters] end end diff --git a/sig/lithic/models/auth_rules/v2_draft_response.rbs b/sig/lithic/models/auth_rules/v2_draft_response.rbs index d4bb67f2..6f30098b 100644 --- a/sig/lithic/models/auth_rules/v2_draft_response.rbs +++ b/sig/lithic/models/auth_rules/v2_draft_response.rbs @@ -105,169 +105,11 @@ module Lithic | Lithic::AuthRules::VelocityLimitParams | Lithic::AuthRules::MerchantLockParameters | Lithic::AuthRules::Conditional3DSActionParameters - | Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters + | Lithic::AuthRules::ConditionalAuthorizationActionParameters module Parameters extend Lithic::Internal::Type::Union - type conditional_authorization_action_parameters = - { - action: Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - attr_accessor action: Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action - - attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - - def initialize: ( - action: Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - ) -> void - - def to_hash: -> { - action: Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - type action = :DECLINE | :CHALLENGE - - module Action - extend Lithic::Internal::Type::Enum - - DECLINE: :DECLINE - CHALLENGE: :CHALLENGE - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action] - end - - type condition = - { - attribute: Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - class Condition < Lithic::Internal::Type::BaseModel - attr_reader attribute: Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute? - - def attribute=: ( - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - ) -> Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - - attr_reader operation: Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation? - - def operation=: ( - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - ) -> Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - - attr_reader value: Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value? - - def value=: ( - Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - - def initialize: ( - ?attribute: Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - ?operation: Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - ?value: Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> void - - def to_hash: -> { - attribute: Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - type attribute = - :MCC - | :COUNTRY - | :CURRENCY - | :MERCHANT_ID - | :DESCRIPTOR - | :LIABILITY_SHIFT - | :PAN_ENTRY_MODE - | :TRANSACTION_AMOUNT - | :CASH_AMOUNT - | :RISK_SCORE - | :CARD_TRANSACTION_COUNT_15M - | :CARD_TRANSACTION_COUNT_1H - | :CARD_TRANSACTION_COUNT_24H - | :CARD_STATE - | :PIN_ENTERED - | :PIN_STATUS - | :WALLET_TYPE - | :TRANSACTION_INITIATOR - | :ADDRESS_MATCH - - module Attribute - extend Lithic::Internal::Type::Enum - - MCC: :MCC - COUNTRY: :COUNTRY - CURRENCY: :CURRENCY - MERCHANT_ID: :MERCHANT_ID - DESCRIPTOR: :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H - CARD_STATE: :CARD_STATE - PIN_ENTERED: :PIN_ENTERED - PIN_STATUS: :PIN_STATUS - WALLET_TYPE: :WALLET_TYPE - TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR - ADDRESS_MATCH: :ADDRESS_MATCH - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] - end - - type operation = - :IS_ONE_OF - | :IS_NOT_ONE_OF - | :MATCHES - | :DOES_NOT_MATCH - | :IS_EQUAL_TO - | :IS_NOT_EQUAL_TO - | :IS_GREATER_THAN - | :IS_GREATER_THAN_OR_EQUAL_TO - | :IS_LESS_THAN - | :IS_LESS_THAN_OR_EQUAL_TO - - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF: :IS_ONE_OF - IS_NOT_ONE_OF: :IS_NOT_ONE_OF - MATCHES: :MATCHES - DOES_NOT_MATCH: :DOES_NOT_MATCH - IS_EQUAL_TO: :IS_EQUAL_TO - IS_NOT_EQUAL_TO: :IS_NOT_EQUAL_TO - IS_GREATER_THAN: :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO: :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN: :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO: :IS_LESS_THAN_OR_EQUAL_TO - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation] - end - - type value = String | Integer | ::Array[String] - - module Value - extend Lithic::Internal::Type::Union - - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value] - - StringArray: Lithic::Internal::Type::Converter - end - end - end - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::parameters] end end @@ -298,169 +140,11 @@ module Lithic | Lithic::AuthRules::VelocityLimitParams | Lithic::AuthRules::MerchantLockParameters | Lithic::AuthRules::Conditional3DSActionParameters - | Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters + | Lithic::AuthRules::ConditionalAuthorizationActionParameters module Parameters extend Lithic::Internal::Type::Union - type conditional_authorization_action_parameters = - { - action: Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - attr_accessor action: Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action - - attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - - def initialize: ( - action: Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - ) -> void - - def to_hash: -> { - action: Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - type action = :DECLINE | :CHALLENGE - - module Action - extend Lithic::Internal::Type::Enum - - DECLINE: :DECLINE - CHALLENGE: :CHALLENGE - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action] - end - - type condition = - { - attribute: Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - class Condition < Lithic::Internal::Type::BaseModel - attr_reader attribute: Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute? - - def attribute=: ( - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - ) -> Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - - attr_reader operation: Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation? - - def operation=: ( - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - ) -> Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - - attr_reader value: Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value? - - def value=: ( - Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - - def initialize: ( - ?attribute: Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - ?operation: Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - ?value: Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> void - - def to_hash: -> { - attribute: Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - type attribute = - :MCC - | :COUNTRY - | :CURRENCY - | :MERCHANT_ID - | :DESCRIPTOR - | :LIABILITY_SHIFT - | :PAN_ENTRY_MODE - | :TRANSACTION_AMOUNT - | :CASH_AMOUNT - | :RISK_SCORE - | :CARD_TRANSACTION_COUNT_15M - | :CARD_TRANSACTION_COUNT_1H - | :CARD_TRANSACTION_COUNT_24H - | :CARD_STATE - | :PIN_ENTERED - | :PIN_STATUS - | :WALLET_TYPE - | :TRANSACTION_INITIATOR - | :ADDRESS_MATCH - - module Attribute - extend Lithic::Internal::Type::Enum - - MCC: :MCC - COUNTRY: :COUNTRY - CURRENCY: :CURRENCY - MERCHANT_ID: :MERCHANT_ID - DESCRIPTOR: :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H - CARD_STATE: :CARD_STATE - PIN_ENTERED: :PIN_ENTERED - PIN_STATUS: :PIN_STATUS - WALLET_TYPE: :WALLET_TYPE - TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR - ADDRESS_MATCH: :ADDRESS_MATCH - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] - end - - type operation = - :IS_ONE_OF - | :IS_NOT_ONE_OF - | :MATCHES - | :DOES_NOT_MATCH - | :IS_EQUAL_TO - | :IS_NOT_EQUAL_TO - | :IS_GREATER_THAN - | :IS_GREATER_THAN_OR_EQUAL_TO - | :IS_LESS_THAN - | :IS_LESS_THAN_OR_EQUAL_TO - - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF: :IS_ONE_OF - IS_NOT_ONE_OF: :IS_NOT_ONE_OF - MATCHES: :MATCHES - DOES_NOT_MATCH: :DOES_NOT_MATCH - IS_EQUAL_TO: :IS_EQUAL_TO - IS_NOT_EQUAL_TO: :IS_NOT_EQUAL_TO - IS_GREATER_THAN: :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO: :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN: :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO: :IS_LESS_THAN_OR_EQUAL_TO - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation] - end - - type value = String | Integer | ::Array[String] - - module Value - extend Lithic::Internal::Type::Union - - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value] - - StringArray: Lithic::Internal::Type::Converter - end - end - end - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::parameters] end end diff --git a/sig/lithic/models/auth_rules/v2_list_response.rbs b/sig/lithic/models/auth_rules/v2_list_response.rbs index 4276ea02..f9767075 100644 --- a/sig/lithic/models/auth_rules/v2_list_response.rbs +++ b/sig/lithic/models/auth_rules/v2_list_response.rbs @@ -105,169 +105,11 @@ module Lithic | Lithic::AuthRules::VelocityLimitParams | Lithic::AuthRules::MerchantLockParameters | Lithic::AuthRules::Conditional3DSActionParameters - | Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters + | Lithic::AuthRules::ConditionalAuthorizationActionParameters module Parameters extend Lithic::Internal::Type::Union - type conditional_authorization_action_parameters = - { - action: Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - attr_accessor action: Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action - - attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - - def initialize: ( - action: Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - ) -> void - - def to_hash: -> { - action: Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - type action = :DECLINE | :CHALLENGE - - module Action - extend Lithic::Internal::Type::Enum - - DECLINE: :DECLINE - CHALLENGE: :CHALLENGE - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action] - end - - type condition = - { - attribute: Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - class Condition < Lithic::Internal::Type::BaseModel - attr_reader attribute: Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute? - - def attribute=: ( - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - ) -> Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - - attr_reader operation: Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation? - - def operation=: ( - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - ) -> Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - - attr_reader value: Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value? - - def value=: ( - Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - - def initialize: ( - ?attribute: Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - ?operation: Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - ?value: Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> void - - def to_hash: -> { - attribute: Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - type attribute = - :MCC - | :COUNTRY - | :CURRENCY - | :MERCHANT_ID - | :DESCRIPTOR - | :LIABILITY_SHIFT - | :PAN_ENTRY_MODE - | :TRANSACTION_AMOUNT - | :CASH_AMOUNT - | :RISK_SCORE - | :CARD_TRANSACTION_COUNT_15M - | :CARD_TRANSACTION_COUNT_1H - | :CARD_TRANSACTION_COUNT_24H - | :CARD_STATE - | :PIN_ENTERED - | :PIN_STATUS - | :WALLET_TYPE - | :TRANSACTION_INITIATOR - | :ADDRESS_MATCH - - module Attribute - extend Lithic::Internal::Type::Enum - - MCC: :MCC - COUNTRY: :COUNTRY - CURRENCY: :CURRENCY - MERCHANT_ID: :MERCHANT_ID - DESCRIPTOR: :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H - CARD_STATE: :CARD_STATE - PIN_ENTERED: :PIN_ENTERED - PIN_STATUS: :PIN_STATUS - WALLET_TYPE: :WALLET_TYPE - TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR - ADDRESS_MATCH: :ADDRESS_MATCH - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] - end - - type operation = - :IS_ONE_OF - | :IS_NOT_ONE_OF - | :MATCHES - | :DOES_NOT_MATCH - | :IS_EQUAL_TO - | :IS_NOT_EQUAL_TO - | :IS_GREATER_THAN - | :IS_GREATER_THAN_OR_EQUAL_TO - | :IS_LESS_THAN - | :IS_LESS_THAN_OR_EQUAL_TO - - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF: :IS_ONE_OF - IS_NOT_ONE_OF: :IS_NOT_ONE_OF - MATCHES: :MATCHES - DOES_NOT_MATCH: :DOES_NOT_MATCH - IS_EQUAL_TO: :IS_EQUAL_TO - IS_NOT_EQUAL_TO: :IS_NOT_EQUAL_TO - IS_GREATER_THAN: :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO: :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN: :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO: :IS_LESS_THAN_OR_EQUAL_TO - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation] - end - - type value = String | Integer | ::Array[String] - - module Value - extend Lithic::Internal::Type::Union - - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value] - - StringArray: Lithic::Internal::Type::Converter - end - end - end - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::parameters] end end @@ -298,169 +140,11 @@ module Lithic | Lithic::AuthRules::VelocityLimitParams | Lithic::AuthRules::MerchantLockParameters | Lithic::AuthRules::Conditional3DSActionParameters - | Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters + | Lithic::AuthRules::ConditionalAuthorizationActionParameters module Parameters extend Lithic::Internal::Type::Union - type conditional_authorization_action_parameters = - { - action: Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - attr_accessor action: Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action - - attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - - def initialize: ( - action: Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - ) -> void - - def to_hash: -> { - action: Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - type action = :DECLINE | :CHALLENGE - - module Action - extend Lithic::Internal::Type::Enum - - DECLINE: :DECLINE - CHALLENGE: :CHALLENGE - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action] - end - - type condition = - { - attribute: Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - class Condition < Lithic::Internal::Type::BaseModel - attr_reader attribute: Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute? - - def attribute=: ( - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - ) -> Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - - attr_reader operation: Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation? - - def operation=: ( - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - ) -> Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - - attr_reader value: Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value? - - def value=: ( - Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - - def initialize: ( - ?attribute: Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - ?operation: Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - ?value: Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> void - - def to_hash: -> { - attribute: Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - type attribute = - :MCC - | :COUNTRY - | :CURRENCY - | :MERCHANT_ID - | :DESCRIPTOR - | :LIABILITY_SHIFT - | :PAN_ENTRY_MODE - | :TRANSACTION_AMOUNT - | :CASH_AMOUNT - | :RISK_SCORE - | :CARD_TRANSACTION_COUNT_15M - | :CARD_TRANSACTION_COUNT_1H - | :CARD_TRANSACTION_COUNT_24H - | :CARD_STATE - | :PIN_ENTERED - | :PIN_STATUS - | :WALLET_TYPE - | :TRANSACTION_INITIATOR - | :ADDRESS_MATCH - - module Attribute - extend Lithic::Internal::Type::Enum - - MCC: :MCC - COUNTRY: :COUNTRY - CURRENCY: :CURRENCY - MERCHANT_ID: :MERCHANT_ID - DESCRIPTOR: :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H - CARD_STATE: :CARD_STATE - PIN_ENTERED: :PIN_ENTERED - PIN_STATUS: :PIN_STATUS - WALLET_TYPE: :WALLET_TYPE - TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR - ADDRESS_MATCH: :ADDRESS_MATCH - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] - end - - type operation = - :IS_ONE_OF - | :IS_NOT_ONE_OF - | :MATCHES - | :DOES_NOT_MATCH - | :IS_EQUAL_TO - | :IS_NOT_EQUAL_TO - | :IS_GREATER_THAN - | :IS_GREATER_THAN_OR_EQUAL_TO - | :IS_LESS_THAN - | :IS_LESS_THAN_OR_EQUAL_TO - - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF: :IS_ONE_OF - IS_NOT_ONE_OF: :IS_NOT_ONE_OF - MATCHES: :MATCHES - DOES_NOT_MATCH: :DOES_NOT_MATCH - IS_EQUAL_TO: :IS_EQUAL_TO - IS_NOT_EQUAL_TO: :IS_NOT_EQUAL_TO - IS_GREATER_THAN: :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO: :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN: :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO: :IS_LESS_THAN_OR_EQUAL_TO - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation] - end - - type value = String | Integer | ::Array[String] - - module Value - extend Lithic::Internal::Type::Union - - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value] - - StringArray: Lithic::Internal::Type::Converter - end - end - end - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2ListResponse::DraftVersion::parameters] end end diff --git a/sig/lithic/models/auth_rules/v2_promote_response.rbs b/sig/lithic/models/auth_rules/v2_promote_response.rbs index 3f30ce96..c693e5d1 100644 --- a/sig/lithic/models/auth_rules/v2_promote_response.rbs +++ b/sig/lithic/models/auth_rules/v2_promote_response.rbs @@ -105,169 +105,11 @@ module Lithic | Lithic::AuthRules::VelocityLimitParams | Lithic::AuthRules::MerchantLockParameters | Lithic::AuthRules::Conditional3DSActionParameters - | Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters + | Lithic::AuthRules::ConditionalAuthorizationActionParameters module Parameters extend Lithic::Internal::Type::Union - type conditional_authorization_action_parameters = - { - action: Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - attr_accessor action: Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action - - attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - - def initialize: ( - action: Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - ) -> void - - def to_hash: -> { - action: Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - type action = :DECLINE | :CHALLENGE - - module Action - extend Lithic::Internal::Type::Enum - - DECLINE: :DECLINE - CHALLENGE: :CHALLENGE - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action] - end - - type condition = - { - attribute: Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - class Condition < Lithic::Internal::Type::BaseModel - attr_reader attribute: Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute? - - def attribute=: ( - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - ) -> Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - - attr_reader operation: Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation? - - def operation=: ( - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - ) -> Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - - attr_reader value: Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value? - - def value=: ( - Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - - def initialize: ( - ?attribute: Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - ?operation: Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - ?value: Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> void - - def to_hash: -> { - attribute: Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - type attribute = - :MCC - | :COUNTRY - | :CURRENCY - | :MERCHANT_ID - | :DESCRIPTOR - | :LIABILITY_SHIFT - | :PAN_ENTRY_MODE - | :TRANSACTION_AMOUNT - | :CASH_AMOUNT - | :RISK_SCORE - | :CARD_TRANSACTION_COUNT_15M - | :CARD_TRANSACTION_COUNT_1H - | :CARD_TRANSACTION_COUNT_24H - | :CARD_STATE - | :PIN_ENTERED - | :PIN_STATUS - | :WALLET_TYPE - | :TRANSACTION_INITIATOR - | :ADDRESS_MATCH - - module Attribute - extend Lithic::Internal::Type::Enum - - MCC: :MCC - COUNTRY: :COUNTRY - CURRENCY: :CURRENCY - MERCHANT_ID: :MERCHANT_ID - DESCRIPTOR: :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H - CARD_STATE: :CARD_STATE - PIN_ENTERED: :PIN_ENTERED - PIN_STATUS: :PIN_STATUS - WALLET_TYPE: :WALLET_TYPE - TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR - ADDRESS_MATCH: :ADDRESS_MATCH - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] - end - - type operation = - :IS_ONE_OF - | :IS_NOT_ONE_OF - | :MATCHES - | :DOES_NOT_MATCH - | :IS_EQUAL_TO - | :IS_NOT_EQUAL_TO - | :IS_GREATER_THAN - | :IS_GREATER_THAN_OR_EQUAL_TO - | :IS_LESS_THAN - | :IS_LESS_THAN_OR_EQUAL_TO - - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF: :IS_ONE_OF - IS_NOT_ONE_OF: :IS_NOT_ONE_OF - MATCHES: :MATCHES - DOES_NOT_MATCH: :DOES_NOT_MATCH - IS_EQUAL_TO: :IS_EQUAL_TO - IS_NOT_EQUAL_TO: :IS_NOT_EQUAL_TO - IS_GREATER_THAN: :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO: :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN: :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO: :IS_LESS_THAN_OR_EQUAL_TO - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation] - end - - type value = String | Integer | ::Array[String] - - module Value - extend Lithic::Internal::Type::Union - - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value] - - StringArray: Lithic::Internal::Type::Converter - end - end - end - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::parameters] end end @@ -298,169 +140,11 @@ module Lithic | Lithic::AuthRules::VelocityLimitParams | Lithic::AuthRules::MerchantLockParameters | Lithic::AuthRules::Conditional3DSActionParameters - | Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters + | Lithic::AuthRules::ConditionalAuthorizationActionParameters module Parameters extend Lithic::Internal::Type::Union - type conditional_authorization_action_parameters = - { - action: Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - attr_accessor action: Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action - - attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - - def initialize: ( - action: Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - ) -> void - - def to_hash: -> { - action: Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - type action = :DECLINE | :CHALLENGE - - module Action - extend Lithic::Internal::Type::Enum - - DECLINE: :DECLINE - CHALLENGE: :CHALLENGE - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action] - end - - type condition = - { - attribute: Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - class Condition < Lithic::Internal::Type::BaseModel - attr_reader attribute: Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute? - - def attribute=: ( - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - ) -> Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - - attr_reader operation: Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation? - - def operation=: ( - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - ) -> Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - - attr_reader value: Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value? - - def value=: ( - Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - - def initialize: ( - ?attribute: Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - ?operation: Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - ?value: Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> void - - def to_hash: -> { - attribute: Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - type attribute = - :MCC - | :COUNTRY - | :CURRENCY - | :MERCHANT_ID - | :DESCRIPTOR - | :LIABILITY_SHIFT - | :PAN_ENTRY_MODE - | :TRANSACTION_AMOUNT - | :CASH_AMOUNT - | :RISK_SCORE - | :CARD_TRANSACTION_COUNT_15M - | :CARD_TRANSACTION_COUNT_1H - | :CARD_TRANSACTION_COUNT_24H - | :CARD_STATE - | :PIN_ENTERED - | :PIN_STATUS - | :WALLET_TYPE - | :TRANSACTION_INITIATOR - | :ADDRESS_MATCH - - module Attribute - extend Lithic::Internal::Type::Enum - - MCC: :MCC - COUNTRY: :COUNTRY - CURRENCY: :CURRENCY - MERCHANT_ID: :MERCHANT_ID - DESCRIPTOR: :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H - CARD_STATE: :CARD_STATE - PIN_ENTERED: :PIN_ENTERED - PIN_STATUS: :PIN_STATUS - WALLET_TYPE: :WALLET_TYPE - TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR - ADDRESS_MATCH: :ADDRESS_MATCH - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] - end - - type operation = - :IS_ONE_OF - | :IS_NOT_ONE_OF - | :MATCHES - | :DOES_NOT_MATCH - | :IS_EQUAL_TO - | :IS_NOT_EQUAL_TO - | :IS_GREATER_THAN - | :IS_GREATER_THAN_OR_EQUAL_TO - | :IS_LESS_THAN - | :IS_LESS_THAN_OR_EQUAL_TO - - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF: :IS_ONE_OF - IS_NOT_ONE_OF: :IS_NOT_ONE_OF - MATCHES: :MATCHES - DOES_NOT_MATCH: :DOES_NOT_MATCH - IS_EQUAL_TO: :IS_EQUAL_TO - IS_NOT_EQUAL_TO: :IS_NOT_EQUAL_TO - IS_GREATER_THAN: :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO: :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN: :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO: :IS_LESS_THAN_OR_EQUAL_TO - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation] - end - - type value = String | Integer | ::Array[String] - - module Value - extend Lithic::Internal::Type::Union - - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value] - - StringArray: Lithic::Internal::Type::Converter - end - end - end - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::parameters] 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 index 8c2ab7fd..b592437e 100644 --- a/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +++ b/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs @@ -25,7 +25,7 @@ module Lithic type feature = { filters: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters, - period: Lithic::Models::AuthRules::velocity_limit_params_period_window, + period: Lithic::Models::AuthRules::velocity_limit_period, scope: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::scope, value: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Value } @@ -33,7 +33,7 @@ module Lithic 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 period: Lithic::Models::AuthRules::velocity_limit_period attr_accessor scope: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::scope @@ -41,14 +41,14 @@ module Lithic def initialize: ( filters: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters, - period: Lithic::Models::AuthRules::velocity_limit_params_period_window, + period: Lithic::Models::AuthRules::velocity_limit_period, 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, + period: Lithic::Models::AuthRules::velocity_limit_period, scope: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::scope, value: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Value } diff --git a/sig/lithic/models/auth_rules/v2_retrieve_response.rbs b/sig/lithic/models/auth_rules/v2_retrieve_response.rbs index 2d674ffa..646617ad 100644 --- a/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +++ b/sig/lithic/models/auth_rules/v2_retrieve_response.rbs @@ -105,169 +105,11 @@ module Lithic | Lithic::AuthRules::VelocityLimitParams | Lithic::AuthRules::MerchantLockParameters | Lithic::AuthRules::Conditional3DSActionParameters - | Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters + | Lithic::AuthRules::ConditionalAuthorizationActionParameters module Parameters extend Lithic::Internal::Type::Union - type conditional_authorization_action_parameters = - { - action: Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - attr_accessor action: Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action - - attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - - def initialize: ( - action: Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - ) -> void - - def to_hash: -> { - action: Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - type action = :DECLINE | :CHALLENGE - - module Action - extend Lithic::Internal::Type::Enum - - DECLINE: :DECLINE - CHALLENGE: :CHALLENGE - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action] - end - - type condition = - { - attribute: Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - class Condition < Lithic::Internal::Type::BaseModel - attr_reader attribute: Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute? - - def attribute=: ( - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - ) -> Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - - attr_reader operation: Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation? - - def operation=: ( - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - ) -> Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - - attr_reader value: Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value? - - def value=: ( - Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - - def initialize: ( - ?attribute: Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - ?operation: Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - ?value: Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> void - - def to_hash: -> { - attribute: Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - type attribute = - :MCC - | :COUNTRY - | :CURRENCY - | :MERCHANT_ID - | :DESCRIPTOR - | :LIABILITY_SHIFT - | :PAN_ENTRY_MODE - | :TRANSACTION_AMOUNT - | :CASH_AMOUNT - | :RISK_SCORE - | :CARD_TRANSACTION_COUNT_15M - | :CARD_TRANSACTION_COUNT_1H - | :CARD_TRANSACTION_COUNT_24H - | :CARD_STATE - | :PIN_ENTERED - | :PIN_STATUS - | :WALLET_TYPE - | :TRANSACTION_INITIATOR - | :ADDRESS_MATCH - - module Attribute - extend Lithic::Internal::Type::Enum - - MCC: :MCC - COUNTRY: :COUNTRY - CURRENCY: :CURRENCY - MERCHANT_ID: :MERCHANT_ID - DESCRIPTOR: :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H - CARD_STATE: :CARD_STATE - PIN_ENTERED: :PIN_ENTERED - PIN_STATUS: :PIN_STATUS - WALLET_TYPE: :WALLET_TYPE - TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR - ADDRESS_MATCH: :ADDRESS_MATCH - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] - end - - type operation = - :IS_ONE_OF - | :IS_NOT_ONE_OF - | :MATCHES - | :DOES_NOT_MATCH - | :IS_EQUAL_TO - | :IS_NOT_EQUAL_TO - | :IS_GREATER_THAN - | :IS_GREATER_THAN_OR_EQUAL_TO - | :IS_LESS_THAN - | :IS_LESS_THAN_OR_EQUAL_TO - - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF: :IS_ONE_OF - IS_NOT_ONE_OF: :IS_NOT_ONE_OF - MATCHES: :MATCHES - DOES_NOT_MATCH: :DOES_NOT_MATCH - IS_EQUAL_TO: :IS_EQUAL_TO - IS_NOT_EQUAL_TO: :IS_NOT_EQUAL_TO - IS_GREATER_THAN: :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO: :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN: :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO: :IS_LESS_THAN_OR_EQUAL_TO - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation] - end - - type value = String | Integer | ::Array[String] - - module Value - extend Lithic::Internal::Type::Union - - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value] - - StringArray: Lithic::Internal::Type::Converter - end - end - end - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::parameters] end end @@ -298,169 +140,11 @@ module Lithic | Lithic::AuthRules::VelocityLimitParams | Lithic::AuthRules::MerchantLockParameters | Lithic::AuthRules::Conditional3DSActionParameters - | Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters + | Lithic::AuthRules::ConditionalAuthorizationActionParameters module Parameters extend Lithic::Internal::Type::Union - type conditional_authorization_action_parameters = - { - action: Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - attr_accessor action: Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action - - attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - - def initialize: ( - action: Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - ) -> void - - def to_hash: -> { - action: Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - type action = :DECLINE | :CHALLENGE - - module Action - extend Lithic::Internal::Type::Enum - - DECLINE: :DECLINE - CHALLENGE: :CHALLENGE - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action] - end - - type condition = - { - attribute: Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - class Condition < Lithic::Internal::Type::BaseModel - attr_reader attribute: Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute? - - def attribute=: ( - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - ) -> Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - - attr_reader operation: Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation? - - def operation=: ( - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - ) -> Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - - attr_reader value: Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value? - - def value=: ( - Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - - def initialize: ( - ?attribute: Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - ?operation: Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - ?value: Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> void - - def to_hash: -> { - attribute: Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - type attribute = - :MCC - | :COUNTRY - | :CURRENCY - | :MERCHANT_ID - | :DESCRIPTOR - | :LIABILITY_SHIFT - | :PAN_ENTRY_MODE - | :TRANSACTION_AMOUNT - | :CASH_AMOUNT - | :RISK_SCORE - | :CARD_TRANSACTION_COUNT_15M - | :CARD_TRANSACTION_COUNT_1H - | :CARD_TRANSACTION_COUNT_24H - | :CARD_STATE - | :PIN_ENTERED - | :PIN_STATUS - | :WALLET_TYPE - | :TRANSACTION_INITIATOR - | :ADDRESS_MATCH - - module Attribute - extend Lithic::Internal::Type::Enum - - MCC: :MCC - COUNTRY: :COUNTRY - CURRENCY: :CURRENCY - MERCHANT_ID: :MERCHANT_ID - DESCRIPTOR: :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H - CARD_STATE: :CARD_STATE - PIN_ENTERED: :PIN_ENTERED - PIN_STATUS: :PIN_STATUS - WALLET_TYPE: :WALLET_TYPE - TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR - ADDRESS_MATCH: :ADDRESS_MATCH - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] - end - - type operation = - :IS_ONE_OF - | :IS_NOT_ONE_OF - | :MATCHES - | :DOES_NOT_MATCH - | :IS_EQUAL_TO - | :IS_NOT_EQUAL_TO - | :IS_GREATER_THAN - | :IS_GREATER_THAN_OR_EQUAL_TO - | :IS_LESS_THAN - | :IS_LESS_THAN_OR_EQUAL_TO - - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF: :IS_ONE_OF - IS_NOT_ONE_OF: :IS_NOT_ONE_OF - MATCHES: :MATCHES - DOES_NOT_MATCH: :DOES_NOT_MATCH - IS_EQUAL_TO: :IS_EQUAL_TO - IS_NOT_EQUAL_TO: :IS_NOT_EQUAL_TO - IS_GREATER_THAN: :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO: :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN: :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO: :IS_LESS_THAN_OR_EQUAL_TO - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation] - end - - type value = String | Integer | ::Array[String] - - module Value - extend Lithic::Internal::Type::Union - - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value] - - StringArray: Lithic::Internal::Type::Converter - end - end - end - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::parameters] end end diff --git a/sig/lithic/models/auth_rules/v2_update_response.rbs b/sig/lithic/models/auth_rules/v2_update_response.rbs index 05d9a33f..bedfebc1 100644 --- a/sig/lithic/models/auth_rules/v2_update_response.rbs +++ b/sig/lithic/models/auth_rules/v2_update_response.rbs @@ -105,169 +105,11 @@ module Lithic | Lithic::AuthRules::VelocityLimitParams | Lithic::AuthRules::MerchantLockParameters | Lithic::AuthRules::Conditional3DSActionParameters - | Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters + | Lithic::AuthRules::ConditionalAuthorizationActionParameters module Parameters extend Lithic::Internal::Type::Union - type conditional_authorization_action_parameters = - { - action: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - attr_accessor action: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action - - attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - - def initialize: ( - action: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - ) -> void - - def to_hash: -> { - action: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - type action = :DECLINE | :CHALLENGE - - module Action - extend Lithic::Internal::Type::Enum - - DECLINE: :DECLINE - CHALLENGE: :CHALLENGE - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::action] - end - - type condition = - { - attribute: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - class Condition < Lithic::Internal::Type::BaseModel - attr_reader attribute: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute? - - def attribute=: ( - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - ) -> Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - - attr_reader operation: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation? - - def operation=: ( - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - ) -> Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - - attr_reader value: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value? - - def value=: ( - Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - - def initialize: ( - ?attribute: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - ?operation: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - ?value: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> void - - def to_hash: -> { - attribute: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - type attribute = - :MCC - | :COUNTRY - | :CURRENCY - | :MERCHANT_ID - | :DESCRIPTOR - | :LIABILITY_SHIFT - | :PAN_ENTRY_MODE - | :TRANSACTION_AMOUNT - | :CASH_AMOUNT - | :RISK_SCORE - | :CARD_TRANSACTION_COUNT_15M - | :CARD_TRANSACTION_COUNT_1H - | :CARD_TRANSACTION_COUNT_24H - | :CARD_STATE - | :PIN_ENTERED - | :PIN_STATUS - | :WALLET_TYPE - | :TRANSACTION_INITIATOR - | :ADDRESS_MATCH - - module Attribute - extend Lithic::Internal::Type::Enum - - MCC: :MCC - COUNTRY: :COUNTRY - CURRENCY: :CURRENCY - MERCHANT_ID: :MERCHANT_ID - DESCRIPTOR: :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H - CARD_STATE: :CARD_STATE - PIN_ENTERED: :PIN_ENTERED - PIN_STATUS: :PIN_STATUS - WALLET_TYPE: :WALLET_TYPE - TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR - ADDRESS_MATCH: :ADDRESS_MATCH - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] - end - - type operation = - :IS_ONE_OF - | :IS_NOT_ONE_OF - | :MATCHES - | :DOES_NOT_MATCH - | :IS_EQUAL_TO - | :IS_NOT_EQUAL_TO - | :IS_GREATER_THAN - | :IS_GREATER_THAN_OR_EQUAL_TO - | :IS_LESS_THAN - | :IS_LESS_THAN_OR_EQUAL_TO - - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF: :IS_ONE_OF - IS_NOT_ONE_OF: :IS_NOT_ONE_OF - MATCHES: :MATCHES - DOES_NOT_MATCH: :DOES_NOT_MATCH - IS_EQUAL_TO: :IS_EQUAL_TO - IS_NOT_EQUAL_TO: :IS_NOT_EQUAL_TO - IS_GREATER_THAN: :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO: :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN: :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO: :IS_LESS_THAN_OR_EQUAL_TO - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation] - end - - type value = String | Integer | ::Array[String] - - module Value - extend Lithic::Internal::Type::Union - - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value] - - StringArray: Lithic::Internal::Type::Converter - end - end - end - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::parameters] end end @@ -298,169 +140,11 @@ module Lithic | Lithic::AuthRules::VelocityLimitParams | Lithic::AuthRules::MerchantLockParameters | Lithic::AuthRules::Conditional3DSActionParameters - | Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters + | Lithic::AuthRules::ConditionalAuthorizationActionParameters module Parameters extend Lithic::Internal::Type::Union - type conditional_authorization_action_parameters = - { - action: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel - attr_accessor action: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action - - attr_accessor conditions: ::Array[Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - - def initialize: ( - action: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - ) -> void - - def to_hash: -> { - action: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action, - conditions: ::Array[Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition] - } - - type action = :DECLINE | :CHALLENGE - - module Action - extend Lithic::Internal::Type::Enum - - DECLINE: :DECLINE - CHALLENGE: :CHALLENGE - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::action] - end - - type condition = - { - attribute: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - class Condition < Lithic::Internal::Type::BaseModel - attr_reader attribute: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute? - - def attribute=: ( - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - ) -> Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute - - attr_reader operation: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation? - - def operation=: ( - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - ) -> Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation - - attr_reader value: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value? - - def value=: ( - Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - - def initialize: ( - ?attribute: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - ?operation: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - ?value: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - ) -> void - - def to_hash: -> { - attribute: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute, - operation: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation, - value: Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value - } - - type attribute = - :MCC - | :COUNTRY - | :CURRENCY - | :MERCHANT_ID - | :DESCRIPTOR - | :LIABILITY_SHIFT - | :PAN_ENTRY_MODE - | :TRANSACTION_AMOUNT - | :CASH_AMOUNT - | :RISK_SCORE - | :CARD_TRANSACTION_COUNT_15M - | :CARD_TRANSACTION_COUNT_1H - | :CARD_TRANSACTION_COUNT_24H - | :CARD_STATE - | :PIN_ENTERED - | :PIN_STATUS - | :WALLET_TYPE - | :TRANSACTION_INITIATOR - | :ADDRESS_MATCH - - module Attribute - extend Lithic::Internal::Type::Enum - - MCC: :MCC - COUNTRY: :COUNTRY - CURRENCY: :CURRENCY - MERCHANT_ID: :MERCHANT_ID - DESCRIPTOR: :DESCRIPTOR - 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 - CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H - CARD_STATE: :CARD_STATE - PIN_ENTERED: :PIN_ENTERED - PIN_STATUS: :PIN_STATUS - WALLET_TYPE: :WALLET_TYPE - TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR - ADDRESS_MATCH: :ADDRESS_MATCH - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] - end - - type operation = - :IS_ONE_OF - | :IS_NOT_ONE_OF - | :MATCHES - | :DOES_NOT_MATCH - | :IS_EQUAL_TO - | :IS_NOT_EQUAL_TO - | :IS_GREATER_THAN - | :IS_GREATER_THAN_OR_EQUAL_TO - | :IS_LESS_THAN - | :IS_LESS_THAN_OR_EQUAL_TO - - module Operation - extend Lithic::Internal::Type::Enum - - IS_ONE_OF: :IS_ONE_OF - IS_NOT_ONE_OF: :IS_NOT_ONE_OF - MATCHES: :MATCHES - DOES_NOT_MATCH: :DOES_NOT_MATCH - IS_EQUAL_TO: :IS_EQUAL_TO - IS_NOT_EQUAL_TO: :IS_NOT_EQUAL_TO - IS_GREATER_THAN: :IS_GREATER_THAN - IS_GREATER_THAN_OR_EQUAL_TO: :IS_GREATER_THAN_OR_EQUAL_TO - IS_LESS_THAN: :IS_LESS_THAN - IS_LESS_THAN_OR_EQUAL_TO: :IS_LESS_THAN_OR_EQUAL_TO - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::operation] - end - - type value = String | Integer | ::Array[String] - - module Value - extend Lithic::Internal::Type::Union - - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::value] - - StringArray: Lithic::Internal::Type::Converter - end - end - end - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::parameters] end end diff --git a/sig/lithic/models/auth_rules/velocity_limit_params.rbs b/sig/lithic/models/auth_rules/velocity_limit_params.rbs index 42df5722..709c43fb 100644 --- a/sig/lithic/models/auth_rules/velocity_limit_params.rbs +++ b/sig/lithic/models/auth_rules/velocity_limit_params.rbs @@ -4,7 +4,7 @@ module Lithic type velocity_limit_params = { filters: Lithic::AuthRules::VelocityLimitParams::Filters, - period: Lithic::Models::AuthRules::velocity_limit_params_period_window, + period: Lithic::Models::AuthRules::velocity_limit_period, scope: Lithic::Models::AuthRules::VelocityLimitParams::scope, limit_amount: Integer?, limit_count: Integer? @@ -13,7 +13,7 @@ module Lithic class VelocityLimitParams < Lithic::Internal::Type::BaseModel attr_accessor filters: Lithic::AuthRules::VelocityLimitParams::Filters - attr_accessor period: Lithic::Models::AuthRules::velocity_limit_params_period_window + attr_accessor period: Lithic::Models::AuthRules::velocity_limit_period attr_accessor scope: Lithic::Models::AuthRules::VelocityLimitParams::scope @@ -23,7 +23,7 @@ module Lithic def initialize: ( filters: Lithic::AuthRules::VelocityLimitParams::Filters, - period: Lithic::Models::AuthRules::velocity_limit_params_period_window, + period: Lithic::Models::AuthRules::velocity_limit_period, scope: Lithic::Models::AuthRules::VelocityLimitParams::scope, ?limit_amount: Integer?, ?limit_count: Integer? @@ -31,7 +31,7 @@ module Lithic def to_hash: -> { filters: Lithic::AuthRules::VelocityLimitParams::Filters, - period: Lithic::Models::AuthRules::velocity_limit_params_period_window, + period: Lithic::Models::AuthRules::velocity_limit_period, scope: Lithic::Models::AuthRules::VelocityLimitParams::scope, limit_amount: Integer?, limit_count: Integer? diff --git a/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs b/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs deleted file mode 100644 index a977f7c8..00000000 --- a/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +++ /dev/null @@ -1,223 +0,0 @@ -module Lithic - module Models - module AuthRules - type velocity_limit_params_period_window = - Integer - | Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::fixed_window - | Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject - | Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay - | Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek - | Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth - | Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear - - module VelocityLimitParamsPeriodWindow - extend Lithic::Internal::Type::Union - - type fixed_window = :DAY | :WEEK | :MONTH | :YEAR - - module FixedWindow - extend Lithic::Internal::Type::Enum - - DAY: :DAY - WEEK: :WEEK - MONTH: :MONTH - YEAR: :YEAR - - def self?.values: -> ::Array[Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::fixed_window] - end - - type trailing_window_object = - { - duration: Integer, - type: Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::type_ - } - - class TrailingWindowObject < Lithic::Internal::Type::BaseModel - attr_reader duration: Integer? - - def duration=: (Integer) -> Integer - - attr_reader type: Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::type_? - - def type=: ( - Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::type_ - ) -> Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::type_ - - def initialize: ( - ?duration: Integer, - ?type: Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::type_ - ) -> void - - def to_hash: -> { - duration: Integer, - type: Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::type_ - } - - type type_ = :CUSTOM - - module Type - extend Lithic::Internal::Type::Enum - - CUSTOM: :CUSTOM - - def self?.values: -> ::Array[Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::type_] - end - end - - type fixed_window_day = - { - type: Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::type_ - } - - class FixedWindowDay < Lithic::Internal::Type::BaseModel - attr_reader type: Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::type_? - - def type=: ( - Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::type_ - ) -> Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::type_ - - def initialize: ( - ?type: Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::type_ - ) -> void - - def to_hash: -> { - type: Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::type_ - } - - type type_ = :DAY - - module Type - extend Lithic::Internal::Type::Enum - - DAY: :DAY - - def self?.values: -> ::Array[Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::type_] - end - end - - type fixed_window_week = - { - day_of_week: Integer, - type: Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::type_ - } - - class FixedWindowWeek < Lithic::Internal::Type::BaseModel - attr_reader day_of_week: Integer? - - def day_of_week=: (Integer) -> Integer - - attr_reader type: Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::type_? - - def type=: ( - Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::type_ - ) -> Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::type_ - - def initialize: ( - ?day_of_week: Integer, - ?type: Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::type_ - ) -> void - - def to_hash: -> { - day_of_week: Integer, - type: Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::type_ - } - - type type_ = :WEEK - - module Type - extend Lithic::Internal::Type::Enum - - WEEK: :WEEK - - def self?.values: -> ::Array[Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::type_] - end - end - - type fixed_window_month = - { - day_of_month: Integer, - type: Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::type_ - } - - class FixedWindowMonth < Lithic::Internal::Type::BaseModel - attr_reader day_of_month: Integer? - - def day_of_month=: (Integer) -> Integer - - attr_reader type: Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::type_? - - def type=: ( - Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::type_ - ) -> Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::type_ - - def initialize: ( - ?day_of_month: Integer, - ?type: Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::type_ - ) -> void - - def to_hash: -> { - day_of_month: Integer, - type: Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::type_ - } - - type type_ = :MONTH - - module Type - extend Lithic::Internal::Type::Enum - - MONTH: :MONTH - - def self?.values: -> ::Array[Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::type_] - end - end - - type fixed_window_year = - { - day_of_month: Integer, - month: Integer, - type: Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::type_ - } - - class FixedWindowYear < Lithic::Internal::Type::BaseModel - attr_reader day_of_month: Integer? - - def day_of_month=: (Integer) -> Integer - - attr_reader month: Integer? - - def month=: (Integer) -> Integer - - attr_reader type: Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::type_? - - def type=: ( - Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::type_ - ) -> Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::type_ - - def initialize: ( - ?day_of_month: Integer, - ?month: Integer, - ?type: Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::type_ - ) -> void - - def to_hash: -> { - day_of_month: Integer, - month: Integer, - type: Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::type_ - } - - type type_ = :YEAR - - module Type - extend Lithic::Internal::Type::Enum - - YEAR: :YEAR - - def self?.values: -> ::Array[Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::type_] - end - end - - def self?.variants: -> ::Array[Lithic::Models::AuthRules::velocity_limit_params_period_window] - end - end - end -end diff --git a/sig/lithic/models/auth_rules/velocity_limit_period.rbs b/sig/lithic/models/auth_rules/velocity_limit_period.rbs new file mode 100644 index 00000000..8d5ed671 --- /dev/null +++ b/sig/lithic/models/auth_rules/velocity_limit_period.rbs @@ -0,0 +1,91 @@ +module Lithic + module Models + module AuthRules + type velocity_limit_period = + Lithic::AuthRules::VelocityLimitPeriod::TrailingWindowObject + | Lithic::AuthRules::VelocityLimitPeriod::FixedWindowDay + | Lithic::AuthRules::VelocityLimitPeriod::FixedWindowWeek + | Lithic::AuthRules::VelocityLimitPeriod::FixedWindowMonth + | Lithic::AuthRules::VelocityLimitPeriod::FixedWindowYear + + module VelocityLimitPeriod + extend Lithic::Internal::Type::Union + + type trailing_window_object = { duration: Integer, type: :CUSTOM } + + class TrailingWindowObject < Lithic::Internal::Type::BaseModel + attr_accessor duration: Integer + + attr_accessor type: :CUSTOM + + def initialize: (duration: Integer, ?type: :CUSTOM) -> void + + def to_hash: -> { duration: Integer, type: :CUSTOM } + end + + type fixed_window_day = { type: :DAY } + + class FixedWindowDay < Lithic::Internal::Type::BaseModel + attr_accessor type: :DAY + + def initialize: (?type: :DAY) -> void + + def to_hash: -> { type: :DAY } + end + + type fixed_window_week = { type: :WEEK, day_of_week: Integer } + + class FixedWindowWeek < Lithic::Internal::Type::BaseModel + attr_accessor type: :WEEK + + attr_reader day_of_week: Integer? + + def day_of_week=: (Integer) -> Integer + + def initialize: (?day_of_week: Integer, ?type: :WEEK) -> void + + def to_hash: -> { type: :WEEK, day_of_week: Integer } + end + + type fixed_window_month = { type: :MONTH, day_of_month: Integer } + + class FixedWindowMonth < Lithic::Internal::Type::BaseModel + attr_accessor type: :MONTH + + attr_reader day_of_month: Integer? + + def day_of_month=: (Integer) -> Integer + + def initialize: (?day_of_month: Integer, ?type: :MONTH) -> void + + def to_hash: -> { type: :MONTH, day_of_month: Integer } + end + + type fixed_window_year = + { type: :YEAR, day_of_month: Integer, month: Integer } + + class FixedWindowYear < Lithic::Internal::Type::BaseModel + attr_accessor type: :YEAR + + attr_reader day_of_month: Integer? + + def day_of_month=: (Integer) -> Integer + + attr_reader month: Integer? + + def month=: (Integer) -> Integer + + def initialize: ( + ?day_of_month: Integer, + ?month: Integer, + ?type: :YEAR + ) -> void + + def to_hash: -> { type: :YEAR, day_of_month: Integer, month: Integer } + end + + def self?.variants: -> ::Array[Lithic::Models::AuthRules::velocity_limit_period] + end + end + end +end diff --git a/sig/lithic/models/book_transfer_response.rbs b/sig/lithic/models/book_transfer_response.rbs index acb5d296..3756f11a 100644 --- a/sig/lithic/models/book_transfer_response.rbs +++ b/sig/lithic/models/book_transfer_response.rbs @@ -123,7 +123,7 @@ module Lithic token: String, amount: Integer, created: Time, - detailed_results: Lithic::Models::BookTransferResponse::Event::detailed_results, + detailed_results: ::Array[Lithic::Models::BookTransferResponse::Event::detailed_result], memo: String, result: Lithic::Models::BookTransferResponse::Event::result, subtype: String, @@ -137,7 +137,7 @@ module Lithic attr_accessor created: Time - attr_accessor detailed_results: Lithic::Models::BookTransferResponse::Event::detailed_results + attr_accessor detailed_results: ::Array[Lithic::Models::BookTransferResponse::Event::detailed_result] attr_accessor memo: String @@ -151,7 +151,7 @@ module Lithic token: String, amount: Integer, created: Time, - detailed_results: Lithic::Models::BookTransferResponse::Event::detailed_results, + detailed_results: ::Array[Lithic::Models::BookTransferResponse::Event::detailed_result], memo: String, result: Lithic::Models::BookTransferResponse::Event::result, subtype: String, @@ -162,22 +162,22 @@ module Lithic token: String, amount: Integer, created: Time, - detailed_results: Lithic::Models::BookTransferResponse::Event::detailed_results, + detailed_results: ::Array[Lithic::Models::BookTransferResponse::Event::detailed_result], memo: String, result: Lithic::Models::BookTransferResponse::Event::result, subtype: String, type: Lithic::Models::BookTransferResponse::Event::type_ } - type detailed_results = :APPROVED | :FUNDS_INSUFFICIENT + type detailed_result = :APPROVED | :FUNDS_INSUFFICIENT - module DetailedResults + module DetailedResult extend Lithic::Internal::Type::Enum APPROVED: :APPROVED FUNDS_INSUFFICIENT: :FUNDS_INSUFFICIENT - def self?.values: -> ::Array[Lithic::Models::BookTransferResponse::Event::detailed_results] + def self?.values: -> ::Array[Lithic::Models::BookTransferResponse::Event::detailed_result] end type result = :APPROVED | :DECLINED diff --git a/sig/lithic/models/dispute.rbs b/sig/lithic/models/dispute.rbs index cd7c62ac..17666f5e 100644 --- a/sig/lithic/models/dispute.rbs +++ b/sig/lithic/models/dispute.rbs @@ -3,208 +3,468 @@ module Lithic type dispute = { token: String, - amount: Integer, - arbitration_date: Time?, + account_token: String, + card_token: String, + case_id: String?, created: Time, - customer_filed_date: Time?, - customer_note: String?, - network_claim_ids: ::Array[String]?, - network_filed_date: Time?, - network_reason_code: String?, - prearbitration_date: Time?, - primary_claim_id: String?, - reason: Lithic::Models::Dispute::reason, - representment_date: Time?, - resolution_date: Time?, - resolution_note: String?, - resolution_reason: Lithic::Models::Dispute::resolution_reason?, - status: Lithic::Models::Dispute::status, - transaction_token: String + currency: String, + disposition: Lithic::Models::Dispute::disposition?, + events: ::Array[Lithic::Dispute::Event], + liability_allocation: Lithic::Dispute::LiabilityAllocation, + merchant: Lithic::Dispute::Merchant, + network: Lithic::Models::Dispute::network, + status: Lithic::Models::Dispute::status?, + transaction_series: Lithic::Dispute::TransactionSeries?, + updated: Time } class Dispute < Lithic::Internal::Type::BaseModel attr_accessor token: String - attr_accessor amount: Integer + attr_accessor account_token: String - attr_accessor arbitration_date: Time? + attr_accessor card_token: String - attr_accessor created: Time - - attr_accessor customer_filed_date: Time? - - attr_accessor customer_note: String? + attr_accessor case_id: String? - attr_accessor network_claim_ids: ::Array[String]? - - attr_accessor network_filed_date: Time? - - attr_accessor network_reason_code: String? + attr_accessor created: Time - attr_accessor prearbitration_date: Time? + attr_accessor currency: String - attr_accessor primary_claim_id: String? + attr_accessor disposition: Lithic::Models::Dispute::disposition? - attr_accessor reason: Lithic::Models::Dispute::reason + attr_accessor events: ::Array[Lithic::Dispute::Event] - attr_accessor representment_date: Time? + attr_accessor liability_allocation: Lithic::Dispute::LiabilityAllocation - attr_accessor resolution_date: Time? + attr_accessor merchant: Lithic::Dispute::Merchant - attr_accessor resolution_note: String? + attr_accessor network: Lithic::Models::Dispute::network - attr_accessor resolution_reason: Lithic::Models::Dispute::resolution_reason? + attr_accessor status: Lithic::Models::Dispute::status? - attr_accessor status: Lithic::Models::Dispute::status + attr_accessor transaction_series: Lithic::Dispute::TransactionSeries? - attr_accessor transaction_token: String + attr_accessor updated: Time def initialize: ( token: String, - amount: Integer, - arbitration_date: Time?, + account_token: String, + card_token: String, + case_id: String?, created: Time, - customer_filed_date: Time?, - customer_note: String?, - network_claim_ids: ::Array[String]?, - network_filed_date: Time?, - network_reason_code: String?, - prearbitration_date: Time?, - primary_claim_id: String?, - reason: Lithic::Models::Dispute::reason, - representment_date: Time?, - resolution_date: Time?, - resolution_note: String?, - resolution_reason: Lithic::Models::Dispute::resolution_reason?, - status: Lithic::Models::Dispute::status, - transaction_token: String + currency: String, + disposition: Lithic::Models::Dispute::disposition?, + events: ::Array[Lithic::Dispute::Event], + liability_allocation: Lithic::Dispute::LiabilityAllocation, + merchant: Lithic::Dispute::Merchant, + network: Lithic::Models::Dispute::network, + status: Lithic::Models::Dispute::status?, + transaction_series: Lithic::Dispute::TransactionSeries?, + updated: Time ) -> void def to_hash: -> { token: String, - amount: Integer, - arbitration_date: Time?, + account_token: String, + card_token: String, + case_id: String?, created: Time, - customer_filed_date: Time?, - customer_note: String?, - network_claim_ids: ::Array[String]?, - network_filed_date: Time?, - network_reason_code: String?, - prearbitration_date: Time?, - primary_claim_id: String?, - reason: Lithic::Models::Dispute::reason, - representment_date: Time?, - resolution_date: Time?, - resolution_note: String?, - resolution_reason: Lithic::Models::Dispute::resolution_reason?, - status: Lithic::Models::Dispute::status, - transaction_token: String + currency: String, + disposition: Lithic::Models::Dispute::disposition?, + events: ::Array[Lithic::Dispute::Event], + liability_allocation: Lithic::Dispute::LiabilityAllocation, + merchant: Lithic::Dispute::Merchant, + network: Lithic::Models::Dispute::network, + status: Lithic::Models::Dispute::status?, + transaction_series: Lithic::Dispute::TransactionSeries?, + updated: Time } - type reason = - :ATM_CASH_MISDISPENSE - | :CANCELLED - | :DUPLICATED - | :FRAUD_CARD_NOT_PRESENT - | :FRAUD_CARD_PRESENT - | :FRAUD_OTHER - | :GOODS_SERVICES_NOT_AS_DESCRIBED - | :GOODS_SERVICES_NOT_RECEIVED - | :INCORRECT_AMOUNT - | :MISSING_AUTH - | :OTHER - | :PROCESSING_ERROR - | :RECURRING_TRANSACTION_NOT_CANCELLED - | :REFUND_NOT_PROCESSED - - module Reason + type disposition = :WON | :LOST | :PARTIALLY_WON | :WITHDRAWN | :DENIED + + module Disposition extend Lithic::Internal::Type::Enum - ATM_CASH_MISDISPENSE: :ATM_CASH_MISDISPENSE - CANCELLED: :CANCELLED - DUPLICATED: :DUPLICATED - FRAUD_CARD_NOT_PRESENT: :FRAUD_CARD_NOT_PRESENT - FRAUD_CARD_PRESENT: :FRAUD_CARD_PRESENT - FRAUD_OTHER: :FRAUD_OTHER - GOODS_SERVICES_NOT_AS_DESCRIBED: :GOODS_SERVICES_NOT_AS_DESCRIBED - GOODS_SERVICES_NOT_RECEIVED: :GOODS_SERVICES_NOT_RECEIVED - INCORRECT_AMOUNT: :INCORRECT_AMOUNT - MISSING_AUTH: :MISSING_AUTH - OTHER: :OTHER - PROCESSING_ERROR: :PROCESSING_ERROR - RECURRING_TRANSACTION_NOT_CANCELLED: :RECURRING_TRANSACTION_NOT_CANCELLED - REFUND_NOT_PROCESSED: :REFUND_NOT_PROCESSED - - def self?.values: -> ::Array[Lithic::Models::Dispute::reason] + WON: :WON + LOST: :LOST + PARTIALLY_WON: :PARTIALLY_WON + WITHDRAWN: :WITHDRAWN + DENIED: :DENIED + + def self?.values: -> ::Array[Lithic::Models::Dispute::disposition] end - type resolution_reason = - :CASE_LOST - | :NETWORK_REJECTED - | :NO_DISPUTE_RIGHTS_3DS - | :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD - | :NO_DISPUTE_RIGHTS_CONTACTLESS - | :NO_DISPUTE_RIGHTS_HYBRID - | :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS - | :NO_DISPUTE_RIGHTS_OTHER - | :PAST_FILING_DATE - | :PREARBITRATION_REJECTED - | :PROCESSOR_REJECTED_OTHER - | :REFUNDED - | :REFUNDED_AFTER_CHARGEBACK - | :WITHDRAWN - | :WON_ARBITRATION - | :WON_FIRST_CHARGEBACK - | :WON_PREARBITRATION - - module ResolutionReason + type event = + { + token: String, + created: Time, + data: Lithic::Models::Dispute::Event::data, + type: Lithic::Models::Dispute::Event::type_ + } + + class Event < Lithic::Internal::Type::BaseModel + attr_accessor token: String + + attr_accessor created: Time + + attr_accessor data: Lithic::Models::Dispute::Event::data + + attr_accessor type: Lithic::Models::Dispute::Event::type_ + + def initialize: ( + token: String, + created: Time, + data: Lithic::Models::Dispute::Event::data, + type: Lithic::Models::Dispute::Event::type_ + ) -> void + + def to_hash: -> { + token: String, + created: Time, + data: Lithic::Models::Dispute::Event::data, + type: Lithic::Models::Dispute::Event::type_ + } + + type data = + Lithic::Dispute::Event::Data::WorkflowEventData + | Lithic::Dispute::Event::Data::FinancialEventData + | Lithic::Dispute::Event::Data::CardholderLiabilityEventData + + module Data + extend Lithic::Internal::Type::Union + + type workflow_event_data = + { + action: Lithic::Models::Dispute::Event::Data::WorkflowEventData::action, + amount: Integer?, + disposition: Lithic::Models::Dispute::Event::Data::WorkflowEventData::disposition?, + reason: String?, + stage: Lithic::Models::Dispute::Event::Data::WorkflowEventData::stage + } + + class WorkflowEventData < Lithic::Internal::Type::BaseModel + attr_accessor action: Lithic::Models::Dispute::Event::Data::WorkflowEventData::action + + attr_accessor amount: Integer? + + attr_accessor disposition: Lithic::Models::Dispute::Event::Data::WorkflowEventData::disposition? + + attr_accessor reason: String? + + attr_accessor stage: Lithic::Models::Dispute::Event::Data::WorkflowEventData::stage + + def initialize: ( + action: Lithic::Models::Dispute::Event::Data::WorkflowEventData::action, + amount: Integer?, + disposition: Lithic::Models::Dispute::Event::Data::WorkflowEventData::disposition?, + reason: String?, + stage: Lithic::Models::Dispute::Event::Data::WorkflowEventData::stage + ) -> void + + def to_hash: -> { + action: Lithic::Models::Dispute::Event::Data::WorkflowEventData::action, + amount: Integer?, + disposition: Lithic::Models::Dispute::Event::Data::WorkflowEventData::disposition?, + reason: String?, + stage: Lithic::Models::Dispute::Event::Data::WorkflowEventData::stage + } + + type action = :OPENED | :CLOSED | :REOPENED + + module Action + extend Lithic::Internal::Type::Enum + + OPENED: :OPENED + CLOSED: :CLOSED + REOPENED: :REOPENED + + def self?.values: -> ::Array[Lithic::Models::Dispute::Event::Data::WorkflowEventData::action] + end + + type disposition = + :WON | :LOST | :PARTIALLY_WON | :WITHDRAWN | :DENIED + + module Disposition + extend Lithic::Internal::Type::Enum + + WON: :WON + LOST: :LOST + PARTIALLY_WON: :PARTIALLY_WON + WITHDRAWN: :WITHDRAWN + DENIED: :DENIED + + def self?.values: -> ::Array[Lithic::Models::Dispute::Event::Data::WorkflowEventData::disposition] + end + + type stage = :CLAIM + + module Stage + extend Lithic::Internal::Type::Enum + + CLAIM: :CLAIM + + def self?.values: -> ::Array[Lithic::Models::Dispute::Event::Data::WorkflowEventData::stage] + end + end + + type financial_event_data = + { + amount: Integer, + polarity: Lithic::Models::Dispute::Event::Data::FinancialEventData::polarity, + stage: Lithic::Models::Dispute::Event::Data::FinancialEventData::stage + } + + class FinancialEventData < Lithic::Internal::Type::BaseModel + attr_accessor amount: Integer + + attr_accessor polarity: Lithic::Models::Dispute::Event::Data::FinancialEventData::polarity + + attr_accessor stage: Lithic::Models::Dispute::Event::Data::FinancialEventData::stage + + def initialize: ( + amount: Integer, + polarity: Lithic::Models::Dispute::Event::Data::FinancialEventData::polarity, + stage: Lithic::Models::Dispute::Event::Data::FinancialEventData::stage + ) -> void + + def to_hash: -> { + amount: Integer, + polarity: Lithic::Models::Dispute::Event::Data::FinancialEventData::polarity, + stage: Lithic::Models::Dispute::Event::Data::FinancialEventData::stage + } + + type polarity = :CREDIT | :DEBIT + + module Polarity + extend Lithic::Internal::Type::Enum + + CREDIT: :CREDIT + DEBIT: :DEBIT + + def self?.values: -> ::Array[Lithic::Models::Dispute::Event::Data::FinancialEventData::polarity] + end + + type stage = + :CHARGEBACK + | :REPRESENTMENT + | :PREARBITRATION + | :ARBITRATION + | :COLLABORATION + + module Stage + extend Lithic::Internal::Type::Enum + + CHARGEBACK: :CHARGEBACK + REPRESENTMENT: :REPRESENTMENT + PREARBITRATION: :PREARBITRATION + ARBITRATION: :ARBITRATION + COLLABORATION: :COLLABORATION + + def self?.values: -> ::Array[Lithic::Models::Dispute::Event::Data::FinancialEventData::stage] + end + end + + type cardholder_liability_event_data = + { + action: Lithic::Models::Dispute::Event::Data::CardholderLiabilityEventData::action, + amount: Integer, + reason: String + } + + class CardholderLiabilityEventData < Lithic::Internal::Type::BaseModel + attr_accessor action: Lithic::Models::Dispute::Event::Data::CardholderLiabilityEventData::action + + attr_accessor amount: Integer + + attr_accessor reason: String + + def initialize: ( + action: Lithic::Models::Dispute::Event::Data::CardholderLiabilityEventData::action, + amount: Integer, + reason: String + ) -> void + + def to_hash: -> { + action: Lithic::Models::Dispute::Event::Data::CardholderLiabilityEventData::action, + amount: Integer, + reason: String + } + + type action = + :PROVISIONAL_CREDIT_GRANTED + | :PROVISIONAL_CREDIT_REVERSED + | :WRITTEN_OFF + + module Action + extend Lithic::Internal::Type::Enum + + PROVISIONAL_CREDIT_GRANTED: :PROVISIONAL_CREDIT_GRANTED + PROVISIONAL_CREDIT_REVERSED: :PROVISIONAL_CREDIT_REVERSED + WRITTEN_OFF: :WRITTEN_OFF + + def self?.values: -> ::Array[Lithic::Models::Dispute::Event::Data::CardholderLiabilityEventData::action] + end + end + + def self?.variants: -> ::Array[Lithic::Models::Dispute::Event::data] + end + + type type_ = :WORKFLOW | :FINANCIAL | :CARDHOLDER_LIABILITY + + module Type + extend Lithic::Internal::Type::Enum + + WORKFLOW: :WORKFLOW + FINANCIAL: :FINANCIAL + CARDHOLDER_LIABILITY: :CARDHOLDER_LIABILITY + + def self?.values: -> ::Array[Lithic::Models::Dispute::Event::type_] + end + end + + type liability_allocation = + { + denied_amount: Integer, + original_amount: Integer, + recovered_amount: Integer, + remaining_amount: Integer, + written_off_amount: Integer + } + + class LiabilityAllocation < Lithic::Internal::Type::BaseModel + attr_accessor denied_amount: Integer + + attr_accessor original_amount: Integer + + attr_accessor recovered_amount: Integer + + attr_accessor remaining_amount: Integer + + attr_accessor written_off_amount: Integer + + def initialize: ( + denied_amount: Integer, + original_amount: Integer, + recovered_amount: Integer, + remaining_amount: Integer, + written_off_amount: Integer + ) -> void + + def to_hash: -> { + denied_amount: Integer, + original_amount: Integer, + recovered_amount: Integer, + remaining_amount: Integer, + written_off_amount: Integer + } + end + + type merchant = + { + acceptor_id: String, + acquiring_institution_id: String, + city: String, + country: String, + descriptor: String, + mcc: String, + state: String + } + + class Merchant < Lithic::Internal::Type::BaseModel + attr_accessor acceptor_id: String + + attr_accessor acquiring_institution_id: String + + attr_accessor city: String + + attr_accessor country: String + + attr_accessor descriptor: String + + attr_accessor mcc: String + + attr_accessor state: String + + def initialize: ( + acceptor_id: String, + acquiring_institution_id: String, + city: String, + country: String, + descriptor: String, + mcc: String, + state: String + ) -> void + + def to_hash: -> { + acceptor_id: String, + acquiring_institution_id: String, + city: String, + country: String, + descriptor: String, + mcc: String, + state: String + } + end + + type network = :VISA | :MASTERCARD + + module Network extend Lithic::Internal::Type::Enum - CASE_LOST: :CASE_LOST - NETWORK_REJECTED: :NETWORK_REJECTED - NO_DISPUTE_RIGHTS_3DS: :NO_DISPUTE_RIGHTS_3DS - NO_DISPUTE_RIGHTS_BELOW_THRESHOLD: :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD - NO_DISPUTE_RIGHTS_CONTACTLESS: :NO_DISPUTE_RIGHTS_CONTACTLESS - NO_DISPUTE_RIGHTS_HYBRID: :NO_DISPUTE_RIGHTS_HYBRID - NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS: :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS - NO_DISPUTE_RIGHTS_OTHER: :NO_DISPUTE_RIGHTS_OTHER - PAST_FILING_DATE: :PAST_FILING_DATE - PREARBITRATION_REJECTED: :PREARBITRATION_REJECTED - PROCESSOR_REJECTED_OTHER: :PROCESSOR_REJECTED_OTHER - REFUNDED: :REFUNDED - REFUNDED_AFTER_CHARGEBACK: :REFUNDED_AFTER_CHARGEBACK - WITHDRAWN: :WITHDRAWN - WON_ARBITRATION: :WON_ARBITRATION - WON_FIRST_CHARGEBACK: :WON_FIRST_CHARGEBACK - WON_PREARBITRATION: :WON_PREARBITRATION + VISA: :VISA + MASTERCARD: :MASTERCARD - def self?.values: -> ::Array[Lithic::Models::Dispute::resolution_reason] + def self?.values: -> ::Array[Lithic::Models::Dispute::network] end - type status = - :ARBITRATION - | :CASE_CLOSED - | :CASE_WON - | :NEW - | :PENDING_CUSTOMER - | :PREARBITRATION - | :REPRESENTMENT - | :SUBMITTED + type status = :OPEN | :CLOSED module Status extend Lithic::Internal::Type::Enum - ARBITRATION: :ARBITRATION - CASE_CLOSED: :CASE_CLOSED - CASE_WON: :CASE_WON - NEW: :NEW - PENDING_CUSTOMER: :PENDING_CUSTOMER - PREARBITRATION: :PREARBITRATION - REPRESENTMENT: :REPRESENTMENT - SUBMITTED: :SUBMITTED + OPEN: :OPEN + CLOSED: :CLOSED def self?.values: -> ::Array[Lithic::Models::Dispute::status] end + + type transaction_series = + { + related_transaction_event_token: String?, + related_transaction_token: String, + type: Lithic::Models::Dispute::TransactionSeries::type_ + } + + class TransactionSeries < Lithic::Internal::Type::BaseModel + attr_accessor related_transaction_event_token: String? + + attr_accessor related_transaction_token: String + + attr_accessor type: Lithic::Models::Dispute::TransactionSeries::type_ + + def initialize: ( + related_transaction_event_token: String?, + related_transaction_token: String, + type: Lithic::Models::Dispute::TransactionSeries::type_ + ) -> void + + def to_hash: -> { + related_transaction_event_token: String?, + related_transaction_token: String, + type: Lithic::Models::Dispute::TransactionSeries::type_ + } + + type type_ = :DISPUTE + + module Type + extend Lithic::Internal::Type::Enum + + DISPUTE: :DISPUTE + + def self?.values: -> ::Array[Lithic::Models::Dispute::TransactionSeries::type_] + end + end end end end diff --git a/sig/lithic/models/dispute_create_response.rbs b/sig/lithic/models/dispute_create_response.rbs new file mode 100644 index 00000000..27f56d6c --- /dev/null +++ b/sig/lithic/models/dispute_create_response.rbs @@ -0,0 +1,210 @@ +module Lithic + module Models + type dispute_create_response = + { + token: String, + amount: Integer, + arbitration_date: Time?, + created: Time, + customer_filed_date: Time?, + customer_note: String?, + network_claim_ids: ::Array[String]?, + network_filed_date: Time?, + network_reason_code: String?, + prearbitration_date: Time?, + primary_claim_id: String?, + reason: Lithic::Models::DisputeCreateResponse::reason, + representment_date: Time?, + resolution_date: Time?, + resolution_note: String?, + resolution_reason: Lithic::Models::DisputeCreateResponse::resolution_reason?, + status: Lithic::Models::DisputeCreateResponse::status, + transaction_token: String + } + + class DisputeCreateResponse < Lithic::Internal::Type::BaseModel + attr_accessor token: String + + attr_accessor amount: Integer + + attr_accessor arbitration_date: Time? + + attr_accessor created: Time + + attr_accessor customer_filed_date: Time? + + attr_accessor customer_note: String? + + attr_accessor network_claim_ids: ::Array[String]? + + attr_accessor network_filed_date: Time? + + attr_accessor network_reason_code: String? + + attr_accessor prearbitration_date: Time? + + attr_accessor primary_claim_id: String? + + attr_accessor reason: Lithic::Models::DisputeCreateResponse::reason + + attr_accessor representment_date: Time? + + attr_accessor resolution_date: Time? + + attr_accessor resolution_note: String? + + attr_accessor resolution_reason: Lithic::Models::DisputeCreateResponse::resolution_reason? + + attr_accessor status: Lithic::Models::DisputeCreateResponse::status + + attr_accessor transaction_token: String + + def initialize: ( + token: String, + amount: Integer, + arbitration_date: Time?, + created: Time, + customer_filed_date: Time?, + customer_note: String?, + network_claim_ids: ::Array[String]?, + network_filed_date: Time?, + network_reason_code: String?, + prearbitration_date: Time?, + primary_claim_id: String?, + reason: Lithic::Models::DisputeCreateResponse::reason, + representment_date: Time?, + resolution_date: Time?, + resolution_note: String?, + resolution_reason: Lithic::Models::DisputeCreateResponse::resolution_reason?, + status: Lithic::Models::DisputeCreateResponse::status, + transaction_token: String + ) -> void + + def to_hash: -> { + token: String, + amount: Integer, + arbitration_date: Time?, + created: Time, + customer_filed_date: Time?, + customer_note: String?, + network_claim_ids: ::Array[String]?, + network_filed_date: Time?, + network_reason_code: String?, + prearbitration_date: Time?, + primary_claim_id: String?, + reason: Lithic::Models::DisputeCreateResponse::reason, + representment_date: Time?, + resolution_date: Time?, + resolution_note: String?, + resolution_reason: Lithic::Models::DisputeCreateResponse::resolution_reason?, + status: Lithic::Models::DisputeCreateResponse::status, + transaction_token: String + } + + type reason = + :ATM_CASH_MISDISPENSE + | :CANCELLED + | :DUPLICATED + | :FRAUD_CARD_NOT_PRESENT + | :FRAUD_CARD_PRESENT + | :FRAUD_OTHER + | :GOODS_SERVICES_NOT_AS_DESCRIBED + | :GOODS_SERVICES_NOT_RECEIVED + | :INCORRECT_AMOUNT + | :MISSING_AUTH + | :OTHER + | :PROCESSING_ERROR + | :RECURRING_TRANSACTION_NOT_CANCELLED + | :REFUND_NOT_PROCESSED + + module Reason + extend Lithic::Internal::Type::Enum + + ATM_CASH_MISDISPENSE: :ATM_CASH_MISDISPENSE + CANCELLED: :CANCELLED + DUPLICATED: :DUPLICATED + FRAUD_CARD_NOT_PRESENT: :FRAUD_CARD_NOT_PRESENT + FRAUD_CARD_PRESENT: :FRAUD_CARD_PRESENT + FRAUD_OTHER: :FRAUD_OTHER + GOODS_SERVICES_NOT_AS_DESCRIBED: :GOODS_SERVICES_NOT_AS_DESCRIBED + GOODS_SERVICES_NOT_RECEIVED: :GOODS_SERVICES_NOT_RECEIVED + INCORRECT_AMOUNT: :INCORRECT_AMOUNT + MISSING_AUTH: :MISSING_AUTH + OTHER: :OTHER + PROCESSING_ERROR: :PROCESSING_ERROR + RECURRING_TRANSACTION_NOT_CANCELLED: :RECURRING_TRANSACTION_NOT_CANCELLED + REFUND_NOT_PROCESSED: :REFUND_NOT_PROCESSED + + def self?.values: -> ::Array[Lithic::Models::DisputeCreateResponse::reason] + end + + type resolution_reason = + :CASE_LOST + | :NETWORK_REJECTED + | :NO_DISPUTE_RIGHTS_3DS + | :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD + | :NO_DISPUTE_RIGHTS_CONTACTLESS + | :NO_DISPUTE_RIGHTS_HYBRID + | :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS + | :NO_DISPUTE_RIGHTS_OTHER + | :PAST_FILING_DATE + | :PREARBITRATION_REJECTED + | :PROCESSOR_REJECTED_OTHER + | :REFUNDED + | :REFUNDED_AFTER_CHARGEBACK + | :WITHDRAWN + | :WON_ARBITRATION + | :WON_FIRST_CHARGEBACK + | :WON_PREARBITRATION + + module ResolutionReason + extend Lithic::Internal::Type::Enum + + CASE_LOST: :CASE_LOST + NETWORK_REJECTED: :NETWORK_REJECTED + NO_DISPUTE_RIGHTS_3DS: :NO_DISPUTE_RIGHTS_3DS + NO_DISPUTE_RIGHTS_BELOW_THRESHOLD: :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD + NO_DISPUTE_RIGHTS_CONTACTLESS: :NO_DISPUTE_RIGHTS_CONTACTLESS + NO_DISPUTE_RIGHTS_HYBRID: :NO_DISPUTE_RIGHTS_HYBRID + NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS: :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS + NO_DISPUTE_RIGHTS_OTHER: :NO_DISPUTE_RIGHTS_OTHER + PAST_FILING_DATE: :PAST_FILING_DATE + PREARBITRATION_REJECTED: :PREARBITRATION_REJECTED + PROCESSOR_REJECTED_OTHER: :PROCESSOR_REJECTED_OTHER + REFUNDED: :REFUNDED + REFUNDED_AFTER_CHARGEBACK: :REFUNDED_AFTER_CHARGEBACK + WITHDRAWN: :WITHDRAWN + WON_ARBITRATION: :WON_ARBITRATION + WON_FIRST_CHARGEBACK: :WON_FIRST_CHARGEBACK + WON_PREARBITRATION: :WON_PREARBITRATION + + def self?.values: -> ::Array[Lithic::Models::DisputeCreateResponse::resolution_reason] + end + + type status = + :ARBITRATION + | :CASE_CLOSED + | :CASE_WON + | :NEW + | :PENDING_CUSTOMER + | :PREARBITRATION + | :REPRESENTMENT + | :SUBMITTED + + module Status + extend Lithic::Internal::Type::Enum + + ARBITRATION: :ARBITRATION + CASE_CLOSED: :CASE_CLOSED + CASE_WON: :CASE_WON + NEW: :NEW + PENDING_CUSTOMER: :PENDING_CUSTOMER + PREARBITRATION: :PREARBITRATION + REPRESENTMENT: :REPRESENTMENT + SUBMITTED: :SUBMITTED + + def self?.values: -> ::Array[Lithic::Models::DisputeCreateResponse::status] + end + end + end +end diff --git a/sig/lithic/models/dispute_delete_response.rbs b/sig/lithic/models/dispute_delete_response.rbs new file mode 100644 index 00000000..35281f7f --- /dev/null +++ b/sig/lithic/models/dispute_delete_response.rbs @@ -0,0 +1,210 @@ +module Lithic + module Models + type dispute_delete_response = + { + token: String, + amount: Integer, + arbitration_date: Time?, + created: Time, + customer_filed_date: Time?, + customer_note: String?, + network_claim_ids: ::Array[String]?, + network_filed_date: Time?, + network_reason_code: String?, + prearbitration_date: Time?, + primary_claim_id: String?, + reason: Lithic::Models::DisputeDeleteResponse::reason, + representment_date: Time?, + resolution_date: Time?, + resolution_note: String?, + resolution_reason: Lithic::Models::DisputeDeleteResponse::resolution_reason?, + status: Lithic::Models::DisputeDeleteResponse::status, + transaction_token: String + } + + class DisputeDeleteResponse < Lithic::Internal::Type::BaseModel + attr_accessor token: String + + attr_accessor amount: Integer + + attr_accessor arbitration_date: Time? + + attr_accessor created: Time + + attr_accessor customer_filed_date: Time? + + attr_accessor customer_note: String? + + attr_accessor network_claim_ids: ::Array[String]? + + attr_accessor network_filed_date: Time? + + attr_accessor network_reason_code: String? + + attr_accessor prearbitration_date: Time? + + attr_accessor primary_claim_id: String? + + attr_accessor reason: Lithic::Models::DisputeDeleteResponse::reason + + attr_accessor representment_date: Time? + + attr_accessor resolution_date: Time? + + attr_accessor resolution_note: String? + + attr_accessor resolution_reason: Lithic::Models::DisputeDeleteResponse::resolution_reason? + + attr_accessor status: Lithic::Models::DisputeDeleteResponse::status + + attr_accessor transaction_token: String + + def initialize: ( + token: String, + amount: Integer, + arbitration_date: Time?, + created: Time, + customer_filed_date: Time?, + customer_note: String?, + network_claim_ids: ::Array[String]?, + network_filed_date: Time?, + network_reason_code: String?, + prearbitration_date: Time?, + primary_claim_id: String?, + reason: Lithic::Models::DisputeDeleteResponse::reason, + representment_date: Time?, + resolution_date: Time?, + resolution_note: String?, + resolution_reason: Lithic::Models::DisputeDeleteResponse::resolution_reason?, + status: Lithic::Models::DisputeDeleteResponse::status, + transaction_token: String + ) -> void + + def to_hash: -> { + token: String, + amount: Integer, + arbitration_date: Time?, + created: Time, + customer_filed_date: Time?, + customer_note: String?, + network_claim_ids: ::Array[String]?, + network_filed_date: Time?, + network_reason_code: String?, + prearbitration_date: Time?, + primary_claim_id: String?, + reason: Lithic::Models::DisputeDeleteResponse::reason, + representment_date: Time?, + resolution_date: Time?, + resolution_note: String?, + resolution_reason: Lithic::Models::DisputeDeleteResponse::resolution_reason?, + status: Lithic::Models::DisputeDeleteResponse::status, + transaction_token: String + } + + type reason = + :ATM_CASH_MISDISPENSE + | :CANCELLED + | :DUPLICATED + | :FRAUD_CARD_NOT_PRESENT + | :FRAUD_CARD_PRESENT + | :FRAUD_OTHER + | :GOODS_SERVICES_NOT_AS_DESCRIBED + | :GOODS_SERVICES_NOT_RECEIVED + | :INCORRECT_AMOUNT + | :MISSING_AUTH + | :OTHER + | :PROCESSING_ERROR + | :RECURRING_TRANSACTION_NOT_CANCELLED + | :REFUND_NOT_PROCESSED + + module Reason + extend Lithic::Internal::Type::Enum + + ATM_CASH_MISDISPENSE: :ATM_CASH_MISDISPENSE + CANCELLED: :CANCELLED + DUPLICATED: :DUPLICATED + FRAUD_CARD_NOT_PRESENT: :FRAUD_CARD_NOT_PRESENT + FRAUD_CARD_PRESENT: :FRAUD_CARD_PRESENT + FRAUD_OTHER: :FRAUD_OTHER + GOODS_SERVICES_NOT_AS_DESCRIBED: :GOODS_SERVICES_NOT_AS_DESCRIBED + GOODS_SERVICES_NOT_RECEIVED: :GOODS_SERVICES_NOT_RECEIVED + INCORRECT_AMOUNT: :INCORRECT_AMOUNT + MISSING_AUTH: :MISSING_AUTH + OTHER: :OTHER + PROCESSING_ERROR: :PROCESSING_ERROR + RECURRING_TRANSACTION_NOT_CANCELLED: :RECURRING_TRANSACTION_NOT_CANCELLED + REFUND_NOT_PROCESSED: :REFUND_NOT_PROCESSED + + def self?.values: -> ::Array[Lithic::Models::DisputeDeleteResponse::reason] + end + + type resolution_reason = + :CASE_LOST + | :NETWORK_REJECTED + | :NO_DISPUTE_RIGHTS_3DS + | :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD + | :NO_DISPUTE_RIGHTS_CONTACTLESS + | :NO_DISPUTE_RIGHTS_HYBRID + | :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS + | :NO_DISPUTE_RIGHTS_OTHER + | :PAST_FILING_DATE + | :PREARBITRATION_REJECTED + | :PROCESSOR_REJECTED_OTHER + | :REFUNDED + | :REFUNDED_AFTER_CHARGEBACK + | :WITHDRAWN + | :WON_ARBITRATION + | :WON_FIRST_CHARGEBACK + | :WON_PREARBITRATION + + module ResolutionReason + extend Lithic::Internal::Type::Enum + + CASE_LOST: :CASE_LOST + NETWORK_REJECTED: :NETWORK_REJECTED + NO_DISPUTE_RIGHTS_3DS: :NO_DISPUTE_RIGHTS_3DS + NO_DISPUTE_RIGHTS_BELOW_THRESHOLD: :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD + NO_DISPUTE_RIGHTS_CONTACTLESS: :NO_DISPUTE_RIGHTS_CONTACTLESS + NO_DISPUTE_RIGHTS_HYBRID: :NO_DISPUTE_RIGHTS_HYBRID + NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS: :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS + NO_DISPUTE_RIGHTS_OTHER: :NO_DISPUTE_RIGHTS_OTHER + PAST_FILING_DATE: :PAST_FILING_DATE + PREARBITRATION_REJECTED: :PREARBITRATION_REJECTED + PROCESSOR_REJECTED_OTHER: :PROCESSOR_REJECTED_OTHER + REFUNDED: :REFUNDED + REFUNDED_AFTER_CHARGEBACK: :REFUNDED_AFTER_CHARGEBACK + WITHDRAWN: :WITHDRAWN + WON_ARBITRATION: :WON_ARBITRATION + WON_FIRST_CHARGEBACK: :WON_FIRST_CHARGEBACK + WON_PREARBITRATION: :WON_PREARBITRATION + + def self?.values: -> ::Array[Lithic::Models::DisputeDeleteResponse::resolution_reason] + end + + type status = + :ARBITRATION + | :CASE_CLOSED + | :CASE_WON + | :NEW + | :PENDING_CUSTOMER + | :PREARBITRATION + | :REPRESENTMENT + | :SUBMITTED + + module Status + extend Lithic::Internal::Type::Enum + + ARBITRATION: :ARBITRATION + CASE_CLOSED: :CASE_CLOSED + CASE_WON: :CASE_WON + NEW: :NEW + PENDING_CUSTOMER: :PENDING_CUSTOMER + PREARBITRATION: :PREARBITRATION + REPRESENTMENT: :REPRESENTMENT + SUBMITTED: :SUBMITTED + + def self?.values: -> ::Array[Lithic::Models::DisputeDeleteResponse::status] + end + end + end +end diff --git a/sig/lithic/models/dispute_list_response.rbs b/sig/lithic/models/dispute_list_response.rbs new file mode 100644 index 00000000..626b4324 --- /dev/null +++ b/sig/lithic/models/dispute_list_response.rbs @@ -0,0 +1,210 @@ +module Lithic + module Models + type dispute_list_response = + { + token: String, + amount: Integer, + arbitration_date: Time?, + created: Time, + customer_filed_date: Time?, + customer_note: String?, + network_claim_ids: ::Array[String]?, + network_filed_date: Time?, + network_reason_code: String?, + prearbitration_date: Time?, + primary_claim_id: String?, + reason: Lithic::Models::DisputeListResponse::reason, + representment_date: Time?, + resolution_date: Time?, + resolution_note: String?, + resolution_reason: Lithic::Models::DisputeListResponse::resolution_reason?, + status: Lithic::Models::DisputeListResponse::status, + transaction_token: String + } + + class DisputeListResponse < Lithic::Internal::Type::BaseModel + attr_accessor token: String + + attr_accessor amount: Integer + + attr_accessor arbitration_date: Time? + + attr_accessor created: Time + + attr_accessor customer_filed_date: Time? + + attr_accessor customer_note: String? + + attr_accessor network_claim_ids: ::Array[String]? + + attr_accessor network_filed_date: Time? + + attr_accessor network_reason_code: String? + + attr_accessor prearbitration_date: Time? + + attr_accessor primary_claim_id: String? + + attr_accessor reason: Lithic::Models::DisputeListResponse::reason + + attr_accessor representment_date: Time? + + attr_accessor resolution_date: Time? + + attr_accessor resolution_note: String? + + attr_accessor resolution_reason: Lithic::Models::DisputeListResponse::resolution_reason? + + attr_accessor status: Lithic::Models::DisputeListResponse::status + + attr_accessor transaction_token: String + + def initialize: ( + token: String, + amount: Integer, + arbitration_date: Time?, + created: Time, + customer_filed_date: Time?, + customer_note: String?, + network_claim_ids: ::Array[String]?, + network_filed_date: Time?, + network_reason_code: String?, + prearbitration_date: Time?, + primary_claim_id: String?, + reason: Lithic::Models::DisputeListResponse::reason, + representment_date: Time?, + resolution_date: Time?, + resolution_note: String?, + resolution_reason: Lithic::Models::DisputeListResponse::resolution_reason?, + status: Lithic::Models::DisputeListResponse::status, + transaction_token: String + ) -> void + + def to_hash: -> { + token: String, + amount: Integer, + arbitration_date: Time?, + created: Time, + customer_filed_date: Time?, + customer_note: String?, + network_claim_ids: ::Array[String]?, + network_filed_date: Time?, + network_reason_code: String?, + prearbitration_date: Time?, + primary_claim_id: String?, + reason: Lithic::Models::DisputeListResponse::reason, + representment_date: Time?, + resolution_date: Time?, + resolution_note: String?, + resolution_reason: Lithic::Models::DisputeListResponse::resolution_reason?, + status: Lithic::Models::DisputeListResponse::status, + transaction_token: String + } + + type reason = + :ATM_CASH_MISDISPENSE + | :CANCELLED + | :DUPLICATED + | :FRAUD_CARD_NOT_PRESENT + | :FRAUD_CARD_PRESENT + | :FRAUD_OTHER + | :GOODS_SERVICES_NOT_AS_DESCRIBED + | :GOODS_SERVICES_NOT_RECEIVED + | :INCORRECT_AMOUNT + | :MISSING_AUTH + | :OTHER + | :PROCESSING_ERROR + | :RECURRING_TRANSACTION_NOT_CANCELLED + | :REFUND_NOT_PROCESSED + + module Reason + extend Lithic::Internal::Type::Enum + + ATM_CASH_MISDISPENSE: :ATM_CASH_MISDISPENSE + CANCELLED: :CANCELLED + DUPLICATED: :DUPLICATED + FRAUD_CARD_NOT_PRESENT: :FRAUD_CARD_NOT_PRESENT + FRAUD_CARD_PRESENT: :FRAUD_CARD_PRESENT + FRAUD_OTHER: :FRAUD_OTHER + GOODS_SERVICES_NOT_AS_DESCRIBED: :GOODS_SERVICES_NOT_AS_DESCRIBED + GOODS_SERVICES_NOT_RECEIVED: :GOODS_SERVICES_NOT_RECEIVED + INCORRECT_AMOUNT: :INCORRECT_AMOUNT + MISSING_AUTH: :MISSING_AUTH + OTHER: :OTHER + PROCESSING_ERROR: :PROCESSING_ERROR + RECURRING_TRANSACTION_NOT_CANCELLED: :RECURRING_TRANSACTION_NOT_CANCELLED + REFUND_NOT_PROCESSED: :REFUND_NOT_PROCESSED + + def self?.values: -> ::Array[Lithic::Models::DisputeListResponse::reason] + end + + type resolution_reason = + :CASE_LOST + | :NETWORK_REJECTED + | :NO_DISPUTE_RIGHTS_3DS + | :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD + | :NO_DISPUTE_RIGHTS_CONTACTLESS + | :NO_DISPUTE_RIGHTS_HYBRID + | :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS + | :NO_DISPUTE_RIGHTS_OTHER + | :PAST_FILING_DATE + | :PREARBITRATION_REJECTED + | :PROCESSOR_REJECTED_OTHER + | :REFUNDED + | :REFUNDED_AFTER_CHARGEBACK + | :WITHDRAWN + | :WON_ARBITRATION + | :WON_FIRST_CHARGEBACK + | :WON_PREARBITRATION + + module ResolutionReason + extend Lithic::Internal::Type::Enum + + CASE_LOST: :CASE_LOST + NETWORK_REJECTED: :NETWORK_REJECTED + NO_DISPUTE_RIGHTS_3DS: :NO_DISPUTE_RIGHTS_3DS + NO_DISPUTE_RIGHTS_BELOW_THRESHOLD: :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD + NO_DISPUTE_RIGHTS_CONTACTLESS: :NO_DISPUTE_RIGHTS_CONTACTLESS + NO_DISPUTE_RIGHTS_HYBRID: :NO_DISPUTE_RIGHTS_HYBRID + NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS: :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS + NO_DISPUTE_RIGHTS_OTHER: :NO_DISPUTE_RIGHTS_OTHER + PAST_FILING_DATE: :PAST_FILING_DATE + PREARBITRATION_REJECTED: :PREARBITRATION_REJECTED + PROCESSOR_REJECTED_OTHER: :PROCESSOR_REJECTED_OTHER + REFUNDED: :REFUNDED + REFUNDED_AFTER_CHARGEBACK: :REFUNDED_AFTER_CHARGEBACK + WITHDRAWN: :WITHDRAWN + WON_ARBITRATION: :WON_ARBITRATION + WON_FIRST_CHARGEBACK: :WON_FIRST_CHARGEBACK + WON_PREARBITRATION: :WON_PREARBITRATION + + def self?.values: -> ::Array[Lithic::Models::DisputeListResponse::resolution_reason] + end + + type status = + :ARBITRATION + | :CASE_CLOSED + | :CASE_WON + | :NEW + | :PENDING_CUSTOMER + | :PREARBITRATION + | :REPRESENTMENT + | :SUBMITTED + + module Status + extend Lithic::Internal::Type::Enum + + ARBITRATION: :ARBITRATION + CASE_CLOSED: :CASE_CLOSED + CASE_WON: :CASE_WON + NEW: :NEW + PENDING_CUSTOMER: :PENDING_CUSTOMER + PREARBITRATION: :PREARBITRATION + REPRESENTMENT: :REPRESENTMENT + SUBMITTED: :SUBMITTED + + def self?.values: -> ::Array[Lithic::Models::DisputeListResponse::status] + end + end + end +end diff --git a/sig/lithic/models/dispute_retrieve_response.rbs b/sig/lithic/models/dispute_retrieve_response.rbs new file mode 100644 index 00000000..e34aa66e --- /dev/null +++ b/sig/lithic/models/dispute_retrieve_response.rbs @@ -0,0 +1,210 @@ +module Lithic + module Models + type dispute_retrieve_response = + { + token: String, + amount: Integer, + arbitration_date: Time?, + created: Time, + customer_filed_date: Time?, + customer_note: String?, + network_claim_ids: ::Array[String]?, + network_filed_date: Time?, + network_reason_code: String?, + prearbitration_date: Time?, + primary_claim_id: String?, + reason: Lithic::Models::DisputeRetrieveResponse::reason, + representment_date: Time?, + resolution_date: Time?, + resolution_note: String?, + resolution_reason: Lithic::Models::DisputeRetrieveResponse::resolution_reason?, + status: Lithic::Models::DisputeRetrieveResponse::status, + transaction_token: String + } + + class DisputeRetrieveResponse < Lithic::Internal::Type::BaseModel + attr_accessor token: String + + attr_accessor amount: Integer + + attr_accessor arbitration_date: Time? + + attr_accessor created: Time + + attr_accessor customer_filed_date: Time? + + attr_accessor customer_note: String? + + attr_accessor network_claim_ids: ::Array[String]? + + attr_accessor network_filed_date: Time? + + attr_accessor network_reason_code: String? + + attr_accessor prearbitration_date: Time? + + attr_accessor primary_claim_id: String? + + attr_accessor reason: Lithic::Models::DisputeRetrieveResponse::reason + + attr_accessor representment_date: Time? + + attr_accessor resolution_date: Time? + + attr_accessor resolution_note: String? + + attr_accessor resolution_reason: Lithic::Models::DisputeRetrieveResponse::resolution_reason? + + attr_accessor status: Lithic::Models::DisputeRetrieveResponse::status + + attr_accessor transaction_token: String + + def initialize: ( + token: String, + amount: Integer, + arbitration_date: Time?, + created: Time, + customer_filed_date: Time?, + customer_note: String?, + network_claim_ids: ::Array[String]?, + network_filed_date: Time?, + network_reason_code: String?, + prearbitration_date: Time?, + primary_claim_id: String?, + reason: Lithic::Models::DisputeRetrieveResponse::reason, + representment_date: Time?, + resolution_date: Time?, + resolution_note: String?, + resolution_reason: Lithic::Models::DisputeRetrieveResponse::resolution_reason?, + status: Lithic::Models::DisputeRetrieveResponse::status, + transaction_token: String + ) -> void + + def to_hash: -> { + token: String, + amount: Integer, + arbitration_date: Time?, + created: Time, + customer_filed_date: Time?, + customer_note: String?, + network_claim_ids: ::Array[String]?, + network_filed_date: Time?, + network_reason_code: String?, + prearbitration_date: Time?, + primary_claim_id: String?, + reason: Lithic::Models::DisputeRetrieveResponse::reason, + representment_date: Time?, + resolution_date: Time?, + resolution_note: String?, + resolution_reason: Lithic::Models::DisputeRetrieveResponse::resolution_reason?, + status: Lithic::Models::DisputeRetrieveResponse::status, + transaction_token: String + } + + type reason = + :ATM_CASH_MISDISPENSE + | :CANCELLED + | :DUPLICATED + | :FRAUD_CARD_NOT_PRESENT + | :FRAUD_CARD_PRESENT + | :FRAUD_OTHER + | :GOODS_SERVICES_NOT_AS_DESCRIBED + | :GOODS_SERVICES_NOT_RECEIVED + | :INCORRECT_AMOUNT + | :MISSING_AUTH + | :OTHER + | :PROCESSING_ERROR + | :RECURRING_TRANSACTION_NOT_CANCELLED + | :REFUND_NOT_PROCESSED + + module Reason + extend Lithic::Internal::Type::Enum + + ATM_CASH_MISDISPENSE: :ATM_CASH_MISDISPENSE + CANCELLED: :CANCELLED + DUPLICATED: :DUPLICATED + FRAUD_CARD_NOT_PRESENT: :FRAUD_CARD_NOT_PRESENT + FRAUD_CARD_PRESENT: :FRAUD_CARD_PRESENT + FRAUD_OTHER: :FRAUD_OTHER + GOODS_SERVICES_NOT_AS_DESCRIBED: :GOODS_SERVICES_NOT_AS_DESCRIBED + GOODS_SERVICES_NOT_RECEIVED: :GOODS_SERVICES_NOT_RECEIVED + INCORRECT_AMOUNT: :INCORRECT_AMOUNT + MISSING_AUTH: :MISSING_AUTH + OTHER: :OTHER + PROCESSING_ERROR: :PROCESSING_ERROR + RECURRING_TRANSACTION_NOT_CANCELLED: :RECURRING_TRANSACTION_NOT_CANCELLED + REFUND_NOT_PROCESSED: :REFUND_NOT_PROCESSED + + def self?.values: -> ::Array[Lithic::Models::DisputeRetrieveResponse::reason] + end + + type resolution_reason = + :CASE_LOST + | :NETWORK_REJECTED + | :NO_DISPUTE_RIGHTS_3DS + | :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD + | :NO_DISPUTE_RIGHTS_CONTACTLESS + | :NO_DISPUTE_RIGHTS_HYBRID + | :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS + | :NO_DISPUTE_RIGHTS_OTHER + | :PAST_FILING_DATE + | :PREARBITRATION_REJECTED + | :PROCESSOR_REJECTED_OTHER + | :REFUNDED + | :REFUNDED_AFTER_CHARGEBACK + | :WITHDRAWN + | :WON_ARBITRATION + | :WON_FIRST_CHARGEBACK + | :WON_PREARBITRATION + + module ResolutionReason + extend Lithic::Internal::Type::Enum + + CASE_LOST: :CASE_LOST + NETWORK_REJECTED: :NETWORK_REJECTED + NO_DISPUTE_RIGHTS_3DS: :NO_DISPUTE_RIGHTS_3DS + NO_DISPUTE_RIGHTS_BELOW_THRESHOLD: :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD + NO_DISPUTE_RIGHTS_CONTACTLESS: :NO_DISPUTE_RIGHTS_CONTACTLESS + NO_DISPUTE_RIGHTS_HYBRID: :NO_DISPUTE_RIGHTS_HYBRID + NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS: :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS + NO_DISPUTE_RIGHTS_OTHER: :NO_DISPUTE_RIGHTS_OTHER + PAST_FILING_DATE: :PAST_FILING_DATE + PREARBITRATION_REJECTED: :PREARBITRATION_REJECTED + PROCESSOR_REJECTED_OTHER: :PROCESSOR_REJECTED_OTHER + REFUNDED: :REFUNDED + REFUNDED_AFTER_CHARGEBACK: :REFUNDED_AFTER_CHARGEBACK + WITHDRAWN: :WITHDRAWN + WON_ARBITRATION: :WON_ARBITRATION + WON_FIRST_CHARGEBACK: :WON_FIRST_CHARGEBACK + WON_PREARBITRATION: :WON_PREARBITRATION + + def self?.values: -> ::Array[Lithic::Models::DisputeRetrieveResponse::resolution_reason] + end + + type status = + :ARBITRATION + | :CASE_CLOSED + | :CASE_WON + | :NEW + | :PENDING_CUSTOMER + | :PREARBITRATION + | :REPRESENTMENT + | :SUBMITTED + + module Status + extend Lithic::Internal::Type::Enum + + ARBITRATION: :ARBITRATION + CASE_CLOSED: :CASE_CLOSED + CASE_WON: :CASE_WON + NEW: :NEW + PENDING_CUSTOMER: :PENDING_CUSTOMER + PREARBITRATION: :PREARBITRATION + REPRESENTMENT: :REPRESENTMENT + SUBMITTED: :SUBMITTED + + def self?.values: -> ::Array[Lithic::Models::DisputeRetrieveResponse::status] + end + end + end +end diff --git a/sig/lithic/models/dispute_update_response.rbs b/sig/lithic/models/dispute_update_response.rbs new file mode 100644 index 00000000..3158e030 --- /dev/null +++ b/sig/lithic/models/dispute_update_response.rbs @@ -0,0 +1,210 @@ +module Lithic + module Models + type dispute_update_response = + { + token: String, + amount: Integer, + arbitration_date: Time?, + created: Time, + customer_filed_date: Time?, + customer_note: String?, + network_claim_ids: ::Array[String]?, + network_filed_date: Time?, + network_reason_code: String?, + prearbitration_date: Time?, + primary_claim_id: String?, + reason: Lithic::Models::DisputeUpdateResponse::reason, + representment_date: Time?, + resolution_date: Time?, + resolution_note: String?, + resolution_reason: Lithic::Models::DisputeUpdateResponse::resolution_reason?, + status: Lithic::Models::DisputeUpdateResponse::status, + transaction_token: String + } + + class DisputeUpdateResponse < Lithic::Internal::Type::BaseModel + attr_accessor token: String + + attr_accessor amount: Integer + + attr_accessor arbitration_date: Time? + + attr_accessor created: Time + + attr_accessor customer_filed_date: Time? + + attr_accessor customer_note: String? + + attr_accessor network_claim_ids: ::Array[String]? + + attr_accessor network_filed_date: Time? + + attr_accessor network_reason_code: String? + + attr_accessor prearbitration_date: Time? + + attr_accessor primary_claim_id: String? + + attr_accessor reason: Lithic::Models::DisputeUpdateResponse::reason + + attr_accessor representment_date: Time? + + attr_accessor resolution_date: Time? + + attr_accessor resolution_note: String? + + attr_accessor resolution_reason: Lithic::Models::DisputeUpdateResponse::resolution_reason? + + attr_accessor status: Lithic::Models::DisputeUpdateResponse::status + + attr_accessor transaction_token: String + + def initialize: ( + token: String, + amount: Integer, + arbitration_date: Time?, + created: Time, + customer_filed_date: Time?, + customer_note: String?, + network_claim_ids: ::Array[String]?, + network_filed_date: Time?, + network_reason_code: String?, + prearbitration_date: Time?, + primary_claim_id: String?, + reason: Lithic::Models::DisputeUpdateResponse::reason, + representment_date: Time?, + resolution_date: Time?, + resolution_note: String?, + resolution_reason: Lithic::Models::DisputeUpdateResponse::resolution_reason?, + status: Lithic::Models::DisputeUpdateResponse::status, + transaction_token: String + ) -> void + + def to_hash: -> { + token: String, + amount: Integer, + arbitration_date: Time?, + created: Time, + customer_filed_date: Time?, + customer_note: String?, + network_claim_ids: ::Array[String]?, + network_filed_date: Time?, + network_reason_code: String?, + prearbitration_date: Time?, + primary_claim_id: String?, + reason: Lithic::Models::DisputeUpdateResponse::reason, + representment_date: Time?, + resolution_date: Time?, + resolution_note: String?, + resolution_reason: Lithic::Models::DisputeUpdateResponse::resolution_reason?, + status: Lithic::Models::DisputeUpdateResponse::status, + transaction_token: String + } + + type reason = + :ATM_CASH_MISDISPENSE + | :CANCELLED + | :DUPLICATED + | :FRAUD_CARD_NOT_PRESENT + | :FRAUD_CARD_PRESENT + | :FRAUD_OTHER + | :GOODS_SERVICES_NOT_AS_DESCRIBED + | :GOODS_SERVICES_NOT_RECEIVED + | :INCORRECT_AMOUNT + | :MISSING_AUTH + | :OTHER + | :PROCESSING_ERROR + | :RECURRING_TRANSACTION_NOT_CANCELLED + | :REFUND_NOT_PROCESSED + + module Reason + extend Lithic::Internal::Type::Enum + + ATM_CASH_MISDISPENSE: :ATM_CASH_MISDISPENSE + CANCELLED: :CANCELLED + DUPLICATED: :DUPLICATED + FRAUD_CARD_NOT_PRESENT: :FRAUD_CARD_NOT_PRESENT + FRAUD_CARD_PRESENT: :FRAUD_CARD_PRESENT + FRAUD_OTHER: :FRAUD_OTHER + GOODS_SERVICES_NOT_AS_DESCRIBED: :GOODS_SERVICES_NOT_AS_DESCRIBED + GOODS_SERVICES_NOT_RECEIVED: :GOODS_SERVICES_NOT_RECEIVED + INCORRECT_AMOUNT: :INCORRECT_AMOUNT + MISSING_AUTH: :MISSING_AUTH + OTHER: :OTHER + PROCESSING_ERROR: :PROCESSING_ERROR + RECURRING_TRANSACTION_NOT_CANCELLED: :RECURRING_TRANSACTION_NOT_CANCELLED + REFUND_NOT_PROCESSED: :REFUND_NOT_PROCESSED + + def self?.values: -> ::Array[Lithic::Models::DisputeUpdateResponse::reason] + end + + type resolution_reason = + :CASE_LOST + | :NETWORK_REJECTED + | :NO_DISPUTE_RIGHTS_3DS + | :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD + | :NO_DISPUTE_RIGHTS_CONTACTLESS + | :NO_DISPUTE_RIGHTS_HYBRID + | :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS + | :NO_DISPUTE_RIGHTS_OTHER + | :PAST_FILING_DATE + | :PREARBITRATION_REJECTED + | :PROCESSOR_REJECTED_OTHER + | :REFUNDED + | :REFUNDED_AFTER_CHARGEBACK + | :WITHDRAWN + | :WON_ARBITRATION + | :WON_FIRST_CHARGEBACK + | :WON_PREARBITRATION + + module ResolutionReason + extend Lithic::Internal::Type::Enum + + CASE_LOST: :CASE_LOST + NETWORK_REJECTED: :NETWORK_REJECTED + NO_DISPUTE_RIGHTS_3DS: :NO_DISPUTE_RIGHTS_3DS + NO_DISPUTE_RIGHTS_BELOW_THRESHOLD: :NO_DISPUTE_RIGHTS_BELOW_THRESHOLD + NO_DISPUTE_RIGHTS_CONTACTLESS: :NO_DISPUTE_RIGHTS_CONTACTLESS + NO_DISPUTE_RIGHTS_HYBRID: :NO_DISPUTE_RIGHTS_HYBRID + NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS: :NO_DISPUTE_RIGHTS_MAX_CHARGEBACKS + NO_DISPUTE_RIGHTS_OTHER: :NO_DISPUTE_RIGHTS_OTHER + PAST_FILING_DATE: :PAST_FILING_DATE + PREARBITRATION_REJECTED: :PREARBITRATION_REJECTED + PROCESSOR_REJECTED_OTHER: :PROCESSOR_REJECTED_OTHER + REFUNDED: :REFUNDED + REFUNDED_AFTER_CHARGEBACK: :REFUNDED_AFTER_CHARGEBACK + WITHDRAWN: :WITHDRAWN + WON_ARBITRATION: :WON_ARBITRATION + WON_FIRST_CHARGEBACK: :WON_FIRST_CHARGEBACK + WON_PREARBITRATION: :WON_PREARBITRATION + + def self?.values: -> ::Array[Lithic::Models::DisputeUpdateResponse::resolution_reason] + end + + type status = + :ARBITRATION + | :CASE_CLOSED + | :CASE_WON + | :NEW + | :PENDING_CUSTOMER + | :PREARBITRATION + | :REPRESENTMENT + | :SUBMITTED + + module Status + extend Lithic::Internal::Type::Enum + + ARBITRATION: :ARBITRATION + CASE_CLOSED: :CASE_CLOSED + CASE_WON: :CASE_WON + NEW: :NEW + PENDING_CUSTOMER: :PENDING_CUSTOMER + PREARBITRATION: :PREARBITRATION + REPRESENTMENT: :REPRESENTMENT + SUBMITTED: :SUBMITTED + + def self?.values: -> ::Array[Lithic::Models::DisputeUpdateResponse::status] + end + end + end +end diff --git a/sig/lithic/models/event.rbs b/sig/lithic/models/event.rbs index 3f80f5d6..78790bab 100644 --- a/sig/lithic/models/event.rbs +++ b/sig/lithic/models/event.rbs @@ -32,26 +32,31 @@ module Lithic } type event_type = - :"account_holder.created" + :"account_holder_document.updated" + | :"account_holder.created" | :"account_holder.updated" | :"account_holder.verification" + | :"auth_rules.backtest_report.created" | :"balance.updated" | :"book_transfer_transaction.created" + | :"book_transfer_transaction.updated" + | :"card_transaction.enhanced_data.created" + | :"card_transaction.enhanced_data.updated" + | :"card_transaction.updated" + | :"card.converted" | :"card.created" - | :"card.renewed" | :"card.reissued" - | :"card.converted" + | :"card.renewed" | :"card.shipped" - | :"card_transaction.updated" | :"digital_wallet.tokenization_approval_request" | :"digital_wallet.tokenization_result" | :"digital_wallet.tokenization_two_factor_authentication_code" | :"digital_wallet.tokenization_two_factor_authentication_code_sent" | :"digital_wallet.tokenization_updated" - | :"dispute.updated" | :"dispute_evidence.upload_failed" | :"dispute_transaction.created" | :"dispute_transaction.updated" + | :"dispute.updated" | :"external_bank_account.created" | :"external_bank_account.updated" | :"external_payment.created" @@ -59,6 +64,8 @@ module Lithic | :"financial_account.created" | :"financial_account.updated" | :"funding_event.created" + | :"internal_transaction.created" + | :"internal_transaction.updated" | :"loan_tape.created" | :"loan_tape.updated" | :"management_operation.created" @@ -67,10 +74,9 @@ module Lithic | :"network_total.updated" | :"payment_transaction.created" | :"payment_transaction.updated" - | :"internal_transaction.created" - | :"internal_transaction.updated" | :"settlement_report.updated" | :"statements.created" + | :"three_ds_authentication.challenge" | :"three_ds_authentication.created" | :"three_ds_authentication.updated" | :"tokenization.approval_request" @@ -82,26 +88,31 @@ module Lithic module EventType extend Lithic::Internal::Type::Enum + ACCOUNT_HOLDER_DOCUMENT_UPDATED: :"account_holder_document.updated" ACCOUNT_HOLDER_CREATED: :"account_holder.created" ACCOUNT_HOLDER_UPDATED: :"account_holder.updated" ACCOUNT_HOLDER_VERIFICATION: :"account_holder.verification" + AUTH_RULES_BACKTEST_REPORT_CREATED: :"auth_rules.backtest_report.created" BALANCE_UPDATED: :"balance.updated" BOOK_TRANSFER_TRANSACTION_CREATED: :"book_transfer_transaction.created" + BOOK_TRANSFER_TRANSACTION_UPDATED: :"book_transfer_transaction.updated" + CARD_TRANSACTION_ENHANCED_DATA_CREATED: :"card_transaction.enhanced_data.created" + CARD_TRANSACTION_ENHANCED_DATA_UPDATED: :"card_transaction.enhanced_data.updated" + CARD_TRANSACTION_UPDATED: :"card_transaction.updated" + CARD_CONVERTED: :"card.converted" CARD_CREATED: :"card.created" - CARD_RENEWED: :"card.renewed" CARD_REISSUED: :"card.reissued" - CARD_CONVERTED: :"card.converted" + CARD_RENEWED: :"card.renewed" CARD_SHIPPED: :"card.shipped" - CARD_TRANSACTION_UPDATED: :"card_transaction.updated" DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request" DIGITAL_WALLET_TOKENIZATION_RESULT: :"digital_wallet.tokenization_result" DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE: :"digital_wallet.tokenization_two_factor_authentication_code" DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT: :"digital_wallet.tokenization_two_factor_authentication_code_sent" DIGITAL_WALLET_TOKENIZATION_UPDATED: :"digital_wallet.tokenization_updated" - DISPUTE_UPDATED: :"dispute.updated" DISPUTE_EVIDENCE_UPLOAD_FAILED: :"dispute_evidence.upload_failed" DISPUTE_TRANSACTION_CREATED: :"dispute_transaction.created" DISPUTE_TRANSACTION_UPDATED: :"dispute_transaction.updated" + DISPUTE_UPDATED: :"dispute.updated" EXTERNAL_BANK_ACCOUNT_CREATED: :"external_bank_account.created" EXTERNAL_BANK_ACCOUNT_UPDATED: :"external_bank_account.updated" EXTERNAL_PAYMENT_CREATED: :"external_payment.created" @@ -109,6 +120,8 @@ module Lithic FINANCIAL_ACCOUNT_CREATED: :"financial_account.created" FINANCIAL_ACCOUNT_UPDATED: :"financial_account.updated" FUNDING_EVENT_CREATED: :"funding_event.created" + INTERNAL_TRANSACTION_CREATED: :"internal_transaction.created" + INTERNAL_TRANSACTION_UPDATED: :"internal_transaction.updated" LOAN_TAPE_CREATED: :"loan_tape.created" LOAN_TAPE_UPDATED: :"loan_tape.updated" MANAGEMENT_OPERATION_CREATED: :"management_operation.created" @@ -117,10 +130,9 @@ module Lithic NETWORK_TOTAL_UPDATED: :"network_total.updated" PAYMENT_TRANSACTION_CREATED: :"payment_transaction.created" PAYMENT_TRANSACTION_UPDATED: :"payment_transaction.updated" - INTERNAL_TRANSACTION_CREATED: :"internal_transaction.created" - INTERNAL_TRANSACTION_UPDATED: :"internal_transaction.updated" SETTLEMENT_REPORT_UPDATED: :"settlement_report.updated" STATEMENTS_CREATED: :"statements.created" + THREE_DS_AUTHENTICATION_CHALLENGE: :"three_ds_authentication.challenge" THREE_DS_AUTHENTICATION_CREATED: :"three_ds_authentication.created" THREE_DS_AUTHENTICATION_UPDATED: :"three_ds_authentication.updated" TOKENIZATION_APPROVAL_REQUEST: :"tokenization.approval_request" diff --git a/sig/lithic/models/event_list_params.rbs b/sig/lithic/models/event_list_params.rbs index 8e566d6f..30a319db 100644 --- a/sig/lithic/models/event_list_params.rbs +++ b/sig/lithic/models/event_list_params.rbs @@ -69,26 +69,31 @@ module Lithic } type event_type = - :"account_holder.created" + :"account_holder_document.updated" + | :"account_holder.created" | :"account_holder.updated" | :"account_holder.verification" + | :"auth_rules.backtest_report.created" | :"balance.updated" | :"book_transfer_transaction.created" + | :"book_transfer_transaction.updated" + | :"card_transaction.enhanced_data.created" + | :"card_transaction.enhanced_data.updated" + | :"card_transaction.updated" + | :"card.converted" | :"card.created" - | :"card.renewed" | :"card.reissued" - | :"card.converted" + | :"card.renewed" | :"card.shipped" - | :"card_transaction.updated" | :"digital_wallet.tokenization_approval_request" | :"digital_wallet.tokenization_result" | :"digital_wallet.tokenization_two_factor_authentication_code" | :"digital_wallet.tokenization_two_factor_authentication_code_sent" | :"digital_wallet.tokenization_updated" - | :"dispute.updated" | :"dispute_evidence.upload_failed" | :"dispute_transaction.created" | :"dispute_transaction.updated" + | :"dispute.updated" | :"external_bank_account.created" | :"external_bank_account.updated" | :"external_payment.created" @@ -96,6 +101,8 @@ module Lithic | :"financial_account.created" | :"financial_account.updated" | :"funding_event.created" + | :"internal_transaction.created" + | :"internal_transaction.updated" | :"loan_tape.created" | :"loan_tape.updated" | :"management_operation.created" @@ -104,10 +111,9 @@ module Lithic | :"network_total.updated" | :"payment_transaction.created" | :"payment_transaction.updated" - | :"internal_transaction.created" - | :"internal_transaction.updated" | :"settlement_report.updated" | :"statements.created" + | :"three_ds_authentication.challenge" | :"three_ds_authentication.created" | :"three_ds_authentication.updated" | :"tokenization.approval_request" @@ -119,26 +125,31 @@ module Lithic module EventType extend Lithic::Internal::Type::Enum + ACCOUNT_HOLDER_DOCUMENT_UPDATED: :"account_holder_document.updated" ACCOUNT_HOLDER_CREATED: :"account_holder.created" ACCOUNT_HOLDER_UPDATED: :"account_holder.updated" ACCOUNT_HOLDER_VERIFICATION: :"account_holder.verification" + AUTH_RULES_BACKTEST_REPORT_CREATED: :"auth_rules.backtest_report.created" BALANCE_UPDATED: :"balance.updated" BOOK_TRANSFER_TRANSACTION_CREATED: :"book_transfer_transaction.created" + BOOK_TRANSFER_TRANSACTION_UPDATED: :"book_transfer_transaction.updated" + CARD_TRANSACTION_ENHANCED_DATA_CREATED: :"card_transaction.enhanced_data.created" + CARD_TRANSACTION_ENHANCED_DATA_UPDATED: :"card_transaction.enhanced_data.updated" + CARD_TRANSACTION_UPDATED: :"card_transaction.updated" + CARD_CONVERTED: :"card.converted" CARD_CREATED: :"card.created" - CARD_RENEWED: :"card.renewed" CARD_REISSUED: :"card.reissued" - CARD_CONVERTED: :"card.converted" + CARD_RENEWED: :"card.renewed" CARD_SHIPPED: :"card.shipped" - CARD_TRANSACTION_UPDATED: :"card_transaction.updated" DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request" DIGITAL_WALLET_TOKENIZATION_RESULT: :"digital_wallet.tokenization_result" DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE: :"digital_wallet.tokenization_two_factor_authentication_code" DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT: :"digital_wallet.tokenization_two_factor_authentication_code_sent" DIGITAL_WALLET_TOKENIZATION_UPDATED: :"digital_wallet.tokenization_updated" - DISPUTE_UPDATED: :"dispute.updated" DISPUTE_EVIDENCE_UPLOAD_FAILED: :"dispute_evidence.upload_failed" DISPUTE_TRANSACTION_CREATED: :"dispute_transaction.created" DISPUTE_TRANSACTION_UPDATED: :"dispute_transaction.updated" + DISPUTE_UPDATED: :"dispute.updated" EXTERNAL_BANK_ACCOUNT_CREATED: :"external_bank_account.created" EXTERNAL_BANK_ACCOUNT_UPDATED: :"external_bank_account.updated" EXTERNAL_PAYMENT_CREATED: :"external_payment.created" @@ -146,6 +157,8 @@ module Lithic FINANCIAL_ACCOUNT_CREATED: :"financial_account.created" FINANCIAL_ACCOUNT_UPDATED: :"financial_account.updated" FUNDING_EVENT_CREATED: :"funding_event.created" + INTERNAL_TRANSACTION_CREATED: :"internal_transaction.created" + INTERNAL_TRANSACTION_UPDATED: :"internal_transaction.updated" LOAN_TAPE_CREATED: :"loan_tape.created" LOAN_TAPE_UPDATED: :"loan_tape.updated" MANAGEMENT_OPERATION_CREATED: :"management_operation.created" @@ -154,10 +167,9 @@ module Lithic NETWORK_TOTAL_UPDATED: :"network_total.updated" PAYMENT_TRANSACTION_CREATED: :"payment_transaction.created" PAYMENT_TRANSACTION_UPDATED: :"payment_transaction.updated" - INTERNAL_TRANSACTION_CREATED: :"internal_transaction.created" - INTERNAL_TRANSACTION_UPDATED: :"internal_transaction.updated" SETTLEMENT_REPORT_UPDATED: :"settlement_report.updated" STATEMENTS_CREATED: :"statements.created" + THREE_DS_AUTHENTICATION_CHALLENGE: :"three_ds_authentication.challenge" THREE_DS_AUTHENTICATION_CREATED: :"three_ds_authentication.created" THREE_DS_AUTHENTICATION_UPDATED: :"three_ds_authentication.updated" TOKENIZATION_APPROVAL_REQUEST: :"tokenization.approval_request" diff --git a/sig/lithic/models/event_subscription.rbs b/sig/lithic/models/event_subscription.rbs index 71089a52..c9299784 100644 --- a/sig/lithic/models/event_subscription.rbs +++ b/sig/lithic/models/event_subscription.rbs @@ -37,26 +37,31 @@ module Lithic } type event_type = - :"account_holder.created" + :"account_holder_document.updated" + | :"account_holder.created" | :"account_holder.updated" | :"account_holder.verification" + | :"auth_rules.backtest_report.created" | :"balance.updated" | :"book_transfer_transaction.created" + | :"book_transfer_transaction.updated" + | :"card_transaction.enhanced_data.created" + | :"card_transaction.enhanced_data.updated" + | :"card_transaction.updated" + | :"card.converted" | :"card.created" - | :"card.renewed" | :"card.reissued" - | :"card.converted" + | :"card.renewed" | :"card.shipped" - | :"card_transaction.updated" | :"digital_wallet.tokenization_approval_request" | :"digital_wallet.tokenization_result" | :"digital_wallet.tokenization_two_factor_authentication_code" | :"digital_wallet.tokenization_two_factor_authentication_code_sent" | :"digital_wallet.tokenization_updated" - | :"dispute.updated" | :"dispute_evidence.upload_failed" | :"dispute_transaction.created" | :"dispute_transaction.updated" + | :"dispute.updated" | :"external_bank_account.created" | :"external_bank_account.updated" | :"external_payment.created" @@ -64,6 +69,8 @@ module Lithic | :"financial_account.created" | :"financial_account.updated" | :"funding_event.created" + | :"internal_transaction.created" + | :"internal_transaction.updated" | :"loan_tape.created" | :"loan_tape.updated" | :"management_operation.created" @@ -72,10 +79,9 @@ module Lithic | :"network_total.updated" | :"payment_transaction.created" | :"payment_transaction.updated" - | :"internal_transaction.created" - | :"internal_transaction.updated" | :"settlement_report.updated" | :"statements.created" + | :"three_ds_authentication.challenge" | :"three_ds_authentication.created" | :"three_ds_authentication.updated" | :"tokenization.approval_request" @@ -87,26 +93,31 @@ module Lithic module EventType extend Lithic::Internal::Type::Enum + ACCOUNT_HOLDER_DOCUMENT_UPDATED: :"account_holder_document.updated" ACCOUNT_HOLDER_CREATED: :"account_holder.created" ACCOUNT_HOLDER_UPDATED: :"account_holder.updated" ACCOUNT_HOLDER_VERIFICATION: :"account_holder.verification" + AUTH_RULES_BACKTEST_REPORT_CREATED: :"auth_rules.backtest_report.created" BALANCE_UPDATED: :"balance.updated" BOOK_TRANSFER_TRANSACTION_CREATED: :"book_transfer_transaction.created" + BOOK_TRANSFER_TRANSACTION_UPDATED: :"book_transfer_transaction.updated" + CARD_TRANSACTION_ENHANCED_DATA_CREATED: :"card_transaction.enhanced_data.created" + CARD_TRANSACTION_ENHANCED_DATA_UPDATED: :"card_transaction.enhanced_data.updated" + CARD_TRANSACTION_UPDATED: :"card_transaction.updated" + CARD_CONVERTED: :"card.converted" CARD_CREATED: :"card.created" - CARD_RENEWED: :"card.renewed" CARD_REISSUED: :"card.reissued" - CARD_CONVERTED: :"card.converted" + CARD_RENEWED: :"card.renewed" CARD_SHIPPED: :"card.shipped" - CARD_TRANSACTION_UPDATED: :"card_transaction.updated" DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request" DIGITAL_WALLET_TOKENIZATION_RESULT: :"digital_wallet.tokenization_result" DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE: :"digital_wallet.tokenization_two_factor_authentication_code" DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT: :"digital_wallet.tokenization_two_factor_authentication_code_sent" DIGITAL_WALLET_TOKENIZATION_UPDATED: :"digital_wallet.tokenization_updated" - DISPUTE_UPDATED: :"dispute.updated" DISPUTE_EVIDENCE_UPLOAD_FAILED: :"dispute_evidence.upload_failed" DISPUTE_TRANSACTION_CREATED: :"dispute_transaction.created" DISPUTE_TRANSACTION_UPDATED: :"dispute_transaction.updated" + DISPUTE_UPDATED: :"dispute.updated" EXTERNAL_BANK_ACCOUNT_CREATED: :"external_bank_account.created" EXTERNAL_BANK_ACCOUNT_UPDATED: :"external_bank_account.updated" EXTERNAL_PAYMENT_CREATED: :"external_payment.created" @@ -114,6 +125,8 @@ module Lithic FINANCIAL_ACCOUNT_CREATED: :"financial_account.created" FINANCIAL_ACCOUNT_UPDATED: :"financial_account.updated" FUNDING_EVENT_CREATED: :"funding_event.created" + INTERNAL_TRANSACTION_CREATED: :"internal_transaction.created" + INTERNAL_TRANSACTION_UPDATED: :"internal_transaction.updated" LOAN_TAPE_CREATED: :"loan_tape.created" LOAN_TAPE_UPDATED: :"loan_tape.updated" MANAGEMENT_OPERATION_CREATED: :"management_operation.created" @@ -122,10 +135,9 @@ module Lithic NETWORK_TOTAL_UPDATED: :"network_total.updated" PAYMENT_TRANSACTION_CREATED: :"payment_transaction.created" PAYMENT_TRANSACTION_UPDATED: :"payment_transaction.updated" - INTERNAL_TRANSACTION_CREATED: :"internal_transaction.created" - INTERNAL_TRANSACTION_UPDATED: :"internal_transaction.updated" SETTLEMENT_REPORT_UPDATED: :"settlement_report.updated" STATEMENTS_CREATED: :"statements.created" + THREE_DS_AUTHENTICATION_CHALLENGE: :"three_ds_authentication.challenge" THREE_DS_AUTHENTICATION_CREATED: :"three_ds_authentication.created" THREE_DS_AUTHENTICATION_UPDATED: :"three_ds_authentication.updated" TOKENIZATION_APPROVAL_REQUEST: :"tokenization.approval_request" diff --git a/sig/lithic/models/events/subscription_create_params.rbs b/sig/lithic/models/events/subscription_create_params.rbs index 7ff8d376..72dab4ec 100644 --- a/sig/lithic/models/events/subscription_create_params.rbs +++ b/sig/lithic/models/events/subscription_create_params.rbs @@ -47,26 +47,31 @@ module Lithic } type event_type = - :"account_holder.created" + :"account_holder_document.updated" + | :"account_holder.created" | :"account_holder.updated" | :"account_holder.verification" + | :"auth_rules.backtest_report.created" | :"balance.updated" | :"book_transfer_transaction.created" + | :"book_transfer_transaction.updated" + | :"card_transaction.enhanced_data.created" + | :"card_transaction.enhanced_data.updated" + | :"card_transaction.updated" + | :"card.converted" | :"card.created" - | :"card.renewed" | :"card.reissued" - | :"card.converted" + | :"card.renewed" | :"card.shipped" - | :"card_transaction.updated" | :"digital_wallet.tokenization_approval_request" | :"digital_wallet.tokenization_result" | :"digital_wallet.tokenization_two_factor_authentication_code" | :"digital_wallet.tokenization_two_factor_authentication_code_sent" | :"digital_wallet.tokenization_updated" - | :"dispute.updated" | :"dispute_evidence.upload_failed" | :"dispute_transaction.created" | :"dispute_transaction.updated" + | :"dispute.updated" | :"external_bank_account.created" | :"external_bank_account.updated" | :"external_payment.created" @@ -74,6 +79,8 @@ module Lithic | :"financial_account.created" | :"financial_account.updated" | :"funding_event.created" + | :"internal_transaction.created" + | :"internal_transaction.updated" | :"loan_tape.created" | :"loan_tape.updated" | :"management_operation.created" @@ -82,10 +89,9 @@ module Lithic | :"network_total.updated" | :"payment_transaction.created" | :"payment_transaction.updated" - | :"internal_transaction.created" - | :"internal_transaction.updated" | :"settlement_report.updated" | :"statements.created" + | :"three_ds_authentication.challenge" | :"three_ds_authentication.created" | :"three_ds_authentication.updated" | :"tokenization.approval_request" @@ -97,26 +103,31 @@ module Lithic module EventType extend Lithic::Internal::Type::Enum + ACCOUNT_HOLDER_DOCUMENT_UPDATED: :"account_holder_document.updated" ACCOUNT_HOLDER_CREATED: :"account_holder.created" ACCOUNT_HOLDER_UPDATED: :"account_holder.updated" ACCOUNT_HOLDER_VERIFICATION: :"account_holder.verification" + AUTH_RULES_BACKTEST_REPORT_CREATED: :"auth_rules.backtest_report.created" BALANCE_UPDATED: :"balance.updated" BOOK_TRANSFER_TRANSACTION_CREATED: :"book_transfer_transaction.created" + BOOK_TRANSFER_TRANSACTION_UPDATED: :"book_transfer_transaction.updated" + CARD_TRANSACTION_ENHANCED_DATA_CREATED: :"card_transaction.enhanced_data.created" + CARD_TRANSACTION_ENHANCED_DATA_UPDATED: :"card_transaction.enhanced_data.updated" + CARD_TRANSACTION_UPDATED: :"card_transaction.updated" + CARD_CONVERTED: :"card.converted" CARD_CREATED: :"card.created" - CARD_RENEWED: :"card.renewed" CARD_REISSUED: :"card.reissued" - CARD_CONVERTED: :"card.converted" + CARD_RENEWED: :"card.renewed" CARD_SHIPPED: :"card.shipped" - CARD_TRANSACTION_UPDATED: :"card_transaction.updated" DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request" DIGITAL_WALLET_TOKENIZATION_RESULT: :"digital_wallet.tokenization_result" DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE: :"digital_wallet.tokenization_two_factor_authentication_code" DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT: :"digital_wallet.tokenization_two_factor_authentication_code_sent" DIGITAL_WALLET_TOKENIZATION_UPDATED: :"digital_wallet.tokenization_updated" - DISPUTE_UPDATED: :"dispute.updated" DISPUTE_EVIDENCE_UPLOAD_FAILED: :"dispute_evidence.upload_failed" DISPUTE_TRANSACTION_CREATED: :"dispute_transaction.created" DISPUTE_TRANSACTION_UPDATED: :"dispute_transaction.updated" + DISPUTE_UPDATED: :"dispute.updated" EXTERNAL_BANK_ACCOUNT_CREATED: :"external_bank_account.created" EXTERNAL_BANK_ACCOUNT_UPDATED: :"external_bank_account.updated" EXTERNAL_PAYMENT_CREATED: :"external_payment.created" @@ -124,6 +135,8 @@ module Lithic FINANCIAL_ACCOUNT_CREATED: :"financial_account.created" FINANCIAL_ACCOUNT_UPDATED: :"financial_account.updated" FUNDING_EVENT_CREATED: :"funding_event.created" + INTERNAL_TRANSACTION_CREATED: :"internal_transaction.created" + INTERNAL_TRANSACTION_UPDATED: :"internal_transaction.updated" LOAN_TAPE_CREATED: :"loan_tape.created" LOAN_TAPE_UPDATED: :"loan_tape.updated" MANAGEMENT_OPERATION_CREATED: :"management_operation.created" @@ -132,10 +145,9 @@ module Lithic NETWORK_TOTAL_UPDATED: :"network_total.updated" PAYMENT_TRANSACTION_CREATED: :"payment_transaction.created" PAYMENT_TRANSACTION_UPDATED: :"payment_transaction.updated" - INTERNAL_TRANSACTION_CREATED: :"internal_transaction.created" - INTERNAL_TRANSACTION_UPDATED: :"internal_transaction.updated" SETTLEMENT_REPORT_UPDATED: :"settlement_report.updated" STATEMENTS_CREATED: :"statements.created" + THREE_DS_AUTHENTICATION_CHALLENGE: :"three_ds_authentication.challenge" THREE_DS_AUTHENTICATION_CREATED: :"three_ds_authentication.created" THREE_DS_AUTHENTICATION_UPDATED: :"three_ds_authentication.updated" TOKENIZATION_APPROVAL_REQUEST: :"tokenization.approval_request" diff --git a/sig/lithic/models/events/subscription_send_simulated_example_params.rbs b/sig/lithic/models/events/subscription_send_simulated_example_params.rbs index 7cc9b59a..f09cd4e0 100644 --- a/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +++ b/sig/lithic/models/events/subscription_send_simulated_example_params.rbs @@ -28,26 +28,31 @@ module Lithic } type event_type = - :"account_holder.created" + :"account_holder_document.updated" + | :"account_holder.created" | :"account_holder.updated" | :"account_holder.verification" + | :"auth_rules.backtest_report.created" | :"balance.updated" | :"book_transfer_transaction.created" + | :"book_transfer_transaction.updated" + | :"card_transaction.enhanced_data.created" + | :"card_transaction.enhanced_data.updated" + | :"card_transaction.updated" + | :"card.converted" | :"card.created" - | :"card.renewed" | :"card.reissued" - | :"card.converted" + | :"card.renewed" | :"card.shipped" - | :"card_transaction.updated" | :"digital_wallet.tokenization_approval_request" | :"digital_wallet.tokenization_result" | :"digital_wallet.tokenization_two_factor_authentication_code" | :"digital_wallet.tokenization_two_factor_authentication_code_sent" | :"digital_wallet.tokenization_updated" - | :"dispute.updated" | :"dispute_evidence.upload_failed" | :"dispute_transaction.created" | :"dispute_transaction.updated" + | :"dispute.updated" | :"external_bank_account.created" | :"external_bank_account.updated" | :"external_payment.created" @@ -55,6 +60,8 @@ module Lithic | :"financial_account.created" | :"financial_account.updated" | :"funding_event.created" + | :"internal_transaction.created" + | :"internal_transaction.updated" | :"loan_tape.created" | :"loan_tape.updated" | :"management_operation.created" @@ -63,10 +70,9 @@ module Lithic | :"network_total.updated" | :"payment_transaction.created" | :"payment_transaction.updated" - | :"internal_transaction.created" - | :"internal_transaction.updated" | :"settlement_report.updated" | :"statements.created" + | :"three_ds_authentication.challenge" | :"three_ds_authentication.created" | :"three_ds_authentication.updated" | :"tokenization.approval_request" @@ -78,26 +84,31 @@ module Lithic module EventType extend Lithic::Internal::Type::Enum + ACCOUNT_HOLDER_DOCUMENT_UPDATED: :"account_holder_document.updated" ACCOUNT_HOLDER_CREATED: :"account_holder.created" ACCOUNT_HOLDER_UPDATED: :"account_holder.updated" ACCOUNT_HOLDER_VERIFICATION: :"account_holder.verification" + AUTH_RULES_BACKTEST_REPORT_CREATED: :"auth_rules.backtest_report.created" BALANCE_UPDATED: :"balance.updated" BOOK_TRANSFER_TRANSACTION_CREATED: :"book_transfer_transaction.created" + BOOK_TRANSFER_TRANSACTION_UPDATED: :"book_transfer_transaction.updated" + CARD_TRANSACTION_ENHANCED_DATA_CREATED: :"card_transaction.enhanced_data.created" + CARD_TRANSACTION_ENHANCED_DATA_UPDATED: :"card_transaction.enhanced_data.updated" + CARD_TRANSACTION_UPDATED: :"card_transaction.updated" + CARD_CONVERTED: :"card.converted" CARD_CREATED: :"card.created" - CARD_RENEWED: :"card.renewed" CARD_REISSUED: :"card.reissued" - CARD_CONVERTED: :"card.converted" + CARD_RENEWED: :"card.renewed" CARD_SHIPPED: :"card.shipped" - CARD_TRANSACTION_UPDATED: :"card_transaction.updated" DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request" DIGITAL_WALLET_TOKENIZATION_RESULT: :"digital_wallet.tokenization_result" DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE: :"digital_wallet.tokenization_two_factor_authentication_code" DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT: :"digital_wallet.tokenization_two_factor_authentication_code_sent" DIGITAL_WALLET_TOKENIZATION_UPDATED: :"digital_wallet.tokenization_updated" - DISPUTE_UPDATED: :"dispute.updated" DISPUTE_EVIDENCE_UPLOAD_FAILED: :"dispute_evidence.upload_failed" DISPUTE_TRANSACTION_CREATED: :"dispute_transaction.created" DISPUTE_TRANSACTION_UPDATED: :"dispute_transaction.updated" + DISPUTE_UPDATED: :"dispute.updated" EXTERNAL_BANK_ACCOUNT_CREATED: :"external_bank_account.created" EXTERNAL_BANK_ACCOUNT_UPDATED: :"external_bank_account.updated" EXTERNAL_PAYMENT_CREATED: :"external_payment.created" @@ -105,6 +116,8 @@ module Lithic FINANCIAL_ACCOUNT_CREATED: :"financial_account.created" FINANCIAL_ACCOUNT_UPDATED: :"financial_account.updated" FUNDING_EVENT_CREATED: :"funding_event.created" + INTERNAL_TRANSACTION_CREATED: :"internal_transaction.created" + INTERNAL_TRANSACTION_UPDATED: :"internal_transaction.updated" LOAN_TAPE_CREATED: :"loan_tape.created" LOAN_TAPE_UPDATED: :"loan_tape.updated" MANAGEMENT_OPERATION_CREATED: :"management_operation.created" @@ -113,10 +126,9 @@ module Lithic NETWORK_TOTAL_UPDATED: :"network_total.updated" PAYMENT_TRANSACTION_CREATED: :"payment_transaction.created" PAYMENT_TRANSACTION_UPDATED: :"payment_transaction.updated" - INTERNAL_TRANSACTION_CREATED: :"internal_transaction.created" - INTERNAL_TRANSACTION_UPDATED: :"internal_transaction.updated" SETTLEMENT_REPORT_UPDATED: :"settlement_report.updated" STATEMENTS_CREATED: :"statements.created" + THREE_DS_AUTHENTICATION_CHALLENGE: :"three_ds_authentication.challenge" THREE_DS_AUTHENTICATION_CREATED: :"three_ds_authentication.created" THREE_DS_AUTHENTICATION_UPDATED: :"three_ds_authentication.updated" TOKENIZATION_APPROVAL_REQUEST: :"tokenization.approval_request" diff --git a/sig/lithic/models/events/subscription_update_params.rbs b/sig/lithic/models/events/subscription_update_params.rbs index 23d458d8..a80273bf 100644 --- a/sig/lithic/models/events/subscription_update_params.rbs +++ b/sig/lithic/models/events/subscription_update_params.rbs @@ -47,26 +47,31 @@ module Lithic } type event_type = - :"account_holder.created" + :"account_holder_document.updated" + | :"account_holder.created" | :"account_holder.updated" | :"account_holder.verification" + | :"auth_rules.backtest_report.created" | :"balance.updated" | :"book_transfer_transaction.created" + | :"book_transfer_transaction.updated" + | :"card_transaction.enhanced_data.created" + | :"card_transaction.enhanced_data.updated" + | :"card_transaction.updated" + | :"card.converted" | :"card.created" - | :"card.renewed" | :"card.reissued" - | :"card.converted" + | :"card.renewed" | :"card.shipped" - | :"card_transaction.updated" | :"digital_wallet.tokenization_approval_request" | :"digital_wallet.tokenization_result" | :"digital_wallet.tokenization_two_factor_authentication_code" | :"digital_wallet.tokenization_two_factor_authentication_code_sent" | :"digital_wallet.tokenization_updated" - | :"dispute.updated" | :"dispute_evidence.upload_failed" | :"dispute_transaction.created" | :"dispute_transaction.updated" + | :"dispute.updated" | :"external_bank_account.created" | :"external_bank_account.updated" | :"external_payment.created" @@ -74,6 +79,8 @@ module Lithic | :"financial_account.created" | :"financial_account.updated" | :"funding_event.created" + | :"internal_transaction.created" + | :"internal_transaction.updated" | :"loan_tape.created" | :"loan_tape.updated" | :"management_operation.created" @@ -82,10 +89,9 @@ module Lithic | :"network_total.updated" | :"payment_transaction.created" | :"payment_transaction.updated" - | :"internal_transaction.created" - | :"internal_transaction.updated" | :"settlement_report.updated" | :"statements.created" + | :"three_ds_authentication.challenge" | :"three_ds_authentication.created" | :"three_ds_authentication.updated" | :"tokenization.approval_request" @@ -97,26 +103,31 @@ module Lithic module EventType extend Lithic::Internal::Type::Enum + ACCOUNT_HOLDER_DOCUMENT_UPDATED: :"account_holder_document.updated" ACCOUNT_HOLDER_CREATED: :"account_holder.created" ACCOUNT_HOLDER_UPDATED: :"account_holder.updated" ACCOUNT_HOLDER_VERIFICATION: :"account_holder.verification" + AUTH_RULES_BACKTEST_REPORT_CREATED: :"auth_rules.backtest_report.created" BALANCE_UPDATED: :"balance.updated" BOOK_TRANSFER_TRANSACTION_CREATED: :"book_transfer_transaction.created" + BOOK_TRANSFER_TRANSACTION_UPDATED: :"book_transfer_transaction.updated" + CARD_TRANSACTION_ENHANCED_DATA_CREATED: :"card_transaction.enhanced_data.created" + CARD_TRANSACTION_ENHANCED_DATA_UPDATED: :"card_transaction.enhanced_data.updated" + CARD_TRANSACTION_UPDATED: :"card_transaction.updated" + CARD_CONVERTED: :"card.converted" CARD_CREATED: :"card.created" - CARD_RENEWED: :"card.renewed" CARD_REISSUED: :"card.reissued" - CARD_CONVERTED: :"card.converted" + CARD_RENEWED: :"card.renewed" CARD_SHIPPED: :"card.shipped" - CARD_TRANSACTION_UPDATED: :"card_transaction.updated" DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request" DIGITAL_WALLET_TOKENIZATION_RESULT: :"digital_wallet.tokenization_result" DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE: :"digital_wallet.tokenization_two_factor_authentication_code" DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT: :"digital_wallet.tokenization_two_factor_authentication_code_sent" DIGITAL_WALLET_TOKENIZATION_UPDATED: :"digital_wallet.tokenization_updated" - DISPUTE_UPDATED: :"dispute.updated" DISPUTE_EVIDENCE_UPLOAD_FAILED: :"dispute_evidence.upload_failed" DISPUTE_TRANSACTION_CREATED: :"dispute_transaction.created" DISPUTE_TRANSACTION_UPDATED: :"dispute_transaction.updated" + DISPUTE_UPDATED: :"dispute.updated" EXTERNAL_BANK_ACCOUNT_CREATED: :"external_bank_account.created" EXTERNAL_BANK_ACCOUNT_UPDATED: :"external_bank_account.updated" EXTERNAL_PAYMENT_CREATED: :"external_payment.created" @@ -124,6 +135,8 @@ module Lithic FINANCIAL_ACCOUNT_CREATED: :"financial_account.created" FINANCIAL_ACCOUNT_UPDATED: :"financial_account.updated" FUNDING_EVENT_CREATED: :"funding_event.created" + INTERNAL_TRANSACTION_CREATED: :"internal_transaction.created" + INTERNAL_TRANSACTION_UPDATED: :"internal_transaction.updated" LOAN_TAPE_CREATED: :"loan_tape.created" LOAN_TAPE_UPDATED: :"loan_tape.updated" MANAGEMENT_OPERATION_CREATED: :"management_operation.created" @@ -132,10 +145,9 @@ module Lithic NETWORK_TOTAL_UPDATED: :"network_total.updated" PAYMENT_TRANSACTION_CREATED: :"payment_transaction.created" PAYMENT_TRANSACTION_UPDATED: :"payment_transaction.updated" - INTERNAL_TRANSACTION_CREATED: :"internal_transaction.created" - INTERNAL_TRANSACTION_UPDATED: :"internal_transaction.updated" SETTLEMENT_REPORT_UPDATED: :"settlement_report.updated" STATEMENTS_CREATED: :"statements.created" + THREE_DS_AUTHENTICATION_CHALLENGE: :"three_ds_authentication.challenge" THREE_DS_AUTHENTICATION_CREATED: :"three_ds_authentication.created" THREE_DS_AUTHENTICATION_UPDATED: :"three_ds_authentication.updated" TOKENIZATION_APPROVAL_REQUEST: :"tokenization.approval_request" diff --git a/sig/lithic/models/financial_account.rbs b/sig/lithic/models/financial_account.rbs index 8d50516b..f65ab4f7 100644 --- a/sig/lithic/models/financial_account.rbs +++ b/sig/lithic/models/financial_account.rbs @@ -77,10 +77,7 @@ module Lithic credit_limit: Integer?, credit_product_token: String?, external_bank_account_token: String?, - tier: String?, - charged_off_reason: Lithic::Models::FinancialAccount::CreditConfiguration::charged_off_reason?, - financial_account_state: Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state?, - is_spend_blocked: bool + tier: String? } class CreditConfiguration < Lithic::Internal::Type::BaseModel @@ -94,23 +91,12 @@ module Lithic attr_accessor tier: String? - attr_accessor charged_off_reason: Lithic::Models::FinancialAccount::CreditConfiguration::charged_off_reason? - - attr_accessor financial_account_state: Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state? - - attr_reader is_spend_blocked: bool? - - def is_spend_blocked=: (bool) -> bool - def initialize: ( auto_collection_configuration: Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration, credit_limit: Integer?, credit_product_token: String?, external_bank_account_token: String?, - tier: String?, - ?charged_off_reason: Lithic::Models::FinancialAccount::CreditConfiguration::charged_off_reason?, - ?financial_account_state: Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state?, - ?is_spend_blocked: bool + tier: String? ) -> void def to_hash: -> { @@ -118,10 +104,7 @@ module Lithic credit_limit: Integer?, credit_product_token: String?, external_bank_account_token: String?, - tier: String?, - charged_off_reason: Lithic::Models::FinancialAccount::CreditConfiguration::charged_off_reason?, - financial_account_state: Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state?, - is_spend_blocked: bool + tier: String? } type auto_collection_configuration = { auto_collection_enabled: bool } @@ -133,31 +116,6 @@ module Lithic def to_hash: -> { auto_collection_enabled: bool } end - - type charged_off_reason = :DELINQUENT | :FRAUD - - module ChargedOffReason - extend Lithic::Internal::Type::Enum - - DELINQUENT: :DELINQUENT - FRAUD: :FRAUD - - def self?.values: -> ::Array[Lithic::Models::FinancialAccount::CreditConfiguration::charged_off_reason] - end - - type financial_account_state = - :PENDING | :CURRENT | :DELINQUENT | :CHARGED_OFF - - module FinancialAccountState - extend Lithic::Internal::Type::Enum - - PENDING: :PENDING - CURRENT: :CURRENT - DELINQUENT: :DELINQUENT - CHARGED_OFF: :CHARGED_OFF - - def self?.values: -> ::Array[Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state] - end end type status = :OPEN | :CLOSED | :SUSPENDED | :PENDING diff --git a/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs b/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs index c52344f1..d5c6572f 100644 --- a/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +++ b/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs @@ -10,10 +10,7 @@ module Lithic credit_limit: Integer?, credit_product_token: String?, external_bank_account_token: String?, - tier: String?, - charged_off_reason: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason?, - financial_account_state: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::financial_account_state, - is_spend_blocked: bool + tier: String? } class FinancialAccountCreditConfig < Lithic::Internal::Type::BaseModel @@ -29,28 +26,13 @@ module Lithic attr_accessor tier: String? - attr_accessor charged_off_reason: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason? - - attr_reader financial_account_state: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::financial_account_state? - - def financial_account_state=: ( - Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::financial_account_state - ) -> Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::financial_account_state - - attr_reader is_spend_blocked: bool? - - def is_spend_blocked=: (bool) -> bool - def initialize: ( account_token: String, auto_collection_configuration: Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration, credit_limit: Integer?, credit_product_token: String?, external_bank_account_token: String?, - tier: String?, - ?charged_off_reason: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason?, - ?financial_account_state: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::financial_account_state, - ?is_spend_blocked: bool + tier: String? ) -> void def to_hash: -> { @@ -59,10 +41,7 @@ module Lithic credit_limit: Integer?, credit_product_token: String?, external_bank_account_token: String?, - tier: String?, - charged_off_reason: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason?, - financial_account_state: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::financial_account_state, - is_spend_blocked: bool + tier: String? } type auto_collection_configuration = { auto_collection_enabled: bool } @@ -74,31 +53,6 @@ module Lithic def to_hash: -> { auto_collection_enabled: bool } end - - type charged_off_reason = :DELINQUENT | :FRAUD - - module ChargedOffReason - extend Lithic::Internal::Type::Enum - - DELINQUENT: :DELINQUENT - FRAUD: :FRAUD - - def self?.values: -> ::Array[Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason] - end - - type financial_account_state = - :PENDING | :CURRENT | :DELINQUENT | :CHARGED_OFF - - module FinancialAccountState - extend Lithic::Internal::Type::Enum - - PENDING: :PENDING - CURRENT: :CURRENT - DELINQUENT: :DELINQUENT - CHARGED_OFF: :CHARGED_OFF - - def self?.values: -> ::Array[Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::financial_account_state] - end end end end diff --git a/sig/lithic/models/financial_accounts/loan_tape.rbs b/sig/lithic/models/financial_accounts/loan_tape.rbs index 6390e00d..e13f209f 100644 --- a/sig/lithic/models/financial_accounts/loan_tape.rbs +++ b/sig/lithic/models/financial_accounts/loan_tape.rbs @@ -370,10 +370,14 @@ module Lithic balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + credit_details: top, + debit_details: top, + payment_details: top } class DayTotals < Lithic::Internal::Type::BaseModel @@ -383,6 +387,8 @@ module Lithic attr_accessor credits: Integer + attr_accessor debits: Integer + attr_accessor fees: Integer attr_accessor interest: Integer @@ -391,24 +397,44 @@ module Lithic attr_accessor purchases: Integer + attr_reader credit_details: top? + + def credit_details=: (top) -> top + + attr_reader debit_details: top? + + def debit_details=: (top) -> top + + attr_reader payment_details: top? + + def payment_details=: (top) -> top + def initialize: ( balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + ?credit_details: top, + ?debit_details: top, + ?payment_details: top ) -> void def to_hash: -> { balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + credit_details: top, + debit_details: top, + payment_details: top } end @@ -591,10 +617,14 @@ module Lithic balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + credit_details: top, + debit_details: top, + payment_details: top } class PeriodTotals < Lithic::Internal::Type::BaseModel @@ -604,6 +634,8 @@ module Lithic attr_accessor credits: Integer + attr_accessor debits: Integer + attr_accessor fees: Integer attr_accessor interest: Integer @@ -612,24 +644,44 @@ module Lithic attr_accessor purchases: Integer + attr_reader credit_details: top? + + def credit_details=: (top) -> top + + attr_reader debit_details: top? + + def debit_details=: (top) -> top + + attr_reader payment_details: top? + + def payment_details=: (top) -> top + def initialize: ( balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + ?credit_details: top, + ?debit_details: top, + ?payment_details: top ) -> void def to_hash: -> { balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + credit_details: top, + debit_details: top, + payment_details: top } end @@ -651,10 +703,14 @@ module Lithic balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + credit_details: top, + debit_details: top, + payment_details: top } class YtdTotals < Lithic::Internal::Type::BaseModel @@ -664,6 +720,8 @@ module Lithic attr_accessor credits: Integer + attr_accessor debits: Integer + attr_accessor fees: Integer attr_accessor interest: Integer @@ -672,24 +730,44 @@ module Lithic attr_accessor purchases: Integer + attr_reader credit_details: top? + + def credit_details=: (top) -> top + + attr_reader debit_details: top? + + def debit_details=: (top) -> top + + attr_reader payment_details: top? + + def payment_details=: (top) -> top + def initialize: ( balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + ?credit_details: top, + ?debit_details: top, + ?payment_details: top ) -> void def to_hash: -> { balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + credit_details: top, + debit_details: top, + payment_details: top } end end diff --git a/sig/lithic/models/financial_accounts/statement.rbs b/sig/lithic/models/financial_accounts/statement.rbs index 3de878f5..e17c944e 100644 --- a/sig/lithic/models/financial_accounts/statement.rbs +++ b/sig/lithic/models/financial_accounts/statement.rbs @@ -256,10 +256,14 @@ module Lithic balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + credit_details: top, + debit_details: top, + payment_details: top } class PeriodTotals < Lithic::Internal::Type::BaseModel @@ -269,6 +273,8 @@ module Lithic attr_accessor credits: Integer + attr_accessor debits: Integer + attr_accessor fees: Integer attr_accessor interest: Integer @@ -277,24 +283,44 @@ module Lithic attr_accessor purchases: Integer + attr_reader credit_details: top? + + def credit_details=: (top) -> top + + attr_reader debit_details: top? + + def debit_details=: (top) -> top + + attr_reader payment_details: top? + + def payment_details=: (top) -> top + def initialize: ( balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + ?credit_details: top, + ?debit_details: top, + ?payment_details: top ) -> void def to_hash: -> { balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + credit_details: top, + debit_details: top, + payment_details: top } end @@ -315,10 +341,14 @@ module Lithic balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + credit_details: top, + debit_details: top, + payment_details: top } class YtdTotals < Lithic::Internal::Type::BaseModel @@ -328,6 +358,8 @@ module Lithic attr_accessor credits: Integer + attr_accessor debits: Integer + attr_accessor fees: Integer attr_accessor interest: Integer @@ -336,24 +368,44 @@ module Lithic attr_accessor purchases: Integer + attr_reader credit_details: top? + + def credit_details=: (top) -> top + + attr_reader debit_details: top? + + def debit_details=: (top) -> top + + attr_reader payment_details: top? + + def payment_details=: (top) -> top + def initialize: ( balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + ?credit_details: top, + ?debit_details: top, + ?payment_details: top ) -> void def to_hash: -> { balance_transfers: Integer, cash_advances: Integer, credits: Integer, + debits: Integer, fees: Integer, interest: Integer, payments: Integer, - purchases: Integer + purchases: Integer, + credit_details: top, + debit_details: top, + payment_details: top } end diff --git a/sig/lithic/models/payment.rbs b/sig/lithic/models/payment.rbs index 77989c71..a616b415 100644 --- a/sig/lithic/models/payment.rbs +++ b/sig/lithic/models/payment.rbs @@ -383,15 +383,17 @@ module Lithic type wire_method_attributes = { + wire_message_type: String?, wire_network: Lithic::Models::Payment::MethodAttributes::WireMethodAttributes::wire_network, creditor: Lithic::WirePartyDetails, debtor: Lithic::WirePartyDetails, message_id: String?, - remittance_information: String?, - wire_message_type: String + remittance_information: String? } class WireMethodAttributes < Lithic::Internal::Type::BaseModel + attr_accessor wire_message_type: String? + attr_accessor wire_network: Lithic::Models::Payment::MethodAttributes::WireMethodAttributes::wire_network attr_reader creditor: Lithic::WirePartyDetails? @@ -406,26 +408,22 @@ module Lithic attr_accessor remittance_information: String? - attr_reader wire_message_type: String? - - def wire_message_type=: (String) -> String - def initialize: ( + wire_message_type: String?, wire_network: Lithic::Models::Payment::MethodAttributes::WireMethodAttributes::wire_network, ?creditor: Lithic::WirePartyDetails, ?debtor: Lithic::WirePartyDetails, ?message_id: String?, - ?remittance_information: String?, - ?wire_message_type: String + ?remittance_information: String? ) -> void def to_hash: -> { + wire_message_type: String?, wire_network: Lithic::Models::Payment::MethodAttributes::WireMethodAttributes::wire_network, creditor: Lithic::WirePartyDetails, debtor: Lithic::WirePartyDetails, message_id: String?, - remittance_information: String?, - wire_message_type: String + remittance_information: String? } type wire_network = :FEDWIRE | :SWIFT diff --git a/sig/lithic/models/payment_simulate_action_params.rbs b/sig/lithic/models/payment_simulate_action_params.rbs index 479eb3df..7be4f41c 100644 --- a/sig/lithic/models/payment_simulate_action_params.rbs +++ b/sig/lithic/models/payment_simulate_action_params.rbs @@ -3,7 +3,9 @@ module Lithic type payment_simulate_action_params = { event_type: Lithic::Models::PaymentSimulateActionParams::event_type, + date_of_death: Date, decline_reason: Lithic::Models::PaymentSimulateActionParams::decline_reason, + return_addenda: String, return_reason_code: String } & Lithic::Internal::Type::request_parameters @@ -14,26 +16,38 @@ module Lithic attr_accessor event_type: Lithic::Models::PaymentSimulateActionParams::event_type + attr_reader date_of_death: Date? + + def date_of_death=: (Date) -> Date + attr_reader decline_reason: Lithic::Models::PaymentSimulateActionParams::decline_reason? def decline_reason=: ( Lithic::Models::PaymentSimulateActionParams::decline_reason ) -> Lithic::Models::PaymentSimulateActionParams::decline_reason + attr_reader return_addenda: String? + + def return_addenda=: (String) -> String + attr_reader return_reason_code: String? def return_reason_code=: (String) -> String def initialize: ( event_type: Lithic::Models::PaymentSimulateActionParams::event_type, + ?date_of_death: Date, ?decline_reason: Lithic::Models::PaymentSimulateActionParams::decline_reason, + ?return_addenda: String, ?return_reason_code: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { event_type: Lithic::Models::PaymentSimulateActionParams::event_type, + date_of_death: Date, decline_reason: Lithic::Models::PaymentSimulateActionParams::decline_reason, + return_addenda: String, return_reason_code: String, request_options: Lithic::RequestOptions } diff --git a/sig/lithic/models/tokenization.rbs b/sig/lithic/models/tokenization.rbs index b2bf6c7d..7fe74b17 100644 --- a/sig/lithic/models/tokenization.rbs +++ b/sig/lithic/models/tokenization.rbs @@ -6,14 +6,14 @@ module Lithic account_token: String, card_token: String, created_at: Time, - device_id: String?, dpan: String?, status: Lithic::Models::Tokenization::status, token_requestor_name: Lithic::Models::Tokenization::token_requestor_name, token_unique_reference: String, tokenization_channel: Lithic::Models::Tokenization::tokenization_channel, updated_at: Time, - digital_card_art_token: String, + device_id: String?, + digital_card_art_token: String?, events: ::Array[Lithic::Tokenization::Event], payment_account_reference_id: String? } @@ -27,8 +27,6 @@ module Lithic attr_accessor created_at: Time - attr_accessor device_id: String? - attr_accessor dpan: String? attr_accessor status: Lithic::Models::Tokenization::status @@ -41,9 +39,9 @@ module Lithic attr_accessor updated_at: Time - attr_reader digital_card_art_token: String? + attr_accessor device_id: String? - def digital_card_art_token=: (String) -> String + attr_accessor digital_card_art_token: String? attr_reader events: ::Array[Lithic::Tokenization::Event]? @@ -58,14 +56,14 @@ module Lithic account_token: String, card_token: String, created_at: Time, - device_id: String?, dpan: String?, status: Lithic::Models::Tokenization::status, token_requestor_name: Lithic::Models::Tokenization::token_requestor_name, token_unique_reference: String, tokenization_channel: Lithic::Models::Tokenization::tokenization_channel, updated_at: Time, - ?digital_card_art_token: String, + ?device_id: String?, + ?digital_card_art_token: String?, ?events: ::Array[Lithic::Tokenization::Event], ?payment_account_reference_id: String? ) -> void @@ -75,14 +73,14 @@ module Lithic account_token: String, card_token: String, created_at: Time, - device_id: String?, dpan: String?, status: Lithic::Models::Tokenization::status, token_requestor_name: Lithic::Models::Tokenization::token_requestor_name, token_unique_reference: String, tokenization_channel: Lithic::Models::Tokenization::tokenization_channel, updated_at: Time, - digital_card_art_token: String, + device_id: String?, + digital_card_art_token: String?, events: ::Array[Lithic::Tokenization::Event], payment_account_reference_id: String? } @@ -117,14 +115,18 @@ module Lithic | :FACEBOOK | :FITBIT_PAY | :GARMIN_PAY + | :GOOGLE_PAY | :MICROSOFT_PAY | :NETFLIX | :SAMSUNG_PAY | :UNKNOWN | :VISA_CHECKOUT + | String module TokenRequestorName - extend Lithic::Internal::Type::Enum + extend Lithic::Internal::Type::Union + + def self?.variants: -> ::Array[Lithic::Models::Tokenization::token_requestor_name] AMAZON_ONE: :AMAZON_ONE ANDROID_PAY: :ANDROID_PAY @@ -132,13 +134,12 @@ module Lithic FACEBOOK: :FACEBOOK FITBIT_PAY: :FITBIT_PAY GARMIN_PAY: :GARMIN_PAY + GOOGLE_PAY: :GOOGLE_PAY MICROSOFT_PAY: :MICROSOFT_PAY NETFLIX: :NETFLIX SAMSUNG_PAY: :SAMSUNG_PAY UNKNOWN: :UNKNOWN VISA_CHECKOUT: :VISA_CHECKOUT - - def self?.values: -> ::Array[Lithic::Models::Tokenization::token_requestor_name] end type tokenization_channel = :DIGITAL_WALLET | :MERCHANT @@ -157,6 +158,9 @@ module Lithic token: String, created_at: Time, result: Lithic::Models::Tokenization::Event::result, + rule_results: ::Array[Lithic::Tokenization::Event::RuleResult], + tokenization_decline_reasons: ::Array[Lithic::Models::Tokenization::Event::tokenization_decline_reason], + tokenization_tfa_reasons: ::Array[Lithic::Models::Tokenization::Event::tokenization_tfa_reason], type: Lithic::Models::Tokenization::Event::type_ } @@ -175,6 +179,24 @@ module Lithic Lithic::Models::Tokenization::Event::result ) -> Lithic::Models::Tokenization::Event::result + attr_reader rule_results: ::Array[Lithic::Tokenization::Event::RuleResult]? + + def rule_results=: ( + ::Array[Lithic::Tokenization::Event::RuleResult] + ) -> ::Array[Lithic::Tokenization::Event::RuleResult] + + attr_reader tokenization_decline_reasons: ::Array[Lithic::Models::Tokenization::Event::tokenization_decline_reason]? + + def tokenization_decline_reasons=: ( + ::Array[Lithic::Models::Tokenization::Event::tokenization_decline_reason] + ) -> ::Array[Lithic::Models::Tokenization::Event::tokenization_decline_reason] + + attr_reader tokenization_tfa_reasons: ::Array[Lithic::Models::Tokenization::Event::tokenization_tfa_reason]? + + def tokenization_tfa_reasons=: ( + ::Array[Lithic::Models::Tokenization::Event::tokenization_tfa_reason] + ) -> ::Array[Lithic::Models::Tokenization::Event::tokenization_tfa_reason] + attr_reader type: Lithic::Models::Tokenization::Event::type_? def type=: ( @@ -185,6 +207,9 @@ module Lithic ?token: String, ?created_at: Time, ?result: Lithic::Models::Tokenization::Event::result, + ?rule_results: ::Array[Lithic::Tokenization::Event::RuleResult], + ?tokenization_decline_reasons: ::Array[Lithic::Models::Tokenization::Event::tokenization_decline_reason], + ?tokenization_tfa_reasons: ::Array[Lithic::Models::Tokenization::Event::tokenization_tfa_reason], ?type: Lithic::Models::Tokenization::Event::type_ ) -> void @@ -192,6 +217,9 @@ module Lithic token: String, created_at: Time, result: Lithic::Models::Tokenization::Event::result, + rule_results: ::Array[Lithic::Tokenization::Event::RuleResult], + tokenization_decline_reasons: ::Array[Lithic::Models::Tokenization::Event::tokenization_decline_reason], + tokenization_tfa_reasons: ::Array[Lithic::Models::Tokenization::Event::tokenization_tfa_reason], type: Lithic::Models::Tokenization::Event::type_ } @@ -228,6 +256,125 @@ module Lithic def self?.values: -> ::Array[Lithic::Models::Tokenization::Event::result] end + type rule_result = + { + auth_rule_token: String?, + explanation: String?, + name: String?, + result: Lithic::Models::Tokenization::Event::RuleResult::result + } + + class RuleResult < Lithic::Internal::Type::BaseModel + attr_accessor auth_rule_token: String? + + attr_accessor explanation: String? + + attr_accessor name: String? + + attr_accessor result: Lithic::Models::Tokenization::Event::RuleResult::result + + def initialize: ( + auth_rule_token: String?, + explanation: String?, + name: String?, + result: Lithic::Models::Tokenization::Event::RuleResult::result + ) -> void + + def to_hash: -> { + auth_rule_token: String?, + explanation: String?, + name: String?, + result: Lithic::Models::Tokenization::Event::RuleResult::result + } + + type result = :APPROVED | :DECLINED | :REQUIRE_TFA | :ERROR + + module Result + extend Lithic::Internal::Type::Enum + + APPROVED: :APPROVED + DECLINED: :DECLINED + REQUIRE_TFA: :REQUIRE_TFA + ERROR: :ERROR + + def self?.values: -> ::Array[Lithic::Models::Tokenization::Event::RuleResult::result] + end + end + + type tokenization_decline_reason = + :ACCOUNT_SCORE_1 + | :DEVICE_SCORE_1 + | :ALL_WALLET_DECLINE_REASONS_PRESENT + | :WALLET_RECOMMENDED_DECISION_RED + | :CVC_MISMATCH + | :CARD_EXPIRY_MONTH_MISMATCH + | :CARD_EXPIRY_YEAR_MISMATCH + | :CARD_INVALID_STATE + | :CUSTOMER_RED_PATH + | :INVALID_CUSTOMER_RESPONSE + | :NETWORK_FAILURE + | :GENERIC_DECLINE + | :DIGITAL_CARD_ART_REQUIRED + + module TokenizationDeclineReason + extend Lithic::Internal::Type::Enum + + ACCOUNT_SCORE_1: :ACCOUNT_SCORE_1 + DEVICE_SCORE_1: :DEVICE_SCORE_1 + ALL_WALLET_DECLINE_REASONS_PRESENT: :ALL_WALLET_DECLINE_REASONS_PRESENT + WALLET_RECOMMENDED_DECISION_RED: :WALLET_RECOMMENDED_DECISION_RED + CVC_MISMATCH: :CVC_MISMATCH + CARD_EXPIRY_MONTH_MISMATCH: :CARD_EXPIRY_MONTH_MISMATCH + CARD_EXPIRY_YEAR_MISMATCH: :CARD_EXPIRY_YEAR_MISMATCH + CARD_INVALID_STATE: :CARD_INVALID_STATE + CUSTOMER_RED_PATH: :CUSTOMER_RED_PATH + INVALID_CUSTOMER_RESPONSE: :INVALID_CUSTOMER_RESPONSE + NETWORK_FAILURE: :NETWORK_FAILURE + GENERIC_DECLINE: :GENERIC_DECLINE + DIGITAL_CARD_ART_REQUIRED: :DIGITAL_CARD_ART_REQUIRED + + def self?.values: -> ::Array[Lithic::Models::Tokenization::Event::tokenization_decline_reason] + end + + type tokenization_tfa_reason = + :WALLET_RECOMMENDED_TFA + | :SUSPICIOUS_ACTIVITY + | :DEVICE_RECENTLY_LOST + | :TOO_MANY_RECENT_ATTEMPTS + | :TOO_MANY_RECENT_TOKENS + | :TOO_MANY_DIFFERENT_CARDHOLDERS + | :OUTSIDE_HOME_TERRITORY + | :HAS_SUSPENDED_TOKENS + | :HIGH_RISK + | :ACCOUNT_SCORE_LOW + | :DEVICE_SCORE_LOW + | :CARD_STATE_TFA + | :HARDCODED_TFA + | :CUSTOMER_RULE_TFA + | :DEVICE_HOST_CARD_EMULATION + + module TokenizationTfaReason + extend Lithic::Internal::Type::Enum + + WALLET_RECOMMENDED_TFA: :WALLET_RECOMMENDED_TFA + SUSPICIOUS_ACTIVITY: :SUSPICIOUS_ACTIVITY + DEVICE_RECENTLY_LOST: :DEVICE_RECENTLY_LOST + TOO_MANY_RECENT_ATTEMPTS: :TOO_MANY_RECENT_ATTEMPTS + TOO_MANY_RECENT_TOKENS: :TOO_MANY_RECENT_TOKENS + TOO_MANY_DIFFERENT_CARDHOLDERS: :TOO_MANY_DIFFERENT_CARDHOLDERS + OUTSIDE_HOME_TERRITORY: :OUTSIDE_HOME_TERRITORY + HAS_SUSPENDED_TOKENS: :HAS_SUSPENDED_TOKENS + HIGH_RISK: :HIGH_RISK + ACCOUNT_SCORE_LOW: :ACCOUNT_SCORE_LOW + DEVICE_SCORE_LOW: :DEVICE_SCORE_LOW + CARD_STATE_TFA: :CARD_STATE_TFA + HARDCODED_TFA: :HARDCODED_TFA + CUSTOMER_RULE_TFA: :CUSTOMER_RULE_TFA + DEVICE_HOST_CARD_EMULATION: :DEVICE_HOST_CARD_EMULATION + + def self?.values: -> ::Array[Lithic::Models::Tokenization::Event::tokenization_tfa_reason] + end + type type_ = :TOKENIZATION_2FA | :TOKENIZATION_AUTHORIZATION diff --git a/sig/lithic/models/transaction.rbs b/sig/lithic/models/transaction.rbs index 89291220..206f6653 100644 --- a/sig/lithic/models/transaction.rbs +++ b/sig/lithic/models/transaction.rbs @@ -250,21 +250,15 @@ module Lithic type cardholder_authentication = { - three_ds_version: String?, - acquirer_exemption: Lithic::Models::Transaction::CardholderAuthentication::acquirer_exemption, + authentication_method: Lithic::Models::Transaction::CardholderAuthentication::authentication_method, authentication_result: Lithic::Models::Transaction::CardholderAuthentication::authentication_result, decision_made_by: Lithic::Models::Transaction::CardholderAuthentication::decision_made_by, liability_shift: Lithic::Models::Transaction::CardholderAuthentication::liability_shift, - three_ds_authentication_token: String?, - verification_attempted: Lithic::Models::Transaction::CardholderAuthentication::verification_attempted, - verification_result: Lithic::Models::Transaction::CardholderAuthentication::verification_result, - authentication_method: Lithic::Models::Transaction::CardholderAuthentication::authentication_method + three_ds_authentication_token: String? } class CardholderAuthentication < Lithic::Internal::Type::BaseModel - attr_accessor three_ds_version: String? - - attr_accessor acquirer_exemption: Lithic::Models::Transaction::CardholderAuthentication::acquirer_exemption + attr_accessor authentication_method: Lithic::Models::Transaction::CardholderAuthentication::authentication_method attr_accessor authentication_result: Lithic::Models::Transaction::CardholderAuthentication::authentication_result @@ -274,63 +268,32 @@ module Lithic attr_accessor three_ds_authentication_token: String? - attr_accessor verification_attempted: Lithic::Models::Transaction::CardholderAuthentication::verification_attempted - - attr_accessor verification_result: Lithic::Models::Transaction::CardholderAuthentication::verification_result - - attr_reader authentication_method: Lithic::Models::Transaction::CardholderAuthentication::authentication_method? - - def authentication_method=: ( - Lithic::Models::Transaction::CardholderAuthentication::authentication_method - ) -> Lithic::Models::Transaction::CardholderAuthentication::authentication_method - def initialize: ( - three_ds_version: String?, - acquirer_exemption: Lithic::Models::Transaction::CardholderAuthentication::acquirer_exemption, + authentication_method: Lithic::Models::Transaction::CardholderAuthentication::authentication_method, authentication_result: Lithic::Models::Transaction::CardholderAuthentication::authentication_result, decision_made_by: Lithic::Models::Transaction::CardholderAuthentication::decision_made_by, liability_shift: Lithic::Models::Transaction::CardholderAuthentication::liability_shift, - three_ds_authentication_token: String?, - verification_attempted: Lithic::Models::Transaction::CardholderAuthentication::verification_attempted, - verification_result: Lithic::Models::Transaction::CardholderAuthentication::verification_result, - ?authentication_method: Lithic::Models::Transaction::CardholderAuthentication::authentication_method + three_ds_authentication_token: String? ) -> void def to_hash: -> { - three_ds_version: String?, - acquirer_exemption: Lithic::Models::Transaction::CardholderAuthentication::acquirer_exemption, + authentication_method: Lithic::Models::Transaction::CardholderAuthentication::authentication_method, authentication_result: Lithic::Models::Transaction::CardholderAuthentication::authentication_result, decision_made_by: Lithic::Models::Transaction::CardholderAuthentication::decision_made_by, liability_shift: Lithic::Models::Transaction::CardholderAuthentication::liability_shift, - three_ds_authentication_token: String?, - verification_attempted: Lithic::Models::Transaction::CardholderAuthentication::verification_attempted, - verification_result: Lithic::Models::Transaction::CardholderAuthentication::verification_result, - authentication_method: Lithic::Models::Transaction::CardholderAuthentication::authentication_method + three_ds_authentication_token: String? } - type acquirer_exemption = - :AUTHENTICATION_OUTAGE_EXCEPTION - | :LOW_VALUE - | :MERCHANT_INITIATED_TRANSACTION - | :NONE - | :RECURRING_PAYMENT - | :SECURE_CORPORATE_PAYMENT - | :STRONG_CUSTOMER_AUTHENTICATION_DELEGATION - | :TRANSACTION_RISK_ANALYSIS - - module AcquirerExemption + type authentication_method = :FRICTIONLESS | :CHALLENGE | :NONE + + module AuthenticationMethod extend Lithic::Internal::Type::Enum - AUTHENTICATION_OUTAGE_EXCEPTION: :AUTHENTICATION_OUTAGE_EXCEPTION - LOW_VALUE: :LOW_VALUE - MERCHANT_INITIATED_TRANSACTION: :MERCHANT_INITIATED_TRANSACTION + FRICTIONLESS: :FRICTIONLESS + CHALLENGE: :CHALLENGE NONE: :NONE - RECURRING_PAYMENT: :RECURRING_PAYMENT - SECURE_CORPORATE_PAYMENT: :SECURE_CORPORATE_PAYMENT - STRONG_CUSTOMER_AUTHENTICATION_DELEGATION: :STRONG_CUSTOMER_AUTHENTICATION_DELEGATION - TRANSACTION_RISK_ANALYSIS: :TRANSACTION_RISK_ANALYSIS - def self?.values: -> ::Array[Lithic::Models::Transaction::CardholderAuthentication::acquirer_exemption] + def self?.values: -> ::Array[Lithic::Models::Transaction::CardholderAuthentication::authentication_method] end type authentication_result = :ATTEMPTS | :DECLINE | :NONE | :SUCCESS @@ -379,50 +342,6 @@ module Lithic def self?.values: -> ::Array[Lithic::Models::Transaction::CardholderAuthentication::liability_shift] end - - type verification_attempted = :NONE | :OTHER - - module VerificationAttempted - extend Lithic::Internal::Type::Enum - - NONE: :NONE - OTHER: :OTHER - - def self?.values: -> ::Array[Lithic::Models::Transaction::CardholderAuthentication::verification_attempted] - end - - type verification_result = - :CANCELLED - | :FAILED - | :FRICTIONLESS - | :NOT_ATTEMPTED - | :REJECTED - | :SUCCESS - - module VerificationResult - extend Lithic::Internal::Type::Enum - - CANCELLED: :CANCELLED - FAILED: :FAILED - FRICTIONLESS: :FRICTIONLESS - NOT_ATTEMPTED: :NOT_ATTEMPTED - REJECTED: :REJECTED - SUCCESS: :SUCCESS - - def self?.values: -> ::Array[Lithic::Models::Transaction::CardholderAuthentication::verification_result] - end - - type authentication_method = :FRICTIONLESS | :CHALLENGE | :NONE - - module AuthenticationMethod - extend Lithic::Internal::Type::Enum - - FRICTIONLESS: :FRICTIONLESS - CHALLENGE: :CHALLENGE - NONE: :NONE - - def self?.values: -> ::Array[Lithic::Models::Transaction::CardholderAuthentication::authentication_method] - end end type merchant = diff --git a/sig/lithic/models/transactions/events/enhanced_data.rbs b/sig/lithic/models/transactions/events/enhanced_data.rbs index 1df27ad5..54824539 100644 --- a/sig/lithic/models/transactions/events/enhanced_data.rbs +++ b/sig/lithic/models/transactions/events/enhanced_data.rbs @@ -82,16 +82,16 @@ module Lithic type line_item = { - amount: Float, + amount: String, description: String, product_code: String, - quantity: Float + quantity: String } class LineItem < Lithic::Internal::Type::BaseModel - attr_reader amount: Float? + attr_reader amount: String? - def amount=: (Float) -> Float + def amount=: (String) -> String attr_reader description: String? @@ -101,22 +101,22 @@ module Lithic def product_code=: (String) -> String - attr_reader quantity: Float? + attr_reader quantity: String? - def quantity=: (Float) -> Float + def quantity=: (String) -> String def initialize: ( - ?amount: Float, + ?amount: String, ?description: String, ?product_code: String, - ?quantity: Float + ?quantity: String ) -> void def to_hash: -> { - amount: Float, + amount: String, description: String, product_code: String, - quantity: Float + quantity: String } end @@ -250,16 +250,16 @@ module Lithic type fuel = { - quantity: Float, + quantity: String, type: Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel::type_, unit_of_measure: Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel::unit_of_measure, unit_price: Integer } class Fuel < Lithic::Internal::Type::BaseModel - attr_reader quantity: Float? + attr_reader quantity: String? - def quantity=: (Float) -> Float + def quantity=: (String) -> String attr_reader type: Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel::type_? @@ -278,14 +278,14 @@ module Lithic def unit_price=: (Integer) -> Integer def initialize: ( - ?quantity: Float, + ?quantity: String, ?type: Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel::type_, ?unit_of_measure: Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel::unit_of_measure, ?unit_price: Integer ) -> void def to_hash: -> { - quantity: Float, + quantity: String, type: Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel::type_, unit_of_measure: Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel::unit_of_measure, unit_price: Integer diff --git a/sig/lithic/resources/auth_rules/v2.rbs b/sig/lithic/resources/auth_rules/v2.rbs index 2d061903..1ac543a9 100644 --- a/sig/lithic/resources/auth_rules/v2.rbs +++ b/sig/lithic/resources/auth_rules/v2.rbs @@ -5,14 +5,14 @@ module Lithic attr_reader backtests: Lithic::Resources::AuthRules::V2::Backtests def create: ( + parameters: Lithic::Models::AuthRules::V2CreateParams::parameters, + type: Lithic::Models::AuthRules::V2CreateParams::type_, card_tokens: ::Array[String], program_level: bool, ?account_tokens: ::Array[String], ?business_account_tokens: ::Array[String], ?event_stream: Lithic::Models::AuthRules::V2CreateParams::event_stream, ?name: String?, - ?parameters: Lithic::Models::AuthRules::V2CreateParams::parameters, - ?type: Lithic::Models::AuthRules::V2CreateParams::type_, ?excluded_card_tokens: ::Array[String], ?request_options: Lithic::request_opts ) -> Lithic::Models::AuthRules::V2CreateResponse @@ -51,16 +51,6 @@ module Lithic ?request_options: Lithic::request_opts ) -> nil - def apply: ( - String auth_rule_token, - card_tokens: ::Array[String], - program_level: bool, - ?account_tokens: ::Array[String], - ?business_account_tokens: ::Array[String], - ?excluded_card_tokens: ::Array[String], - ?request_options: Lithic::request_opts - ) -> Lithic::Models::AuthRules::V2ApplyResponse - def draft: ( String auth_rule_token, ?parameters: Lithic::Models::AuthRules::V2DraftParams::parameters?, diff --git a/sig/lithic/resources/disputes.rbs b/sig/lithic/resources/disputes.rbs index 02b2207b..4fa85f92 100644 --- a/sig/lithic/resources/disputes.rbs +++ b/sig/lithic/resources/disputes.rbs @@ -8,12 +8,12 @@ module Lithic ?customer_filed_date: Time, ?customer_note: String, ?request_options: Lithic::request_opts - ) -> Lithic::Dispute + ) -> Lithic::Models::DisputeCreateResponse def retrieve: ( String dispute_token, ?request_options: Lithic::request_opts - ) -> Lithic::Dispute + ) -> Lithic::Models::DisputeRetrieveResponse def update: ( String dispute_token, @@ -22,7 +22,7 @@ module Lithic ?customer_note: String, ?reason: Lithic::Models::DisputeUpdateParams::reason, ?request_options: Lithic::request_opts - ) -> Lithic::Dispute + ) -> Lithic::Models::DisputeUpdateResponse def list: ( ?begin_: Time, @@ -33,12 +33,12 @@ module Lithic ?status: Lithic::Models::DisputeListParams::status, ?transaction_tokens: ::Array[String], ?request_options: Lithic::request_opts - ) -> Lithic::Internal::CursorPage[Lithic::Dispute] + ) -> Lithic::Internal::CursorPage[Lithic::Models::DisputeListResponse] def delete: ( String dispute_token, ?request_options: Lithic::request_opts - ) -> Lithic::Dispute + ) -> Lithic::Models::DisputeDeleteResponse def delete_evidence: ( String evidence_token, diff --git a/sig/lithic/resources/payments.rbs b/sig/lithic/resources/payments.rbs index fa38e81b..969f67f4 100644 --- a/sig/lithic/resources/payments.rbs +++ b/sig/lithic/resources/payments.rbs @@ -42,7 +42,9 @@ module Lithic def simulate_action: ( String payment_token, event_type: Lithic::Models::PaymentSimulateActionParams::event_type, + ?date_of_death: Date, ?decline_reason: Lithic::Models::PaymentSimulateActionParams::decline_reason, + ?return_addenda: String, ?return_reason_code: String, ?request_options: Lithic::request_opts ) -> Lithic::Models::PaymentSimulateActionResponse diff --git a/test/lithic/resources/account_holders_test.rb b/test/lithic/resources/account_holders_test.rb index d1c892c4..d4f5109b 100644 --- a/test/lithic/resources/account_holders_test.rb +++ b/test/lithic/resources/account_holders_test.rb @@ -165,7 +165,7 @@ def test_retrieve_document_required_params def test_simulate_enrollment_document_review_required_params response = @lithic.account_holders.simulate_enrollment_document_review( - document_upload_token: "document_upload_token", + document_upload_token: "b11cd67b-0a52-4180-8365-314f3def5426", status: :UPLOADED ) diff --git a/test/lithic/resources/auth_rules/v2_test.rb b/test/lithic/resources/auth_rules/v2_test.rb index fee293cb..b9402597 100644 --- a/test/lithic/resources/auth_rules/v2_test.rb +++ b/test/lithic/resources/auth_rules/v2_test.rb @@ -3,8 +3,13 @@ require_relative "../../test_helper" class Lithic::Test::Resources::AuthRules::V2Test < Lithic::Test::ResourceTest - def test_create - response = @lithic.auth_rules.v2.create(card_tokens: ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"]) + def test_create_required_params + response = + @lithic.auth_rules.v2.create( + card_tokens: ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"], + parameters: {conditions: [{}]}, + type: :CONDITIONAL_BLOCK + ) assert_pattern do response => Lithic::Models::AuthRules::V2CreateResponse @@ -122,36 +127,6 @@ def test_delete end end - def test_apply - response = - @lithic.auth_rules.v2.apply( - "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", - card_tokens: ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"] - ) - - assert_pattern do - response => Lithic::Models::AuthRules::V2ApplyResponse - end - - assert_pattern do - response => { - token: String, - account_tokens: ^(Lithic::Internal::Type::ArrayOf[String]), - business_account_tokens: ^(Lithic::Internal::Type::ArrayOf[String]), - card_tokens: ^(Lithic::Internal::Type::ArrayOf[String]), - 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, - type: Lithic::Models::AuthRules::V2ApplyResponse::Type, - excluded_card_tokens: ^(Lithic::Internal::Type::ArrayOf[String]) | nil - } - end - end - def test_draft response = @lithic.auth_rules.v2.draft("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") diff --git a/test/lithic/resources/disputes_test.rb b/test/lithic/resources/disputes_test.rb index 067040f1..9cf4dc8e 100644 --- a/test/lithic/resources/disputes_test.rb +++ b/test/lithic/resources/disputes_test.rb @@ -12,7 +12,7 @@ def test_create_required_params ) assert_pattern do - response => Lithic::Dispute + response => Lithic::Models::DisputeCreateResponse end assert_pattern do @@ -28,12 +28,12 @@ def test_create_required_params network_reason_code: String | nil, prearbitration_date: Time | nil, primary_claim_id: String | nil, - reason: Lithic::Dispute::Reason, + reason: Lithic::Models::DisputeCreateResponse::Reason, representment_date: Time | nil, resolution_date: Time | nil, resolution_note: String | nil, - resolution_reason: Lithic::Dispute::ResolutionReason | nil, - status: Lithic::Dispute::Status, + resolution_reason: Lithic::Models::DisputeCreateResponse::ResolutionReason | nil, + status: Lithic::Models::DisputeCreateResponse::Status, transaction_token: String } end @@ -43,7 +43,7 @@ def test_retrieve response = @lithic.disputes.retrieve("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") assert_pattern do - response => Lithic::Dispute + response => Lithic::Models::DisputeRetrieveResponse end assert_pattern do @@ -59,12 +59,12 @@ def test_retrieve network_reason_code: String | nil, prearbitration_date: Time | nil, primary_claim_id: String | nil, - reason: Lithic::Dispute::Reason, + reason: Lithic::Models::DisputeRetrieveResponse::Reason, representment_date: Time | nil, resolution_date: Time | nil, resolution_note: String | nil, - resolution_reason: Lithic::Dispute::ResolutionReason | nil, - status: Lithic::Dispute::Status, + resolution_reason: Lithic::Models::DisputeRetrieveResponse::ResolutionReason | nil, + status: Lithic::Models::DisputeRetrieveResponse::Status, transaction_token: String } end @@ -74,7 +74,7 @@ def test_update response = @lithic.disputes.update("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") assert_pattern do - response => Lithic::Dispute + response => Lithic::Models::DisputeUpdateResponse end assert_pattern do @@ -90,12 +90,12 @@ def test_update network_reason_code: String | nil, prearbitration_date: Time | nil, primary_claim_id: String | nil, - reason: Lithic::Dispute::Reason, + reason: Lithic::Models::DisputeUpdateResponse::Reason, representment_date: Time | nil, resolution_date: Time | nil, resolution_note: String | nil, - resolution_reason: Lithic::Dispute::ResolutionReason | nil, - status: Lithic::Dispute::Status, + resolution_reason: Lithic::Models::DisputeUpdateResponse::ResolutionReason | nil, + status: Lithic::Models::DisputeUpdateResponse::Status, transaction_token: String } end @@ -112,7 +112,7 @@ def test_list return if row.nil? assert_pattern do - row => Lithic::Dispute + row => Lithic::Models::DisputeListResponse end assert_pattern do @@ -128,12 +128,12 @@ def test_list network_reason_code: String | nil, prearbitration_date: Time | nil, primary_claim_id: String | nil, - reason: Lithic::Dispute::Reason, + reason: Lithic::Models::DisputeListResponse::Reason, representment_date: Time | nil, resolution_date: Time | nil, resolution_note: String | nil, - resolution_reason: Lithic::Dispute::ResolutionReason | nil, - status: Lithic::Dispute::Status, + resolution_reason: Lithic::Models::DisputeListResponse::ResolutionReason | nil, + status: Lithic::Models::DisputeListResponse::Status, transaction_token: String } end @@ -143,7 +143,7 @@ def test_delete response = @lithic.disputes.delete("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") assert_pattern do - response => Lithic::Dispute + response => Lithic::Models::DisputeDeleteResponse end assert_pattern do @@ -159,12 +159,12 @@ def test_delete network_reason_code: String | nil, prearbitration_date: Time | nil, primary_claim_id: String | nil, - reason: Lithic::Dispute::Reason, + reason: Lithic::Models::DisputeDeleteResponse::Reason, representment_date: Time | nil, resolution_date: Time | nil, resolution_note: String | nil, - resolution_reason: Lithic::Dispute::ResolutionReason | nil, - status: Lithic::Dispute::Status, + resolution_reason: Lithic::Models::DisputeDeleteResponse::ResolutionReason | nil, + status: Lithic::Models::DisputeDeleteResponse::Status, transaction_token: String } end diff --git a/test/lithic/resources/financial_accounts/credit_configuration_test.rb b/test/lithic/resources/financial_accounts/credit_configuration_test.rb index 07458fb1..6146bb0d 100644 --- a/test/lithic/resources/financial_accounts/credit_configuration_test.rb +++ b/test/lithic/resources/financial_accounts/credit_configuration_test.rb @@ -18,10 +18,7 @@ def test_retrieve credit_limit: Integer | nil, credit_product_token: String | nil, external_bank_account_token: String | nil, - tier: String | nil, - charged_off_reason: Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason | nil, - financial_account_state: Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState | nil, - is_spend_blocked: Lithic::Internal::Type::Boolean | nil + tier: String | nil } end end @@ -40,10 +37,7 @@ def test_update credit_limit: Integer | nil, credit_product_token: String | nil, external_bank_account_token: String | nil, - tier: String | nil, - charged_off_reason: Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason | nil, - financial_account_state: Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState | nil, - is_spend_blocked: Lithic::Internal::Type::Boolean | nil + tier: String | nil } end end diff --git a/test/lithic/resources/tokenizations_test.rb b/test/lithic/resources/tokenizations_test.rb index 87cf16f9..72196860 100644 --- a/test/lithic/resources/tokenizations_test.rb +++ b/test/lithic/resources/tokenizations_test.rb @@ -16,13 +16,13 @@ def test_retrieve account_token: String, card_token: String, created_at: Time, - device_id: String | nil, dpan: String | nil, status: Lithic::Tokenization::Status, token_requestor_name: Lithic::Tokenization::TokenRequestorName, token_unique_reference: String, tokenization_channel: Lithic::Tokenization::TokenizationChannel, updated_at: Time, + device_id: String | nil, digital_card_art_token: String | nil, events: ^(Lithic::Internal::Type::ArrayOf[Lithic::Tokenization::Event]) | nil, payment_account_reference_id: String | nil @@ -50,13 +50,13 @@ def test_list account_token: String, card_token: String, created_at: Time, - device_id: String | nil, dpan: String | nil, status: Lithic::Tokenization::Status, token_requestor_name: Lithic::Tokenization::TokenRequestorName, token_unique_reference: String, tokenization_channel: Lithic::Tokenization::TokenizationChannel, updated_at: Time, + device_id: String | nil, digital_card_art_token: String | nil, events: ^(Lithic::Internal::Type::ArrayOf[Lithic::Tokenization::Event]) | nil, payment_account_reference_id: String | nil