online payment

This commit is contained in:
2026-01-18 17:13:06 +03:30
parent 27631907cf
commit a10b6129b9
18 changed files with 345 additions and 299 deletions
+7 -5
View File
@@ -1,9 +1,10 @@
import type { Order } from 'src/modules/order/entities/order.entity';
import { User } from 'src/modules/user/entities/user.entity';
export enum PaymentMethodEnum {
Online = 'Online',
Cash = 'Cash',
Wallet = 'Wallet',
Credit = 'Credit',
}
export enum PaymentStatusEnum {
Pending = 'pending',
@@ -24,10 +25,11 @@ export interface ICreatePayment {
}
export interface OrderPaymentContext {
user:User;
order: Order;
amount: number;
method: PaymentMethodEnum;
gateway: PaymentGatewayEnum | null;
merchantId: string | null;
restaurantDomain: string | null;
method: PaymentMethodEnum
attachments?: string[]
description?: string
gateway?: PaymentGatewayEnum
}