=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 ExportCustomerFields NAME = "name".freeze ID = "id".freeze DESCRIPTION = "description".freeze EMAIL = "email".freeze SOURCE_ID = "source_id".freeze CREATED_AT = "created_at".freeze ADDRESS_CITY = "address_city".freeze ADDRESS_STATE = "address_state".freeze ADDRESS_LINE_1 = "address_line_1".freeze ADDRESS_LINE_2 = "address_line_2".freeze ADDRESS_COUNTRY = "address_country".freeze ADDRESS_POSTAL_CODE = "address_postal_code".freeze REDEMPTIONS_TOTAL_REDEEMED = "redemptions_total_redeemed".freeze REDEMPTIONS_TOTAL_FAILED = "redemptions_total_failed".freeze REDEMPTIONS_TOTAL_SUCCEEDED = "redemptions_total_succeeded".freeze REDEMPTIONS_TOTAL_ROLLED_BACK = "redemptions_total_rolled_back".freeze REDEMPTIONS_TOTAL_ROLLBACK_FAILED = "redemptions_total_rollback_failed".freeze REDEMPTIONS_TOTAL_ROLLBACK_SUCCEEDED = "redemptions_total_rollback_succeeded".freeze ORDERS_TOTAL_AMOUNT = "orders_total_amount".freeze ORDERS_TOTAL_COUNT = "orders_total_count".freeze ORDERS_AVERAGE_AMOUNT = "orders_average_amount".freeze ORDERS_LAST_ORDER_AMOUNT = "orders_last_order_amount".freeze ORDERS_LAST_ORDER_DATE = "orders_last_order_date".freeze LOYALTY_POINTS = "loyalty_points".freeze LOYALTY_REFERRED_CUSTOMERS = "loyalty_referred_customers".freeze UPDATED_AT = "updated_at".freeze PHONE = "phone".freeze BIRTHDAY = "birthday".freeze METADATA = "metadata".freeze BIRTHDATE = "birthdate".freeze def self.all_vars @all_vars ||= [NAME, ID, DESCRIPTION, EMAIL, SOURCE_ID, CREATED_AT, ADDRESS_CITY, ADDRESS_STATE, ADDRESS_LINE_1, ADDRESS_LINE_2, ADDRESS_COUNTRY, ADDRESS_POSTAL_CODE, REDEMPTIONS_TOTAL_REDEEMED, REDEMPTIONS_TOTAL_FAILED, REDEMPTIONS_TOTAL_SUCCEEDED, REDEMPTIONS_TOTAL_ROLLED_BACK, REDEMPTIONS_TOTAL_ROLLBACK_FAILED, REDEMPTIONS_TOTAL_ROLLBACK_SUCCEEDED, ORDERS_TOTAL_AMOUNT, ORDERS_TOTAL_COUNT, ORDERS_AVERAGE_AMOUNT, ORDERS_LAST_ORDER_AMOUNT, ORDERS_LAST_ORDER_DATE, LOYALTY_POINTS, LOYALTY_REFERRED_CUSTOMERS, UPDATED_AT, PHONE, BIRTHDAY, METADATA, BIRTHDATE].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 ExportCustomerFields.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #ExportCustomerFields" end end end