From 95e072dbfbbe7188de89cb53995c5dd1ade049f8 Mon Sep 17 00:00:00 2001 From: Vasilica Olariu Date: Wed, 22 Oct 2025 15:01:21 +0300 Subject: [PATCH] add missing method --- src/shared/global/trolley.service.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/shared/global/trolley.service.ts b/src/shared/global/trolley.service.ts index cb6b235..e9b66a6 100644 --- a/src/shared/global/trolley.service.ts +++ b/src/shared/global/trolley.service.ts @@ -150,6 +150,20 @@ export class TrolleyService { } } + async removePayment(paymentId: string, batchId: string) { + try { + await this.client.payment.remove(paymentId, batchId); + this.logger.debug(`Removed trolley payment with id ${paymentId}`); + } catch (error) { + this.logger.error( + `Failed to remove trolley payment: '${error.message}'!`, + paymentId, + batchId, + error, + ); + } + } + async startProcessingPayment(paymentBatchId: string) { try { // generate quote