All files / lib issue-certificate-request.js

56.43% Statements 57/101
100% Branches 0/0
0% Functions 0/18
56.43% Lines 57/101

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 1011x 1x 1x 1x 1x           1x 1x 1x 1x     1x 1x     1x 1x     1x 1x     1x 1x 1x 1x 1x 1x     1x 1x     1x 1x     1x 1x     1x 1x 1x 1x 1x 1x     1x 1x     1x 1x     1x 1x     1x 1x 1x 1x 1x 1x     1x 1x     1x 1x     1x 1x     1x 1x 1x               1x 1x 1x
'use strict';
 
class IssueCertificateRequest {
 
	constructor({ orderId, csr, keyMedia, keyId } = {}) {
		this._orderId = orderId || null;
		this._csr = csr || null;
		this._keyMedia = keyMedia || null;
		this._keyId = keyId || null;
	}
 
	//region "orderId" Accessors
 
	getOrderId() {
		return this._orderId;
	}
 
	get orderId() {
		return this._orderId;
	}
 
	setOrderId(value) {
		this._orderId = value;
	}
 
	set orderId(value) {
		this._orderId = value;
	}
 
	//endregion
 
	//region "csr" Accessors
 
	getCsr() {
		return this._csr;
	}
 
	get csr() {
		return this._csr;
	}
 
	setCsr(value) {
		this._csr = value;
	}
 
	set csr(value) {
		this._csr = value;
	}
 
	//endregion
 
	//region "keyMedia" Accessors
	
	getKeyMedia() {
		return this._keyMedia;
	}
 
	get keyMedia() {
		return this._keyMedia;
	}
	
	setKeyMedia(value) {
		this._keyMedia = value;
	}
	
	set keyMedia(value) {
		this._keyMedia = value;
	}
	
	//endregion
	
	//region "keyId" Accessors
	
	getKeyId() {
		return this._keyId;
	}
	
	get keyId() {
		return this._keyId;
	}
	
	setKeyId(value) {
		this._keyId = value;
	}
	
	set keyId(value) {
		this._keyId = value;
	}
	//endregion
	
	toModel() {
		return {
			orderId: this._orderId || '00000000-0000-0000-0000-000000000000',
			csr: this._csr,
			keyMedia: this._keyMedia,
			keyId: this._keyId
		};
	}
}
 
exports.IssueCertificateRequest = IssueCertificateRequest;