UNPKG

pcp-server-nodejs-sdk

Version:

[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=PAYONE-GmbH_PCP-server-nodeJS-SDK&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=PAYONE-GmbH_PCP-server-nodeJS-SDK) [![Coverage](https://sonarcloud.io/api/pr

371 lines 11.2 kB
export class GetCheckoutsQuery { offset; size; fromDate; toDate; fromCheckoutAmount; toCheckoutAmount; fromOpenAmount; toOpenAmount; fromCollectedAmount; toCollectedAmount; fromCancelledAmount; toCancelledAmount; fromRefundAmount; toRefundAmount; fromChargebackAmount; toChargebackAmount; checkoutId; merchantReference; merchantCustomerId; includePaymentProductId; includeCheckoutStatus; includeExtendedCheckoutStatus; includePaymentChannel; paymentReference; paymentId; firstName; surname; email; phoneNumber; dateOfBirth; companyInformation; terminalId; reportingToken; setOffset(offset) { 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; } setFromCheckoutAmount(fromCheckoutAmount) { this.fromCheckoutAmount = fromCheckoutAmount; return this; } setToCheckoutAmount(toCheckoutAmount) { this.toCheckoutAmount = toCheckoutAmount; return this; } setFromOpenAmount(fromOpenAmount) { this.fromOpenAmount = fromOpenAmount; return this; } setToOpenAmount(toOpenAmount) { this.toOpenAmount = toOpenAmount; return this; } setFromCollectedAmount(fromCollectedAmount) { this.fromCollectedAmount = fromCollectedAmount; return this; } setToCollectedAmount(toCollectedAmount) { this.toCollectedAmount = toCollectedAmount; return this; } setFromCancelledAmount(fromCancelledAmount) { this.fromCancelledAmount = fromCancelledAmount; return this; } setToCancelledAmount(toCancelledAmount) { this.toCancelledAmount = toCancelledAmount; return this; } setFromRefundAmount(fromRefundAmount) { this.fromRefundAmount = fromRefundAmount; return this; } setToRefundAmount(toRefundAmount) { this.toRefundAmount = toRefundAmount; return this; } setFromChargebackAmount(fromChargebackAmount) { this.fromChargebackAmount = fromChargebackAmount; return this; } setToChargebackAmount(toChargebackAmount) { this.toChargebackAmount = toChargebackAmount; return this; } setCheckoutId(checkoutId) { this.checkoutId = checkoutId; return this; } setMerchantReference(merchantReference) { this.merchantReference = merchantReference; return this; } setMerchantCustomerId(merchantCustomerId) { this.merchantCustomerId = merchantCustomerId; return this; } setIncludePaymentProductId(includePaymentProductId) { this.includePaymentProductId = includePaymentProductId; return this; } setIncludeCheckoutStatus(includeCheckoutStatus) { this.includeCheckoutStatus = includeCheckoutStatus; return this; } setIncludeExtendedCheckoutStatus(includeExtendedCheckoutStatus) { this.includeExtendedCheckoutStatus = includeExtendedCheckoutStatus; return this; } setIncludePaymentChannel(includePaymentChannel) { this.includePaymentChannel = includePaymentChannel; return this; } setPaymentReference(paymentReference) { this.paymentReference = paymentReference; return this; } setPaymentId(paymentId) { this.paymentId = paymentId; return this; } setFirstName(firstName) { this.firstName = firstName; return this; } setSurname(surname) { this.surname = surname; return this; } setEmail(email) { this.email = email; return this; } setPhoneNumber(phoneNumber) { this.phoneNumber = phoneNumber; return this; } setDateOfBirth(dateOfBirth) { this.dateOfBirth = dateOfBirth; return this; } setCompanyInformation(companyInformation) { this.companyInformation = companyInformation; return this; } setTerminalId(terminalId) { this.terminalId = terminalId; return this; } setReportingToken(reportingToken) { this.reportingToken = reportingToken; return this; } getOffset() { return this.offset; } getSize() { return this.size; } getFromDate() { return this.fromDate; } getToDate() { return this.toDate; } getFromCheckoutAmount() { return this.fromCheckoutAmount; } getToCheckoutAmount() { return this.toCheckoutAmount; } getFromOpenAmount() { return this.fromOpenAmount; } getToOpenAmount() { return this.toOpenAmount; } getFromCollectedAmount() { return this.fromCollectedAmount; } getToCollectedAmount() { return this.toCollectedAmount; } getFromCancelledAmount() { return this.fromCancelledAmount; } getToCancelledAmount() { return this.toCancelledAmount; } getFromRefundAmount() { return this.fromRefundAmount; } getToRefundAmount() { return this.toRefundAmount; } getFromChargebackAmount() { return this.fromChargebackAmount; } getToChargebackAmount() { return this.toChargebackAmount; } getCheckoutId() { return this.checkoutId; } getMerchantReference() { return this.merchantReference; } getMerchantCustomerId() { return this.merchantCustomerId; } getIncludePaymentProductId() { return this.includePaymentProductId; } getIncludeCheckoutStatus() { return this.includeCheckoutStatus; } getIncludeExtendedCheckoutStatus() { return this.includeExtendedCheckoutStatus; } getIncludePaymentChannel() { return this.includePaymentChannel; } getPaymentReference() { return this.paymentReference; } getPaymentId() { return this.paymentId; } getFirstName() { return this.firstName; } getSurname() { return this.surname; } getEmail() { return this.email; } getPhoneNumber() { return this.phoneNumber; } getDateOfBirth() { return this.dateOfBirth; } getCompanyInformation() { return this.companyInformation; } getTerminalId() { return this.terminalId; } getReportingToken() { return this.reportingToken; } 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.fromCheckoutAmount !== undefined) { query.set('fromCheckoutAmount', this.fromCheckoutAmount.toString()); } if (this.toCheckoutAmount !== undefined) { query.set('toCheckoutAmount', this.toCheckoutAmount.toString()); } if (this.fromOpenAmount !== undefined) { query.set('fromOpenAmount', this.fromOpenAmount.toString()); } if (this.toOpenAmount !== undefined) { query.set('toOpenAmount', this.toOpenAmount.toString()); } if (this.fromCollectedAmount !== undefined) { query.set('fromCollectedAmount', this.fromCollectedAmount.toString()); } if (this.toCollectedAmount !== undefined) { query.set('toCollectedAmount', this.toCollectedAmount.toString()); } if (this.fromCancelledAmount !== undefined) { query.set('fromCancelledAmount', this.fromCancelledAmount.toString()); } if (this.toCancelledAmount !== undefined) { query.set('toCancelledAmount', this.toCancelledAmount.toString()); } if (this.fromRefundAmount !== undefined) { query.set('fromRefundAmount', this.fromRefundAmount.toString()); } if (this.toRefundAmount !== undefined) { query.set('toRefundAmount', this.toRefundAmount.toString()); } if (this.fromChargebackAmount !== undefined) { query.set('fromChargebackAmount', this.fromChargebackAmount.toString()); } if (this.toChargebackAmount !== undefined) { query.set('toChargebackAmount', this.toChargebackAmount.toString()); } if (this.checkoutId !== undefined) { query.set('checkoutId', this.checkoutId); } if (this.merchantReference !== undefined) { query.set('merchantReference', this.merchantReference); } if (this.merchantCustomerId !== undefined) { query.set('merchantCustomerId', this.merchantCustomerId); } if (this.includePaymentProductId !== undefined) { const productIdList = this.includePaymentProductId.map((productId) => productId.toString()); query.set('includePaymentProductId', productIdList.join(',')); } if (this.includeCheckoutStatus !== undefined) { query.set('includeCheckoutStatus', this.includeCheckoutStatus.join(',')); } if (this.includeExtendedCheckoutStatus !== undefined) { query.set('includeExtendedCheckoutStatus', this.includeExtendedCheckoutStatus.join(',')); } if (this.includePaymentChannel !== undefined) { query.set('includePaymentChannel', this.includePaymentChannel.join(',')); } if (this.paymentReference !== undefined) { query.set('paymentReference', this.paymentReference); } if (this.paymentId !== undefined) { query.set('paymentId', this.paymentId); } if (this.firstName !== undefined) { query.set('firstName', this.firstName); } if (this.surname !== undefined) { query.set('surname', this.surname); } if (this.email !== undefined) { query.set('email', this.email); } if (this.phoneNumber !== undefined) { query.set('phoneNumber', this.phoneNumber); } if (this.dateOfBirth !== undefined) { query.set('dateOfBirth', this.dateOfBirth); } if (this.companyInformation !== undefined) { query.set('companyInformation', this.companyInformation); } if (this.terminalId !== undefined) { query.set('terminalId', this.terminalId); } if (this.reportingToken !== undefined) { query.set('reportingToken', this.reportingToken); } return query; } } //# sourceMappingURL=GetCheckoutsQuery.js.map