square-connect
Version:
JavaScript client library for the Square Connect v2 API
67 lines (50 loc) • 2.19 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');
/**
* The CatalogCustomAttributeDefinitionStringConfig model module.
* Note: This model is in beta.
* @module model/CatalogCustomAttributeDefinitionStringConfig
*/
/**
* Constructs a new <code>CatalogCustomAttributeDefinitionStringConfig</code>.
* Configuration associated with Custom Attribute Definitions of type `STRING`.
* @alias module:model/CatalogCustomAttributeDefinitionStringConfig
* @class
*/
var exports = function() {
var _this = this;
};
/**
* Constructs a <code>CatalogCustomAttributeDefinitionStringConfig</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/CatalogCustomAttributeDefinitionStringConfig} obj Optional instance to populate.
* @return {module:model/CatalogCustomAttributeDefinitionStringConfig} The populated <code>CatalogCustomAttributeDefinitionStringConfig</code> instance.
*/
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();
if (data.hasOwnProperty('enforce_uniqueness')) {
obj['enforce_uniqueness'] = ApiClient.convertToType(data['enforce_uniqueness'], 'Boolean');
}
}
return obj;
}
/**
* If true, each Custom Attribute instance associated with this Custom Attribute Definition must have a unique value within the seller's catalog. For example, this may be used for a value like a SKU that should not be duplicated within a seller's catalog. May not be modified after the definition has been created.
* @member {Boolean} enforce_uniqueness
*/
exports.prototype['enforce_uniqueness'] = undefined;
module.exports = exports;