UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

49 lines 2.7 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Billing = void 0; class Billing { constructor(data) { let applicationNameDefault = "external"; this.applicationName = typeof (data === null || data === void 0 ? void 0 : data.applicationName) !== "undefined" ? data === null || data === void 0 ? void 0 : data.applicationName : applicationNameDefault; let customerCodeDefault = ""; this.customerCode = typeof (data === null || data === void 0 ? void 0 : data.customerCode) !== "undefined" ? data === null || data === void 0 ? void 0 : data.customerCode : customerCodeDefault; let userNameDefault = ""; this.userName = typeof (data === null || data === void 0 ? void 0 : data.userName) !== "undefined" ? data === null || data === void 0 ? void 0 : data.userName : userNameDefault; } static getApplicationNameDefault() { return "external"; } static getApplicationNameDescription() { return "A free text that specifies the name of the application calling the web service. This attribute makes it possible to analyze the logs with regard to specific applications, for example.\n\n**Important:** If the web service is called by an external application that does not set its own value for \"applicationName\", a value of \"external\" will be entered automatically. If the web service is called from the server's portal, a value of \"portal\" will be entered automatically."; } static getCustomerCodeDefault() { return ""; } static getCustomerCodeDescription() { return "A free text that identifies the customer calling the web service. This attribute makes it possible to analyze the logs with regard to specific customers, for example."; } static getUserNameDefault() { return ""; } static getUserNameDescription() { return "A free text that specifies the name of the user calling the web service. This attribute makes it possible to analyze the logs with regard to specific users, for example.\n\n**Important:** If the web service is called from the server's portal and a user is logged in, the user's name will be entered automatically."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new Billing(data); } toJson() { return { 'applicationName': this.applicationName, 'customerCode': this.customerCode, 'userName': this.userName, }; } clone() { return Billing.fromJson(this.toJson()); } } exports.Billing = Billing; //# sourceMappingURL=Billing.js.map