lib/lithic/models/responder_endpoint_create_params.rb



# frozen_string_literal: true

module Lithic
  module Models
    # @see Lithic::Resources::ResponderEndpoints#create
    class ResponderEndpointCreateParams < Lithic::Internal::Type::BaseModel
      extend Lithic::Internal::Type::RequestParameters::Converter
      include Lithic::Internal::Type::RequestParameters

      # @!attribute type
      #   The type of the endpoint.
      #
      #   @return [Symbol, Lithic::Models::ResponderEndpointCreateParams::Type, nil]
      optional :type, enum: -> { Lithic::ResponderEndpointCreateParams::Type }

      # @!attribute url
      #   The URL for the responder endpoint (must be http(s)).
      #
      #   @return [String, nil]
      optional :url, String

      # @!method initialize(type: nil, url: nil, request_options: {})
      #   @param type [Symbol, Lithic::Models::ResponderEndpointCreateParams::Type] The type of the endpoint.
      #
      #   @param url [String] The URL for the responder endpoint (must be http(s)).
      #
      #   @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]

      # The type of the endpoint.
      module Type
        extend Lithic::Internal::Type::Enum

        AUTH_STREAM_ACCESS = :AUTH_STREAM_ACCESS
        THREE_DS_DECISIONING = :THREE_DS_DECISIONING
        TOKENIZATION_DECISIONING = :TOKENIZATION_DECISIONING

        # @!method self.values
        #   @return [Array<Symbol>]
      end
    end
  end
end