@mac777/project-pinecone-models 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Payment.d.ts CHANGED
@@ -6,7 +6,7 @@ declare const paymentSchema: mongoose.Schema<any, mongoose.Model<any, any, any,
6
6
  currency: string;
7
7
  userId: mongoose.Types.ObjectId;
8
8
  paymentId: string;
9
- paymentMethod: "card" | "bkash";
9
+ paymentMethod: "card" | "bkash" | "free";
10
10
  orderId: mongoose.Types.ObjectId;
11
11
  refundedAt?: NativeDate | null | undefined;
12
12
  last4?: string | null | undefined;
@@ -24,7 +24,7 @@ declare const paymentSchema: mongoose.Schema<any, mongoose.Model<any, any, any,
24
24
  currency: string;
25
25
  userId: mongoose.Types.ObjectId;
26
26
  paymentId: string;
27
- paymentMethod: "card" | "bkash";
27
+ paymentMethod: "card" | "bkash" | "free";
28
28
  orderId: mongoose.Types.ObjectId;
29
29
  refundedAt?: NativeDate | null | undefined;
30
30
  last4?: string | null | undefined;
@@ -42,7 +42,7 @@ declare const paymentSchema: mongoose.Schema<any, mongoose.Model<any, any, any,
42
42
  currency: string;
43
43
  userId: mongoose.Types.ObjectId;
44
44
  paymentId: string;
45
- paymentMethod: "card" | "bkash";
45
+ paymentMethod: "card" | "bkash" | "free";
46
46
  orderId: mongoose.Types.ObjectId;
47
47
  refundedAt?: NativeDate | null | undefined;
48
48
  last4?: string | null | undefined;
package/dist/Payment.js CHANGED
@@ -21,7 +21,7 @@ const paymentSchema = new mongoose_1.default.Schema({
21
21
  default: 'pending'
22
22
  },
23
23
  // METADATA
24
- paymentMethod: { type: String, required: true, enum: ['bkash', 'card'] },
24
+ paymentMethod: { type: String, required: true, enum: ['bkash', 'card', 'free'] },
25
25
  last4: String, // Card last 4 digits (for receipt)
26
26
  brand: { type: String, enum: ['visa', 'mastercard', 'amex', 'discover'] }, // Card brand
27
27
  // FAILURE (if failed)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mac777/project-pinecone-models",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
package/src/Payment.ts CHANGED
@@ -21,7 +21,7 @@ const paymentSchema = new mongoose.Schema({
21
21
  },
22
22
 
23
23
  // METADATA
24
- paymentMethod: { type: String, required: true, enum: ['bkash', 'card'] },
24
+ paymentMethod: { type: String, required: true, enum: ['bkash', 'card', 'free'] },
25
25
  last4: String, // Card last 4 digits (for receipt)
26
26
  brand: { type: String, enum: ['visa', 'mastercard', 'amex', 'discover'] }, // Card brand
27
27