Sha256: f5a28d8c95b4c458c009fcc21227ac8cb6218e7c52b0a1904281221bf163b307

Contents?: true

Size: 1.53 KB

Versions: 6

Compression:

Stored size: 1.53 KB

Contents

=begin
#Voucherify API

#Voucherify promotion engine REST API. Please see https://docs.voucherify.io/docs for more details.

The version of the OpenAPI document: v2018-08-01
Contact: support@voucherify.io
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.1

=end

require 'date'
require 'time'

module VoucherifySdk
  class ParameterOrderListPublications
    ID = "id".freeze
    ID2 = "-id".freeze
    VOUCHER_CODE = "voucher_code".freeze
    VOUCHER_CODE2 = "-voucher_code".freeze
    TRACKING_ID = "tracking_id".freeze
    TRACKING_ID2 = "-tracking_id".freeze
    CUSTOMER_ID = "customer_id".freeze
    CUSTOMER_ID2 = "-customer_id".freeze
    CREATED_AT = "created_at".freeze
    CREATED_AT2 = "-created_at".freeze
    CHANNEL = "channel".freeze
    CHANNEL2 = "-channel".freeze

    def self.all_vars
      @all_vars ||= [ID, ID2, VOUCHER_CODE, VOUCHER_CODE2, TRACKING_ID, TRACKING_ID2, CUSTOMER_ID, CUSTOMER_ID2, CREATED_AT, CREATED_AT2, CHANNEL, CHANNEL2].freeze
    end

    # 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)
      return value if ParameterOrderListPublications.all_vars.include?(value)
      raise "Invalid ENUM value #{value} for class #ParameterOrderListPublications"
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voucherify-8.0.2 lib/VoucherifySdk/models/parameter_order_list_publications.rb
voucherify-8.0.1 lib/VoucherifySdk/models/parameter_order_list_publications.rb
voucherify-8.0.0 lib/VoucherifySdk/models/parameter_order_list_publications.rb
voucherify-7.0.0 lib/VoucherifySdk/models/parameter_order_list_publications.rb
voucherify-6.0.0 lib/VoucherifySdk/models/parameter_order_list_publications.rb
voucherify-5.0.0 lib/VoucherifySdk/models/parameter_order_list_publications.rb