Sha256: 08e788d4b720b28f61593b0c243ba3d806be5fe6d1f48d3bd86f75dabb02206f

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

=begin
#Payment Gateway API Specification.

#The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.

OpenAPI spec version: 6.6.0.20190329.001

Generated by: https://openapi-generator.tech
OpenAPI Generator version: unset

=end

require 'date'

module OpenapiClient
  class ResponseType
    
    BAD_REQUEST = 'BadRequest'.freeze
    UNAUTHENTICATED = 'Unauthenticated'.freeze
    UNAUTHORIZED = 'Unauthorized'.freeze
    NOT_FOUND = 'NotFound'.freeze
    GATEWAY_DECLINED = 'GatewayDeclined'.freeze
    ENDPOINT_DECLINED = 'EndpointDeclined'.freeze
    SERVER_ERROR = 'ServerError'.freeze
    ENDPOINT_COMMUNICATION_ERROR = 'EndpointCommunicationError'.freeze
    UNSUPPORTED_MEDIA_TYPE = 'UnsupportedMediaType'.freeze

    # Builds the enum from string
    # @param [String] The enum value in the form of the string
    # @return [String] The enum value
    def build_from_hash(value)
      constantValues = ResponseType.constants.select { |c| ResponseType::const_get(c) == value }
      raise "Invalid ENUM value #{value} for class #ResponseType" if constantValues.empty?
      value
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
first_data_gateway-1.2.0 lib/openapi_client/models/response_type.rb