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