UNPKG

square-connect

Version:

JavaScript client library for the Square Connect v2 API

67 lines (50 loc) 2.09 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'); /** * The CatalogCustomAttributeDefinitionNumberConfig model module. * Note: This model is in beta. * @module model/CatalogCustomAttributeDefinitionNumberConfig */ /** * Constructs a new <code>CatalogCustomAttributeDefinitionNumberConfig</code>. * * @alias module:model/CatalogCustomAttributeDefinitionNumberConfig * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>CatalogCustomAttributeDefinitionNumberConfig</code> from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. * @param {module:model/CatalogCustomAttributeDefinitionNumberConfig} obj Optional instance to populate. * @return {module:model/CatalogCustomAttributeDefinitionNumberConfig} The populated <code>CatalogCustomAttributeDefinitionNumberConfig</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('precision')) { obj['precision'] = ApiClient.convertToType(data['precision'], 'Number'); } } return obj; } /** * An integer between 0 and 5 that represents the maximum number of positions allowed after the decimal in number custom attribute values For example: - if the precision is 0, the quantity can be 1, 2, 3, etc. - if the precision is 1, the quantity can be 0.1, 0.2, etc. - if the precision is 2, the quantity can be 0.01, 0.12, etc. Default: 5 * @member {Number} precision */ exports.prototype['precision'] = undefined; module.exports = exports;