UNPKG

docusign-esign

Version:
133 lines (118 loc) 3.91 kB
/** * DocuSign REST API * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. * * OpenAPI spec version: v2 * 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.AddressInformationV2 = factory(root.Docusign.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The AddressInformationV2 model module. * @module model/AddressInformationV2 * @version 3.0.0 */ /** * Constructs a new <code>AddressInformationV2</code>. * @alias module:model/AddressInformationV2 * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>AddressInformationV2</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/AddressInformationV2} obj Optional instance to populate. * @return {module:model/AddressInformationV2} The populated <code>AddressInformationV2</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'); } } 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; /** * * @member {String} city */ exports.prototype['city'] = undefined; /** * Specifies the country associated with the address. * @member {String} country */ exports.prototype['country'] = undefined; /** * * @member {String} fax */ exports.prototype['fax'] = undefined; /** * * @member {String} phone */ exports.prototype['phone'] = undefined; /** * * @member {String} postalCode */ exports.prototype['postalCode'] = undefined; /** * The state or province associated with the address. * @member {String} stateOrProvince */ exports.prototype['stateOrProvince'] = undefined; return exports; }));