UNPKG

square-connect

Version:

JavaScript client library for the Square Connect v2 API

75 lines (57 loc) 1.92 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 BalancePaymentDetails model module. * @module model/BalancePaymentDetails */ /** * Constructs a new <code>BalancePaymentDetails</code>. * Reflects the current status of a balance payment. * @alias module:model/BalancePaymentDetails * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>BalancePaymentDetails</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/BalancePaymentDetails} obj Optional instance to populate. * @return {module:model/BalancePaymentDetails} The populated <code>BalancePaymentDetails</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('account_id')) { obj['account_id'] = ApiClient.convertToType(data['account_id'], 'String'); } if (data.hasOwnProperty('status')) { obj['status'] = ApiClient.convertToType(data['status'], 'String'); } } return obj; } /** * The ID of the account used to fund the payment. * @member {String} account_id */ exports.prototype['account_id'] = undefined; /** * The balance payment’s current state. The state can be COMPLETED or FAILED. * @member {String} status */ exports.prototype['status'] = undefined; module.exports = exports;