/**
* 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.MatchBox = factory(root.Docusign.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
* The MatchBox model module.
* @module model/MatchBox
*/
/**
* Constructs a new <code>MatchBox</code>.
* @alias module:model/MatchBox
* @class
*/
var exports = function() {
var _this = this;
};
/**
* Constructs a <code>MatchBox</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/MatchBox} obj Optional instance to populate.
* @return {module:model/MatchBox} The populated <code>MatchBox</code> instance.
*/
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();
if (data.hasOwnProperty('height')) {
obj['height'] = ApiClient.convertToType(data['height'], 'String');
}
if (data.hasOwnProperty('pageNumber')) {
obj['pageNumber'] = ApiClient.convertToType(data['pageNumber'], 'String');
}
if (data.hasOwnProperty('width')) {
obj['width'] = ApiClient.convertToType(data['width'], 'String');
}
if (data.hasOwnProperty('xPosition')) {
obj['xPosition'] = ApiClient.convertToType(data['xPosition'], 'String');
}
if (data.hasOwnProperty('yPosition')) {
obj['yPosition'] = ApiClient.convertToType(data['yPosition'], 'String');
}
}
return obj;
}
/**
* Height of the tab in pixels.
* @member {String} height
*/
exports.prototype['height'] = undefined;
/**
* Specifies the page number on which the tab is located.
* @member {String} pageNumber
*/
exports.prototype['pageNumber'] = undefined;
/**
* Width of the tab in pixels.
* @member {String} width
*/
exports.prototype['width'] = undefined;
/**
* This indicates the horizontal offset of the object on the page. DocuSign uses 72 DPI when determining position.
* @member {String} xPosition
*/
exports.prototype['xPosition'] = undefined;
/**
* This indicates the vertical offset of the object on the page. DocuSign uses 72 DPI when determining position.
* @member {String} yPosition
*/
exports.prototype['yPosition'] = undefined;
return exports;
}));