Class: AmzSpApi::ProductFeesApiModel::OptionalFulfillmentProgram

Inherits:
Object
  • Object
show all
Defined in:
lib/product-fees-api-model/models/optional_fulfillment_program.rb

Constant Summary collapse

CORE =
'FBA_CORE'.freeze
SNL =
'FBA_SNL'.freeze
EFN =
'FBA_EFN'.freeze

Instance Method Summary collapse

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



23
24
25
26
27
# File 'lib/product-fees-api-model/models/optional_fulfillment_program.rb', line 23

def build_from_hash(value)
  constantValues = OptionalFulfillmentProgram.constants.select { |c| OptionalFulfillmentProgram::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #OptionalFulfillmentProgram" if constantValues.empty?
  value
end