Class: AmzSpApi::FulfillmentOutboundApiModel::CurrentStatus
- Inherits:
-
Object
- Object
- AmzSpApi::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
38 39 40 41 42 |
# File 'lib/fulfillment-outbound-api-model/models/current_status.rb', line 38 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 |