Class: AmzSpApi::FulfillmentInboundApiModel::ShipmentStatus

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

Constant Summary collapse

WORKING =
'WORKING'.freeze
SHIPPED =
'SHIPPED'.freeze
RECEIVING =
'RECEIVING'.freeze
CANCELLED =
'CANCELLED'.freeze
DELETED =
'DELETED'.freeze
CLOSED =
'CLOSED'.freeze
ERROR =
'ERROR'.freeze
IN_TRANSIT =
'IN_TRANSIT'.freeze
DELIVERED =
'DELIVERED'.freeze
CHECKED_IN =
'CHECKED_IN'.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



30
31
32
33
34
# File 'lib/fulfillment-inbound-api-model/models/shipment_status.rb', line 30

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