Added missing Stripe connection on PNIDs

This commit is contained in:
Jonathan Barrow 2023-04-27 23:34:49 -04:00
parent 1e42569cbb
commit b67b266b8d
No known key found for this signature in database
GPG Key ID: E86E9FE9049C741F
3 changed files with 20 additions and 1 deletions

View File

@ -101,6 +101,14 @@ const PNIDSchema = new Schema<IPNID, PNIDModel, IPNIDMethods>({
connections: {
discord: {
id: String
},
stripe: {
customer_id: String,
subscription_id: String,
price_id: String,
tier_level: Number,
tier_name: String,
latest_webhook_timestamp: Number
}
}
}, { id: false });

View File

@ -0,0 +1 @@
declare module 'mongoose-unique-validator';

View File

@ -60,7 +60,17 @@ export interface IPNID {
connections: {
discord: {
id: string;
}
};
connections: {
stripe: {
customer_id: string;
subscription_id: string;
price_id: string;
tier_level: number;
tier_name: string;
latest_webhook_timestamp: number;
};
};
};
}