Sha256: 153df634aa25face0a482d2196e463b6ea73d6c7e86b9bd06fb47b30b628aedb

Contents?: true

Size: 961 Bytes

Versions: 1

Compression:

Stored size: 961 Bytes

Contents

=begin
#Klaviyo API

#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details.

The version of the OpenAPI document: 2023-10-15
Contact: developers@klaviyo.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.2.1

=end

require 'date'
require 'time'

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
klaviyo-api-sdk-5.0.0 lib/klaviyo-api-sdk/models/coupon_enum.rb