Sha256: ba25c07724ec83963bdf32e2f2c923fb9a3d58ea0c30d759e69c44cea633dac4
Contents?: true
Size: 1.29 KB
Versions: 2
Compression:
Stored size: 1.29 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 ParameterCampaignType PROMOTION = "PROMOTION".freeze GIFT_VOUCHERS = "GIFT_VOUCHERS".freeze REFERRAL_PROGRAM = "REFERRAL_PROGRAM".freeze DISCOUNT_COUPONS = "DISCOUNT_COUPONS".freeze LOYALTY_PROGRAM = "LOYALTY_PROGRAM".freeze LUCKY_DRAW = "LUCKY_DRAW".freeze def self.all_vars @all_vars ||= [PROMOTION, GIFT_VOUCHERS, REFERRAL_PROGRAM, DISCOUNT_COUPONS, LOYALTY_PROGRAM, LUCKY_DRAW].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 ParameterCampaignType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #ParameterCampaignType" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
voucherify-6.0.0 | lib/VoucherifySdk/models/parameter_campaign_type.rb |
voucherify-5.0.0 | lib/VoucherifySdk/models/parameter_campaign_type.rb |