class VoucherifySdk::ExportOrderFields
Constants
- AMOUNT
- CREATED_AT
- CUSTOMER_ID
- DISCOUNT_AMOUNT
- ID
- ITEMS_DISCOUNT_AMOUNT
- METADATA
- REFERRER_ID
- SOURCE_ID
- STATUS
- TOTAL_AMOUNT
- TOTAL_DISCOUNT_AMOUNT
- UPDATED_AT
Public Class Methods
all_vars()
click to toggle source
# File lib/VoucherifySdk/models/export_order_fields.rb, line 32 def self.all_vars @all_vars ||= [ID, SOURCE_ID, CREATED_AT, UPDATED_AT, STATUS, AMOUNT, DISCOUNT_AMOUNT, ITEMS_DISCOUNT_AMOUNT, TOTAL_DISCOUNT_AMOUNT, TOTAL_AMOUNT, CUSTOMER_ID, REFERRER_ID, METADATA].freeze end
build_from_hash(value)
click to toggle source
Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value
# File lib/VoucherifySdk/models/export_order_fields.rb, line 39 def self.build_from_hash(value) new.build_from_hash(value) end
Public Instance Methods
build_from_hash(value)
click to toggle source
Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value
# File lib/VoucherifySdk/models/export_order_fields.rb, line 46 def build_from_hash(value) return value if ExportOrderFields.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #ExportOrderFields" end