/**
* DocSpring API
* Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
*
* The version of the OpenAPI document: v2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* Enum class ErrorCode.
* @enum {}
* @readonly
*/
export default class ErrorCode {
/**
* value: "invalid_request"
* @const
*/
static "invalid_request" = "invalid_request";
/**
* value: "unauthorized"
* @const
*/
static "unauthorized" = "unauthorized";
/**
* value: "payment_required"
* @const
*/
static "payment_required" = "payment_required";
/**
* value: "insufficient_credits"
* @const
*/
static "insufficient_credits" = "insufficient_credits";
/**
* value: "insufficient_credits_to_send"
* @const
*/
static "insufficient_credits_to_send" = "insufficient_credits_to_send";
/**
* value: "forbidden"
* @const
*/
static "forbidden" = "forbidden";
/**
* value: "upgrade_required"
* @const
*/
static "upgrade_required" = "upgrade_required";
/**
* value: "account_suspended"
* @const
*/
static "account_suspended" = "account_suspended";
/**
* value: "not_found"
* @const
*/
static "not_found" = "not_found";
/**
* value: "method_not_allowed"
* @const
*/
static "method_not_allowed" = "method_not_allowed";
/**
* value: "conflict"
* @const
*/
static "conflict" = "conflict";
/**
* value: "gone"
* @const
*/
static "gone" = "gone";
/**
* value: "request_too_large"
* @const
*/
static "request_too_large" = "request_too_large";
/**
* value: "unsupported_media_type"
* @const
*/
static "unsupported_media_type" = "unsupported_media_type";
/**
* value: "validation_failed"
* @const
*/
static "validation_failed" = "validation_failed";
/**
* value: "invalid_data"
* @const
*/
static "invalid_data" = "invalid_data";
/**
* value: "rate_limited"
* @const
*/
static "rate_limited" = "rate_limited";
/**
* value: "daily_email_limit_reached"
* @const
*/
static "daily_email_limit_reached" = "daily_email_limit_reached";
/**
* value: "internal_error"
* @const
*/
static "internal_error" = "internal_error";
/**
* value: "bad_gateway"
* @const
*/
static "bad_gateway" = "bad_gateway";
/**
* value: "service_unavailable"
* @const
*/
static "service_unavailable" = "service_unavailable";
/**
* value: "upstream_timeout"
* @const
*/
static "upstream_timeout" = "upstream_timeout";
/**
* value: "polling_timeout"
* @const
*/
static "polling_timeout" = "polling_timeout";
/**
* value: "idempotency_key_in_use"
* @const
*/
static "idempotency_key_in_use" = "idempotency_key_in_use";
/**
* value: "idempotency_key_reused"
* @const
*/
static "idempotency_key_reused" = "idempotency_key_reused";
/**
* Returns a ErrorCode enum value from a Javascript object name.
* @param {Object} data The plain JavaScript object containing the name of the enum value.
* @return {module:model/ErrorCode} The enum ErrorCode value.
*/
static constructFromObject(object) {
// Any value, including one added to the API after this client was released
return object;
}
}