Class: AmznSpApi::OrdersApiModel::EasyShipShipmentStatus
- Inherits:
-
Object
- Object
- AmznSpApi::OrdersApiModel::EasyShipShipmentStatus
- 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
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
34 35 36 37 38 39 |
# File 'lib/orders_api_model/models/easy_ship_shipment_status.rb', line 34 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 |