@mac777/project-pinecone-models 1.1.1 → 1.1.3
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/Order.d.ts +3 -3
- package/dist/Order.js +1 -1
- package/dist/Payment.d.ts +3 -3
- package/dist/Payment.js +1 -1
- package/package.json +1 -1
- package/src/Order.ts +1 -1
- package/src/Payment.ts +1 -1
package/dist/Order.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ declare const orderSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
|
|
|
27
27
|
orderNumber: string;
|
|
28
28
|
requiresManualReview: boolean;
|
|
29
29
|
manualReviewReason: string;
|
|
30
|
-
paymentMethod: "card" | "bkash" | "bank_transfer";
|
|
30
|
+
paymentMethod: "card" | "bkash" | "bank_transfer" | "free";
|
|
31
31
|
paymentStatus: "pending" | "succeeded" | "failed";
|
|
32
32
|
ticketIds: mongoose.Types.ObjectId[];
|
|
33
33
|
buyerEmail: string;
|
|
@@ -82,7 +82,7 @@ declare const orderSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
|
|
|
82
82
|
orderNumber: string;
|
|
83
83
|
requiresManualReview: boolean;
|
|
84
84
|
manualReviewReason: string;
|
|
85
|
-
paymentMethod: "card" | "bkash" | "bank_transfer";
|
|
85
|
+
paymentMethod: "card" | "bkash" | "bank_transfer" | "free";
|
|
86
86
|
paymentStatus: "pending" | "succeeded" | "failed";
|
|
87
87
|
ticketIds: mongoose.Types.ObjectId[];
|
|
88
88
|
buyerEmail: string;
|
|
@@ -137,7 +137,7 @@ declare const orderSchema: mongoose.Schema<any, mongoose.Model<any, any, any, an
|
|
|
137
137
|
orderNumber: string;
|
|
138
138
|
requiresManualReview: boolean;
|
|
139
139
|
manualReviewReason: string;
|
|
140
|
-
paymentMethod: "card" | "bkash" | "bank_transfer";
|
|
140
|
+
paymentMethod: "card" | "bkash" | "bank_transfer" | "free";
|
|
141
141
|
paymentStatus: "pending" | "succeeded" | "failed";
|
|
142
142
|
ticketIds: mongoose.Types.ObjectId[];
|
|
143
143
|
buyerEmail: string;
|
package/dist/Order.js
CHANGED
|
@@ -123,7 +123,7 @@ const orderSchema = new mongoose_1.default.Schema({
|
|
|
123
123
|
paymentMethod: {
|
|
124
124
|
type: String,
|
|
125
125
|
required: true,
|
|
126
|
-
enum: ['card', 'bkash', 'bank_transfer']
|
|
126
|
+
enum: ['card', 'bkash', 'bank_transfer', 'free']
|
|
127
127
|
},
|
|
128
128
|
paymentStatus: {
|
|
129
129
|
type: String,
|
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
package/src/Order.ts
CHANGED
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
|
|