Class: AmzSpApi::OrdersApiModel::EasyShipShipmentStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/orders-api-model/models/easy_ship_shipment_status.rb

Constant Summary collapse

PENDING_SCHEDULE =
'PendingSchedule'.freeze
PENDING_PICK_UP =
'PendingPickUp'.freeze
PENDING_DROP_OFF =
'PendingDropOff'.freeze
LABEL_CANCELED =
'LabelCanceled'.freeze
PICKED_UP =
'PickedUp'.freeze
DROPPED_OFF =
'DroppedOff'.freeze
AT_ORIGIN_FC =
'AtOriginFC'.freeze
AT_DESTINATION_FC =
'AtDestinationFC'.freeze
DELIVERED =
'Delivered'.freeze
REJECTED_BY_BUYER =
'RejectedByBuyer'.freeze
UNDELIVERABLE =
'Undeliverable'.freeze
RETURNING_TO_SELLER =
'ReturningToSeller'.freeze
RETURNED_TO_SELLER =
'ReturnedToSeller'.freeze
LOST =
'Lost'.freeze
OUT_FOR_DELIVERY =
'OutForDelivery'.freeze
DAMAGED =
'Damaged'.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



36
37
38
39
40
# File 'lib/orders-api-model/models/easy_ship_shipment_status.rb', line 36

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