refactor payment
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user