refactor payment

This commit is contained in:
2025-12-16 23:53:50 +03:30
parent ea2b7d7968
commit ab1047e689
3 changed files with 163 additions and 167 deletions
+12 -1
View File
@@ -1,3 +1,5 @@
import type{ Order } from "src/modules/orders/entities/order.entity";
export enum PaymentMethodEnum {
Online = 'Online',
Cash = 'Cash',
@@ -18,4 +20,13 @@ export interface ICreatePayment {
method: PaymentMethodEnum;
transactionId: string;
gateway?: PaymentGatewayEnum | null;
}
}
export interface OrderPaymentContext {
order: Order;
amount: number;
method: PaymentMethodEnum;
gateway: PaymentGatewayEnum | null;
merchantId: string | null;
restaurantDomain: string | null;
}