UNPKG

square-connect

Version:

JavaScript client library for the Square Connect v2 API

66 lines (59 loc) 1.42 kB
/** * 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 MeasurementUnitWeight. * @enum {} * @readonly */ var exports = { /** * value: "IMPERIAL_WEIGHT_OUNCE" * @const */ "IMPERIAL_WEIGHT_OUNCE": "IMPERIAL_WEIGHT_OUNCE", /** * value: "IMPERIAL_POUND" * @const */ "IMPERIAL_POUND": "IMPERIAL_POUND", /** * value: "IMPERIAL_STONE" * @const */ "IMPERIAL_STONE": "IMPERIAL_STONE", /** * value: "METRIC_MILLIGRAM" * @const */ "METRIC_MILLIGRAM": "METRIC_MILLIGRAM", /** * value: "METRIC_GRAM" * @const */ "METRIC_GRAM": "METRIC_GRAM", /** * value: "METRIC_KILOGRAM" * @const */ "METRIC_KILOGRAM": "METRIC_KILOGRAM"}; /** * Returns a <code>MeasurementUnitWeight</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/MeasurementUnitWeight} The enum <code>MeasurementUnitWeight</code> value. */ exports.constructFromObject = function(object) { return object; } module.exports = exports;