Class: OpenapiClient::ErrorCode
- Inherits:
-
Object
- Object
- OpenapiClient::ErrorCode
- Defined in:
- lib/openapi_client/models/error_code.rb
Constant Summary collapse
- AUTO_FUND_NOT_SUPPORTED =
"auto_fund_not_supported".freeze
- BATCH_CANNOT_BE_MODIFIED =
"batch_cannot_be_modified".freeze
- CARRIER_CONFLICT =
"carrier_conflict".freeze
- CARRIER_DISCONNECTED =
"carrier_disconnected".freeze
- CARRIER_NOT_CONNECTED =
"carrier_not_connected".freeze
- CARRIER_NOT_SUPPORTED =
"carrier_not_supported".freeze
- CONFIRMATION_NOT_SUPPORTED =
"confirmation_not_supported".freeze
- DEFAULT_WAREHOUSE_CANNOT_BE_DELETED =
"default_warehouse_cannot_be_deleted".freeze
- FIELD_CONFLICT =
"field_conflict".freeze
- FIELD_VALUE_REQUIRED =
"field_value_required".freeze
- FORBIDDEN =
"forbidden".freeze
- IDENTIFIER_CONFLICT =
"identifier_conflict".freeze
- IDENTIFIERS_MUST_MATCH =
"identifiers_must_match".freeze
- INVALID_ADDRESS =
"invalid_address".freeze
- INVALID_BILLING_PLAN =
"invalid_billing_plan".freeze
- INVALID_FIELD_VALUE =
"invalid_field_value".freeze
- INVALID_IDENTIFIER =
"invalid_identifier".freeze
- INVALID_STATUS =
"invalid_status".freeze
- INVALID_STRING_LENGTH =
"invalid_string_length".freeze
- LABEL_IMAGES_NOT_SUPPORTED =
"label_images_not_supported".freeze
- METER_FAILURE =
"meter_failure".freeze
- ORDER_SOURCE_NOT_ACTIVE =
"order_source_not_active".freeze
- RATE_LIMIT_EXCEEDED =
"rate_limit_exceeded".freeze
- REFRESH_NOT_SUPPORTED =
"refresh_not_supported".freeze
- REQUEST_BODY_REQUIRED =
"request_body_required".freeze
- RETURN_LABEL_NOT_SUPPORTED =
"return_label_not_supported".freeze
- SETTINGS_NOT_SUPPORTED =
"settings_not_supported".freeze
- SUBSCRIPTION_INACTIVE =
"subscription_inactive".freeze
- TERMS_NOT_ACCEPTED =
"terms_not_accepted".freeze
- TRACKING_NOT_SUPPORTED =
"tracking_not_supported".freeze
- TRIAL_EXPIRED =
"trial_expired".freeze
- UNAUTHORIZED =
"unauthorized".freeze
- UNKNOWN =
"unknown".freeze
- UNSPECIFIED =
"unspecified".freeze
- VERIFICATION_FAILURE =
"verification_failure".freeze
- WAREHOUSE_CONFLICT =
"warehouse_conflict".freeze
- WEBHOOK_EVENT_TYPE_CONFLICT =
"webhook_event_type_conflict".freeze
Class Method Summary collapse
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.build_from_hash(value) ⇒ String
Builds the enum from string
58 59 60 |
# File 'lib/openapi_client/models/error_code.rb', line 58 def self.build_from_hash(value) new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
65 66 67 68 69 |
# File 'lib/openapi_client/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 |