class ShipEngine::ErrorCode
Constants
- AUTO_FUND_NOT_SUPPORTED
- BATCH_CANNOT_BE_MODIFIED
- CARRIER_CONFLICT
- CARRIER_DISCONNECTED
- CARRIER_NOT_CONNECTED
- CARRIER_NOT_SUPPORTED
- CONFIRMATION_NOT_SUPPORTED
- DEFAULT_WAREHOUSE_CANNOT_BE_DELETED
- FIELD_CONFLICT
- FIELD_VALUE_REQUIRED
- FORBIDDEN
- IDENTIFIERS_MUST_MATCH
- IDENTIFIER_CONFLICT
- INVALID_ADDRESS
- INVALID_BILLING_PLAN
- INVALID_FIELD_VALUE
- INVALID_IDENTIFIER
- INVALID_STATUS
- INVALID_STRING_LENGTH
- LABEL_IMAGES_NOT_SUPPORTED
- METER_FAILURE
- ORDER_SOURCE_NOT_ACTIVE
- RATE_LIMIT_EXCEEDED
- REFRESH_NOT_SUPPORTED
- REQUEST_BODY_REQUIRED
- RETURN_LABEL_NOT_SUPPORTED
- SETTINGS_NOT_SUPPORTED
- SUBSCRIPTION_INACTIVE
- TERMS_NOT_ACCEPTED
- TRACKING_NOT_SUPPORTED
- TRIAL_EXPIRED
- UNAUTHORIZED
- UNKNOWN
- UNSPECIFIED
- VERIFICATION_FAILURE
- WAREHOUSE_CONFLICT
- WEBHOOK_EVENT_TYPE_CONFLICT
Public Class Methods
build_from_hash(value)
click to toggle source
Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value
# File lib/ship_engine/models/error_code.rb, line 58 def self.build_from_hash(value) new.build_from_hash(value) end
Public Instance Methods
build_from_hash(value)
click to toggle source
Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value
# File lib/ship_engine/models/error_code.rb, line 65 def build_from_hash(value) constantValues = ErrorCode.constants.select { |c| ErrorCode::const_get(c) == value } raise "Invalid ENUM value #{value} for class #ErrorCode" if constantValues.empty? value end