UNPKG

square-connect

Version:

JavaScript client library for the Square Connect v2 API

67 lines (50 loc) 1.71 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 DeleteInvoiceRequest model module. * Note: This model is in beta. * @module model/DeleteInvoiceRequest */ /** * Constructs a new <code>DeleteInvoiceRequest</code>. * Describes a &#x60;DeleteInvoice&#x60; request. * @alias module:model/DeleteInvoiceRequest * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>DeleteInvoiceRequest</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/DeleteInvoiceRequest} obj Optional instance to populate. * @return {module:model/DeleteInvoiceRequest} The populated <code>DeleteInvoiceRequest</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('version')) { obj['version'] = ApiClient.convertToType(data['version'], 'Number'); } } return obj; } /** * The version of the `invoice` to delete. If you do not know the version, you can call `GetInvoice` or `ListInvoices`. * @member {Number} version */ exports.prototype['version'] = undefined; module.exports = exports;