Class: AmznSpApi::FulfillmentOutboundApiModel::CurrentStatus
- Inherits:
-
Object
- Object
- AmznSpApi::FulfillmentOutboundApiModel::CurrentStatus
- 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
- UNKNOWN =
'UNKNOWN'.freeze
- OUT_FOR_DELIVERY =
'OUT_FOR_DELIVERY'.freeze
- DELIVERY_ATTEMPTED =
'DELIVERY_ATTEMPTED'.freeze
- PICKUP_SUCCESSFUL =
'PICKUP_SUCCESSFUL'.freeze
- PICKUP_CANCELLED =
'PICKUP_CANCELLED'.freeze
- PICKUP_ATTEMPTED =
'PICKUP_ATTEMPTED'.freeze
- PICKUP_SCHEDULED =
'PICKUP_SCHEDULED'.freeze
- RETURN_REQUEST_ACCEPTED =
'RETURN_REQUEST_ACCEPTED'.freeze
- REFUND_ISSUED =
'REFUND_ISSUED'.freeze
- RETURN_RECEIVED_IN_FC =
'RETURN_RECEIVED_IN_FC'.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
36 37 38 39 40 41 |
# File 'lib/fulfillment_outbound_api_model/models/current_status.rb', line 36 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 |