|
37 | 37 | /**
|
38 | 38 | * The SendReportEmail model module.
|
39 | 39 | * @module model/SendReportEmail
|
40 |
| - * @version 8.0.0 |
| 40 | + * @version 8.0.2 |
41 | 41 | */
|
42 | 42 |
|
43 | 43 | /**
|
44 | 44 | * Constructs a new <code>SendReportEmail</code>.
|
45 |
| - * Email sending credentials including subject, body, to, cc etc. |
| 45 | + * Custom attributes for the report email. |
46 | 46 | * @alias module:model/SendReportEmail
|
47 | 47 | * @class
|
48 |
| - * @param subject {String} Subject of the email message |
49 | 48 | * @param to {Array.<String>} Email addresses of the recipients
|
50 |
| - * @param body {String} Body of the email message |
| 49 | + * @param body {String} Custom text message to be presented in the report email. |
51 | 50 | */
|
52 |
| - var exports = function(subject, to, body) { |
| 51 | + var exports = function(to, body) { |
53 | 52 | var _this = this;
|
54 | 53 |
|
55 |
| - _this['subject'] = subject; |
56 | 54 | _this['to'] = to;
|
57 |
| - |
58 |
| - |
59 |
| - |
60 | 55 | _this['body'] = body;
|
61 | 56 | };
|
62 | 57 |
|
|
71 | 66 | if (data) {
|
72 | 67 | obj = obj || new exports();
|
73 | 68 |
|
74 |
| - if (data.hasOwnProperty('subject')) { |
75 |
| - obj['subject'] = ApiClient.convertToType(data['subject'], 'String'); |
76 |
| - } |
77 | 69 | if (data.hasOwnProperty('to')) {
|
78 | 70 | obj['to'] = ApiClient.convertToType(data['to'], ['String']);
|
79 | 71 | }
|
80 |
| - if (data.hasOwnProperty('contentType')) { |
81 |
| - obj['contentType'] = ApiClient.convertToType(data['contentType'], 'String'); |
82 |
| - } |
83 |
| - if (data.hasOwnProperty('bcc')) { |
84 |
| - obj['bcc'] = ApiClient.convertToType(data['bcc'], ['String']); |
85 |
| - } |
86 |
| - if (data.hasOwnProperty('cc')) { |
87 |
| - obj['cc'] = ApiClient.convertToType(data['cc'], ['String']); |
88 |
| - } |
89 | 72 | if (data.hasOwnProperty('body')) {
|
90 | 73 | obj['body'] = ApiClient.convertToType(data['body'], 'String');
|
91 | 74 | }
|
92 | 75 | }
|
93 | 76 | return obj;
|
94 | 77 | }
|
95 | 78 |
|
96 |
| - /** |
97 |
| - * Subject of the email message |
98 |
| - * @member {String} subject |
99 |
| - */ |
100 |
| - exports.prototype['subject'] = undefined; |
101 | 79 | /**
|
102 | 80 | * Email addresses of the recipients
|
103 | 81 | * @member {Array.<String>} to
|
104 | 82 | */
|
105 | 83 | exports.prototype['to'] = undefined;
|
106 | 84 | /**
|
107 |
| - * Type of the message body |
108 |
| - * @member {module:model/SendReportEmail.ContentTypeEnum} contentType |
109 |
| - * @default 'html' |
110 |
| - */ |
111 |
| - exports.prototype['contentType'] = 'html'; |
112 |
| - /** |
113 |
| - * Email addresses of the recipients in bcc |
114 |
| - * @member {Array.<String>} bcc |
115 |
| - */ |
116 |
| - exports.prototype['bcc'] = undefined; |
117 |
| - /** |
118 |
| - * Email addresses of the recipients in cc |
119 |
| - * @member {Array.<String>} cc |
120 |
| - */ |
121 |
| - exports.prototype['cc'] = undefined; |
122 |
| - /** |
123 |
| - * Body of the email message |
| 85 | + * Custom text message to be presented in the report email. |
124 | 86 | * @member {String} body
|
125 | 87 | */
|
126 | 88 | exports.prototype['body'] = undefined;
|
127 | 89 |
|
128 | 90 |
|
129 |
| - /** |
130 |
| - * Allowed values for the <code>contentType</code> property. |
131 |
| - * @enum {String} |
132 |
| - * @readonly |
133 |
| - */ |
134 |
| - exports.ContentTypeEnum = { |
135 |
| - /** |
136 |
| - * value: "text" |
137 |
| - * @const |
138 |
| - */ |
139 |
| - "text": "text", |
140 |
| - /** |
141 |
| - * value: "html" |
142 |
| - * @const |
143 |
| - */ |
144 |
| - "html": "html" }; |
145 |
| - |
146 | 91 |
|
147 | 92 | return exports;
|
148 | 93 | }));
|
|
0 commit comments