class AmzSpApi::FulfillmentOutboundApiModel::InvalidItemReasonCode

Constants

DUPLICATE_REQUEST
INVALID_VALUES
NO_COMPLETED_SHIP_ITEMS
NO_RETURNABLE_QUANTITY

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/fulfillment-outbound-api-model/models/invalid_item_reason_code.rb, line 24
def build_from_hash(value)
  constantValues = InvalidItemReasonCode.constants.select { |c| InvalidItemReasonCode::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #InvalidItemReasonCode" if constantValues.empty?
  value
end