Class: AmzSpApi::FulfillmentOutboundApiModel::CurrentStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/fulfillment-outbound-api-model/models/current_status.rb

Constant Summary collapse

IN_TRANSIT =
'IN_TRANSIT'.freeze
DELIVERED =
'DELIVERED'.freeze
RETURNING =
'RETURNING'.freeze
RETURNED =
'RETURNED'.freeze
UNDELIVERABLE =
'UNDELIVERABLE'.freeze
DELAYED =
'DELAYED'.freeze
AVAILABLE_FOR_PICKUP =
'AVAILABLE_FOR_PICKUP'.freeze
CUSTOMER_ACTION =
'CUSTOMER_ACTION'.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



28
29
30
31
32
# File 'lib/fulfillment-outbound-api-model/models/current_status.rb', line 28

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