first
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
import { Types } from "mongoose";
|
||||
|
||||
import { PaymentStatus } from "../../../../common/enums/order.enum";
|
||||
|
||||
// Purchase schema interface
|
||||
export interface ICartPayment {
|
||||
_id: Types.ObjectId;
|
||||
user_id: Types.ObjectId;
|
||||
authority: string;
|
||||
transaction_id: number;
|
||||
payment_method: Types.ObjectId;
|
||||
priceDetails: IPriceDetails;
|
||||
totalPrice: number;
|
||||
paymentStatus: PaymentStatus;
|
||||
}
|
||||
|
||||
export interface IPriceDetails {
|
||||
shipping_cost: number;
|
||||
process_cost: number;
|
||||
total_retail_price: number;
|
||||
total_payable_price: number;
|
||||
total_discount: number;
|
||||
coupon_discount: number;
|
||||
}
|
||||
//===========> product request payment
|
||||
|
||||
export interface IPRPriceDetails {
|
||||
insertion_price: number;
|
||||
unboxing_price: number;
|
||||
photography_price: number;
|
||||
expertReviews_price: number;
|
||||
}
|
||||
export interface IProductRequestPayment {
|
||||
_id: Types.ObjectId;
|
||||
seller_id: Types.ObjectId;
|
||||
authority: string;
|
||||
transaction_id: number;
|
||||
payment_method: Types.ObjectId;
|
||||
priceDetails: IPRPriceDetails;
|
||||
totalPrice: number;
|
||||
paymentStatus: PaymentStatus;
|
||||
}
|
||||
Reference in New Issue
Block a user