This commit is contained in:
Tria
2026-06-05 15:56:29 +03:00
parent 02018c339d
commit 21bc6948e8
8 changed files with 322 additions and 28 deletions

View File

@@ -9,7 +9,7 @@ export class PaymentRepository {
this.paymentRepo = this.dataSource.getRepository(PaymentEntity)
}
async createTr(qr: QueryRunner, data: Pick<PaymentEntity, "amount" | "method" | "currency" | "type" | "refId" | "merchantOrderId" | "rawInitiation" | "clientAction" | "expiresAt">): Promise<PaymentEntity> {
async createTr(qr: QueryRunner, data: Pick<PaymentEntity, "amount" | "method" | "currency" | "type" | "refId" | "merchantOrderId" | "rawInitiation" | "clientAction" | "expiresAt" | "reason">): Promise<PaymentEntity> {
const payment = qr.manager.create(PaymentEntity, data)
return qr.manager.save(payment)
}
@@ -35,5 +35,5 @@ export class PaymentRepository {
}
}