選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

orderInterface.ts 419B

123456789101112131415161718
  1. import { ProductData } from './productInterface';
  2. import { UserData } from './userInterface';
  3. import { ObjectId } from 'mongodb';
  4. interface ShippingData extends UserData {
  5. email: string;
  6. }
  7. export interface OrderData {
  8. products: Array<ProductData>;
  9. time: Date;
  10. shippingAddress: ShippingData;
  11. totalPrice: number;
  12. numberOfItems: number;
  13. fulfilled: boolean;
  14. owner: ObjectId;
  15. stripeCheckoutId: string;
  16. }