UNPKG

docusign-esign

Version:
141 lines (126 loc) 4.25 kB
/** * Docusign eSignature REST API * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. * * OpenAPI spec version: v2.1 * Contact: devcenter@docusign.com * * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. * */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['ApiClient'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) if (!root.Docusign) { root.Docusign = {}; } root.Docusign.AddressInformation = factory(root.Docusign.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The AddressInformation model module. * @module model/AddressInformation */ /** * Constructs a new <code>AddressInformation</code>. * Contains address information. * @alias module:model/AddressInformation * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>AddressInformation</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/AddressInformation} obj Optional instance to populate. * @return {module:model/AddressInformation} The populated <code>AddressInformation</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('address1')) { obj['address1'] = ApiClient.convertToType(data['address1'], 'String'); } if (data.hasOwnProperty('address2')) { obj['address2'] = ApiClient.convertToType(data['address2'], 'String'); } if (data.hasOwnProperty('city')) { obj['city'] = ApiClient.convertToType(data['city'], 'String'); } if (data.hasOwnProperty('country')) { obj['country'] = ApiClient.convertToType(data['country'], 'String'); } if (data.hasOwnProperty('fax')) { obj['fax'] = ApiClient.convertToType(data['fax'], 'String'); } if (data.hasOwnProperty('phone')) { obj['phone'] = ApiClient.convertToType(data['phone'], 'String'); } if (data.hasOwnProperty('postalCode')) { obj['postalCode'] = ApiClient.convertToType(data['postalCode'], 'String'); } if (data.hasOwnProperty('stateOrProvince')) { obj['stateOrProvince'] = ApiClient.convertToType(data['stateOrProvince'], 'String'); } if (data.hasOwnProperty('zipPlus4')) { obj['zipPlus4'] = ApiClient.convertToType(data['zipPlus4'], 'String'); } } return obj; } /** * First Line of the address. Maximum length: 100 characters. * @member {String} address1 */ exports.prototype['address1'] = undefined; /** * Second Line of the address. Maximum length: 100 characters. * @member {String} address2 */ exports.prototype['address2'] = undefined; /** * The city associated with the address. * @member {String} city */ exports.prototype['city'] = undefined; /** * Specifies the country associated with the address. * @member {String} country */ exports.prototype['country'] = undefined; /** * A Fax number associated with the address if one is available. * @member {String} fax */ exports.prototype['fax'] = undefined; /** * A phone number associated with the address. * @member {String} phone */ exports.prototype['phone'] = undefined; /** * * @member {String} postalCode */ exports.prototype['postalCode'] = undefined; /** * * @member {String} stateOrProvince */ exports.prototype['stateOrProvince'] = undefined; /** * * @member {String} zipPlus4 */ exports.prototype['zipPlus4'] = undefined; return exports; }));