Sha256: 4f2ebfa6d0bb38aa03ae5c093581021d17d9b1b075d7b74f693edb4ae5652a88

Contents?: true

Size: 1.09 KB

Versions: 2

Compression:

Stored size: 1.09 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.

The version of the OpenAPI document: 6.13.0.20200810.001

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

=end

require 'date'

module OpenapiClient
  class FontWeight
    NORMAL = "normal".freeze
    BOLD = "bold".freeze

    # Builds the enum from string
    # @param [String] The enum value in the form of the string
    # @return [String] The enum value
    def self.build_from_hash(value)
      new.build_from_hash(value)
    end

    # 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 = FontWeight.constants.select { |c| FontWeight::const_get(c) == value }
      raise "Invalid ENUM value #{value} for class #FontWeight" if constantValues.empty?
      value
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
first_data_gateway-1.8.1 lib/openapi_client/models/font_weight.rb
first_data_gateway-1.8.0 lib/openapi_client/models/font_weight.rb