Class: AmzSpApi::FulfillmentInboundApiModel::TransportStatus

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

Constant Summary collapse

WORKING =
'WORKING'.freeze
ESTIMATING =
'ESTIMATING'.freeze
ESTIMATED =
'ESTIMATED'.freeze
ERROR_ON_ESTIMATING =
'ERROR_ON_ESTIMATING'.freeze
CONFIRMING =
'CONFIRMING'.freeze
CONFIRMED =
'CONFIRMED'.freeze
ERROR_ON_CONFIRMING =
'ERROR_ON_CONFIRMING'.freeze
VOIDING =
'VOIDING'.freeze
VOIDED =
'VOIDED'.freeze
ERROR_IN_VOIDING =
'ERROR_IN_VOIDING'.freeze
ERROR =
'ERROR'.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



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

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