batchReqs = new ArrayList<>();
public MSS_SignatureReqBuilder() {
@@ -56,6 +58,9 @@ public MSS_SignatureReq build() {
if (this.timeout > 0) {
req.TimeOut = String.valueOf(this.timeout);
}
+ if (this.services.size() > 0) {
+ req.AdditionalServices = this.services;
+ }
return req;
} else {
MSS_BatchSignatureReq req = new MSS_BatchSignatureReq(this.msisdn, this.dtbs, this.dtbd);
@@ -70,6 +75,9 @@ public MSS_SignatureReq build() {
for (BatchSignatureReq br : this.batchReqs) {
req.addBatchSignatureRequest(br);
}
+ if (this.services.size() > 0) {
+ req.AdditionalServices = this.services;
+ }
return req;
}
}
@@ -158,6 +166,16 @@ public MSS_SignatureReqBuilder withSignatureProfile(String signatureprofile) {
return this;
}
+ /**
+ * Add an AdditionalService
+ * @param as AdditionalService
+ * @return this builder
+ */
+ public MSS_SignatureReqBuilder withAdditionalService(AdditionalService as) {
+ this.services.add(as);
+ return this;
+ }
+
/**
* Set timeout in milliseconds
* Default is 60000 ms (60 sec)