lib/lithic/models/transaction_simulate_authorization_advice_params.rb



# frozen_string_literal: true

module Lithic
  module Models
    # @see Lithic::Resources::Transactions#simulate_authorization_advice
    class TransactionSimulateAuthorizationAdviceParams < Lithic::Internal::Type::BaseModel
      extend Lithic::Internal::Type::RequestParameters::Converter
      include Lithic::Internal::Type::RequestParameters

      # @!attribute token
      #   The transaction token returned from the /v1/simulate/authorize. response.
      #
      #   @return [String]
      required :token, String

      # @!attribute amount
      #   Amount (in cents) to authorize. This amount will override the transaction's
      #   amount that was originally set by /v1/simulate/authorize.
      #
      #   @return [Integer]
      required :amount, Integer

      # @!method initialize(token:, amount:, request_options: {})
      #   Some parameter documentations has been truncated, see
      #   {Lithic::Models::TransactionSimulateAuthorizationAdviceParams} for more details.
      #
      #   @param token [String] The transaction token returned from the /v1/simulate/authorize. response.
      #
      #   @param amount [Integer] Amount (in cents) to authorize. This amount will override the transaction's amou
      #
      #   @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
    end
  end
end