pcp-server-nodejs-sdk
Version:
[](https://sonarcloud.io/summary/new_code?id=PAYONE-GmbH_PCP-server-nodeJS-SDK) [ {
this.offset = offset;
return this;
}
setSize(size) {
this.size = size;
return this;
}
setFromDate(fromDate) {
this.fromDate = fromDate;
return this;
}
setToDate(toDate) {
this.toDate = toDate;
return this;
}
setCommerceCaseId(commerceCaseId) {
this.commerceCaseId = commerceCaseId;
return this;
}
setMerchantReference(merchantReference) {
this.merchantReference = merchantReference;
return this;
}
setMerchantCustomerId(merchantCustomerId) {
this.merchantCustomerId = merchantCustomerId;
return this;
}
setIncludeCheckoutStatus(includeCheckoutStatus) {
this.includeCheckoutStatus = includeCheckoutStatus;
return this;
}
setIncludePaymentChannel(includePaymentChannel) {
this.includePaymentChannel = includePaymentChannel;
return this;
}
getOffset() {
return this.offset;
}
getSize() {
return this.size;
}
getFromDate() {
return this.fromDate;
}
getToDate() {
return this.toDate;
}
getCommerceCaseId() {
return this.commerceCaseId;
}
getMerchantReference() {
return this.merchantReference;
}
getMerchantCustomerId() {
return this.merchantCustomerId;
}
getIncludeCheckoutStatus() {
return this.includeCheckoutStatus;
}
getIncludePaymentChannel() {
return this.includePaymentChannel;
}
toQueryMap() {
const query = new Map();
if (this.offset !== undefined) {
query.set('offset', this.offset.toString());
}
if (this.size !== undefined) {
query.set('size', this.size.toString());
}
if (this.fromDate !== undefined) {
query.set('fromDate', this.fromDate);
}
if (this.toDate !== undefined) {
query.set('toDate', this.toDate);
}
if (this.commerceCaseId !== undefined) {
query.set('commerceCaseId', this.commerceCaseId);
}
if (this.merchantReference !== undefined) {
query.set('merchantReference', this.merchantReference);
}
if (this.merchantCustomerId !== undefined) {
query.set('merchantCustomerId', this.merchantCustomerId);
}
if (this.includeCheckoutStatus !== undefined) {
query.set('includeCheckoutStatus', this.includeCheckoutStatus.join(','));
}
if (this.includePaymentChannel !== undefined) {
query.set('includePaymentChannel', this.includePaymentChannel.join(','));
}
return query;
}
}
//# sourceMappingURL=GetCommerceCasesQuery.js.map