UNPKG

square-connect

Version:

JavaScript client library for the Square Connect v2 API

84 lines (65 loc) 2.65 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 ListBankAccountsRequest model module. * @module model/ListBankAccountsRequest */ /** * Constructs a new <code>ListBankAccountsRequest</code>. * Request object for fetching all &#x60;BankAccount&#x60; objects linked to a account. * @alias module:model/ListBankAccountsRequest * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>ListBankAccountsRequest</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/ListBankAccountsRequest} obj Optional instance to populate. * @return {module:model/ListBankAccountsRequest} The populated <code>ListBankAccountsRequest</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('cursor')) { obj['cursor'] = ApiClient.convertToType(data['cursor'], 'String'); } if (data.hasOwnProperty('limit')) { obj['limit'] = ApiClient.convertToType(data['limit'], 'Number'); } if (data.hasOwnProperty('location_id')) { obj['location_id'] = ApiClient.convertToType(data['location_id'], 'String'); } } return obj; } /** * The pagination cursor returned by a previous call to this endpoint. Use it in the next `ListBankAccounts` request to retrieve the next set of results. See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. * @member {String} cursor */ exports.prototype['cursor'] = undefined; /** * Upper limit on the number of bank accounts to return in the response. Currently, 1000 is the largest supported limit. You can specify a limit of up to 1000 bank accounts. This is also the default limit. * @member {Number} limit */ exports.prototype['limit'] = undefined; /** * Location ID. You can specify this optional filter to retrieve only the linked bank accounts belonging to a specific location. * @member {String} location_id */ exports.prototype['location_id'] = undefined; module.exports = exports;