refactor : payment

This commit is contained in:
2026-01-03 17:35:18 +03:30
parent 60f7b46779
commit a65ad8b5ff
15 changed files with 159 additions and 224 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ const CartPaymentSchema = new Schema<ICartPayment>(
{
user_id: { type: Schema.Types.ObjectId, ref: "User", required: true },
authority: { type: String, required: true },
transaction_id: { type: Number, default: null },
transaction_id: { type: String, default: null },
payment_method: { type: Schema.Types.ObjectId, ref: "PaymentMethod", required: true },
priceDetails: { type: PaymentPriceDetails, required: true },
totalPrice: { type: Number, required: true },
@@ -46,7 +46,7 @@ const PRPaymentSchema = new Schema<IProductRequestPayment>(
{
seller_id: { type: Schema.Types.ObjectId, ref: "Seller", required: true },
authority: { type: String, required: true },
transaction_id: { type: Number, default: null },
transaction_id: { type: String, default: null },
payment_method: { type: Schema.Types.ObjectId, ref: "PaymentMethod", required: true },
priceDetails: { type: PRPriceDetailSchema },
totalPrice: { type: Number, required: true },