/**
* 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.Watermark = factory(root.Docusign.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
* The Watermark model module.
* @module model/Watermark
*/
/**
* Constructs a new <code>Watermark</code>.
* @alias module:model/Watermark
* @class
*/
var exports = function() {
var _this = this;
};
/**
* Constructs a <code>Watermark</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/Watermark} obj Optional instance to populate.
* @return {module:model/Watermark} The populated <code>Watermark</code> instance.
*/
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();
if (data.hasOwnProperty('displayAngle')) {
obj['displayAngle'] = ApiClient.convertToType(data['displayAngle'], 'String');
}
if (data.hasOwnProperty('enabled')) {
obj['enabled'] = ApiClient.convertToType(data['enabled'], 'String');
}
if (data.hasOwnProperty('font')) {
obj['font'] = ApiClient.convertToType(data['font'], 'String');
}
if (data.hasOwnProperty('fontColor')) {
obj['fontColor'] = ApiClient.convertToType(data['fontColor'], 'String');
}
if (data.hasOwnProperty('fontSize')) {
obj['fontSize'] = ApiClient.convertToType(data['fontSize'], 'String');
}
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'String');
}
if (data.hasOwnProperty('imageBase64')) {
obj['imageBase64'] = ApiClient.convertToType(data['imageBase64'], 'String');
}
if (data.hasOwnProperty('transparency')) {
obj['transparency'] = ApiClient.convertToType(data['transparency'], 'String');
}
if (data.hasOwnProperty('watermarkText')) {
obj['watermarkText'] = ApiClient.convertToType(data['watermarkText'], 'String');
}
}
return obj;
}
/**
*
* @member {String} displayAngle
*/
exports.prototype['displayAngle'] = undefined;
/**
*
* @member {String} enabled
*/
exports.prototype['enabled'] = undefined;
/**
* The font to be used for the tab value. Supported Fonts: Arial, Arial, ArialNarrow, Calibri, CourierNew, Garamond, Georgia, Helvetica, LucidaConsole, Tahoma, TimesNewRoman, Trebuchet, Verdana, MSGothic, MSMincho, Default.
* @member {String} font
*/
exports.prototype['font'] = undefined;
/**
* The font color used for the information in the tab. Possible values are: Black, BrightBlue, BrightRed, DarkGreen, DarkRed, Gold, Green, NavyBlue, Purple, or White.
* @member {String} fontColor
*/
exports.prototype['fontColor'] = undefined;
/**
* The font size used for the information in the tab. Possible values are: Size7, Size8, Size9, Size10, Size11, Size12, Size14, Size16, Size18, Size20, Size22, Size24, Size26, Size28, Size36, Size48, or Size72.
* @member {String} fontSize
*/
exports.prototype['fontSize'] = undefined;
/**
*
* @member {String} id
*/
exports.prototype['id'] = undefined;
/**
*
* @member {String} imageBase64
*/
exports.prototype['imageBase64'] = undefined;
/**
*
* @member {String} transparency
*/
exports.prototype['transparency'] = undefined;
/**
*
* @member {String} watermarkText
*/
exports.prototype['watermarkText'] = undefined;
return exports;
}));