All files / lib issue-software-certificate-request.js

80.32% Statements 49/61
28.57% Branches 2/7
25% Functions 2/8
80.32% Lines 49/61

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 611x 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 IssueSoftwareCertificateRequest{
 
	constructor({ orderId, password, keySize } = {}) {
		this._orderId = orderId || null;
		this._password = password || null;
		this._keySize = keySize || null;
	}
 
	//region "orderId" Accessors
 
 
	get orderId() {
		return this._orderId;
	}
 
 
	set orderId(value) {
		this._orderId = value;
	}
 
	//endregion
 
	//region "password" Accessors
 
 
	get password() {
		return this._password;
	}
 
 
	set password(value) {
		this._password = value;
	}
 
	//endregion
 
	//region "keySize" Accessors
	
 
	get keySize() {
		return this._keySize;
	}
	
	
	set keySize(value) {
		this._keySize = value;
	}
	
	//endregion
	
	toModel() {
		return {
			orderId: this._orderId || '00000000-0000-0000-0000-000000000000',
			password: this._password,
			keySize: this._keySize || 2048
		};
	}	
}
exports.IssueSoftwareCertificateRequest = IssueSoftwareCertificateRequest;