UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

40 lines 1.42 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DocumentRecipient = void 0; class DocumentRecipient { constructor(data) { let issuerDefault = ""; this.issuer = typeof (data === null || data === void 0 ? void 0 : data.issuer) !== "undefined" ? data === null || data === void 0 ? void 0 : data.issuer : issuerDefault; let serialNumberDefault = ""; this.serialNumber = typeof (data === null || data === void 0 ? void 0 : data.serialNumber) !== "undefined" ? data === null || data === void 0 ? void 0 : data.serialNumber : serialNumberDefault; } static getIssuerDefault() { return ""; } static getIssuerDescription() { return "The X.500 name of the recipient"; } static getSerialNumberDefault() { return ""; } static getSerialNumberDescription() { return "The serial number of the recipient's X.500 certificate"; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new DocumentRecipient(data); } toJson() { return { 'issuer': this.issuer, 'serialNumber': this.serialNumber, }; } clone() { return DocumentRecipient.fromJson(this.toJson()); } } exports.DocumentRecipient = DocumentRecipient; //# sourceMappingURL=DocumentRecipient.js.map