Class: OpenapiClient::OrderSourceName
- Inherits:
-
Object
- Object
- OpenapiClient::OrderSourceName
- Defined in:
- lib/openapi_client/models/order_source_name.rb
Constant Summary collapse
- AMAZON_CA =
"amazon_ca".freeze
- AMAZON_US =
"amazon_us".freeze
- BRIGHTPEARL =
"brightpearl".freeze
- CHANNEL_ADVISOR =
"channel_advisor".freeze
- CRATEJOY =
"cratejoy".freeze
- EBAY =
"ebay".freeze
- ETSY =
"etsy".freeze
- JANE =
"jane".freeze
- GROUPON_GOODS =
"groupon_goods".freeze
- MAGENTO =
"magento".freeze
- PAYPAL =
"paypal".freeze
- SELLER_ACTIVE =
"seller_active".freeze
- SHOPIFY =
"shopify".freeze
- STITCH_LABS =
"stitch_labs".freeze
- SQUARESPACE =
"squarespace".freeze
- THREE_DCART =
"three_dcart".freeze
- TOPHATTER =
"tophatter".freeze
- WALMART =
"walmart".freeze
- WOO_COMMERCE =
"woo_commerce".freeze
- VOLUSION =
"volusion".freeze
Class Method Summary collapse
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.build_from_hash(value) ⇒ String
Builds the enum from string
41 42 43 |
# File 'lib/openapi_client/models/order_source_name.rb', line 41 def self.build_from_hash(value) new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
48 49 50 51 52 |
# File 'lib/openapi_client/models/order_source_name.rb', line 48 def build_from_hash(value) constantValues = OrderSourceName.constants.select { |c| OrderSourceName::const_get(c) == value } raise "Invalid ENUM value #{value} for class #OrderSourceName" if constantValues.empty? value end |