diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 241cecef..7b587617 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: runs-on: ${{ github.repository == 'stainless-sdks/lithic-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: |- github.repository == 'stainless-sdks/lithic-ruby' && - (github.event_name == 'push' || github.event.pull_request.head.repo.fork) + (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata') steps: - uses: actions/checkout@v6 - name: Set up Ruby diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 091cfb12..f7014c35 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.10.0" + ".": "0.11.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 2c9eb4a3..3481820f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 190 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-17c04dd1b0508b380c21e3acc3d4cd1e86b590f81d14fa26d1973b236f660e38.yml -openapi_spec_hash: f8ddee07358d2c938450a6889fbf7940 -config_hash: edbdfefeb0d3d927c2f9fe3402793215 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-df28ee30a3bd4fa595befc2048216e1ee1d3845fcfcf179c1c694ba58fd5e4ed.yml +openapi_spec_hash: 79bfc19d85c7f03754684d794653e333 +config_hash: 5eca052bb23d273fa970eac3127dd919 diff --git a/CHANGELOG.md b/CHANGELOG.md index 957c1f5c..c84ffb1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,41 @@ # Changelog +## 0.11.0 (2026-04-10) + +Full Changelog: [v0.10.0...v0.11.0](https://github.com/lithic-com/lithic-ruby/compare/v0.10.0...v0.11.0) + +### Features + +* **api:** add card decline count attributes to auth_rules conditional authorization ([d8d98d9](https://github.com/lithic-com/lithic-ruby/commit/d8d98d927f33b011b1a28c37df6b971ab7c895a0)) +* **api:** add interchange/chargeback/provisional_credit_account to financial account type enums ([3d54444](https://github.com/lithic-com/lithic-ruby/commit/3d544442bb1ecfc4c69c806fb72cf8a1b0564c8d)) +* **api:** add override_company_name field to payment create parameters ([7e916b6](https://github.com/lithic-com/lithic-ruby/commit/7e916b6bb6e41494aab381d5a30bb83f9ea6ca23)) +* **api:** add statement_totals field to financial accounts statement ([1fa7586](https://github.com/lithic-com/lithic-ruby/commit/1fa758668e1caf7beefca72abe384c99d112ae85)) +* **api:** add transaction_token field to auth_rules examples ([4729281](https://github.com/lithic-com/lithic-ruby/commit/47292818b9afc96e2ac358235012b4deb8987016)) +* **api:** add transaction_token field to auth_rules v2 results response ([acca757](https://github.com/lithic-com/lithic-ruby/commit/acca757780ead14f428e035409c3b7cb815d9d83)) + + +### Bug Fixes + +* align path encoding with RFC 3986 section 3.3 ([5624e72](https://github.com/lithic-com/lithic-ruby/commit/5624e7234a615d0de2ecc92e007be91a54a90c98)) +* **internal:** correct multipart form field name encoding ([abfc1fd](https://github.com/lithic-com/lithic-ruby/commit/abfc1fdd7c78682932979e362448f95bca347d43)) +* multipart encoding for file arrays ([5a0bdeb](https://github.com/lithic-com/lithic-ruby/commit/5a0bdeb87640bd6340039f86a366886894e9991a)) +* **types:** [breaking] remove deprecated fields from auth_rules report_stats ([f3089b7](https://github.com/lithic-com/lithic-ruby/commit/f3089b7a510244d7c566bc69cc68d4564b899bec)) +* **types:** make credit_product_token optional in financial_accounts statement ([a0fa401](https://github.com/lithic-com/lithic-ruby/commit/a0fa40166b98f3d7e91878d5ea948027c72ea440)) +* **types:** remove INTERCHANGE/CHARGEBACK from FinancialAccount/InstanceFinancialAccountType ([6077d32](https://github.com/lithic-com/lithic-ruby/commit/6077d32ca7a8bc77204000d9c2e0cf7f28569c4b)) +* **types:** require Card fields, remove hostname in authorization approval webhook ([fb4f7d9](https://github.com/lithic-com/lithic-ruby/commit/fb4f7d98735f400ca090a07b7fe59373e8eb9ef1)) +* variable name typo ([0156ca5](https://github.com/lithic-com/lithic-ruby/commit/0156ca5e46b58cdfb25fdbcd293d16778e762c2a)) + + +### Chores + +* **ci:** skip lint on metadata-only changes ([810ca31](https://github.com/lithic-com/lithic-ruby/commit/810ca31d3deeb0fd04c5843496dc601187076633)) +* **ci:** support opting out of skipping builds on metadata-only commits ([40b20fb](https://github.com/lithic-com/lithic-ruby/commit/40b20fb0c3c2c31e2870ee2df86d4a55fac67a04)) + + +### Documentation + +* **api:** update nature_of_business and qr_code_url field descriptions ([b11902d](https://github.com/lithic-com/lithic-ruby/commit/b11902d30b4b337e7ffc05358df51c18e6ea6648)) + ## 0.10.0 (2026-03-23) Full Changelog: [v0.9.0...v0.10.0](https://github.com/lithic-com/lithic-ruby/compare/v0.9.0...v0.10.0) diff --git a/Gemfile.lock b/Gemfile.lock index 38db2155..8db6021d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - lithic (0.10.0) + lithic (0.11.0) cgi connection_pool diff --git a/README.md b/README.md index 1cd63711..ed016fd5 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "lithic", "~> 0.10.0" +gem "lithic", "~> 0.11.0" ``` diff --git a/lib/lithic/internal/util.rb b/lib/lithic/internal/util.rb index 9efafc4e..7f27a436 100644 --- a/lib/lithic/internal/util.rb +++ b/lib/lithic/internal/util.rb @@ -157,7 +157,7 @@ def coerce_hash!(input) in Hash | nil => coerced coerced else - message = "Expected a #{Hash} or #{Lithic::Internal::Type::BaseModel}, got #{data.inspect}" + message = "Expected a #{Hash} or #{Lithic::Internal::Type::BaseModel}, got #{input.inspect}" raise ArgumentError.new(message) end end @@ -237,6 +237,11 @@ def dig(data, pick, &blk) end end + # @type [Regexp] + # + # https://www.rfc-editor.org/rfc/rfc3986.html#section-3.3 + RFC_3986_NOT_PCHARS = /[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/ + class << self # @api private # @@ -247,6 +252,15 @@ def uri_origin(uri) "#{uri.scheme}://#{uri.host}#{":#{uri.port}" unless uri.port == uri.default_port}" end + # @api private + # + # @param path [String, Integer] + # + # @return [String] + def encode_path(path) + path.to_s.gsub(Lithic::Internal::Util::RFC_3986_NOT_PCHARS) { ERB::Util.url_encode(_1) } + end + # @api private # # @param path [String, Array] @@ -259,7 +273,7 @@ def interpolate_path(path) in [] "" in [String => p, *interpolations] - encoded = interpolations.map { ERB::Util.url_encode(_1) } + encoded = interpolations.map { encode_path(_1) } format(p, *encoded) end end @@ -571,16 +585,15 @@ def encode_query_params(query) y << "Content-Disposition: form-data" unless key.nil? - name = ERB::Util.url_encode(key.to_s) - y << "; name=\"#{name}\"" + y << "; name=\"#{key}\"" end case val in Lithic::FilePart unless val.filename.nil? - filename = ERB::Util.url_encode(val.filename) + filename = encode_path(val.filename) y << "; filename=\"#{filename}\"" in Pathname | IO - filename = ERB::Util.url_encode(::File.basename(val.to_path)) + filename = encode_path(::File.basename(val.to_path)) y << "; filename=\"#{filename}\"" else end @@ -597,6 +610,7 @@ def encode_query_params(query) # # @return [Array(String, Enumerable)] private def encode_multipart_streaming(body) + # rubocop:disable Style/CaseEquality # RFC 1521 Section 7.2.1 says we should have 70 char maximum for boundary length boundary = SecureRandom.urlsafe_base64(46) @@ -606,7 +620,7 @@ def encode_query_params(query) in Hash body.each do |key, val| case val - in Array if val.all? { primitive?(_1) } + in Array if val.all? { primitive?(_1) || Lithic::Internal::Type::FileInput === _1 } val.each do |v| write_multipart_chunk(y, boundary: boundary, key: key, val: v, closing: closing) end @@ -622,6 +636,7 @@ def encode_query_params(query) fused_io = fused_enum(strio) { closing.each(&:call) } [boundary, fused_io] + # rubocop:enable Style/CaseEquality end # @api private diff --git a/lib/lithic/models/auth_rules/backtest_stats.rb b/lib/lithic/models/auth_rules/backtest_stats.rb index 2874cbcb..cf6992b0 100644 --- a/lib/lithic/models/auth_rules/backtest_stats.rb +++ b/lib/lithic/models/auth_rules/backtest_stats.rb @@ -77,12 +77,20 @@ class Example < Lithic::Internal::Type::BaseModel # @return [Time, nil] optional :timestamp, Time - # @!method initialize(decision: nil, event_token: nil, timestamp: nil) + # @!attribute transaction_token + # The token of the transaction associated with the event + # + # @return [String, nil] + optional :transaction_token, String, nil?: true + + # @!method initialize(decision: nil, event_token: nil, timestamp: nil, transaction_token: nil) # @param decision [Symbol, Lithic::Models::AuthRules::BacktestStats::Example::Decision] The decision made by the rule for this event. # # @param event_token [String] The event token. # # @param timestamp [Time] The timestamp of the event. + # + # @param transaction_token [String, nil] The token of the transaction associated with the event # The decision made by the rule for this event. # diff --git a/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb b/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb index 59cf6310..02996e02 100644 --- a/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +++ b/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb @@ -75,6 +75,12 @@ class Condition < Lithic::Internal::Type::BaseModel # 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_DECLINE_COUNT_15M`: The number of declined transactions on the card in + # the trailing 15 minutes before the authorization. + # - `CARD_DECLINE_COUNT_1H`: The number of declined transactions on the card in + # the trailing hour up and until the authorization. + # - `CARD_DECLINE_COUNT_24H`: The number of declined 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`. @@ -168,6 +174,12 @@ class Condition < Lithic::Internal::Type::BaseModel # 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_DECLINE_COUNT_15M`: The number of declined transactions on the card in + # the trailing 15 minutes before the authorization. + # - `CARD_DECLINE_COUNT_1H`: The number of declined transactions on the card in + # the trailing hour up and until the authorization. + # - `CARD_DECLINE_COUNT_24H`: The number of declined 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`. @@ -212,6 +224,9 @@ module Attribute 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_DECLINE_COUNT_15_M = :CARD_DECLINE_COUNT_15M + CARD_DECLINE_COUNT_1_H = :CARD_DECLINE_COUNT_1H + CARD_DECLINE_COUNT_24_H = :CARD_DECLINE_COUNT_24H CARD_STATE = :CARD_STATE PIN_ENTERED = :PIN_ENTERED PIN_STATUS = :PIN_STATUS diff --git a/lib/lithic/models/auth_rules/report_stats.rb b/lib/lithic/models/auth_rules/report_stats.rb index f326f168..1898b0a9 100644 --- a/lib/lithic/models/auth_rules/report_stats.rb +++ b/lib/lithic/models/auth_rules/report_stats.rb @@ -6,110 +6,77 @@ module AuthRules class ReportStats < Lithic::Internal::Type::BaseModel # @!attribute action_counts # A mapping of action types to the number of times that action was returned by - # this rule during the relevant period. Actions are the possible outcomes of a + # this version during the relevant period. Actions are the possible outcomes of a # rule evaluation, such as DECLINE, CHALLENGE, REQUIRE_TFA, etc. In case rule # didn't trigger any action, it's counted under NO_ACTION key. # - # @return [Hash{Symbol=>Integer}, nil] - optional :action_counts, Lithic::Internal::Type::HashOf[Integer] + # @return [Hash{Symbol=>Integer}] + required :action_counts, Lithic::Internal::Type::HashOf[Integer] - # @!attribute approved - # @deprecated - # - # The total number of historical transactions approved by this rule during the - # relevant period, or the number of transactions that would have been approved if - # the rule was evaluated in shadow mode. - # - # @return [Integer, nil] - optional :approved, Integer - - # @!attribute challenged - # @deprecated - # - # The total number of historical transactions challenged by this rule during the - # relevant period, or the number of transactions that would have been challenged - # if the rule was evaluated in shadow mode. Currently applicable only for 3DS Auth - # Rules. + # @!attribute examples + # Example events and their outcomes for this version. # - # @return [Integer, nil] - optional :challenged, Integer + # @return [Array] + required :examples, -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::ReportStats::Example] } - # @!attribute declined - # @deprecated - # - # The total number of historical transactions declined by this rule during the - # relevant period, or the number of transactions that would have been declined if - # the rule was evaluated in shadow mode. + # @!attribute state + # The evaluation mode of this version during the reported period. # - # @return [Integer, nil] - optional :declined, Integer + # @return [Symbol, Lithic::Models::AuthRules::ReportStats::State] + required :state, enum: -> { Lithic::AuthRules::ReportStats::State } - # @!attribute examples - # Example events and their outcomes. + # @!attribute version + # The rule version number. # - # @return [Array, nil] - optional :examples, -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::ReportStats::Example] } + # @return [Integer] + required :version, Integer - # @!method initialize(action_counts: nil, approved: nil, challenged: nil, declined: nil, examples: nil) + # @!method initialize(action_counts:, examples:, state:, version:) # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::ReportStats} for more details. # # @param action_counts [Hash{Symbol=>Integer}] A mapping of action types to the number of times that action was returned by thi # - # @param approved [Integer] The total number of historical transactions approved by this rule during the rel - # - # @param challenged [Integer] The total number of historical transactions challenged by this rule during the r + # @param examples [Array] Example events and their outcomes for this version. # - # @param declined [Integer] The total number of historical transactions declined by this rule during the rel + # @param state [Symbol, Lithic::Models::AuthRules::ReportStats::State] The evaluation mode of this version during the reported period. # - # @param examples [Array] Example events and their outcomes. + # @param version [Integer] The rule version number. class Example < Lithic::Internal::Type::BaseModel # @!attribute actions - # The actions taken by the rule for this event. + # The actions taken by this version for this event. # - # @return [Array, nil] - optional :actions, + # @return [Array] + required :actions, -> { Lithic::Internal::Type::ArrayOf[union: Lithic::AuthRules::ReportStats::Example::Action] } - # @!attribute approved - # @deprecated - # - # Whether the rule would have approved the request. - # - # @return [Boolean, nil] - optional :approved, Lithic::Internal::Type::Boolean - - # @!attribute decision - # @deprecated - # - # The decision made by the rule for this event. - # - # @return [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Decision, nil] - optional :decision, enum: -> { Lithic::AuthRules::ReportStats::Example::Decision } - # @!attribute event_token # The event token. # - # @return [String, nil] - optional :event_token, String + # @return [String] + required :event_token, String # @!attribute timestamp # The timestamp of the event. # - # @return [Time, nil] - optional :timestamp, Time + # @return [Time] + required :timestamp, Time - # @!method initialize(actions: nil, approved: nil, decision: nil, event_token: nil, timestamp: nil) - # @param actions [Array] The actions taken by the rule for this event. + # @!attribute transaction_token + # The token of the transaction associated with the event # - # @param approved [Boolean] Whether the rule would have approved the request. - # - # @param decision [Symbol, Lithic::Models::AuthRules::ReportStats::Example::Decision] The decision made by the rule for this event. + # @return [String, nil] + optional :transaction_token, String, nil?: true + + # @!method initialize(actions:, event_token:, timestamp:, transaction_token: nil) + # @param actions [Array] The actions taken by this version for this event. # # @param event_token [String] The event token. # # @param timestamp [Time] The timestamp of the event. + # + # @param transaction_token [String, nil] The token of the transaction associated with the event module Action extend Lithic::Internal::Type::Union @@ -529,22 +496,20 @@ module Type # @!method self.variants # @return [Array(Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization, Lithic::Models::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization, Lithic::Models::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction, Lithic::Models::AuthRules::ReportStats::Example::Action::DeclineActionTokenization, Lithic::Models::AuthRules::ReportStats::Example::Action::RequireTfaAction, Lithic::Models::AuthRules::ReportStats::Example::Action::ApproveActionACH, Lithic::Models::AuthRules::ReportStats::Example::Action::ReturnAction)] end + end - # @deprecated - # - # The decision made by the rule for this event. - # - # @see Lithic::Models::AuthRules::ReportStats::Example#decision - module Decision - extend Lithic::Internal::Type::Enum + # The evaluation mode of this version during the reported period. + # + # @see Lithic::Models::AuthRules::ReportStats#state + module State + extend Lithic::Internal::Type::Enum - APPROVED = :APPROVED - DECLINED = :DECLINED - CHALLENGED = :CHALLENGED + ACTIVE = :ACTIVE + SHADOW = :SHADOW + INACTIVE = :INACTIVE - # @!method self.values - # @return [Array] - end + # @!method self.values + # @return [Array] end end end diff --git a/lib/lithic/models/auth_rules/v2_list_results_response.rb b/lib/lithic/models/auth_rules/v2_list_results_response.rb index 7ce3133f..0afce322 100644 --- a/lib/lithic/models/auth_rules/v2_list_results_response.rb +++ b/lib/lithic/models/auth_rules/v2_list_results_response.rb @@ -67,7 +67,13 @@ class AuthorizationResult < Lithic::Internal::Type::BaseModel # @return [Integer] required :rule_version, Integer - # @!method initialize(token:, actions:, auth_rule_token:, evaluation_time:, event_token:, mode:, rule_version:, event_stream: :AUTHORIZATION) + # @!attribute transaction_token + # The token of the transaction that triggered the rule evaluation + # + # @return [String, nil] + required :transaction_token, String, nil?: true + + # @!method initialize(token:, actions:, auth_rule_token:, evaluation_time:, event_token:, mode:, rule_version:, transaction_token:, event_stream: :AUTHORIZATION) # @param token [String] Globally unique identifier for the evaluation # # @param actions [Array] Actions returned by the rule evaluation @@ -82,6 +88,8 @@ class AuthorizationResult < Lithic::Internal::Type::BaseModel # # @param rule_version [Integer] Version of the rule that was evaluated # + # @param transaction_token [String, nil] The token of the transaction that triggered the rule evaluation + # # @param event_stream [Symbol, :AUTHORIZATION] The event stream during which the rule was evaluated module Action @@ -295,7 +303,13 @@ class Authentication3DSResult < Lithic::Internal::Type::BaseModel # @return [Integer] required :rule_version, Integer - # @!method initialize(token:, actions:, auth_rule_token:, evaluation_time:, event_token:, mode:, rule_version:, event_stream: :THREE_DS_AUTHENTICATION) + # @!attribute transaction_token + # The token of the transaction that triggered the rule evaluation + # + # @return [String, nil] + required :transaction_token, String, nil?: true + + # @!method initialize(token:, actions:, auth_rule_token:, evaluation_time:, event_token:, mode:, rule_version:, transaction_token:, event_stream: :THREE_DS_AUTHENTICATION) # @param token [String] Globally unique identifier for the evaluation # # @param actions [Array] Actions returned by the rule evaluation @@ -310,6 +324,8 @@ class Authentication3DSResult < Lithic::Internal::Type::BaseModel # # @param rule_version [Integer] Version of the rule that was evaluated # + # @param transaction_token [String, nil] The token of the transaction that triggered the rule evaluation + # # @param event_stream [Symbol, :THREE_DS_AUTHENTICATION] The event stream during which the rule was evaluated class Action < Lithic::Internal::Type::BaseModel @@ -406,7 +422,13 @@ class TokenizationResult < Lithic::Internal::Type::BaseModel # @return [Integer] required :rule_version, Integer - # @!method initialize(token:, actions:, auth_rule_token:, evaluation_time:, event_token:, mode:, rule_version:, event_stream: :TOKENIZATION) + # @!attribute transaction_token + # The token of the transaction that triggered the rule evaluation + # + # @return [String, nil] + required :transaction_token, String, nil?: true + + # @!method initialize(token:, actions:, auth_rule_token:, evaluation_time:, event_token:, mode:, rule_version:, transaction_token:, event_stream: :TOKENIZATION) # @param token [String] Globally unique identifier for the evaluation # # @param actions [Array] Actions returned by the rule evaluation @@ -421,6 +443,8 @@ class TokenizationResult < Lithic::Internal::Type::BaseModel # # @param rule_version [Integer] Version of the rule that was evaluated # + # @param transaction_token [String, nil] The token of the transaction that triggered the rule evaluation + # # @param event_stream [Symbol, :TOKENIZATION] The event stream during which the rule was evaluated module Action @@ -631,7 +655,13 @@ class ACHResult < Lithic::Internal::Type::BaseModel # @return [Integer] required :rule_version, Integer - # @!method initialize(token:, actions:, auth_rule_token:, evaluation_time:, event_stream:, event_token:, mode:, rule_version:) + # @!attribute transaction_token + # The token of the transaction that triggered the rule evaluation + # + # @return [String, nil] + required :transaction_token, String, nil?: true + + # @!method initialize(token:, actions:, auth_rule_token:, evaluation_time:, event_stream:, event_token:, mode:, rule_version:, transaction_token:) # @param token [String] Globally unique identifier for the evaluation # # @param actions [Array] Actions returned by the rule evaluation @@ -647,6 +677,8 @@ class ACHResult < Lithic::Internal::Type::BaseModel # @param mode [Symbol, Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Mode] The state of the Auth Rule # # @param rule_version [Integer] Version of the rule that was evaluated + # + # @param transaction_token [String, nil] The token of the transaction that triggered the rule evaluation module Action extend Lithic::Internal::Type::Union diff --git a/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb b/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb index 61f8e525..6fbe7f1e 100644 --- a/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb +++ b/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb @@ -40,554 +40,27 @@ class V2RetrieveReportResponse < Lithic::Internal::Type::BaseModel # @param end_ [Date] The end date (UTC) of the report. class DailyStatistic < Lithic::Internal::Type::BaseModel - # @!attribute current_version_statistics - # Detailed statistics for the current version of the rule. - # - # @return [Lithic::Models::AuthRules::ReportStats, nil] - required :current_version_statistics, -> { Lithic::AuthRules::ReportStats }, nil?: true - # @!attribute date # The date (UTC) for which the statistics are reported. # # @return [Date] required :date, Date - # @!attribute draft_version_statistics - # Detailed statistics for the draft version of the rule. - # - # @return [Lithic::Models::AuthRules::ReportStats, nil] - required :draft_version_statistics, -> { Lithic::AuthRules::ReportStats }, nil?: true - # @!attribute versions # Statistics for each version of the rule that was evaluated during the reported # day. # - # @return [Array] - required :versions, - -> { Lithic::Internal::Type::ArrayOf[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version] } + # @return [Array] + required :versions, -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::ReportStats] } - # @!method initialize(current_version_statistics:, date:, draft_version_statistics:, versions:) + # @!method initialize(date:, versions:) # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic} for more # details. # - # @param current_version_statistics [Lithic::Models::AuthRules::ReportStats, nil] Detailed statistics for the current version of the rule. - # # @param date [Date] The date (UTC) for which the statistics are reported. # - # @param draft_version_statistics [Lithic::Models::AuthRules::ReportStats, nil] Detailed statistics for the draft version of the rule. - # - # @param versions [Array] Statistics for each version of the rule that was evaluated during the reported d - - class Version < Lithic::Internal::Type::BaseModel - # @!attribute action_counts - # A mapping of action types to the number of times that action was returned by - # this version during the relevant period. Actions are the possible outcomes of a - # rule evaluation, such as DECLINE, CHALLENGE, REQUIRE_TFA, etc. In case rule - # didn't trigger any action, it's counted under NO_ACTION key. - # - # @return [Hash{Symbol=>Integer}] - required :action_counts, Lithic::Internal::Type::HashOf[Integer] - - # @!attribute examples - # Example events and their outcomes for this version. - # - # @return [Array] - required :examples, - -> { Lithic::Internal::Type::ArrayOf[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example] } - - # @!attribute state - # The evaluation mode of this version during the reported period. - # - # @return [Symbol, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::State] - required :state, - enum: -> { Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::State } - - # @!attribute version - # The rule version number. - # - # @return [Integer] - required :version, Integer - - # @!method initialize(action_counts:, examples:, state:, version:) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version} - # for more details. - # - # @param action_counts [Hash{Symbol=>Integer}] A mapping of action types to the number of times that action was returned by thi - # - # @param examples [Array] Example events and their outcomes for this version. - # - # @param state [Symbol, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::State] The evaluation mode of this version during the reported period. - # - # @param version [Integer] The rule version number. - - class Example < Lithic::Internal::Type::BaseModel - # @!attribute actions - # The actions taken by this version for this event. - # - # @return [Array] - required :actions, - -> { Lithic::Internal::Type::ArrayOf[union: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action] } - - # @!attribute event_token - # The event token. - # - # @return [String] - required :event_token, String - - # @!attribute timestamp - # The timestamp of the event. - # - # @return [Time] - required :timestamp, Time - - # @!method initialize(actions:, event_token:, timestamp:) - # @param actions [Array] The actions taken by this version for this event. - # - # @param event_token [String] The event token. - # - # @param timestamp [Time] The timestamp of the event. - - module Action - extend Lithic::Internal::Type::Union - - variant -> { Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization } - - variant -> { Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ChallengeActionAuthorization } - - variant -> { Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ResultAuthentication3DSAction } - - variant -> { Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization } - - variant -> { Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction } - - variant -> { Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ApproveActionACH } - - variant -> { Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction } - - class DeclineActionAuthorization < Lithic::Internal::Type::BaseModel - # @!attribute code - # The detailed result code explaining the specific reason for the decline - # - # @return [Symbol, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code] - required :code, - enum: -> { Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code } - - # @!attribute type - # - # @return [Symbol, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Type] - required :type, - enum: -> { Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Type } - - # @!method initialize(code:, type:) - # @param code [Symbol, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code] The detailed result code explaining the specific reason for the decline - # - # @param type [Symbol, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Type] - - # The detailed result code explaining the specific reason for the decline - # - # @see Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization#code - module Code - extend Lithic::Internal::Type::Enum - - ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED = :ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED - ACCOUNT_DELINQUENT = :ACCOUNT_DELINQUENT - ACCOUNT_INACTIVE = :ACCOUNT_INACTIVE - ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED = :ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED - ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED = :ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED - ACCOUNT_PAUSED = :ACCOUNT_PAUSED - ACCOUNT_UNDER_REVIEW = :ACCOUNT_UNDER_REVIEW - ADDRESS_INCORRECT = :ADDRESS_INCORRECT - APPROVED = :APPROVED - AUTH_RULE_ALLOWED_COUNTRY = :AUTH_RULE_ALLOWED_COUNTRY - AUTH_RULE_ALLOWED_MCC = :AUTH_RULE_ALLOWED_MCC - AUTH_RULE_BLOCKED_COUNTRY = :AUTH_RULE_BLOCKED_COUNTRY - AUTH_RULE_BLOCKED_MCC = :AUTH_RULE_BLOCKED_MCC - AUTH_RULE = :AUTH_RULE - CARD_CLOSED = :CARD_CLOSED - CARD_CRYPTOGRAM_VALIDATION_FAILURE = :CARD_CRYPTOGRAM_VALIDATION_FAILURE - CARD_EXPIRED = :CARD_EXPIRED - CARD_EXPIRY_DATE_INCORRECT = :CARD_EXPIRY_DATE_INCORRECT - CARD_INVALID = :CARD_INVALID - CARD_NOT_ACTIVATED = :CARD_NOT_ACTIVATED - CARD_PAUSED = :CARD_PAUSED - CARD_PIN_INCORRECT = :CARD_PIN_INCORRECT - CARD_RESTRICTED = :CARD_RESTRICTED - CARD_SECURITY_CODE_INCORRECT = :CARD_SECURITY_CODE_INCORRECT - CARD_SPEND_LIMIT_EXCEEDED = :CARD_SPEND_LIMIT_EXCEEDED - CONTACT_CARD_ISSUER = :CONTACT_CARD_ISSUER - CUSTOMER_ASA_TIMEOUT = :CUSTOMER_ASA_TIMEOUT - CUSTOM_ASA_RESULT = :CUSTOM_ASA_RESULT - DECLINED = :DECLINED - DO_NOT_HONOR = :DO_NOT_HONOR - DRIVER_NUMBER_INVALID = :DRIVER_NUMBER_INVALID - FORMAT_ERROR = :FORMAT_ERROR - INSUFFICIENT_FUNDING_SOURCE_BALANCE = :INSUFFICIENT_FUNDING_SOURCE_BALANCE - INSUFFICIENT_FUNDS = :INSUFFICIENT_FUNDS - LITHIC_SYSTEM_ERROR = :LITHIC_SYSTEM_ERROR - LITHIC_SYSTEM_RATE_LIMIT = :LITHIC_SYSTEM_RATE_LIMIT - MALFORMED_ASA_RESPONSE = :MALFORMED_ASA_RESPONSE - MERCHANT_INVALID = :MERCHANT_INVALID - MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE = :MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE - MERCHANT_NOT_PERMITTED = :MERCHANT_NOT_PERMITTED - OVER_REVERSAL_ATTEMPTED = :OVER_REVERSAL_ATTEMPTED - PIN_BLOCKED = :PIN_BLOCKED - PROGRAM_CARD_SPEND_LIMIT_EXCEEDED = :PROGRAM_CARD_SPEND_LIMIT_EXCEEDED - PROGRAM_SUSPENDED = :PROGRAM_SUSPENDED - PROGRAM_USAGE_RESTRICTION = :PROGRAM_USAGE_RESTRICTION - REVERSAL_UNMATCHED = :REVERSAL_UNMATCHED - SECURITY_VIOLATION = :SECURITY_VIOLATION - SINGLE_USE_CARD_REATTEMPTED = :SINGLE_USE_CARD_REATTEMPTED - SUSPECTED_FRAUD = :SUSPECTED_FRAUD - TRANSACTION_INVALID = :TRANSACTION_INVALID - TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL = :TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL - TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER = :TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER - TRANSACTION_PREVIOUSLY_COMPLETED = :TRANSACTION_PREVIOUSLY_COMPLETED - UNAUTHORIZED_MERCHANT = :UNAUTHORIZED_MERCHANT - VEHICLE_NUMBER_INVALID = :VEHICLE_NUMBER_INVALID - CARDHOLDER_CHALLENGED = :CARDHOLDER_CHALLENGED - CARDHOLDER_CHALLENGE_FAILED = :CARDHOLDER_CHALLENGE_FAILED - - # @!method self.values - # @return [Array] - end - - # @see Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization#type - module Type - extend Lithic::Internal::Type::Enum - - DECLINE = :DECLINE - - # @!method self.values - # @return [Array] - end - end - - class ChallengeActionAuthorization < Lithic::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ChallengeActionAuthorization::Type] - required :type, - enum: -> { Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ChallengeActionAuthorization::Type } - - # @!method initialize(type:) - # @param type [Symbol, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ChallengeActionAuthorization::Type] - - # @see Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ChallengeActionAuthorization#type - module Type - extend Lithic::Internal::Type::Enum - - CHALLENGE = :CHALLENGE - - # @!method self.values - # @return [Array] - end - end - - class ResultAuthentication3DSAction < Lithic::Internal::Type::BaseModel - # @!attribute type - # - # @return [Symbol, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ResultAuthentication3DSAction::Type] - required :type, - enum: -> { Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ResultAuthentication3DSAction::Type } - - # @!method initialize(type:) - # @param type [Symbol, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ResultAuthentication3DSAction::Type] - - # @see Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ResultAuthentication3DSAction#type - module Type - extend Lithic::Internal::Type::Enum - - DECLINE = :DECLINE - CHALLENGE = :CHALLENGE - - # @!method self.values - # @return [Array] - end - end - - class DeclineActionTokenization < Lithic::Internal::Type::BaseModel - # @!attribute type - # Decline the tokenization request - # - # @return [Symbol, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Type] - required :type, - enum: -> { Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Type } - - # @!attribute reason - # Reason code for declining the tokenization request - # - # @return [Symbol, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Reason, nil] - optional :reason, - enum: -> { Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Reason } - - # @!method initialize(type:, reason: nil) - # @param type [Symbol, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Type] Decline the tokenization request - # - # @param reason [Symbol, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Reason] Reason code for declining the tokenization request - - # Decline the tokenization request - # - # @see Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization#type - module Type - extend Lithic::Internal::Type::Enum - - DECLINE = :DECLINE - - # @!method self.values - # @return [Array] - end - - # Reason code for declining the tokenization request - # - # @see Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization#reason - module Reason - 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 - end - - class RequireTfaAction < Lithic::Internal::Type::BaseModel - # @!attribute type - # Require two-factor authentication for the tokenization request - # - # @return [Symbol, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Type] - required :type, - enum: -> { Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Type } - - # @!attribute reason - # Reason code for requiring two-factor authentication - # - # @return [Symbol, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Reason, nil] - optional :reason, - enum: -> { Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Reason } - - # @!method initialize(type:, reason: nil) - # @param type [Symbol, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Type] Require two-factor authentication for the tokenization request - # - # @param reason [Symbol, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Reason] Reason code for requiring two-factor authentication - - # Require two-factor authentication for the tokenization request - # - # @see Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction#type - module Type - extend Lithic::Internal::Type::Enum - - REQUIRE_TFA = :REQUIRE_TFA - - # @!method self.values - # @return [Array] - end - - # Reason code for requiring two-factor authentication - # - # @see Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction#reason - module Reason - 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 - end - - class ApproveActionACH < Lithic::Internal::Type::BaseModel - # @!attribute type - # Approve the ACH transaction - # - # @return [Symbol, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ApproveActionACH::Type] - required :type, - enum: -> { Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ApproveActionACH::Type } - - # @!method initialize(type:) - # @param type [Symbol, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ApproveActionACH::Type] Approve the ACH transaction - - # Approve the ACH transaction - # - # @see Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ApproveActionACH#type - module Type - extend Lithic::Internal::Type::Enum - - APPROVE = :APPROVE - - # @!method self.values - # @return [Array] - end - end - - class ReturnAction < Lithic::Internal::Type::BaseModel - # @!attribute code - # NACHA return code to use when returning the transaction. Note that the list of - # available return codes is subject to an allowlist configured at the program - # level - # - # @return [Symbol, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code] - required :code, - enum: -> { Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code } - - # @!attribute type - # Return the ACH transaction - # - # @return [Symbol, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Type] - required :type, - enum: -> { Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Type } - - # @!method initialize(code:, type:) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction} - # for more details. - # - # @param code [Symbol, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code] NACHA return code to use when returning the transaction. Note that the list of a - # - # @param type [Symbol, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Type] Return the ACH transaction - - # NACHA return code to use when returning the transaction. Note that the list of - # available return codes is subject to an allowlist configured at the program - # level - # - # @see Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction#code - module Code - extend Lithic::Internal::Type::Enum - - R01 = :R01 - R02 = :R02 - R03 = :R03 - R04 = :R04 - R05 = :R05 - R06 = :R06 - R07 = :R07 - R08 = :R08 - R09 = :R09 - R10 = :R10 - R11 = :R11 - R12 = :R12 - R13 = :R13 - R14 = :R14 - R15 = :R15 - R16 = :R16 - R17 = :R17 - R18 = :R18 - R19 = :R19 - R20 = :R20 - R21 = :R21 - R22 = :R22 - R23 = :R23 - R24 = :R24 - R25 = :R25 - R26 = :R26 - R27 = :R27 - R28 = :R28 - R29 = :R29 - R30 = :R30 - R31 = :R31 - R32 = :R32 - R33 = :R33 - R34 = :R34 - R35 = :R35 - R36 = :R36 - R37 = :R37 - R38 = :R38 - R39 = :R39 - R40 = :R40 - R41 = :R41 - R42 = :R42 - R43 = :R43 - R44 = :R44 - R45 = :R45 - R46 = :R46 - R47 = :R47 - R50 = :R50 - R51 = :R51 - R52 = :R52 - R53 = :R53 - R61 = :R61 - R62 = :R62 - R67 = :R67 - R68 = :R68 - R69 = :R69 - R70 = :R70 - R71 = :R71 - R72 = :R72 - R73 = :R73 - R74 = :R74 - R75 = :R75 - R76 = :R76 - R77 = :R77 - R80 = :R80 - R81 = :R81 - R82 = :R82 - R83 = :R83 - R84 = :R84 - R85 = :R85 - - # @!method self.values - # @return [Array] - end - - # Return the ACH transaction - # - # @see Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction#type - module Type - extend Lithic::Internal::Type::Enum - - RETURN = :RETURN - - # @!method self.values - # @return [Array] - end - end - - # @!method self.variants - # @return [Array(Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ChallengeActionAuthorization, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ResultAuthentication3DSAction, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ApproveActionACH, Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction)] - end - end - - # The evaluation mode of this version during the reported period. - # - # @see Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version#state - module State - extend Lithic::Internal::Type::Enum - - ACTIVE = :ACTIVE - SHADOW = :SHADOW - INACTIVE = :INACTIVE - - # @!method self.values - # @return [Array] - end - end + # @param versions [Array] Statistics for each version of the rule that was evaluated during the reported d end end end diff --git a/lib/lithic/models/card_authorization_approval_request_webhook_event.rb b/lib/lithic/models/card_authorization_approval_request_webhook_event.rb index e05124d0..331156be 100644 --- a/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +++ b/lib/lithic/models/card_authorization_approval_request_webhook_event.rb @@ -494,27 +494,20 @@ class Card < Lithic::Internal::Type::BaseModel # @!attribute token # Globally unique identifier for the card. # - # @return [String, nil] - optional :token, String - - # @!attribute hostname - # Hostname of card’s locked merchant (will be empty if not applicable) - # - # @return [String, nil] - optional :hostname, String + # @return [String] + required :token, String # @!attribute last_four # Last four digits of the card number # - # @return [String, nil] - optional :last_four, String + # @return [String] + required :last_four, String # @!attribute memo - # Customizable name to identify the card. We recommend against using this field to - # store JSON data as it can cause unexpected behavior. + # Customizable name to identify the card # - # @return [String, nil] - optional :memo, String + # @return [String] + required :memo, String # @!attribute spend_limit # Amount (in cents) to limit approved authorizations. Purchase requests above the @@ -526,29 +519,29 @@ class Card < Lithic::Internal::Type::BaseModel # charges (i.e., when a merchant sends a clearing message without a prior # authorization). # - # @return [Integer, nil] - optional :spend_limit, Integer + # @return [Integer] + required :spend_limit, Integer # @!attribute spend_limit_duration # Note that to support recurring monthly payments, which can occur on different # day every month, the time window we consider for MONTHLY velocity starts 6 days # after the current calendar date one month prior. # - # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration, nil] - optional :spend_limit_duration, + # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration] + required :spend_limit_duration, enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration } # @!attribute state # - # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::State, nil] - optional :state, enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::State } + # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::State] + required :state, enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::State } # @!attribute type # - # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::Type, nil] - optional :type, enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::Type } + # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::Type] + required :type, enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::Type } - # @!method initialize(token: nil, hostname: nil, last_four: nil, memo: nil, spend_limit: nil, spend_limit_duration: nil, state: nil, type: nil) + # @!method initialize(token:, last_four:, memo:, spend_limit:, spend_limit_duration:, state:, type:) # Some parameter documentations has been truncated, see # {Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card} for more # details. @@ -557,11 +550,9 @@ class Card < Lithic::Internal::Type::BaseModel # # @param token [String] Globally unique identifier for the card. # - # @param hostname [String] Hostname of card’s locked merchant (will be empty if not applicable) - # # @param last_four [String] Last four digits of the card number # - # @param memo [String] Customizable name to identify the card. We recommend against using this field to + # @param memo [String] Customizable name to identify the card # # @param spend_limit [Integer] Amount (in cents) to limit approved authorizations. Purchase requests above the # diff --git a/lib/lithic/models/card_bulk_order.rb b/lib/lithic/models/card_bulk_order.rb index d8410e16..798f03be 100644 --- a/lib/lithic/models/card_bulk_order.rb +++ b/lib/lithic/models/card_bulk_order.rb @@ -36,7 +36,8 @@ class CardBulkOrder < Lithic::Internal::Type::BaseModel required :shipping_address, Lithic::Internal::Type::Unknown # @!attribute shipping_method - # Shipping method for all cards in this bulk order + # Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and + # BULK_EXPRESS are only available with Perfect Plastic Printing # # @return [Symbol, Lithic::Models::CardBulkOrder::ShippingMethod] required :shipping_method, enum: -> { Lithic::CardBulkOrder::ShippingMethod } @@ -70,19 +71,23 @@ class CardBulkOrder < Lithic::Internal::Type::BaseModel # # @param shipping_address [Object] Shipping address for all cards in this bulk order # - # @param shipping_method [Symbol, Lithic::Models::CardBulkOrder::ShippingMethod] Shipping method for all cards in this bulk order + # @param shipping_method [Symbol, Lithic::Models::CardBulkOrder::ShippingMethod] Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and # # @param status [Symbol, Lithic::Models::CardBulkOrder::Status] Status of the bulk order. OPEN indicates the order is accepting cards. LOCKED in # # @param updated [Time] An RFC 3339 timestamp for when the bulk order was last updated. UTC time zone - # Shipping method for all cards in this bulk order + # Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and + # BULK_EXPRESS are only available with Perfect Plastic Printing # # @see Lithic::Models::CardBulkOrder#shipping_method module ShippingMethod extend Lithic::Internal::Type::Enum BULK_EXPEDITED = :BULK_EXPEDITED + BULK_PRIORITY = :BULK_PRIORITY + BULK_2_DAY = :BULK_2_DAY + BULK_EXPRESS = :BULK_EXPRESS # @!method self.values # @return [Array] diff --git a/lib/lithic/models/card_bulk_order_create_params.rb b/lib/lithic/models/card_bulk_order_create_params.rb index ae8ffb72..40b2d649 100644 --- a/lib/lithic/models/card_bulk_order_create_params.rb +++ b/lib/lithic/models/card_bulk_order_create_params.rb @@ -21,7 +21,8 @@ class CardBulkOrderCreateParams < Lithic::Internal::Type::BaseModel required :shipping_address, Lithic::Internal::Type::Unknown # @!attribute shipping_method - # Shipping method for all cards in this bulk order + # Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and + # BULK_EXPRESS are only available with Perfect Plastic Printing # # @return [Symbol, Lithic::Models::CardBulkOrderCreateParams::ShippingMethod] required :shipping_method, enum: -> { Lithic::CardBulkOrderCreateParams::ShippingMethod } @@ -34,15 +35,19 @@ class CardBulkOrderCreateParams < Lithic::Internal::Type::BaseModel # # @param shipping_address [Object] Shipping address for all cards in this bulk order # - # @param shipping_method [Symbol, Lithic::Models::CardBulkOrderCreateParams::ShippingMethod] Shipping method for all cards in this bulk order + # @param shipping_method [Symbol, Lithic::Models::CardBulkOrderCreateParams::ShippingMethod] Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] - # Shipping method for all cards in this bulk order + # Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and + # BULK_EXPRESS are only available with Perfect Plastic Printing module ShippingMethod extend Lithic::Internal::Type::Enum BULK_EXPEDITED = :BULK_EXPEDITED + BULK_PRIORITY = :BULK_PRIORITY + BULK_2_DAY = :BULK_2_DAY + BULK_EXPRESS = :BULK_EXPRESS # @!method self.values # @return [Array] diff --git a/lib/lithic/models/card_convert_physical_params.rb b/lib/lithic/models/card_convert_physical_params.rb index 19eb76b8..efae78ae 100644 --- a/lib/lithic/models/card_convert_physical_params.rb +++ b/lib/lithic/models/card_convert_physical_params.rb @@ -47,7 +47,8 @@ class CardConvertPhysicalParams < Lithic::Internal::Type::BaseModel # tracking # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight # or similar international option, with tracking - # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping + # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The + # shipping method and timeline are inherited from the parent bulk order. # # @return [Symbol, Lithic::Models::CardConvertPhysicalParams::ShippingMethod, nil] optional :shipping_method, enum: -> { Lithic::CardConvertPhysicalParams::ShippingMethod } @@ -82,12 +83,13 @@ class CardConvertPhysicalParams < Lithic::Internal::Type::BaseModel # tracking # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight # or similar international option, with tracking - # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping + # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The + # shipping method and timeline are inherited from the parent bulk order. module ShippingMethod extend Lithic::Internal::Type::Enum SHIPPING_METHOD_2_DAY = :"2_DAY" - BULK_EXPEDITED = :BULK_EXPEDITED + BULK = :BULK EXPEDITED = :EXPEDITED EXPRESS = :EXPRESS PRIORITY = :PRIORITY diff --git a/lib/lithic/models/card_create_params.rb b/lib/lithic/models/card_create_params.rb index 669b73db..1d6837a9 100644 --- a/lib/lithic/models/card_create_params.rb +++ b/lib/lithic/models/card_create_params.rb @@ -183,7 +183,8 @@ class CardCreateParams < Lithic::Internal::Type::BaseModel # tracking # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight # or similar international option, with tracking - # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping + # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The + # shipping method and timeline are inherited from the parent bulk order. # # @return [Symbol, Lithic::Models::CardCreateParams::ShippingMethod, nil] optional :shipping_method, enum: -> { Lithic::CardCreateParams::ShippingMethod } @@ -369,12 +370,13 @@ module ReplacementSubstatus # tracking # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight # or similar international option, with tracking - # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping + # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The + # shipping method and timeline are inherited from the parent bulk order. module ShippingMethod extend Lithic::Internal::Type::Enum SHIPPING_METHOD_2_DAY = :"2_DAY" - BULK_EXPEDITED = :BULK_EXPEDITED + BULK = :BULK EXPEDITED = :EXPEDITED EXPRESS = :EXPRESS PRIORITY = :PRIORITY diff --git a/lib/lithic/models/card_reissue_params.rb b/lib/lithic/models/card_reissue_params.rb index 3212f176..c0e07ceb 100644 --- a/lib/lithic/models/card_reissue_params.rb +++ b/lib/lithic/models/card_reissue_params.rb @@ -47,7 +47,8 @@ class CardReissueParams < Lithic::Internal::Type::BaseModel # tracking # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight # or similar international option, with tracking - # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping + # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The + # shipping method and timeline are inherited from the parent bulk order. # # @return [Symbol, Lithic::Models::CardReissueParams::ShippingMethod, nil] optional :shipping_method, enum: -> { Lithic::CardReissueParams::ShippingMethod } @@ -82,12 +83,13 @@ class CardReissueParams < Lithic::Internal::Type::BaseModel # tracking # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight # or similar international option, with tracking - # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping + # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The + # shipping method and timeline are inherited from the parent bulk order. module ShippingMethod extend Lithic::Internal::Type::Enum SHIPPING_METHOD_2_DAY = :"2_DAY" - BULK_EXPEDITED = :BULK_EXPEDITED + BULK = :BULK EXPEDITED = :EXPEDITED EXPRESS = :EXPRESS PRIORITY = :PRIORITY diff --git a/lib/lithic/models/card_renew_params.rb b/lib/lithic/models/card_renew_params.rb index 2b7fcd07..5b7cd10c 100644 --- a/lib/lithic/models/card_renew_params.rb +++ b/lib/lithic/models/card_renew_params.rb @@ -61,7 +61,8 @@ class CardRenewParams < Lithic::Internal::Type::BaseModel # tracking # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight # or similar international option, with tracking - # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping + # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The + # shipping method and timeline are inherited from the parent bulk order. # # @return [Symbol, Lithic::Models::CardRenewParams::ShippingMethod, nil] optional :shipping_method, enum: -> { Lithic::CardRenewParams::ShippingMethod } @@ -100,12 +101,13 @@ class CardRenewParams < Lithic::Internal::Type::BaseModel # tracking # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight # or similar international option, with tracking - # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping + # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The + # shipping method and timeline are inherited from the parent bulk order. module ShippingMethod extend Lithic::Internal::Type::Enum SHIPPING_METHOD_2_DAY = :"2_DAY" - BULK_EXPEDITED = :BULK_EXPEDITED + BULK = :BULK EXPEDITED = :EXPEDITED EXPRESS = :EXPRESS PRIORITY = :PRIORITY diff --git a/lib/lithic/models/financial_account.rb b/lib/lithic/models/financial_account.rb index 5c290dec..2cb731e3 100644 --- a/lib/lithic/models/financial_account.rb +++ b/lib/lithic/models/financial_account.rb @@ -203,6 +203,7 @@ module Type COLLECTION = :COLLECTION PROGRAM_BANK_ACCOUNTS_PAYABLE = :PROGRAM_BANK_ACCOUNTS_PAYABLE EARLY_DIRECT_DEPOSIT_FLOAT = :EARLY_DIRECT_DEPOSIT_FLOAT + PROVISIONAL_CREDIT_ACCOUNT = :PROVISIONAL_CREDIT_ACCOUNT # @!method self.values # @return [Array] diff --git a/lib/lithic/models/financial_accounts/statement.rb b/lib/lithic/models/financial_accounts/statement.rb index fd3c37ef..36217b63 100644 --- a/lib/lithic/models/financial_accounts/statement.rb +++ b/lib/lithic/models/financial_accounts/statement.rb @@ -42,8 +42,8 @@ class Statement < Lithic::Internal::Type::BaseModel # @!attribute credit_product_token # Globally unique identifier for a credit product # - # @return [String] - required :credit_product_token, String + # @return [String, nil] + required :credit_product_token, String, nil?: true # @!attribute days_in_billing_cycle # Number of days in the billing cycle @@ -132,7 +132,12 @@ class Statement < Lithic::Internal::Type::BaseModel # @return [Lithic::Models::FinancialAccounts::Statement::PayoffDetails, nil] optional :payoff_details, -> { Lithic::FinancialAccounts::Statement::PayoffDetails }, nil?: true - # @!method initialize(token:, account_standing:, amount_due:, available_credit:, created:, credit_limit:, credit_product_token:, days_in_billing_cycle:, ending_balance:, financial_account_token:, payment_due_date:, period_totals:, starting_balance:, statement_end_date:, statement_start_date:, statement_type:, updated:, ytd_totals:, interest_details: nil, next_payment_due_date: nil, next_statement_end_date: nil, payoff_details: nil) + # @!attribute statement_totals + # + # @return [Lithic::Models::StatementTotals, nil] + optional :statement_totals, -> { Lithic::StatementTotals } + + # @!method initialize(token:, account_standing:, amount_due:, available_credit:, created:, credit_limit:, credit_product_token:, days_in_billing_cycle:, ending_balance:, financial_account_token:, payment_due_date:, period_totals:, starting_balance:, statement_end_date:, statement_start_date:, statement_type:, updated:, ytd_totals:, interest_details: nil, next_payment_due_date: nil, next_statement_end_date: nil, payoff_details: nil, statement_totals: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::FinancialAccounts::Statement} for more details. # @@ -148,7 +153,7 @@ class Statement < Lithic::Internal::Type::BaseModel # # @param credit_limit [Integer] This is the maximum credit balance extended by the lender in cents # - # @param credit_product_token [String] Globally unique identifier for a credit product + # @param credit_product_token [String, nil] Globally unique identifier for a credit product # # @param days_in_billing_cycle [Integer] Number of days in the billing cycle # @@ -179,6 +184,8 @@ class Statement < Lithic::Internal::Type::BaseModel # @param next_statement_end_date [Date] Date when the next billing period will end # # @param payoff_details [Lithic::Models::FinancialAccounts::Statement::PayoffDetails, nil] Details on number and size of payments to pay off balance + # + # @param statement_totals [Lithic::Models::StatementTotals] # @see Lithic::Models::FinancialAccounts::Statement#account_standing class AccountStanding < Lithic::Internal::Type::BaseModel diff --git a/lib/lithic/models/instance_financial_account_type.rb b/lib/lithic/models/instance_financial_account_type.rb index 5c92c5b4..da4a7e10 100644 --- a/lib/lithic/models/instance_financial_account_type.rb +++ b/lib/lithic/models/instance_financial_account_type.rb @@ -17,6 +17,7 @@ module InstanceFinancialAccountType COLLECTION = :COLLECTION PROGRAM_BANK_ACCOUNTS_PAYABLE = :PROGRAM_BANK_ACCOUNTS_PAYABLE EARLY_DIRECT_DEPOSIT_FLOAT = :EARLY_DIRECT_DEPOSIT_FLOAT + PROVISIONAL_CREDIT_ACCOUNT = :PROVISIONAL_CREDIT_ACCOUNT # @!method self.values # @return [Array] diff --git a/lib/lithic/models/payment_create_params.rb b/lib/lithic/models/payment_create_params.rb index 14bc2e5e..f777988f 100644 --- a/lib/lithic/models/payment_create_params.rb +++ b/lib/lithic/models/payment_create_params.rb @@ -113,12 +113,24 @@ class MethodAttributes < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :addenda, String, nil?: true - # @!method initialize(sec_code:, ach_hold_period: nil, addenda: nil) + # @!attribute override_company_name + # Value to override the configured company name with. Can only be used if allowed + # to override + # + # @return [String, nil] + optional :override_company_name, String, nil?: true + + # @!method initialize(sec_code:, ach_hold_period: nil, addenda: nil, override_company_name: nil) + # Some parameter documentations has been truncated, see + # {Lithic::Models::PaymentCreateParams::MethodAttributes} for more details. + # # @param sec_code [Symbol, Lithic::Models::PaymentCreateParams::MethodAttributes::SecCode] # # @param ach_hold_period [Integer] Number of days to hold the ACH payment # # @param addenda [String, nil] + # + # @param override_company_name [String, nil] Value to override the configured company name with. Can only be used if allowed # @see Lithic::Models::PaymentCreateParams::MethodAttributes#sec_code module SecCode diff --git a/lib/lithic/resources/card_bulk_orders.rb b/lib/lithic/resources/card_bulk_orders.rb index 366c1723..63c251f3 100644 --- a/lib/lithic/resources/card_bulk_orders.rb +++ b/lib/lithic/resources/card_bulk_orders.rb @@ -6,12 +6,11 @@ class CardBulkOrders # Some parameter documentations has been truncated, see # {Lithic::Models::CardBulkOrderCreateParams} for more details. # - # Create a new bulk order for physical card shipments **[BETA]**. Cards can be - # added to the order via the POST /v1/cards endpoint by specifying the - # bulk_order_token. Lock the order via PATCH - # /v1/card_bulk_orders/{bulk_order_token} to prepare for shipment. Please work - # with your Customer Success Manager and card personalization bureau to ensure - # bulk shipping is supported for your program. + # Create a new bulk order for physical card shipments. Cards can be added to the + # order via the POST /v1/cards endpoint by specifying the bulk_order_token. Lock + # the order via PATCH /v1/card_bulk_orders/{bulk_order_token} to prepare for + # shipment. Please work with your Customer Success Manager and card + # personalization bureau to ensure bulk shipping is supported for your program. # # @overload create(customer_product_id:, shipping_address:, shipping_method:, request_options: {}) # @@ -19,7 +18,7 @@ class CardBulkOrders # # @param shipping_address [Object] Shipping address for all cards in this bulk order # - # @param shipping_method [Symbol, Lithic::Models::CardBulkOrderCreateParams::ShippingMethod] Shipping method for all cards in this bulk order + # @param shipping_method [Symbol, Lithic::Models::CardBulkOrderCreateParams::ShippingMethod] Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -37,7 +36,7 @@ def create(params) ) end - # Retrieve a specific bulk order by token **[BETA]** + # Retrieve a specific bulk order by token # # @overload retrieve(bulk_order_token, request_options: {}) # @@ -57,8 +56,8 @@ def retrieve(bulk_order_token, params = {}) ) end - # Update a bulk order **[BETA]**. Primarily used to lock the order, preventing - # additional cards from being added + # Update a bulk order. Primarily used to lock the order, preventing additional + # cards from being added # # @overload update(bulk_order_token, status:, request_options: {}) # @@ -85,7 +84,7 @@ def update(bulk_order_token, params) # Some parameter documentations has been truncated, see # {Lithic::Models::CardBulkOrderListParams} for more details. # - # List bulk orders for physical card shipments **[BETA]** + # List bulk orders for physical card shipments # # @overload list(begin_: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, request_options: {}) # diff --git a/lib/lithic/version.rb b/lib/lithic/version.rb index fba104c0..2b43120f 100644 --- a/lib/lithic/version.rb +++ b/lib/lithic/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Lithic - VERSION = "0.10.0" + VERSION = "0.11.0" end diff --git a/rbi/lithic/internal/util.rbi b/rbi/lithic/internal/util.rbi index e912ad70..2971ee60 100644 --- a/rbi/lithic/internal/util.rbi +++ b/rbi/lithic/internal/util.rbi @@ -148,12 +148,20 @@ module Lithic end end + # https://www.rfc-editor.org/rfc/rfc3986.html#section-3.3 + RFC_3986_NOT_PCHARS = T.let(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/, Regexp) + class << self # @api private sig { params(uri: URI::Generic).returns(String) } def uri_origin(uri) end + # @api private + sig { params(path: T.any(String, Integer)).returns(String) } + def encode_path(path) + end + # @api private sig { params(path: T.any(String, T::Array[String])).returns(String) } def interpolate_path(path) diff --git a/rbi/lithic/models/auth_rules/backtest_stats.rbi b/rbi/lithic/models/auth_rules/backtest_stats.rbi index ac8cd9c9..2e6549df 100644 --- a/rbi/lithic/models/auth_rules/backtest_stats.rbi +++ b/rbi/lithic/models/auth_rules/backtest_stats.rbi @@ -148,12 +148,17 @@ module Lithic sig { params(timestamp: Time).void } attr_writer :timestamp + # The token of the transaction associated with the event + sig { returns(T.nilable(String)) } + attr_accessor :transaction_token + sig do params( decision: Lithic::AuthRules::BacktestStats::Example::Decision::OrSymbol, event_token: String, - timestamp: Time + timestamp: Time, + transaction_token: T.nilable(String) ).returns(T.attached_class) end def self.new( @@ -162,7 +167,9 @@ module Lithic # The event token. event_token: nil, # The timestamp of the event. - timestamp: nil + timestamp: nil, + # The token of the transaction associated with the event + transaction_token: nil ) end @@ -172,7 +179,8 @@ module Lithic decision: Lithic::AuthRules::BacktestStats::Example::Decision::TaggedSymbol, event_token: String, - timestamp: Time + timestamp: Time, + transaction_token: T.nilable(String) } ) end diff --git a/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi b/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi index 40635234..201fb34a 100644 --- a/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +++ b/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi @@ -144,6 +144,12 @@ module Lithic # 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_DECLINE_COUNT_15M`: The number of declined transactions on the card in + # the trailing 15 minutes before the authorization. + # - `CARD_DECLINE_COUNT_1H`: The number of declined transactions on the card in + # the trailing hour up and until the authorization. + # - `CARD_DECLINE_COUNT_24H`: The number of declined 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`. @@ -233,6 +239,12 @@ module Lithic # 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_DECLINE_COUNT_15M`: The number of declined transactions on the card in + # the trailing 15 minutes before the authorization. + # - `CARD_DECLINE_COUNT_1H`: The number of declined transactions on the card in + # the trailing hour up and until the authorization. + # - `CARD_DECLINE_COUNT_24H`: The number of declined 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`. @@ -319,6 +331,12 @@ module Lithic # 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_DECLINE_COUNT_15M`: The number of declined transactions on the card in + # the trailing 15 minutes before the authorization. + # - `CARD_DECLINE_COUNT_1H`: The number of declined transactions on the card in + # the trailing hour up and until the authorization. + # - `CARD_DECLINE_COUNT_24H`: The number of declined 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`. @@ -422,6 +440,21 @@ module Lithic :CARD_TRANSACTION_COUNT_24H, Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + CARD_DECLINE_COUNT_15_M = + T.let( + :CARD_DECLINE_COUNT_15M, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) + CARD_DECLINE_COUNT_1_H = + T.let( + :CARD_DECLINE_COUNT_1H, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) + CARD_DECLINE_COUNT_24_H = + T.let( + :CARD_DECLINE_COUNT_24H, + Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) CARD_STATE = T.let( :CARD_STATE, diff --git a/rbi/lithic/models/auth_rules/report_stats.rbi b/rbi/lithic/models/auth_rules/report_stats.rbi index 15ff00d9..00452eba 100644 --- a/rbi/lithic/models/auth_rules/report_stats.rbi +++ b/rbi/lithic/models/auth_rules/report_stats.rbi @@ -10,86 +10,44 @@ module Lithic end # A mapping of action types to the number of times that action was returned by - # this rule during the relevant period. Actions are the possible outcomes of a + # this version during the relevant period. Actions are the possible outcomes of a # rule evaluation, such as DECLINE, CHALLENGE, REQUIRE_TFA, etc. In case rule # didn't trigger any action, it's counted under NO_ACTION key. - sig { returns(T.nilable(T::Hash[Symbol, Integer])) } - attr_reader :action_counts + sig { returns(T::Hash[Symbol, Integer]) } + attr_accessor :action_counts - sig { params(action_counts: T::Hash[Symbol, Integer]).void } - attr_writer :action_counts + # Example events and their outcomes for this version. + sig { returns(T::Array[Lithic::AuthRules::ReportStats::Example]) } + attr_accessor :examples - # The total number of historical transactions approved by this rule during the - # relevant period, or the number of transactions that would have been approved if - # the rule was evaluated in shadow mode. - sig { returns(T.nilable(Integer)) } - attr_reader :approved + # The evaluation mode of this version during the reported period. + sig { returns(Lithic::AuthRules::ReportStats::State::TaggedSymbol) } + attr_accessor :state - sig { params(approved: Integer).void } - attr_writer :approved - - # The total number of historical transactions challenged by this rule during the - # relevant period, or the number of transactions that would have been challenged - # if the rule was evaluated in shadow mode. Currently applicable only for 3DS Auth - # Rules. - sig { returns(T.nilable(Integer)) } - attr_reader :challenged - - sig { params(challenged: Integer).void } - attr_writer :challenged - - # The total number of historical transactions declined by this rule during the - # relevant period, or the number of transactions that would have been declined if - # the rule was evaluated in shadow mode. - sig { returns(T.nilable(Integer)) } - attr_reader :declined - - sig { params(declined: Integer).void } - attr_writer :declined - - # Example events and their outcomes. - sig do - returns(T.nilable(T::Array[Lithic::AuthRules::ReportStats::Example])) - end - attr_reader :examples - - sig do - params( - examples: T::Array[Lithic::AuthRules::ReportStats::Example::OrHash] - ).void - end - attr_writer :examples + # The rule version number. + sig { returns(Integer) } + attr_accessor :version sig do params( action_counts: T::Hash[Symbol, Integer], - approved: Integer, - challenged: Integer, - declined: Integer, - examples: T::Array[Lithic::AuthRules::ReportStats::Example::OrHash] + examples: T::Array[Lithic::AuthRules::ReportStats::Example::OrHash], + state: Lithic::AuthRules::ReportStats::State::OrSymbol, + version: Integer ).returns(T.attached_class) end def self.new( # A mapping of action types to the number of times that action was returned by - # this rule during the relevant period. Actions are the possible outcomes of a + # this version during the relevant period. Actions are the possible outcomes of a # rule evaluation, such as DECLINE, CHALLENGE, REQUIRE_TFA, etc. In case rule # didn't trigger any action, it's counted under NO_ACTION key. - action_counts: nil, - # The total number of historical transactions approved by this rule during the - # relevant period, or the number of transactions that would have been approved if - # the rule was evaluated in shadow mode. - approved: nil, - # The total number of historical transactions challenged by this rule during the - # relevant period, or the number of transactions that would have been challenged - # if the rule was evaluated in shadow mode. Currently applicable only for 3DS Auth - # Rules. - challenged: nil, - # The total number of historical transactions declined by this rule during the - # relevant period, or the number of transactions that would have been declined if - # the rule was evaluated in shadow mode. - declined: nil, - # Example events and their outcomes. - examples: nil + action_counts:, + # Example events and their outcomes for this version. + examples:, + # The evaluation mode of this version during the reported period. + state:, + # The rule version number. + version: ) end @@ -97,10 +55,9 @@ module Lithic override.returns( { action_counts: T::Hash[Symbol, Integer], - approved: Integer, - challenged: Integer, - declined: Integer, - examples: T::Array[Lithic::AuthRules::ReportStats::Example] + examples: T::Array[Lithic::AuthRules::ReportStats::Example], + state: Lithic::AuthRules::ReportStats::State::TaggedSymbol, + version: Integer } ) end @@ -116,74 +73,27 @@ module Lithic ) end - # The actions taken by the rule for this event. + # The actions taken by this version for this event. sig do returns( - T.nilable( - T::Array[ - Lithic::AuthRules::ReportStats::Example::Action::Variants - ] - ) + T::Array[ + Lithic::AuthRules::ReportStats::Example::Action::Variants + ] ) end - attr_reader :actions - - sig do - params( - actions: - T::Array[ - T.any( - Lithic::AuthRules::ReportStats::Example::Action::DeclineActionAuthorization::OrHash, - Lithic::AuthRules::ReportStats::Example::Action::ChallengeActionAuthorization::OrHash, - Lithic::AuthRules::ReportStats::Example::Action::ResultAuthentication3DSAction::OrHash, - Lithic::AuthRules::ReportStats::Example::Action::DeclineActionTokenization::OrHash, - Lithic::AuthRules::ReportStats::Example::Action::RequireTfaAction::OrHash, - Lithic::AuthRules::ReportStats::Example::Action::ApproveActionACH::OrHash, - Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::OrHash - ) - ] - ).void - end - attr_writer :actions - - # Whether the rule would have approved the request. - sig { returns(T.nilable(T::Boolean)) } - attr_reader :approved - - sig { params(approved: T::Boolean).void } - attr_writer :approved - - # The decision made by the rule for this event. - sig do - returns( - T.nilable( - Lithic::AuthRules::ReportStats::Example::Decision::TaggedSymbol - ) - ) - end - attr_reader :decision - - sig do - params( - decision: - Lithic::AuthRules::ReportStats::Example::Decision::OrSymbol - ).void - end - attr_writer :decision + attr_accessor :actions # The event token. - sig { returns(T.nilable(String)) } - attr_reader :event_token - - sig { params(event_token: String).void } - attr_writer :event_token + sig { returns(String) } + attr_accessor :event_token # The timestamp of the event. - sig { returns(T.nilable(Time)) } - attr_reader :timestamp + sig { returns(Time) } + attr_accessor :timestamp - sig { params(timestamp: Time).void } - attr_writer :timestamp + # The token of the transaction associated with the event + sig { returns(T.nilable(String)) } + attr_accessor :transaction_token sig do params( @@ -199,24 +109,20 @@ module Lithic Lithic::AuthRules::ReportStats::Example::Action::ReturnAction::OrHash ) ], - approved: T::Boolean, - decision: - Lithic::AuthRules::ReportStats::Example::Decision::OrSymbol, event_token: String, - timestamp: Time + timestamp: Time, + transaction_token: T.nilable(String) ).returns(T.attached_class) end def self.new( - # The actions taken by the rule for this event. - actions: nil, - # Whether the rule would have approved the request. - approved: nil, - # The decision made by the rule for this event. - decision: nil, + # The actions taken by this version for this event. + actions:, # The event token. - event_token: nil, + event_token:, # The timestamp of the event. - timestamp: nil + timestamp:, + # The token of the transaction associated with the event + transaction_token: nil ) end @@ -227,11 +133,9 @@ module Lithic T::Array[ Lithic::AuthRules::ReportStats::Example::Action::Variants ], - approved: T::Boolean, - decision: - Lithic::AuthRules::ReportStats::Example::Decision::TaggedSymbol, event_token: String, - timestamp: Time + timestamp: Time, + transaction_token: T.nilable(String) } ) end @@ -1710,42 +1614,34 @@ module Lithic def self.variants end end + end - # The decision made by the rule for this event. - module Decision - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Lithic::AuthRules::ReportStats::Example::Decision) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } + # The evaluation mode of this version during the reported period. + module State + extend Lithic::Internal::Type::Enum - APPROVED = - T.let( - :APPROVED, - Lithic::AuthRules::ReportStats::Example::Decision::TaggedSymbol - ) - DECLINED = - T.let( - :DECLINED, - Lithic::AuthRules::ReportStats::Example::Decision::TaggedSymbol - ) - CHALLENGED = - T.let( - :CHALLENGED, - Lithic::AuthRules::ReportStats::Example::Decision::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::AuthRules::ReportStats::Example::Decision::TaggedSymbol - ] - ) - end - def self.values + TaggedSymbol = + T.type_alias do + T.all(Symbol, Lithic::AuthRules::ReportStats::State) end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ACTIVE = + T.let(:ACTIVE, Lithic::AuthRules::ReportStats::State::TaggedSymbol) + SHADOW = + T.let(:SHADOW, Lithic::AuthRules::ReportStats::State::TaggedSymbol) + INACTIVE = + T.let( + :INACTIVE, + Lithic::AuthRules::ReportStats::State::TaggedSymbol + ) + + sig do + override.returns( + T::Array[Lithic::AuthRules::ReportStats::State::TaggedSymbol] + ) + end + def self.values end end end diff --git a/rbi/lithic/models/auth_rules/v2_list_results_response.rbi b/rbi/lithic/models/auth_rules/v2_list_results_response.rbi index f74c56f0..4570d1d5 100644 --- a/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_list_results_response.rbi @@ -68,6 +68,10 @@ module Lithic sig { returns(Integer) } attr_accessor :rule_version + # The token of the transaction that triggered the rule evaluation + sig { returns(T.nilable(String)) } + attr_accessor :transaction_token + sig do params( token: String, @@ -84,6 +88,7 @@ module Lithic mode: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Mode::OrSymbol, rule_version: Integer, + transaction_token: T.nilable(String), event_stream: Symbol ).returns(T.attached_class) end @@ -102,6 +107,8 @@ module Lithic mode:, # Version of the rule that was evaluated rule_version:, + # The token of the transaction that triggered the rule evaluation + transaction_token:, # The event stream during which the rule was evaluated event_stream: :AUTHORIZATION ) @@ -121,7 +128,8 @@ module Lithic event_token: String, mode: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::Mode::TaggedSymbol, - rule_version: Integer + rule_version: Integer, + transaction_token: T.nilable(String) } ) end @@ -719,6 +727,10 @@ module Lithic sig { returns(Integer) } attr_accessor :rule_version + # The token of the transaction that triggered the rule evaluation + sig { returns(T.nilable(String)) } + attr_accessor :transaction_token + sig do params( token: String, @@ -732,6 +744,7 @@ module Lithic mode: Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::Mode::OrSymbol, rule_version: Integer, + transaction_token: T.nilable(String), event_stream: Symbol ).returns(T.attached_class) end @@ -750,6 +763,8 @@ module Lithic mode:, # Version of the rule that was evaluated rule_version:, + # The token of the transaction that triggered the rule evaluation + transaction_token:, # The event stream during which the rule was evaluated event_stream: :THREE_DS_AUTHENTICATION ) @@ -769,7 +784,8 @@ module Lithic event_token: String, mode: Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::Mode::TaggedSymbol, - rule_version: Integer + rule_version: Integer, + transaction_token: T.nilable(String) } ) end @@ -947,6 +963,10 @@ module Lithic sig { returns(Integer) } attr_accessor :rule_version + # The token of the transaction that triggered the rule evaluation + sig { returns(T.nilable(String)) } + attr_accessor :transaction_token + sig do params( token: String, @@ -963,6 +983,7 @@ module Lithic mode: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Mode::OrSymbol, rule_version: Integer, + transaction_token: T.nilable(String), event_stream: Symbol ).returns(T.attached_class) end @@ -981,6 +1002,8 @@ module Lithic mode:, # Version of the rule that was evaluated rule_version:, + # The token of the transaction that triggered the rule evaluation + transaction_token:, # The event stream during which the rule was evaluated event_stream: :TOKENIZATION ) @@ -1000,7 +1023,8 @@ module Lithic event_token: String, mode: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::Mode::TaggedSymbol, - rule_version: Integer + rule_version: Integer, + transaction_token: T.nilable(String) } ) end @@ -1522,6 +1546,10 @@ module Lithic sig { returns(Integer) } attr_accessor :rule_version + # The token of the transaction that triggered the rule evaluation + sig { returns(T.nilable(String)) } + attr_accessor :transaction_token + sig do params( token: String, @@ -1539,7 +1567,8 @@ module Lithic event_token: String, mode: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Mode::OrSymbol, - rule_version: Integer + rule_version: Integer, + transaction_token: T.nilable(String) ).returns(T.attached_class) end def self.new( @@ -1558,7 +1587,9 @@ module Lithic # The state of the Auth Rule mode:, # Version of the rule that was evaluated - rule_version: + rule_version:, + # The token of the transaction that triggered the rule evaluation + transaction_token: ) end @@ -1577,7 +1608,8 @@ module Lithic event_token: String, mode: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::Mode::TaggedSymbol, - rule_version: Integer + rule_version: Integer, + transaction_token: T.nilable(String) } ) end diff --git a/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi b/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi index 70d3d5bf..0faf2fa9 100644 --- a/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi @@ -82,65 +82,24 @@ module Lithic ) end - # Detailed statistics for the current version of the rule. - sig { returns(T.nilable(Lithic::AuthRules::ReportStats)) } - attr_reader :current_version_statistics - - sig do - params( - current_version_statistics: - T.nilable(Lithic::AuthRules::ReportStats::OrHash) - ).void - end - attr_writer :current_version_statistics - # The date (UTC) for which the statistics are reported. sig { returns(Date) } attr_accessor :date - # Detailed statistics for the draft version of the rule. - sig { returns(T.nilable(Lithic::AuthRules::ReportStats)) } - attr_reader :draft_version_statistics - - sig do - params( - draft_version_statistics: - T.nilable(Lithic::AuthRules::ReportStats::OrHash) - ).void - end - attr_writer :draft_version_statistics - # Statistics for each version of the rule that was evaluated during the reported # day. - sig do - returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version - ] - ) - end + sig { returns(T::Array[Lithic::AuthRules::ReportStats]) } attr_accessor :versions sig do params( - current_version_statistics: - T.nilable(Lithic::AuthRules::ReportStats::OrHash), date: Date, - draft_version_statistics: - T.nilable(Lithic::AuthRules::ReportStats::OrHash), - versions: - T::Array[ - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::OrHash - ] + versions: T::Array[Lithic::AuthRules::ReportStats::OrHash] ).returns(T.attached_class) end def self.new( - # Detailed statistics for the current version of the rule. - current_version_statistics:, # The date (UTC) for which the statistics are reported. date:, - # Detailed statistics for the draft version of the rule. - draft_version_statistics:, # Statistics for each version of the rule that was evaluated during the reported # day. versions: @@ -149,1688 +108,11 @@ module Lithic sig do override.returns( - { - current_version_statistics: - T.nilable(Lithic::AuthRules::ReportStats), - date: Date, - draft_version_statistics: - T.nilable(Lithic::AuthRules::ReportStats), - versions: - T::Array[ - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version - ] - } + { date: Date, versions: T::Array[Lithic::AuthRules::ReportStats] } ) end def to_hash end - - class Version < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version, - Lithic::Internal::AnyHash - ) - end - - # A mapping of action types to the number of times that action was returned by - # this version during the relevant period. Actions are the possible outcomes of a - # rule evaluation, such as DECLINE, CHALLENGE, REQUIRE_TFA, etc. In case rule - # didn't trigger any action, it's counted under NO_ACTION key. - sig { returns(T::Hash[Symbol, Integer]) } - attr_accessor :action_counts - - # Example events and their outcomes for this version. - sig do - returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example - ] - ) - end - attr_accessor :examples - - # The evaluation mode of this version during the reported period. - sig do - returns( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::State::TaggedSymbol - ) - end - attr_accessor :state - - # The rule version number. - sig { returns(Integer) } - attr_accessor :version - - sig do - params( - action_counts: T::Hash[Symbol, Integer], - examples: - T::Array[ - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::OrHash - ], - state: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::State::OrSymbol, - version: Integer - ).returns(T.attached_class) - end - def self.new( - # A mapping of action types to the number of times that action was returned by - # this version during the relevant period. Actions are the possible outcomes of a - # rule evaluation, such as DECLINE, CHALLENGE, REQUIRE_TFA, etc. In case rule - # didn't trigger any action, it's counted under NO_ACTION key. - action_counts:, - # Example events and their outcomes for this version. - examples:, - # The evaluation mode of this version during the reported period. - state:, - # The rule version number. - version: - ) - end - - sig do - override.returns( - { - action_counts: T::Hash[Symbol, Integer], - examples: - T::Array[ - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example - ], - state: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::State::TaggedSymbol, - version: Integer - } - ) - end - def to_hash - end - - class Example < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example, - Lithic::Internal::AnyHash - ) - end - - # The actions taken by this version for this event. - sig do - returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::Variants - ] - ) - end - attr_accessor :actions - - # The event token. - sig { returns(String) } - attr_accessor :event_token - - # The timestamp of the event. - sig { returns(Time) } - attr_accessor :timestamp - - sig do - params( - actions: - T::Array[ - T.any( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::OrHash, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ChallengeActionAuthorization::OrHash, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ResultAuthentication3DSAction::OrHash, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::OrHash, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::OrHash, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ApproveActionACH::OrHash, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::OrHash - ) - ], - event_token: String, - timestamp: Time - ).returns(T.attached_class) - end - def self.new( - # The actions taken by this version for this event. - actions:, - # The event token. - event_token:, - # The timestamp of the event. - timestamp: - ) - end - - sig do - override.returns( - { - actions: - T::Array[ - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::Variants - ], - event_token: String, - timestamp: Time - } - ) - end - def to_hash - end - - module Action - extend Lithic::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ChallengeActionAuthorization, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ResultAuthentication3DSAction, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ApproveActionACH, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction - ) - end - - class DeclineActionAuthorization < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization, - Lithic::Internal::AnyHash - ) - end - - # The detailed result code explaining the specific reason for the decline - sig do - returns( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - end - attr_accessor :code - - sig do - returns( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Type::TaggedSymbol - ) - end - attr_accessor :type - - sig do - params( - code: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::OrSymbol, - type: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Type::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # The detailed result code explaining the specific reason for the decline - code:, - type: - ) - end - - sig do - override.returns( - { - code: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol, - type: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Type::TaggedSymbol - } - ) - end - def to_hash - end - - # The detailed result code explaining the specific reason for the decline - module Code - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED = - T.let( - :ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - ACCOUNT_DELINQUENT = - T.let( - :ACCOUNT_DELINQUENT, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - ACCOUNT_INACTIVE = - T.let( - :ACCOUNT_INACTIVE, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED = - T.let( - :ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED = - T.let( - :ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - ACCOUNT_PAUSED = - T.let( - :ACCOUNT_PAUSED, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - ACCOUNT_UNDER_REVIEW = - T.let( - :ACCOUNT_UNDER_REVIEW, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - ADDRESS_INCORRECT = - T.let( - :ADDRESS_INCORRECT, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - APPROVED = - T.let( - :APPROVED, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - AUTH_RULE_ALLOWED_COUNTRY = - T.let( - :AUTH_RULE_ALLOWED_COUNTRY, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - AUTH_RULE_ALLOWED_MCC = - T.let( - :AUTH_RULE_ALLOWED_MCC, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - AUTH_RULE_BLOCKED_COUNTRY = - T.let( - :AUTH_RULE_BLOCKED_COUNTRY, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - AUTH_RULE_BLOCKED_MCC = - T.let( - :AUTH_RULE_BLOCKED_MCC, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - AUTH_RULE = - T.let( - :AUTH_RULE, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - CARD_CLOSED = - T.let( - :CARD_CLOSED, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - CARD_CRYPTOGRAM_VALIDATION_FAILURE = - T.let( - :CARD_CRYPTOGRAM_VALIDATION_FAILURE, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - CARD_EXPIRED = - T.let( - :CARD_EXPIRED, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - CARD_EXPIRY_DATE_INCORRECT = - T.let( - :CARD_EXPIRY_DATE_INCORRECT, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - CARD_INVALID = - T.let( - :CARD_INVALID, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - CARD_NOT_ACTIVATED = - T.let( - :CARD_NOT_ACTIVATED, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - CARD_PAUSED = - T.let( - :CARD_PAUSED, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - CARD_PIN_INCORRECT = - T.let( - :CARD_PIN_INCORRECT, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - CARD_RESTRICTED = - T.let( - :CARD_RESTRICTED, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - CARD_SECURITY_CODE_INCORRECT = - T.let( - :CARD_SECURITY_CODE_INCORRECT, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - CARD_SPEND_LIMIT_EXCEEDED = - T.let( - :CARD_SPEND_LIMIT_EXCEEDED, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - CONTACT_CARD_ISSUER = - T.let( - :CONTACT_CARD_ISSUER, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - CUSTOMER_ASA_TIMEOUT = - T.let( - :CUSTOMER_ASA_TIMEOUT, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - CUSTOM_ASA_RESULT = - T.let( - :CUSTOM_ASA_RESULT, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - DECLINED = - T.let( - :DECLINED, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - DO_NOT_HONOR = - T.let( - :DO_NOT_HONOR, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - DRIVER_NUMBER_INVALID = - T.let( - :DRIVER_NUMBER_INVALID, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - FORMAT_ERROR = - T.let( - :FORMAT_ERROR, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - INSUFFICIENT_FUNDING_SOURCE_BALANCE = - T.let( - :INSUFFICIENT_FUNDING_SOURCE_BALANCE, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - INSUFFICIENT_FUNDS = - T.let( - :INSUFFICIENT_FUNDS, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - LITHIC_SYSTEM_ERROR = - T.let( - :LITHIC_SYSTEM_ERROR, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - LITHIC_SYSTEM_RATE_LIMIT = - T.let( - :LITHIC_SYSTEM_RATE_LIMIT, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - MALFORMED_ASA_RESPONSE = - T.let( - :MALFORMED_ASA_RESPONSE, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - MERCHANT_INVALID = - T.let( - :MERCHANT_INVALID, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE = - T.let( - :MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - MERCHANT_NOT_PERMITTED = - T.let( - :MERCHANT_NOT_PERMITTED, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - OVER_REVERSAL_ATTEMPTED = - T.let( - :OVER_REVERSAL_ATTEMPTED, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - PIN_BLOCKED = - T.let( - :PIN_BLOCKED, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - PROGRAM_CARD_SPEND_LIMIT_EXCEEDED = - T.let( - :PROGRAM_CARD_SPEND_LIMIT_EXCEEDED, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - PROGRAM_SUSPENDED = - T.let( - :PROGRAM_SUSPENDED, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - PROGRAM_USAGE_RESTRICTION = - T.let( - :PROGRAM_USAGE_RESTRICTION, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - REVERSAL_UNMATCHED = - T.let( - :REVERSAL_UNMATCHED, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - SECURITY_VIOLATION = - T.let( - :SECURITY_VIOLATION, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - SINGLE_USE_CARD_REATTEMPTED = - T.let( - :SINGLE_USE_CARD_REATTEMPTED, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - SUSPECTED_FRAUD = - T.let( - :SUSPECTED_FRAUD, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - TRANSACTION_INVALID = - T.let( - :TRANSACTION_INVALID, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL = - T.let( - :TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER = - T.let( - :TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - TRANSACTION_PREVIOUSLY_COMPLETED = - T.let( - :TRANSACTION_PREVIOUSLY_COMPLETED, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - UNAUTHORIZED_MERCHANT = - T.let( - :UNAUTHORIZED_MERCHANT, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - VEHICLE_NUMBER_INVALID = - T.let( - :VEHICLE_NUMBER_INVALID, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - CARDHOLDER_CHALLENGED = - T.let( - :CARDHOLDER_CHALLENGED, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - CARDHOLDER_CHALLENGE_FAILED = - T.let( - :CARDHOLDER_CHALLENGE_FAILED, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Code::TaggedSymbol - ] - ) - end - def self.values - end - end - - module Type - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DECLINE = - T.let( - :DECLINE, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class ChallengeActionAuthorization < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ChallengeActionAuthorization, - Lithic::Internal::AnyHash - ) - end - - sig do - returns( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ChallengeActionAuthorization::Type::TaggedSymbol - ) - end - attr_accessor :type - - sig do - params( - type: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ChallengeActionAuthorization::Type::OrSymbol - ).returns(T.attached_class) - end - def self.new(type:) - end - - sig do - override.returns( - { - type: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ChallengeActionAuthorization::Type::TaggedSymbol - } - ) - end - def to_hash - end - - module Type - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ChallengeActionAuthorization::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CHALLENGE = - T.let( - :CHALLENGE, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ChallengeActionAuthorization::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ChallengeActionAuthorization::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class ResultAuthentication3DSAction < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ResultAuthentication3DSAction, - Lithic::Internal::AnyHash - ) - end - - sig do - returns( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ResultAuthentication3DSAction::Type::TaggedSymbol - ) - end - attr_accessor :type - - sig do - params( - type: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ResultAuthentication3DSAction::Type::OrSymbol - ).returns(T.attached_class) - end - def self.new(type:) - end - - sig do - override.returns( - { - type: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ResultAuthentication3DSAction::Type::TaggedSymbol - } - ) - end - def to_hash - end - - module Type - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ResultAuthentication3DSAction::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DECLINE = - T.let( - :DECLINE, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ResultAuthentication3DSAction::Type::TaggedSymbol - ) - CHALLENGE = - T.let( - :CHALLENGE, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ResultAuthentication3DSAction::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ResultAuthentication3DSAction::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class DeclineActionTokenization < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization, - Lithic::Internal::AnyHash - ) - end - - # Decline the tokenization request - sig do - returns( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Type::TaggedSymbol - ) - end - attr_accessor :type - - # Reason code for declining the tokenization request - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol - ) - ) - end - attr_reader :reason - - sig do - params( - reason: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Reason::OrSymbol - ).void - end - attr_writer :reason - - sig do - params( - type: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Type::OrSymbol, - reason: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Reason::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # Decline the tokenization request - type:, - # Reason code for declining the tokenization request - reason: nil - ) - end - - sig do - override.returns( - { - type: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Type::TaggedSymbol, - reason: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol - } - ) - end - def to_hash - end - - # Decline the tokenization request - module Type - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - DECLINE = - T.let( - :DECLINE, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Reason code for declining the tokenization request - module Reason - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Reason - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ACCOUNT_SCORE_1 = - T.let( - :ACCOUNT_SCORE_1, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol - ) - DEVICE_SCORE_1 = - T.let( - :DEVICE_SCORE_1, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol - ) - ALL_WALLET_DECLINE_REASONS_PRESENT = - T.let( - :ALL_WALLET_DECLINE_REASONS_PRESENT, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol - ) - WALLET_RECOMMENDED_DECISION_RED = - T.let( - :WALLET_RECOMMENDED_DECISION_RED, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol - ) - CVC_MISMATCH = - T.let( - :CVC_MISMATCH, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol - ) - CARD_EXPIRY_MONTH_MISMATCH = - T.let( - :CARD_EXPIRY_MONTH_MISMATCH, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol - ) - CARD_EXPIRY_YEAR_MISMATCH = - T.let( - :CARD_EXPIRY_YEAR_MISMATCH, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol - ) - CARD_INVALID_STATE = - T.let( - :CARD_INVALID_STATE, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol - ) - CUSTOMER_RED_PATH = - T.let( - :CUSTOMER_RED_PATH, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol - ) - INVALID_CUSTOMER_RESPONSE = - T.let( - :INVALID_CUSTOMER_RESPONSE, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol - ) - NETWORK_FAILURE = - T.let( - :NETWORK_FAILURE, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol - ) - GENERIC_DECLINE = - T.let( - :GENERIC_DECLINE, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol - ) - DIGITAL_CARD_ART_REQUIRED = - T.let( - :DIGITAL_CARD_ART_REQUIRED, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::Reason::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class RequireTfaAction < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction, - Lithic::Internal::AnyHash - ) - end - - # Require two-factor authentication for the tokenization request - sig do - returns( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Type::TaggedSymbol - ) - end - attr_accessor :type - - # Reason code for requiring two-factor authentication - sig do - returns( - T.nilable( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Reason::TaggedSymbol - ) - ) - end - attr_reader :reason - - sig do - params( - reason: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Reason::OrSymbol - ).void - end - attr_writer :reason - - sig do - params( - type: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Type::OrSymbol, - reason: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Reason::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # Require two-factor authentication for the tokenization request - type:, - # Reason code for requiring two-factor authentication - reason: nil - ) - end - - sig do - override.returns( - { - type: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Type::TaggedSymbol, - reason: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Reason::TaggedSymbol - } - ) - end - def to_hash - end - - # Require two-factor authentication for the tokenization request - module Type - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - REQUIRE_TFA = - T.let( - :REQUIRE_TFA, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Reason code for requiring two-factor authentication - module Reason - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Reason - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - WALLET_RECOMMENDED_TFA = - T.let( - :WALLET_RECOMMENDED_TFA, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Reason::TaggedSymbol - ) - SUSPICIOUS_ACTIVITY = - T.let( - :SUSPICIOUS_ACTIVITY, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Reason::TaggedSymbol - ) - DEVICE_RECENTLY_LOST = - T.let( - :DEVICE_RECENTLY_LOST, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Reason::TaggedSymbol - ) - TOO_MANY_RECENT_ATTEMPTS = - T.let( - :TOO_MANY_RECENT_ATTEMPTS, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Reason::TaggedSymbol - ) - TOO_MANY_RECENT_TOKENS = - T.let( - :TOO_MANY_RECENT_TOKENS, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Reason::TaggedSymbol - ) - TOO_MANY_DIFFERENT_CARDHOLDERS = - T.let( - :TOO_MANY_DIFFERENT_CARDHOLDERS, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Reason::TaggedSymbol - ) - OUTSIDE_HOME_TERRITORY = - T.let( - :OUTSIDE_HOME_TERRITORY, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Reason::TaggedSymbol - ) - HAS_SUSPENDED_TOKENS = - T.let( - :HAS_SUSPENDED_TOKENS, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Reason::TaggedSymbol - ) - HIGH_RISK = - T.let( - :HIGH_RISK, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Reason::TaggedSymbol - ) - ACCOUNT_SCORE_LOW = - T.let( - :ACCOUNT_SCORE_LOW, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Reason::TaggedSymbol - ) - DEVICE_SCORE_LOW = - T.let( - :DEVICE_SCORE_LOW, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Reason::TaggedSymbol - ) - CARD_STATE_TFA = - T.let( - :CARD_STATE_TFA, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Reason::TaggedSymbol - ) - HARDCODED_TFA = - T.let( - :HARDCODED_TFA, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Reason::TaggedSymbol - ) - CUSTOMER_RULE_TFA = - T.let( - :CUSTOMER_RULE_TFA, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Reason::TaggedSymbol - ) - DEVICE_HOST_CARD_EMULATION = - T.let( - :DEVICE_HOST_CARD_EMULATION, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Reason::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::Reason::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class ApproveActionACH < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ApproveActionACH, - Lithic::Internal::AnyHash - ) - end - - # Approve the ACH transaction - sig do - returns( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ApproveActionACH::Type::TaggedSymbol - ) - end - attr_accessor :type - - sig do - params( - type: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ApproveActionACH::Type::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # Approve the ACH transaction - type: - ) - end - - sig do - override.returns( - { - type: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ApproveActionACH::Type::TaggedSymbol - } - ) - end - def to_hash - end - - # Approve the ACH transaction - module Type - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ApproveActionACH::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - APPROVE = - T.let( - :APPROVE, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ApproveActionACH::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ApproveActionACH::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class ReturnAction < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction, - Lithic::Internal::AnyHash - ) - end - - # NACHA return code to use when returning the transaction. Note that the list of - # available return codes is subject to an allowlist configured at the program - # level - sig do - returns( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - end - attr_accessor :code - - # Return the ACH transaction - sig do - returns( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Type::TaggedSymbol - ) - end - attr_accessor :type - - sig do - params( - code: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::OrSymbol, - type: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Type::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # NACHA return code to use when returning the transaction. Note that the list of - # available return codes is subject to an allowlist configured at the program - # level - code:, - # Return the ACH transaction - type: - ) - end - - sig do - override.returns( - { - code: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol, - type: - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Type::TaggedSymbol - } - ) - end - def to_hash - end - - # NACHA return code to use when returning the transaction. Note that the list of - # available return codes is subject to an allowlist configured at the program - # level - module Code - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - R01 = - T.let( - :R01, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R02 = - T.let( - :R02, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R03 = - T.let( - :R03, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R04 = - T.let( - :R04, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R05 = - T.let( - :R05, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R06 = - T.let( - :R06, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R07 = - T.let( - :R07, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R08 = - T.let( - :R08, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R09 = - T.let( - :R09, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R10 = - T.let( - :R10, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R11 = - T.let( - :R11, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R12 = - T.let( - :R12, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R13 = - T.let( - :R13, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R14 = - T.let( - :R14, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R15 = - T.let( - :R15, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R16 = - T.let( - :R16, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R17 = - T.let( - :R17, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R18 = - T.let( - :R18, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R19 = - T.let( - :R19, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R20 = - T.let( - :R20, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R21 = - T.let( - :R21, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R22 = - T.let( - :R22, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R23 = - T.let( - :R23, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R24 = - T.let( - :R24, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R25 = - T.let( - :R25, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R26 = - T.let( - :R26, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R27 = - T.let( - :R27, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R28 = - T.let( - :R28, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R29 = - T.let( - :R29, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R30 = - T.let( - :R30, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R31 = - T.let( - :R31, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R32 = - T.let( - :R32, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R33 = - T.let( - :R33, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R34 = - T.let( - :R34, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R35 = - T.let( - :R35, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R36 = - T.let( - :R36, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R37 = - T.let( - :R37, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R38 = - T.let( - :R38, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R39 = - T.let( - :R39, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R40 = - T.let( - :R40, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R41 = - T.let( - :R41, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R42 = - T.let( - :R42, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R43 = - T.let( - :R43, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R44 = - T.let( - :R44, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R45 = - T.let( - :R45, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R46 = - T.let( - :R46, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R47 = - T.let( - :R47, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R50 = - T.let( - :R50, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R51 = - T.let( - :R51, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R52 = - T.let( - :R52, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R53 = - T.let( - :R53, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R61 = - T.let( - :R61, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R62 = - T.let( - :R62, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R67 = - T.let( - :R67, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R68 = - T.let( - :R68, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R69 = - T.let( - :R69, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R70 = - T.let( - :R70, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R71 = - T.let( - :R71, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R72 = - T.let( - :R72, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R73 = - T.let( - :R73, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R74 = - T.let( - :R74, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R75 = - T.let( - :R75, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R76 = - T.let( - :R76, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R77 = - T.let( - :R77, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R80 = - T.let( - :R80, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R81 = - T.let( - :R81, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R82 = - T.let( - :R82, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R83 = - T.let( - :R83, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R84 = - T.let( - :R84, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - R85 = - T.let( - :R85, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Code::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Return the ACH transaction - module Type - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - RETURN = - T.let( - :RETURN, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::Variants - ] - ) - end - def self.variants - end - end - end - - # The evaluation mode of this version during the reported period. - module State - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::State - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ACTIVE = - T.let( - :ACTIVE, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::State::TaggedSymbol - ) - SHADOW = - T.let( - :SHADOW, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::State::TaggedSymbol - ) - INACTIVE = - T.let( - :INACTIVE, - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::State::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::State::TaggedSymbol - ] - ) - end - def self.values - end - end - end end end end diff --git a/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi b/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi index db67cdbf..163690ef 100644 --- a/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +++ b/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi @@ -944,33 +944,16 @@ module Lithic end # Globally unique identifier for the card. - sig { returns(T.nilable(String)) } - attr_reader :token - - sig { params(token: String).void } - attr_writer :token - - # Hostname of card’s locked merchant (will be empty if not applicable) - sig { returns(T.nilable(String)) } - attr_reader :hostname - - sig { params(hostname: String).void } - attr_writer :hostname + sig { returns(String) } + attr_accessor :token # Last four digits of the card number - sig { returns(T.nilable(String)) } - attr_reader :last_four - - sig { params(last_four: String).void } - attr_writer :last_four - - # Customizable name to identify the card. We recommend against using this field to - # store JSON data as it can cause unexpected behavior. - sig { returns(T.nilable(String)) } - attr_reader :memo + sig { returns(String) } + attr_accessor :last_four - sig { params(memo: String).void } - attr_writer :memo + # Customizable name to identify the card + sig { returns(String) } + attr_accessor :memo # Amount (in cents) to limit approved authorizations. Purchase requests above the # spend limit will be declined (refunds and credits will be approved). @@ -980,71 +963,37 @@ module Lithic # reconciliation-level accuracy. Spend limits also cannot block force posted # charges (i.e., when a merchant sends a clearing message without a prior # authorization). - sig { returns(T.nilable(Integer)) } - attr_reader :spend_limit - - sig { params(spend_limit: Integer).void } - attr_writer :spend_limit + sig { returns(Integer) } + attr_accessor :spend_limit # Note that to support recurring monthly payments, which can occur on different # day every month, the time window we consider for MONTHLY velocity starts 6 days # after the current calendar date one month prior. sig do returns( - T.nilable( - Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration::TaggedSymbol - ) + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration::TaggedSymbol ) end - attr_reader :spend_limit_duration - - sig do - params( - spend_limit_duration: - Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration::OrSymbol - ).void - end - attr_writer :spend_limit_duration + attr_accessor :spend_limit_duration sig do returns( - T.nilable( - Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::State::TaggedSymbol - ) + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::State::TaggedSymbol ) end - attr_reader :state - - sig do - params( - state: - Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::State::OrSymbol - ).void - end - attr_writer :state + attr_accessor :state sig do returns( - T.nilable( - Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::Type::TaggedSymbol - ) + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::Type::TaggedSymbol ) end - attr_reader :type - - sig do - params( - type: - Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::Type::OrSymbol - ).void - end - attr_writer :type + attr_accessor :type # Card object in ASA sig do params( token: String, - hostname: String, last_four: String, memo: String, spend_limit: Integer, @@ -1058,14 +1007,11 @@ module Lithic end def self.new( # Globally unique identifier for the card. - token: nil, - # Hostname of card’s locked merchant (will be empty if not applicable) - hostname: nil, + token:, # Last four digits of the card number - last_four: nil, - # Customizable name to identify the card. We recommend against using this field to - # store JSON data as it can cause unexpected behavior. - memo: nil, + last_four:, + # Customizable name to identify the card + memo:, # Amount (in cents) to limit approved authorizations. Purchase requests above the # spend limit will be declined (refunds and credits will be approved). # @@ -1074,13 +1020,13 @@ module Lithic # reconciliation-level accuracy. Spend limits also cannot block force posted # charges (i.e., when a merchant sends a clearing message without a prior # authorization). - spend_limit: nil, + spend_limit:, # Note that to support recurring monthly payments, which can occur on different # day every month, the time window we consider for MONTHLY velocity starts 6 days # after the current calendar date one month prior. - spend_limit_duration: nil, - state: nil, - type: nil + spend_limit_duration:, + state:, + type: ) end @@ -1088,7 +1034,6 @@ module Lithic override.returns( { token: String, - hostname: String, last_four: String, memo: String, spend_limit: Integer, diff --git a/rbi/lithic/models/card_bulk_order.rbi b/rbi/lithic/models/card_bulk_order.rbi index 330e7bbf..f99811f9 100644 --- a/rbi/lithic/models/card_bulk_order.rbi +++ b/rbi/lithic/models/card_bulk_order.rbi @@ -27,7 +27,8 @@ module Lithic sig { returns(T.anything) } attr_accessor :shipping_address - # Shipping method for all cards in this bulk order + # Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and + # BULK_EXPRESS are only available with Perfect Plastic Printing sig { returns(Lithic::CardBulkOrder::ShippingMethod::TaggedSymbol) } attr_accessor :shipping_method @@ -65,7 +66,8 @@ module Lithic customer_product_id:, # Shipping address for all cards in this bulk order shipping_address:, - # Shipping method for all cards in this bulk order + # Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and + # BULK_EXPRESS are only available with Perfect Plastic Printing shipping_method:, # Status of the bulk order. OPEN indicates the order is accepting cards. LOCKED # indicates the order is finalized and no more cards can be added @@ -93,7 +95,8 @@ module Lithic def to_hash end - # Shipping method for all cards in this bulk order + # Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and + # BULK_EXPRESS are only available with Perfect Plastic Printing module ShippingMethod extend Lithic::Internal::Type::Enum @@ -106,6 +109,21 @@ module Lithic :BULK_EXPEDITED, Lithic::CardBulkOrder::ShippingMethod::TaggedSymbol ) + BULK_PRIORITY = + T.let( + :BULK_PRIORITY, + Lithic::CardBulkOrder::ShippingMethod::TaggedSymbol + ) + BULK_2_DAY = + T.let( + :BULK_2_DAY, + Lithic::CardBulkOrder::ShippingMethod::TaggedSymbol + ) + BULK_EXPRESS = + T.let( + :BULK_EXPRESS, + Lithic::CardBulkOrder::ShippingMethod::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/card_bulk_order_create_params.rbi b/rbi/lithic/models/card_bulk_order_create_params.rbi index ee302b75..27647ef5 100644 --- a/rbi/lithic/models/card_bulk_order_create_params.rbi +++ b/rbi/lithic/models/card_bulk_order_create_params.rbi @@ -20,7 +20,8 @@ module Lithic sig { returns(T.anything) } attr_accessor :shipping_address - # Shipping method for all cards in this bulk order + # Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and + # BULK_EXPRESS are only available with Perfect Plastic Printing sig do returns(Lithic::CardBulkOrderCreateParams::ShippingMethod::OrSymbol) end @@ -41,7 +42,8 @@ module Lithic customer_product_id:, # Shipping address for all cards in this bulk order shipping_address:, - # Shipping method for all cards in this bulk order + # Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and + # BULK_EXPRESS are only available with Perfect Plastic Printing shipping_method:, request_options: {} ) @@ -61,7 +63,8 @@ module Lithic def to_hash end - # Shipping method for all cards in this bulk order + # Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and + # BULK_EXPRESS are only available with Perfect Plastic Printing module ShippingMethod extend Lithic::Internal::Type::Enum @@ -76,6 +79,21 @@ module Lithic :BULK_EXPEDITED, Lithic::CardBulkOrderCreateParams::ShippingMethod::TaggedSymbol ) + BULK_PRIORITY = + T.let( + :BULK_PRIORITY, + Lithic::CardBulkOrderCreateParams::ShippingMethod::TaggedSymbol + ) + BULK_2_DAY = + T.let( + :BULK_2_DAY, + Lithic::CardBulkOrderCreateParams::ShippingMethod::TaggedSymbol + ) + BULK_EXPRESS = + T.let( + :BULK_EXPRESS, + Lithic::CardBulkOrderCreateParams::ShippingMethod::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/card_convert_physical_params.rbi b/rbi/lithic/models/card_convert_physical_params.rbi index b095e88f..37383a4d 100644 --- a/rbi/lithic/models/card_convert_physical_params.rbi +++ b/rbi/lithic/models/card_convert_physical_params.rbi @@ -51,7 +51,8 @@ module Lithic # tracking # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight # or similar international option, with tracking - # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping + # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The + # shipping method and timeline are inherited from the parent bulk order. sig do returns( T.nilable(Lithic::CardConvertPhysicalParams::ShippingMethod::OrSymbol) @@ -102,7 +103,8 @@ module Lithic # tracking # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight # or similar international option, with tracking - # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping + # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The + # shipping method and timeline are inherited from the parent bulk order. shipping_method: nil, request_options: {} ) @@ -138,7 +140,8 @@ module Lithic # tracking # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight # or similar international option, with tracking - # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping + # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The + # shipping method and timeline are inherited from the parent bulk order. module ShippingMethod extend Lithic::Internal::Type::Enum @@ -153,9 +156,9 @@ module Lithic :"2_DAY", Lithic::CardConvertPhysicalParams::ShippingMethod::TaggedSymbol ) - BULK_EXPEDITED = + BULK = T.let( - :BULK_EXPEDITED, + :BULK, Lithic::CardConvertPhysicalParams::ShippingMethod::TaggedSymbol ) EXPEDITED = diff --git a/rbi/lithic/models/card_create_params.rbi b/rbi/lithic/models/card_create_params.rbi index a3ffe2a1..2b5a1b0a 100644 --- a/rbi/lithic/models/card_create_params.rbi +++ b/rbi/lithic/models/card_create_params.rbi @@ -208,7 +208,8 @@ module Lithic # tracking # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight # or similar international option, with tracking - # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping + # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The + # shipping method and timeline are inherited from the parent bulk order. sig do returns(T.nilable(Lithic::CardCreateParams::ShippingMethod::OrSymbol)) end @@ -409,7 +410,8 @@ module Lithic # tracking # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight # or similar international option, with tracking - # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping + # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The + # shipping method and timeline are inherited from the parent bulk order. shipping_method: nil, # Amount (in cents) to limit approved authorizations (e.g. 100000 would be a # $1,000 limit). Transaction requests above the spend limit will be declined. Note @@ -635,7 +637,8 @@ module Lithic # tracking # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight # or similar international option, with tracking - # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping + # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The + # shipping method and timeline are inherited from the parent bulk order. module ShippingMethod extend Lithic::Internal::Type::Enum @@ -650,11 +653,8 @@ module Lithic :"2_DAY", Lithic::CardCreateParams::ShippingMethod::TaggedSymbol ) - BULK_EXPEDITED = - T.let( - :BULK_EXPEDITED, - Lithic::CardCreateParams::ShippingMethod::TaggedSymbol - ) + BULK = + T.let(:BULK, Lithic::CardCreateParams::ShippingMethod::TaggedSymbol) EXPEDITED = T.let( :EXPEDITED, diff --git a/rbi/lithic/models/card_reissue_params.rbi b/rbi/lithic/models/card_reissue_params.rbi index a365e366..18fd8c10 100644 --- a/rbi/lithic/models/card_reissue_params.rbi +++ b/rbi/lithic/models/card_reissue_params.rbi @@ -51,7 +51,8 @@ module Lithic # tracking # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight # or similar international option, with tracking - # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping + # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The + # shipping method and timeline are inherited from the parent bulk order. sig do returns(T.nilable(Lithic::CardReissueParams::ShippingMethod::OrSymbol)) end @@ -98,7 +99,8 @@ module Lithic # tracking # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight # or similar international option, with tracking - # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping + # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The + # shipping method and timeline are inherited from the parent bulk order. shipping_method: nil, request_options: {} ) @@ -134,7 +136,8 @@ module Lithic # tracking # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight # or similar international option, with tracking - # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping + # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The + # shipping method and timeline are inherited from the parent bulk order. module ShippingMethod extend Lithic::Internal::Type::Enum @@ -149,11 +152,8 @@ module Lithic :"2_DAY", Lithic::CardReissueParams::ShippingMethod::TaggedSymbol ) - BULK_EXPEDITED = - T.let( - :BULK_EXPEDITED, - Lithic::CardReissueParams::ShippingMethod::TaggedSymbol - ) + BULK = + T.let(:BULK, Lithic::CardReissueParams::ShippingMethod::TaggedSymbol) EXPEDITED = T.let( :EXPEDITED, diff --git a/rbi/lithic/models/card_renew_params.rbi b/rbi/lithic/models/card_renew_params.rbi index 819a10df..985dcef1 100644 --- a/rbi/lithic/models/card_renew_params.rbi +++ b/rbi/lithic/models/card_renew_params.rbi @@ -67,7 +67,8 @@ module Lithic # tracking # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight # or similar international option, with tracking - # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping + # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The + # shipping method and timeline are inherited from the parent bulk order. sig do returns(T.nilable(Lithic::CardRenewParams::ShippingMethod::OrSymbol)) end @@ -122,7 +123,8 @@ module Lithic # tracking # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight # or similar international option, with tracking - # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping + # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The + # shipping method and timeline are inherited from the parent bulk order. shipping_method: nil, request_options: {} ) @@ -159,7 +161,8 @@ module Lithic # tracking # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight # or similar international option, with tracking - # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping + # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The + # shipping method and timeline are inherited from the parent bulk order. module ShippingMethod extend Lithic::Internal::Type::Enum @@ -171,11 +174,8 @@ module Lithic SHIPPING_METHOD_2_DAY = T.let(:"2_DAY", Lithic::CardRenewParams::ShippingMethod::TaggedSymbol) - BULK_EXPEDITED = - T.let( - :BULK_EXPEDITED, - Lithic::CardRenewParams::ShippingMethod::TaggedSymbol - ) + BULK = + T.let(:BULK, Lithic::CardRenewParams::ShippingMethod::TaggedSymbol) EXPEDITED = T.let( :EXPEDITED, diff --git a/rbi/lithic/models/financial_account.rbi b/rbi/lithic/models/financial_account.rbi index ded0e243..c80f0ef0 100644 --- a/rbi/lithic/models/financial_account.rbi +++ b/rbi/lithic/models/financial_account.rbi @@ -349,6 +349,11 @@ module Lithic :EARLY_DIRECT_DEPOSIT_FLOAT, Lithic::FinancialAccount::Type::TaggedSymbol ) + PROVISIONAL_CREDIT_ACCOUNT = + T.let( + :PROVISIONAL_CREDIT_ACCOUNT, + Lithic::FinancialAccount::Type::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/financial_accounts/statement.rbi b/rbi/lithic/models/financial_accounts/statement.rbi index f7cf45c9..97c7015b 100644 --- a/rbi/lithic/models/financial_accounts/statement.rbi +++ b/rbi/lithic/models/financial_accounts/statement.rbi @@ -50,7 +50,7 @@ module Lithic attr_accessor :credit_limit # Globally unique identifier for a credit product - sig { returns(String) } + sig { returns(T.nilable(String)) } attr_accessor :credit_product_token # Number of days in the billing cycle @@ -154,6 +154,12 @@ module Lithic end attr_writer :payoff_details + sig { returns(T.nilable(Lithic::StatementTotals)) } + attr_reader :statement_totals + + sig { params(statement_totals: Lithic::StatementTotals::OrHash).void } + attr_writer :statement_totals + sig do params( token: String, @@ -163,7 +169,7 @@ module Lithic available_credit: Integer, created: Time, credit_limit: Integer, - credit_product_token: String, + credit_product_token: T.nilable(String), days_in_billing_cycle: Integer, ending_balance: Integer, financial_account_token: String, @@ -185,7 +191,8 @@ module Lithic payoff_details: T.nilable( Lithic::FinancialAccounts::Statement::PayoffDetails::OrHash - ) + ), + statement_totals: Lithic::StatementTotals::OrHash ).returns(T.attached_class) end def self.new( @@ -227,7 +234,8 @@ module Lithic # Date when the next billing period will end next_statement_end_date: nil, # Details on number and size of payments to pay off balance - payoff_details: nil + payoff_details: nil, + statement_totals: nil ) end @@ -241,7 +249,7 @@ module Lithic available_credit: Integer, created: Time, credit_limit: Integer, - credit_product_token: String, + credit_product_token: T.nilable(String), days_in_billing_cycle: Integer, ending_balance: Integer, financial_account_token: String, @@ -261,7 +269,8 @@ module Lithic next_payment_due_date: Date, next_statement_end_date: Date, payoff_details: - T.nilable(Lithic::FinancialAccounts::Statement::PayoffDetails) + T.nilable(Lithic::FinancialAccounts::Statement::PayoffDetails), + statement_totals: Lithic::StatementTotals } ) end diff --git a/rbi/lithic/models/instance_financial_account_type.rbi b/rbi/lithic/models/instance_financial_account_type.rbi index ca5a748d..73de08ed 100644 --- a/rbi/lithic/models/instance_financial_account_type.rbi +++ b/rbi/lithic/models/instance_financial_account_type.rbi @@ -50,6 +50,11 @@ module Lithic :EARLY_DIRECT_DEPOSIT_FLOAT, Lithic::InstanceFinancialAccountType::TaggedSymbol ) + PROVISIONAL_CREDIT_ACCOUNT = + T.let( + :PROVISIONAL_CREDIT_ACCOUNT, + Lithic::InstanceFinancialAccountType::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/payment_create_params.rbi b/rbi/lithic/models/payment_create_params.rbi index 7cee135d..57fcea10 100644 --- a/rbi/lithic/models/payment_create_params.rbi +++ b/rbi/lithic/models/payment_create_params.rbi @@ -171,19 +171,28 @@ module Lithic sig { returns(T.nilable(String)) } attr_accessor :addenda + # Value to override the configured company name with. Can only be used if allowed + # to override + sig { returns(T.nilable(String)) } + attr_accessor :override_company_name + sig do params( sec_code: Lithic::PaymentCreateParams::MethodAttributes::SecCode::OrSymbol, ach_hold_period: Integer, - addenda: T.nilable(String) + addenda: T.nilable(String), + override_company_name: T.nilable(String) ).returns(T.attached_class) end def self.new( sec_code:, # Number of days to hold the ACH payment ach_hold_period: nil, - addenda: nil + addenda: nil, + # Value to override the configured company name with. Can only be used if allowed + # to override + override_company_name: nil ) end @@ -193,7 +202,8 @@ module Lithic sec_code: Lithic::PaymentCreateParams::MethodAttributes::SecCode::OrSymbol, ach_hold_period: Integer, - addenda: T.nilable(String) + addenda: T.nilable(String), + override_company_name: T.nilable(String) } ) end diff --git a/rbi/lithic/resources/card_bulk_orders.rbi b/rbi/lithic/resources/card_bulk_orders.rbi index 42434340..f76c8a25 100644 --- a/rbi/lithic/resources/card_bulk_orders.rbi +++ b/rbi/lithic/resources/card_bulk_orders.rbi @@ -3,12 +3,11 @@ module Lithic module Resources class CardBulkOrders - # Create a new bulk order for physical card shipments **[BETA]**. Cards can be - # added to the order via the POST /v1/cards endpoint by specifying the - # bulk_order_token. Lock the order via PATCH - # /v1/card_bulk_orders/{bulk_order_token} to prepare for shipment. Please work - # with your Customer Success Manager and card personalization bureau to ensure - # bulk shipping is supported for your program. + # Create a new bulk order for physical card shipments. Cards can be added to the + # order via the POST /v1/cards endpoint by specifying the bulk_order_token. Lock + # the order via PATCH /v1/card_bulk_orders/{bulk_order_token} to prepare for + # shipment. Please work with your Customer Success Manager and card + # personalization bureau to ensure bulk shipping is supported for your program. sig do params( customer_product_id: String, @@ -24,13 +23,14 @@ module Lithic customer_product_id:, # Shipping address for all cards in this bulk order shipping_address:, - # Shipping method for all cards in this bulk order + # Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and + # BULK_EXPRESS are only available with Perfect Plastic Printing shipping_method:, request_options: {} ) end - # Retrieve a specific bulk order by token **[BETA]** + # Retrieve a specific bulk order by token sig do params( bulk_order_token: String, @@ -44,8 +44,8 @@ module Lithic ) end - # Update a bulk order **[BETA]**. Primarily used to lock the order, preventing - # additional cards from being added + # Update a bulk order. Primarily used to lock the order, preventing additional + # cards from being added sig do params( bulk_order_token: String, @@ -62,7 +62,7 @@ module Lithic ) end - # List bulk orders for physical card shipments **[BETA]** + # List bulk orders for physical card shipments sig do params( begin_: Time, diff --git a/rbi/lithic/resources/cards.rbi b/rbi/lithic/resources/cards.rbi index 8aa66d9e..7b4b41a4 100644 --- a/rbi/lithic/resources/cards.rbi +++ b/rbi/lithic/resources/cards.rbi @@ -153,7 +153,8 @@ module Lithic # tracking # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight # or similar international option, with tracking - # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping + # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The + # shipping method and timeline are inherited from the parent bulk order. shipping_method: nil, # Body param: Amount (in cents) to limit approved authorizations (e.g. 100000 # would be a $1,000 limit). Transaction requests above the spend limit will be @@ -383,7 +384,8 @@ module Lithic # tracking # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight # or similar international option, with tracking - # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping + # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The + # shipping method and timeline are inherited from the parent bulk order. shipping_method: nil, request_options: {} ) @@ -519,7 +521,8 @@ module Lithic # tracking # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight # or similar international option, with tracking - # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping + # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The + # shipping method and timeline are inherited from the parent bulk order. shipping_method: nil, request_options: {} ) @@ -576,7 +579,8 @@ module Lithic # tracking # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight # or similar international option, with tracking - # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping + # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The + # shipping method and timeline are inherited from the parent bulk order. shipping_method: nil, request_options: {} ) diff --git a/sig/lithic/internal/util.rbs b/sig/lithic/internal/util.rbs index 469f1594..a12f9cc3 100644 --- a/sig/lithic/internal/util.rbs +++ b/sig/lithic/internal/util.rbs @@ -45,8 +45,12 @@ module Lithic -> top? } -> top? + RFC_3986_NOT_PCHARS: Regexp + def self?.uri_origin: (URI::Generic uri) -> String + def self?.encode_path: (String | Integer path) -> String + def self?.interpolate_path: (String | ::Array[String] path) -> String def self?.decode_query: (String? query) -> ::Hash[String, ::Array[String]] diff --git a/sig/lithic/models/auth_rules/backtest_stats.rbs b/sig/lithic/models/auth_rules/backtest_stats.rbs index 15570242..fea4a65a 100644 --- a/sig/lithic/models/auth_rules/backtest_stats.rbs +++ b/sig/lithic/models/auth_rules/backtest_stats.rbs @@ -53,7 +53,8 @@ module Lithic { decision: Lithic::Models::AuthRules::BacktestStats::Example::decision, event_token: String, - timestamp: Time + timestamp: Time, + transaction_token: String? } class Example < Lithic::Internal::Type::BaseModel @@ -71,16 +72,20 @@ module Lithic def timestamp=: (Time) -> Time + attr_accessor transaction_token: String? + def initialize: ( ?decision: Lithic::Models::AuthRules::BacktestStats::Example::decision, ?event_token: String, - ?timestamp: Time + ?timestamp: Time, + ?transaction_token: String? ) -> void def to_hash: -> { decision: Lithic::Models::AuthRules::BacktestStats::Example::decision, event_token: String, - timestamp: Time + timestamp: Time, + transaction_token: String? } type decision = :APPROVED | :DECLINED | :CHALLENGED diff --git a/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs b/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs index ea1fb554..c868d500 100644 --- a/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +++ b/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs @@ -73,6 +73,9 @@ module Lithic | :CARD_TRANSACTION_COUNT_15M | :CARD_TRANSACTION_COUNT_1H | :CARD_TRANSACTION_COUNT_24H + | :CARD_DECLINE_COUNT_15M + | :CARD_DECLINE_COUNT_1H + | :CARD_DECLINE_COUNT_24H | :CARD_STATE | :PIN_ENTERED | :PIN_STATUS @@ -100,6 +103,9 @@ module Lithic 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_DECLINE_COUNT_15_M: :CARD_DECLINE_COUNT_15M + CARD_DECLINE_COUNT_1_H: :CARD_DECLINE_COUNT_1H + CARD_DECLINE_COUNT_24_H: :CARD_DECLINE_COUNT_24H CARD_STATE: :CARD_STATE PIN_ENTERED: :PIN_ENTERED PIN_STATUS: :PIN_STATUS diff --git a/sig/lithic/models/auth_rules/report_stats.rbs b/sig/lithic/models/auth_rules/report_stats.rbs index 2b1b84ca..f2080b06 100644 --- a/sig/lithic/models/auth_rules/report_stats.rbs +++ b/sig/lithic/models/auth_rules/report_stats.rbs @@ -4,99 +4,63 @@ module Lithic type report_stats = { action_counts: ::Hash[Symbol, Integer], - approved: Integer, - challenged: Integer, - declined: Integer, - examples: ::Array[Lithic::AuthRules::ReportStats::Example] + examples: ::Array[Lithic::AuthRules::ReportStats::Example], + state: Lithic::Models::AuthRules::ReportStats::state, + version: Integer } class ReportStats < Lithic::Internal::Type::BaseModel - attr_reader action_counts: ::Hash[Symbol, Integer]? + attr_accessor action_counts: ::Hash[Symbol, Integer] - def action_counts=: (::Hash[Symbol, Integer]) -> ::Hash[Symbol, Integer] + attr_accessor examples: ::Array[Lithic::AuthRules::ReportStats::Example] - attr_reader approved: Integer? + attr_accessor state: Lithic::Models::AuthRules::ReportStats::state - def approved=: (Integer) -> Integer - - attr_reader challenged: Integer? - - def challenged=: (Integer) -> Integer - - attr_reader declined: Integer? - - def declined=: (Integer) -> Integer - - attr_reader examples: ::Array[Lithic::AuthRules::ReportStats::Example]? - - def examples=: ( - ::Array[Lithic::AuthRules::ReportStats::Example] - ) -> ::Array[Lithic::AuthRules::ReportStats::Example] + attr_accessor version: Integer def initialize: ( - ?action_counts: ::Hash[Symbol, Integer], - ?approved: Integer, - ?challenged: Integer, - ?declined: Integer, - ?examples: ::Array[Lithic::AuthRules::ReportStats::Example] + action_counts: ::Hash[Symbol, Integer], + examples: ::Array[Lithic::AuthRules::ReportStats::Example], + state: Lithic::Models::AuthRules::ReportStats::state, + version: Integer ) -> void def to_hash: -> { action_counts: ::Hash[Symbol, Integer], - approved: Integer, - challenged: Integer, - declined: Integer, - examples: ::Array[Lithic::AuthRules::ReportStats::Example] + examples: ::Array[Lithic::AuthRules::ReportStats::Example], + state: Lithic::Models::AuthRules::ReportStats::state, + version: Integer } type example = { actions: ::Array[Lithic::Models::AuthRules::ReportStats::Example::action], - approved: bool, - decision: Lithic::Models::AuthRules::ReportStats::Example::decision, event_token: String, - timestamp: Time + timestamp: Time, + transaction_token: String? } class Example < Lithic::Internal::Type::BaseModel - attr_reader actions: ::Array[Lithic::Models::AuthRules::ReportStats::Example::action]? - - def actions=: ( - ::Array[Lithic::Models::AuthRules::ReportStats::Example::action] - ) -> ::Array[Lithic::Models::AuthRules::ReportStats::Example::action] - - attr_reader approved: bool? + attr_accessor actions: ::Array[Lithic::Models::AuthRules::ReportStats::Example::action] - def approved=: (bool) -> bool + attr_accessor event_token: String - attr_reader decision: Lithic::Models::AuthRules::ReportStats::Example::decision? + attr_accessor timestamp: Time - def decision=: ( - Lithic::Models::AuthRules::ReportStats::Example::decision - ) -> Lithic::Models::AuthRules::ReportStats::Example::decision - - attr_reader event_token: String? - - def event_token=: (String) -> String - - attr_reader timestamp: Time? - - def timestamp=: (Time) -> Time + attr_accessor transaction_token: String? def initialize: ( - ?actions: ::Array[Lithic::Models::AuthRules::ReportStats::Example::action], - ?approved: bool, - ?decision: Lithic::Models::AuthRules::ReportStats::Example::decision, - ?event_token: String, - ?timestamp: Time + actions: ::Array[Lithic::Models::AuthRules::ReportStats::Example::action], + event_token: String, + timestamp: Time, + ?transaction_token: String? ) -> void def to_hash: -> { actions: ::Array[Lithic::Models::AuthRules::ReportStats::Example::action], - approved: bool, - decision: Lithic::Models::AuthRules::ReportStats::Example::decision, event_token: String, - timestamp: Time + timestamp: Time, + transaction_token: String? } type action = @@ -677,18 +641,18 @@ module Lithic def self?.variants: -> ::Array[Lithic::Models::AuthRules::ReportStats::Example::action] end + end - type decision = :APPROVED | :DECLINED | :CHALLENGED + type state = :ACTIVE | :SHADOW | :INACTIVE - module Decision - extend Lithic::Internal::Type::Enum + module State + extend Lithic::Internal::Type::Enum - APPROVED: :APPROVED - DECLINED: :DECLINED - CHALLENGED: :CHALLENGED + ACTIVE: :ACTIVE + SHADOW: :SHADOW + INACTIVE: :INACTIVE - def self?.values: -> ::Array[Lithic::Models::AuthRules::ReportStats::Example::decision] - end + def self?.values: -> ::Array[Lithic::Models::AuthRules::ReportStats::state] end end end diff --git a/sig/lithic/models/auth_rules/v2_list_results_response.rbs b/sig/lithic/models/auth_rules/v2_list_results_response.rbs index 0de57d4f..7d3a0fd0 100644 --- a/sig/lithic/models/auth_rules/v2_list_results_response.rbs +++ b/sig/lithic/models/auth_rules/v2_list_results_response.rbs @@ -19,7 +19,8 @@ module Lithic event_stream: :AUTHORIZATION, event_token: String, mode: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::mode, - rule_version: Integer + rule_version: Integer, + transaction_token: String? } class AuthorizationResult < Lithic::Internal::Type::BaseModel @@ -39,6 +40,8 @@ module Lithic attr_accessor rule_version: Integer + attr_accessor transaction_token: String? + def initialize: ( token: String, actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::action], @@ -47,6 +50,7 @@ module Lithic event_token: String, mode: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::mode, rule_version: Integer, + transaction_token: String?, ?event_stream: :AUTHORIZATION ) -> void @@ -58,7 +62,8 @@ module Lithic event_stream: :AUTHORIZATION, event_token: String, mode: Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult::mode, - rule_version: Integer + rule_version: Integer, + transaction_token: String? } type action = @@ -288,7 +293,8 @@ module Lithic event_stream: :THREE_DS_AUTHENTICATION, event_token: String, mode: Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::mode, - rule_version: Integer + rule_version: Integer, + transaction_token: String? } class Authentication3DSResult < Lithic::Internal::Type::BaseModel @@ -308,6 +314,8 @@ module Lithic attr_accessor rule_version: Integer + attr_accessor transaction_token: String? + def initialize: ( token: String, actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::Action], @@ -316,6 +324,7 @@ module Lithic event_token: String, mode: Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::mode, rule_version: Integer, + transaction_token: String?, ?event_stream: :THREE_DS_AUTHENTICATION ) -> void @@ -327,7 +336,8 @@ module Lithic event_stream: :THREE_DS_AUTHENTICATION, event_token: String, mode: Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult::mode, - rule_version: Integer + rule_version: Integer, + transaction_token: String? } type action = @@ -386,7 +396,8 @@ module Lithic event_stream: :TOKENIZATION, event_token: String, mode: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::mode, - rule_version: Integer + rule_version: Integer, + transaction_token: String? } class TokenizationResult < Lithic::Internal::Type::BaseModel @@ -406,6 +417,8 @@ module Lithic attr_accessor rule_version: Integer + attr_accessor transaction_token: String? + def initialize: ( token: String, actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::action], @@ -414,6 +427,7 @@ module Lithic event_token: String, mode: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::mode, rule_version: Integer, + transaction_token: String?, ?event_stream: :TOKENIZATION ) -> void @@ -425,7 +439,8 @@ module Lithic event_stream: :TOKENIZATION, event_token: String, mode: Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult::mode, - rule_version: Integer + rule_version: Integer, + transaction_token: String? } type action = @@ -619,7 +634,8 @@ module Lithic event_stream: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::event_stream, event_token: String, mode: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::mode, - rule_version: Integer + rule_version: Integer, + transaction_token: String? } class ACHResult < Lithic::Internal::Type::BaseModel @@ -639,6 +655,8 @@ module Lithic attr_accessor rule_version: Integer + attr_accessor transaction_token: String? + def initialize: ( token: String, actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::action], @@ -647,7 +665,8 @@ module Lithic event_stream: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::event_stream, event_token: String, mode: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::mode, - rule_version: Integer + rule_version: Integer, + transaction_token: String? ) -> void def to_hash: -> { @@ -658,7 +677,8 @@ module Lithic event_stream: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::event_stream, event_token: String, mode: Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult::mode, - rule_version: Integer + rule_version: Integer, + transaction_token: String? } type action = diff --git a/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs b/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs index d109c27e..73c53506 100644 --- a/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs +++ b/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs @@ -33,685 +33,22 @@ module Lithic } type daily_statistic = - { - current_version_statistics: Lithic::AuthRules::ReportStats?, - date: Date, - draft_version_statistics: Lithic::AuthRules::ReportStats?, - versions: ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version] - } + { date: Date, versions: ::Array[Lithic::AuthRules::ReportStats] } class DailyStatistic < Lithic::Internal::Type::BaseModel - attr_accessor current_version_statistics: Lithic::AuthRules::ReportStats? - attr_accessor date: Date - attr_accessor draft_version_statistics: Lithic::AuthRules::ReportStats? - - attr_accessor versions: ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version] + attr_accessor versions: ::Array[Lithic::AuthRules::ReportStats] def initialize: ( - current_version_statistics: Lithic::AuthRules::ReportStats?, date: Date, - draft_version_statistics: Lithic::AuthRules::ReportStats?, - versions: ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version] + versions: ::Array[Lithic::AuthRules::ReportStats] ) -> void def to_hash: -> { - current_version_statistics: Lithic::AuthRules::ReportStats?, date: Date, - draft_version_statistics: Lithic::AuthRules::ReportStats?, - versions: ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version] + versions: ::Array[Lithic::AuthRules::ReportStats] } - - type version = - { - action_counts: ::Hash[Symbol, Integer], - examples: ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example], - state: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::state, - version: Integer - } - - class Version < Lithic::Internal::Type::BaseModel - attr_accessor action_counts: ::Hash[Symbol, Integer] - - attr_accessor examples: ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example] - - attr_accessor state: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::state - - attr_accessor version: Integer - - def initialize: ( - action_counts: ::Hash[Symbol, Integer], - examples: ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example], - state: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::state, - version: Integer - ) -> void - - def to_hash: -> { - action_counts: ::Hash[Symbol, Integer], - examples: ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example], - state: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::state, - version: Integer - } - - type example = - { - actions: ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::action], - event_token: String, - timestamp: Time - } - - class Example < Lithic::Internal::Type::BaseModel - attr_accessor actions: ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::action] - - attr_accessor event_token: String - - attr_accessor timestamp: Time - - def initialize: ( - actions: ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::action], - event_token: String, - timestamp: Time - ) -> void - - def to_hash: -> { - actions: ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::action], - event_token: String, - timestamp: Time - } - - type action = - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization - | Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ChallengeActionAuthorization - | Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ResultAuthentication3DSAction - | Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization - | Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction - | Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ApproveActionACH - | Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction - - module Action - extend Lithic::Internal::Type::Union - - type decline_action_authorization = - { - code: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::code, - type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::type_ - } - - class DeclineActionAuthorization < Lithic::Internal::Type::BaseModel - attr_accessor code: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::code - - attr_accessor type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::type_ - - def initialize: ( - code: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::code, - type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::type_ - ) -> void - - def to_hash: -> { - code: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::code, - type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::type_ - } - - type code = - :ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED - | :ACCOUNT_DELINQUENT - | :ACCOUNT_INACTIVE - | :ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED - | :ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED - | :ACCOUNT_PAUSED - | :ACCOUNT_UNDER_REVIEW - | :ADDRESS_INCORRECT - | :APPROVED - | :AUTH_RULE_ALLOWED_COUNTRY - | :AUTH_RULE_ALLOWED_MCC - | :AUTH_RULE_BLOCKED_COUNTRY - | :AUTH_RULE_BLOCKED_MCC - | :AUTH_RULE - | :CARD_CLOSED - | :CARD_CRYPTOGRAM_VALIDATION_FAILURE - | :CARD_EXPIRED - | :CARD_EXPIRY_DATE_INCORRECT - | :CARD_INVALID - | :CARD_NOT_ACTIVATED - | :CARD_PAUSED - | :CARD_PIN_INCORRECT - | :CARD_RESTRICTED - | :CARD_SECURITY_CODE_INCORRECT - | :CARD_SPEND_LIMIT_EXCEEDED - | :CONTACT_CARD_ISSUER - | :CUSTOMER_ASA_TIMEOUT - | :CUSTOM_ASA_RESULT - | :DECLINED - | :DO_NOT_HONOR - | :DRIVER_NUMBER_INVALID - | :FORMAT_ERROR - | :INSUFFICIENT_FUNDING_SOURCE_BALANCE - | :INSUFFICIENT_FUNDS - | :LITHIC_SYSTEM_ERROR - | :LITHIC_SYSTEM_RATE_LIMIT - | :MALFORMED_ASA_RESPONSE - | :MERCHANT_INVALID - | :MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE - | :MERCHANT_NOT_PERMITTED - | :OVER_REVERSAL_ATTEMPTED - | :PIN_BLOCKED - | :PROGRAM_CARD_SPEND_LIMIT_EXCEEDED - | :PROGRAM_SUSPENDED - | :PROGRAM_USAGE_RESTRICTION - | :REVERSAL_UNMATCHED - | :SECURITY_VIOLATION - | :SINGLE_USE_CARD_REATTEMPTED - | :SUSPECTED_FRAUD - | :TRANSACTION_INVALID - | :TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL - | :TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER - | :TRANSACTION_PREVIOUSLY_COMPLETED - | :UNAUTHORIZED_MERCHANT - | :VEHICLE_NUMBER_INVALID - | :CARDHOLDER_CHALLENGED - | :CARDHOLDER_CHALLENGE_FAILED - - module Code - extend Lithic::Internal::Type::Enum - - ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED: :ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED - ACCOUNT_DELINQUENT: :ACCOUNT_DELINQUENT - ACCOUNT_INACTIVE: :ACCOUNT_INACTIVE - ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED: :ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED - ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED: :ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED - ACCOUNT_PAUSED: :ACCOUNT_PAUSED - ACCOUNT_UNDER_REVIEW: :ACCOUNT_UNDER_REVIEW - ADDRESS_INCORRECT: :ADDRESS_INCORRECT - APPROVED: :APPROVED - AUTH_RULE_ALLOWED_COUNTRY: :AUTH_RULE_ALLOWED_COUNTRY - AUTH_RULE_ALLOWED_MCC: :AUTH_RULE_ALLOWED_MCC - AUTH_RULE_BLOCKED_COUNTRY: :AUTH_RULE_BLOCKED_COUNTRY - AUTH_RULE_BLOCKED_MCC: :AUTH_RULE_BLOCKED_MCC - AUTH_RULE: :AUTH_RULE - CARD_CLOSED: :CARD_CLOSED - CARD_CRYPTOGRAM_VALIDATION_FAILURE: :CARD_CRYPTOGRAM_VALIDATION_FAILURE - CARD_EXPIRED: :CARD_EXPIRED - CARD_EXPIRY_DATE_INCORRECT: :CARD_EXPIRY_DATE_INCORRECT - CARD_INVALID: :CARD_INVALID - CARD_NOT_ACTIVATED: :CARD_NOT_ACTIVATED - CARD_PAUSED: :CARD_PAUSED - CARD_PIN_INCORRECT: :CARD_PIN_INCORRECT - CARD_RESTRICTED: :CARD_RESTRICTED - CARD_SECURITY_CODE_INCORRECT: :CARD_SECURITY_CODE_INCORRECT - CARD_SPEND_LIMIT_EXCEEDED: :CARD_SPEND_LIMIT_EXCEEDED - CONTACT_CARD_ISSUER: :CONTACT_CARD_ISSUER - CUSTOMER_ASA_TIMEOUT: :CUSTOMER_ASA_TIMEOUT - CUSTOM_ASA_RESULT: :CUSTOM_ASA_RESULT - DECLINED: :DECLINED - DO_NOT_HONOR: :DO_NOT_HONOR - DRIVER_NUMBER_INVALID: :DRIVER_NUMBER_INVALID - FORMAT_ERROR: :FORMAT_ERROR - INSUFFICIENT_FUNDING_SOURCE_BALANCE: :INSUFFICIENT_FUNDING_SOURCE_BALANCE - INSUFFICIENT_FUNDS: :INSUFFICIENT_FUNDS - LITHIC_SYSTEM_ERROR: :LITHIC_SYSTEM_ERROR - LITHIC_SYSTEM_RATE_LIMIT: :LITHIC_SYSTEM_RATE_LIMIT - MALFORMED_ASA_RESPONSE: :MALFORMED_ASA_RESPONSE - MERCHANT_INVALID: :MERCHANT_INVALID - MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE: :MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE - MERCHANT_NOT_PERMITTED: :MERCHANT_NOT_PERMITTED - OVER_REVERSAL_ATTEMPTED: :OVER_REVERSAL_ATTEMPTED - PIN_BLOCKED: :PIN_BLOCKED - PROGRAM_CARD_SPEND_LIMIT_EXCEEDED: :PROGRAM_CARD_SPEND_LIMIT_EXCEEDED - PROGRAM_SUSPENDED: :PROGRAM_SUSPENDED - PROGRAM_USAGE_RESTRICTION: :PROGRAM_USAGE_RESTRICTION - REVERSAL_UNMATCHED: :REVERSAL_UNMATCHED - SECURITY_VIOLATION: :SECURITY_VIOLATION - SINGLE_USE_CARD_REATTEMPTED: :SINGLE_USE_CARD_REATTEMPTED - SUSPECTED_FRAUD: :SUSPECTED_FRAUD - TRANSACTION_INVALID: :TRANSACTION_INVALID - TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL: :TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL - TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER: :TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER - TRANSACTION_PREVIOUSLY_COMPLETED: :TRANSACTION_PREVIOUSLY_COMPLETED - UNAUTHORIZED_MERCHANT: :UNAUTHORIZED_MERCHANT - VEHICLE_NUMBER_INVALID: :VEHICLE_NUMBER_INVALID - CARDHOLDER_CHALLENGED: :CARDHOLDER_CHALLENGED - CARDHOLDER_CHALLENGE_FAILED: :CARDHOLDER_CHALLENGE_FAILED - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::code] - end - - type type_ = :DECLINE - - module Type - extend Lithic::Internal::Type::Enum - - DECLINE: :DECLINE - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionAuthorization::type_] - end - end - - type challenge_action_authorization = - { - type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ChallengeActionAuthorization::type_ - } - - class ChallengeActionAuthorization < Lithic::Internal::Type::BaseModel - attr_accessor type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ChallengeActionAuthorization::type_ - - def initialize: ( - type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ChallengeActionAuthorization::type_ - ) -> void - - def to_hash: -> { - type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ChallengeActionAuthorization::type_ - } - - type type_ = :CHALLENGE - - module Type - extend Lithic::Internal::Type::Enum - - CHALLENGE: :CHALLENGE - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ChallengeActionAuthorization::type_] - end - end - - type result_authentication3_ds_action = - { - type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ResultAuthentication3DSAction::type_ - } - - class ResultAuthentication3DSAction < Lithic::Internal::Type::BaseModel - attr_accessor type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ResultAuthentication3DSAction::type_ - - def initialize: ( - type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ResultAuthentication3DSAction::type_ - ) -> void - - def to_hash: -> { - type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ResultAuthentication3DSAction::type_ - } - - type type_ = :DECLINE | :CHALLENGE - - module Type - extend Lithic::Internal::Type::Enum - - DECLINE: :DECLINE - CHALLENGE: :CHALLENGE - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ResultAuthentication3DSAction::type_] - end - end - - type decline_action_tokenization = - { - type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::type_, - reason: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::reason - } - - class DeclineActionTokenization < Lithic::Internal::Type::BaseModel - attr_accessor type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::type_ - - attr_reader reason: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::reason? - - def reason=: ( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::reason - ) -> Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::reason - - def initialize: ( - type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::type_, - ?reason: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::reason - ) -> void - - def to_hash: -> { - type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::type_, - reason: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::reason - } - - type type_ = :DECLINE - - module Type - extend Lithic::Internal::Type::Enum - - DECLINE: :DECLINE - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::type_] - end - - type 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 Reason - 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::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::DeclineActionTokenization::reason] - end - end - - type require_tfa_action = - { - type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::type_, - reason: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::reason - } - - class RequireTfaAction < Lithic::Internal::Type::BaseModel - attr_accessor type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::type_ - - attr_reader reason: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::reason? - - def reason=: ( - Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::reason - ) -> Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::reason - - def initialize: ( - type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::type_, - ?reason: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::reason - ) -> void - - def to_hash: -> { - type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::type_, - reason: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::reason - } - - type type_ = :REQUIRE_TFA - - module Type - extend Lithic::Internal::Type::Enum - - REQUIRE_TFA: :REQUIRE_TFA - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::type_] - end - - type 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 Reason - 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::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::RequireTfaAction::reason] - end - end - - type approve_action_ach = - { - type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ApproveActionACH::type_ - } - - class ApproveActionACH < Lithic::Internal::Type::BaseModel - attr_accessor type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ApproveActionACH::type_ - - def initialize: ( - type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ApproveActionACH::type_ - ) -> void - - def to_hash: -> { - type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ApproveActionACH::type_ - } - - type type_ = :APPROVE - - module Type - extend Lithic::Internal::Type::Enum - - APPROVE: :APPROVE - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ApproveActionACH::type_] - end - end - - type return_action = - { - code: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::code, - type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::type_ - } - - class ReturnAction < Lithic::Internal::Type::BaseModel - attr_accessor code: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::code - - attr_accessor type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::type_ - - def initialize: ( - code: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::code, - type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::type_ - ) -> void - - def to_hash: -> { - code: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::code, - type: Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::type_ - } - - type code = - :R01 - | :R02 - | :R03 - | :R04 - | :R05 - | :R06 - | :R07 - | :R08 - | :R09 - | :R10 - | :R11 - | :R12 - | :R13 - | :R14 - | :R15 - | :R16 - | :R17 - | :R18 - | :R19 - | :R20 - | :R21 - | :R22 - | :R23 - | :R24 - | :R25 - | :R26 - | :R27 - | :R28 - | :R29 - | :R30 - | :R31 - | :R32 - | :R33 - | :R34 - | :R35 - | :R36 - | :R37 - | :R38 - | :R39 - | :R40 - | :R41 - | :R42 - | :R43 - | :R44 - | :R45 - | :R46 - | :R47 - | :R50 - | :R51 - | :R52 - | :R53 - | :R61 - | :R62 - | :R67 - | :R68 - | :R69 - | :R70 - | :R71 - | :R72 - | :R73 - | :R74 - | :R75 - | :R76 - | :R77 - | :R80 - | :R81 - | :R82 - | :R83 - | :R84 - | :R85 - - module Code - extend Lithic::Internal::Type::Enum - - R01: :R01 - R02: :R02 - R03: :R03 - R04: :R04 - R05: :R05 - R06: :R06 - R07: :R07 - R08: :R08 - R09: :R09 - R10: :R10 - R11: :R11 - R12: :R12 - R13: :R13 - R14: :R14 - R15: :R15 - R16: :R16 - R17: :R17 - R18: :R18 - R19: :R19 - R20: :R20 - R21: :R21 - R22: :R22 - R23: :R23 - R24: :R24 - R25: :R25 - R26: :R26 - R27: :R27 - R28: :R28 - R29: :R29 - R30: :R30 - R31: :R31 - R32: :R32 - R33: :R33 - R34: :R34 - R35: :R35 - R36: :R36 - R37: :R37 - R38: :R38 - R39: :R39 - R40: :R40 - R41: :R41 - R42: :R42 - R43: :R43 - R44: :R44 - R45: :R45 - R46: :R46 - R47: :R47 - R50: :R50 - R51: :R51 - R52: :R52 - R53: :R53 - R61: :R61 - R62: :R62 - R67: :R67 - R68: :R68 - R69: :R69 - R70: :R70 - R71: :R71 - R72: :R72 - R73: :R73 - R74: :R74 - R75: :R75 - R76: :R76 - R77: :R77 - R80: :R80 - R81: :R81 - R82: :R82 - R83: :R83 - R84: :R84 - R85: :R85 - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::code] - end - - type type_ = :RETURN - - module Type - extend Lithic::Internal::Type::Enum - - RETURN: :RETURN - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::Action::ReturnAction::type_] - end - end - - def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::Example::action] - end - end - - type state = :ACTIVE | :SHADOW | :INACTIVE - - module State - extend Lithic::Internal::Type::Enum - - ACTIVE: :ACTIVE - SHADOW: :SHADOW - INACTIVE: :INACTIVE - - def self?.values: -> ::Array[Lithic::Models::AuthRules::V2RetrieveReportResponse::DailyStatistic::Version::state] - end - end end end end diff --git a/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs b/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs index cd466c31..c0ded6e6 100644 --- a/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +++ b/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs @@ -334,7 +334,6 @@ module Lithic type card = { token: String, - hostname: String, last_four: String, memo: String, spend_limit: Integer, @@ -344,58 +343,32 @@ module Lithic } class Card < Lithic::Internal::Type::BaseModel - attr_reader token: String? + attr_accessor token: String - def token=: (String) -> String + attr_accessor last_four: String - attr_reader hostname: String? + attr_accessor memo: String - def hostname=: (String) -> String + attr_accessor spend_limit: Integer - attr_reader last_four: String? + attr_accessor spend_limit_duration: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration - def last_four=: (String) -> String + attr_accessor state: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state - attr_reader memo: String? - - def memo=: (String) -> String - - attr_reader spend_limit: Integer? - - def spend_limit=: (Integer) -> Integer - - attr_reader spend_limit_duration: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration? - - def spend_limit_duration=: ( - Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration - ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration - - attr_reader state: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state? - - def state=: ( - Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state - ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state - - attr_reader type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_? - - def type=: ( - Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_ - ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_ + attr_accessor type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_ def initialize: ( - ?token: String, - ?hostname: String, - ?last_four: String, - ?memo: String, - ?spend_limit: Integer, - ?spend_limit_duration: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration, - ?state: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state, - ?type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_ + token: String, + last_four: String, + memo: String, + spend_limit: Integer, + spend_limit_duration: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration, + state: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state, + type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_ ) -> void def to_hash: -> { token: String, - hostname: String, last_four: String, memo: String, spend_limit: Integer, diff --git a/sig/lithic/models/card_bulk_order.rbs b/sig/lithic/models/card_bulk_order.rbs index 86305d9a..364e85f8 100644 --- a/sig/lithic/models/card_bulk_order.rbs +++ b/sig/lithic/models/card_bulk_order.rbs @@ -51,12 +51,16 @@ module Lithic updated: Time } - type shipping_method = :BULK_EXPEDITED + type shipping_method = + :BULK_EXPEDITED | :BULK_PRIORITY | :BULK_2_DAY | :BULK_EXPRESS module ShippingMethod extend Lithic::Internal::Type::Enum BULK_EXPEDITED: :BULK_EXPEDITED + BULK_PRIORITY: :BULK_PRIORITY + BULK_2_DAY: :BULK_2_DAY + BULK_EXPRESS: :BULK_EXPRESS def self?.values: -> ::Array[Lithic::Models::CardBulkOrder::shipping_method] end diff --git a/sig/lithic/models/card_bulk_order_create_params.rbs b/sig/lithic/models/card_bulk_order_create_params.rbs index 79d51424..33361ef6 100644 --- a/sig/lithic/models/card_bulk_order_create_params.rbs +++ b/sig/lithic/models/card_bulk_order_create_params.rbs @@ -32,12 +32,16 @@ module Lithic request_options: Lithic::RequestOptions } - type shipping_method = :BULK_EXPEDITED + type shipping_method = + :BULK_EXPEDITED | :BULK_PRIORITY | :BULK_2_DAY | :BULK_EXPRESS module ShippingMethod extend Lithic::Internal::Type::Enum BULK_EXPEDITED: :BULK_EXPEDITED + BULK_PRIORITY: :BULK_PRIORITY + BULK_2_DAY: :BULK_2_DAY + BULK_EXPRESS: :BULK_EXPRESS def self?.values: -> ::Array[Lithic::Models::CardBulkOrderCreateParams::shipping_method] end diff --git a/sig/lithic/models/card_convert_physical_params.rbs b/sig/lithic/models/card_convert_physical_params.rbs index d8156440..9ca4dcd1 100644 --- a/sig/lithic/models/card_convert_physical_params.rbs +++ b/sig/lithic/models/card_convert_physical_params.rbs @@ -52,7 +52,7 @@ module Lithic type shipping_method = :"2_DAY" - | :BULK_EXPEDITED + | :BULK | :EXPEDITED | :EXPRESS | :PRIORITY @@ -63,7 +63,7 @@ module Lithic extend Lithic::Internal::Type::Enum SHIPPING_METHOD_2_DAY: :"2_DAY" - BULK_EXPEDITED: :BULK_EXPEDITED + BULK: :BULK EXPEDITED: :EXPEDITED EXPRESS: :EXPRESS PRIORITY: :PRIORITY diff --git a/sig/lithic/models/card_create_params.rbs b/sig/lithic/models/card_create_params.rbs index 8ea307b4..8c90958e 100644 --- a/sig/lithic/models/card_create_params.rbs +++ b/sig/lithic/models/card_create_params.rbs @@ -226,7 +226,7 @@ module Lithic type shipping_method = :"2_DAY" - | :BULK_EXPEDITED + | :BULK | :EXPEDITED | :EXPRESS | :PRIORITY @@ -237,7 +237,7 @@ module Lithic extend Lithic::Internal::Type::Enum SHIPPING_METHOD_2_DAY: :"2_DAY" - BULK_EXPEDITED: :BULK_EXPEDITED + BULK: :BULK EXPEDITED: :EXPEDITED EXPRESS: :EXPRESS PRIORITY: :PRIORITY diff --git a/sig/lithic/models/card_reissue_params.rbs b/sig/lithic/models/card_reissue_params.rbs index 8b669e80..d4529ab0 100644 --- a/sig/lithic/models/card_reissue_params.rbs +++ b/sig/lithic/models/card_reissue_params.rbs @@ -56,7 +56,7 @@ module Lithic type shipping_method = :"2_DAY" - | :BULK_EXPEDITED + | :BULK | :EXPEDITED | :EXPRESS | :PRIORITY @@ -67,7 +67,7 @@ module Lithic extend Lithic::Internal::Type::Enum SHIPPING_METHOD_2_DAY: :"2_DAY" - BULK_EXPEDITED: :BULK_EXPEDITED + BULK: :BULK EXPEDITED: :EXPEDITED EXPRESS: :EXPRESS PRIORITY: :PRIORITY diff --git a/sig/lithic/models/card_renew_params.rbs b/sig/lithic/models/card_renew_params.rbs index 2265b4a7..aeadd193 100644 --- a/sig/lithic/models/card_renew_params.rbs +++ b/sig/lithic/models/card_renew_params.rbs @@ -66,7 +66,7 @@ module Lithic type shipping_method = :"2_DAY" - | :BULK_EXPEDITED + | :BULK | :EXPEDITED | :EXPRESS | :PRIORITY @@ -77,7 +77,7 @@ module Lithic extend Lithic::Internal::Type::Enum SHIPPING_METHOD_2_DAY: :"2_DAY" - BULK_EXPEDITED: :BULK_EXPEDITED + BULK: :BULK EXPEDITED: :EXPEDITED EXPRESS: :EXPRESS PRIORITY: :PRIORITY diff --git a/sig/lithic/models/financial_account.rbs b/sig/lithic/models/financial_account.rbs index 45ac5404..60fed134 100644 --- a/sig/lithic/models/financial_account.rbs +++ b/sig/lithic/models/financial_account.rbs @@ -169,6 +169,7 @@ module Lithic | :COLLECTION | :PROGRAM_BANK_ACCOUNTS_PAYABLE | :EARLY_DIRECT_DEPOSIT_FLOAT + | :PROVISIONAL_CREDIT_ACCOUNT module Type extend Lithic::Internal::Type::Enum @@ -184,6 +185,7 @@ module Lithic COLLECTION: :COLLECTION PROGRAM_BANK_ACCOUNTS_PAYABLE: :PROGRAM_BANK_ACCOUNTS_PAYABLE EARLY_DIRECT_DEPOSIT_FLOAT: :EARLY_DIRECT_DEPOSIT_FLOAT + PROVISIONAL_CREDIT_ACCOUNT: :PROVISIONAL_CREDIT_ACCOUNT def self?.values: -> ::Array[Lithic::Models::FinancialAccount::type_] end diff --git a/sig/lithic/models/financial_accounts/statement.rbs b/sig/lithic/models/financial_accounts/statement.rbs index dbd52b9f..7badd19b 100644 --- a/sig/lithic/models/financial_accounts/statement.rbs +++ b/sig/lithic/models/financial_accounts/statement.rbs @@ -9,7 +9,7 @@ module Lithic available_credit: Integer, created: Time, credit_limit: Integer, - credit_product_token: String, + credit_product_token: String?, days_in_billing_cycle: Integer, ending_balance: Integer, financial_account_token: String, @@ -24,7 +24,8 @@ module Lithic interest_details: Lithic::FinancialAccounts::Statement::InterestDetails?, next_payment_due_date: Date, next_statement_end_date: Date, - payoff_details: Lithic::FinancialAccounts::Statement::PayoffDetails? + payoff_details: Lithic::FinancialAccounts::Statement::PayoffDetails?, + statement_totals: Lithic::StatementTotals } class Statement < Lithic::Internal::Type::BaseModel @@ -40,7 +41,7 @@ module Lithic attr_accessor credit_limit: Integer - attr_accessor credit_product_token: String + attr_accessor credit_product_token: String? attr_accessor days_in_billing_cycle: Integer @@ -76,6 +77,12 @@ module Lithic attr_accessor payoff_details: Lithic::FinancialAccounts::Statement::PayoffDetails? + attr_reader statement_totals: Lithic::StatementTotals? + + def statement_totals=: ( + Lithic::StatementTotals + ) -> Lithic::StatementTotals + def initialize: ( token: String, account_standing: Lithic::FinancialAccounts::Statement::AccountStanding, @@ -83,7 +90,7 @@ module Lithic available_credit: Integer, created: Time, credit_limit: Integer, - credit_product_token: String, + credit_product_token: String?, days_in_billing_cycle: Integer, ending_balance: Integer, financial_account_token: String, @@ -98,7 +105,8 @@ module Lithic ?interest_details: Lithic::FinancialAccounts::Statement::InterestDetails?, ?next_payment_due_date: Date, ?next_statement_end_date: Date, - ?payoff_details: Lithic::FinancialAccounts::Statement::PayoffDetails? + ?payoff_details: Lithic::FinancialAccounts::Statement::PayoffDetails?, + ?statement_totals: Lithic::StatementTotals ) -> void def to_hash: -> { @@ -108,7 +116,7 @@ module Lithic available_credit: Integer, created: Time, credit_limit: Integer, - credit_product_token: String, + credit_product_token: String?, days_in_billing_cycle: Integer, ending_balance: Integer, financial_account_token: String, @@ -123,7 +131,8 @@ module Lithic interest_details: Lithic::FinancialAccounts::Statement::InterestDetails?, next_payment_due_date: Date, next_statement_end_date: Date, - payoff_details: Lithic::FinancialAccounts::Statement::PayoffDetails? + payoff_details: Lithic::FinancialAccounts::Statement::PayoffDetails?, + statement_totals: Lithic::StatementTotals } type account_standing = diff --git a/sig/lithic/models/instance_financial_account_type.rbs b/sig/lithic/models/instance_financial_account_type.rbs index b1a4a5ca..8f01f0e1 100644 --- a/sig/lithic/models/instance_financial_account_type.rbs +++ b/sig/lithic/models/instance_financial_account_type.rbs @@ -12,6 +12,7 @@ module Lithic | :COLLECTION | :PROGRAM_BANK_ACCOUNTS_PAYABLE | :EARLY_DIRECT_DEPOSIT_FLOAT + | :PROVISIONAL_CREDIT_ACCOUNT module InstanceFinancialAccountType extend Lithic::Internal::Type::Enum @@ -27,6 +28,7 @@ module Lithic COLLECTION: :COLLECTION PROGRAM_BANK_ACCOUNTS_PAYABLE: :PROGRAM_BANK_ACCOUNTS_PAYABLE EARLY_DIRECT_DEPOSIT_FLOAT: :EARLY_DIRECT_DEPOSIT_FLOAT + PROVISIONAL_CREDIT_ACCOUNT: :PROVISIONAL_CREDIT_ACCOUNT def self?.values: -> ::Array[Lithic::Models::instance_financial_account_type] end diff --git a/sig/lithic/models/payment_create_params.rbs b/sig/lithic/models/payment_create_params.rbs index 4f6d15e7..2865c918 100644 --- a/sig/lithic/models/payment_create_params.rbs +++ b/sig/lithic/models/payment_create_params.rbs @@ -92,7 +92,8 @@ module Lithic { sec_code: Lithic::Models::PaymentCreateParams::MethodAttributes::sec_code, ach_hold_period: Integer, - addenda: String? + addenda: String?, + override_company_name: String? } class MethodAttributes < Lithic::Internal::Type::BaseModel @@ -104,16 +105,20 @@ module Lithic attr_accessor addenda: String? + attr_accessor override_company_name: String? + def initialize: ( sec_code: Lithic::Models::PaymentCreateParams::MethodAttributes::sec_code, ?ach_hold_period: Integer, - ?addenda: String? + ?addenda: String?, + ?override_company_name: String? ) -> void def to_hash: -> { sec_code: Lithic::Models::PaymentCreateParams::MethodAttributes::sec_code, ach_hold_period: Integer, - addenda: String? + addenda: String?, + override_company_name: String? } type sec_code = :CCD | :PPD | :WEB diff --git a/test/lithic/resources/financial_accounts/statements_test.rb b/test/lithic/resources/financial_accounts/statements_test.rb index 15d0038f..10156420 100644 --- a/test/lithic/resources/financial_accounts/statements_test.rb +++ b/test/lithic/resources/financial_accounts/statements_test.rb @@ -22,7 +22,7 @@ def test_retrieve_required_params available_credit: Integer, created: Time, credit_limit: Integer, - credit_product_token: String, + credit_product_token: String | nil, days_in_billing_cycle: Integer, ending_balance: Integer, financial_account_token: String, @@ -37,7 +37,8 @@ def test_retrieve_required_params interest_details: Lithic::FinancialAccounts::Statement::InterestDetails | nil, next_payment_due_date: Date | nil, next_statement_end_date: Date | nil, - payoff_details: Lithic::FinancialAccounts::Statement::PayoffDetails | nil + payoff_details: Lithic::FinancialAccounts::Statement::PayoffDetails | nil, + statement_totals: Lithic::StatementTotals | nil } end end @@ -64,7 +65,7 @@ def test_list available_credit: Integer, created: Time, credit_limit: Integer, - credit_product_token: String, + credit_product_token: String | nil, days_in_billing_cycle: Integer, ending_balance: Integer, financial_account_token: String, @@ -79,7 +80,8 @@ def test_list interest_details: Lithic::FinancialAccounts::Statement::InterestDetails | nil, next_payment_due_date: Date | nil, next_statement_end_date: Date | nil, - payoff_details: Lithic::FinancialAccounts::Statement::PayoffDetails | nil + payoff_details: Lithic::FinancialAccounts::Statement::PayoffDetails | nil, + statement_totals: Lithic::StatementTotals | nil } end end