UNPKG

square-connect

Version:

JavaScript client library for the Square Connect v2 API

77 lines (59 loc) 2.43 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'); var LoyaltyAccountMapping = require('./LoyaltyAccountMapping'); /** * The SearchLoyaltyAccountsRequestLoyaltyAccountQuery model module. * Note: This model is in beta. * @module model/SearchLoyaltyAccountsRequestLoyaltyAccountQuery */ /** * Constructs a new <code>SearchLoyaltyAccountsRequestLoyaltyAccountQuery</code>. * The search criteria for the loyalty accounts. * @alias module:model/SearchLoyaltyAccountsRequestLoyaltyAccountQuery * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>SearchLoyaltyAccountsRequestLoyaltyAccountQuery</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/SearchLoyaltyAccountsRequestLoyaltyAccountQuery} obj Optional instance to populate. * @return {module:model/SearchLoyaltyAccountsRequestLoyaltyAccountQuery} The populated <code>SearchLoyaltyAccountsRequestLoyaltyAccountQuery</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('mappings')) { obj['mappings'] = ApiClient.convertToType(data['mappings'], [LoyaltyAccountMapping]); } if (data.hasOwnProperty('customer_ids')) { obj['customer_ids'] = ApiClient.convertToType(data['customer_ids'], ['String']); } } return obj; } /** * The set of mappings to use in the loyalty account search. This cannot be combined with `customer_ids`. Max: 30 mappings * @member {Array.<module:model/LoyaltyAccountMapping>} mappings */ exports.prototype['mappings'] = undefined; /** * The set of customer IDs to use in the loyalty account search. This cannot be combined with `mappings`. Max: 30 customer IDs * @member {Array.<String>} customer_ids */ exports.prototype['customer_ids'] = undefined; module.exports = exports;