=begin #Payment Gateway API Specification. #The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. OpenAPI spec version: 6.6.0.20190329.001 Generated by: https://openapi-generator.tech OpenAPI Generator version: unset =end require 'date' module OpenapiClient class TransactionOrigin ECOM = 'ECOM'.freeze MAIL = 'MAIL'.freeze PHONE = 'PHONE'.freeze RETAIL = 'RETAIL'.freeze # 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 = TransactionOrigin.constants.select { |c| TransactionOrigin::const_get(c) == value } raise "Invalid ENUM value #{value} for class #TransactionOrigin" if constantValues.empty? value end end end