square-connect
Version:
JavaScript client library for the Square Connect v2 API
66 lines (59 loc) • 1.41 kB
JavaScript
/**
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.3.0-SNAPSHOT
*
*/
var ApiClient = require('../ApiClient');
/**
* Enum class ErrorCategory.
* @enum {}
* @readonly
*/
var exports = {
/**
* value: "API_ERROR"
* @const
*/
"API_ERROR": "API_ERROR",
/**
* value: "AUTHENTICATION_ERROR"
* @const
*/
"AUTHENTICATION_ERROR": "AUTHENTICATION_ERROR",
/**
* value: "INVALID_REQUEST_ERROR"
* @const
*/
"INVALID_REQUEST_ERROR": "INVALID_REQUEST_ERROR",
/**
* value: "RATE_LIMIT_ERROR"
* @const
*/
"RATE_LIMIT_ERROR": "RATE_LIMIT_ERROR",
/**
* value: "PAYMENT_METHOD_ERROR"
* @const
*/
"PAYMENT_METHOD_ERROR": "PAYMENT_METHOD_ERROR",
/**
* value: "REFUND_ERROR"
* @const
*/
"REFUND_ERROR": "REFUND_ERROR"};
/**
* Returns a <code>ErrorCategory</code> enum value from a Javascript object name.
* @param {Object} data The plain JavaScript object containing the name of the enum value.
* @return {module:model/ErrorCategory} The enum <code>ErrorCategory</code> value.
*/
exports.constructFromObject = function(object) {
return object;
}
module.exports = exports;