mirror of
				https://github.com/KevinMidboe/planetposen-frontend.git
				synced 2025-10-29 13:10:12 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			71 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			71 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| // import type IProduct from './IProduct';
 | |
| // import type BadgeType from './BadgeType';
 | |
| import type ICustomer from './ICustomer';
 | |
| 
 | |
| export interface IOrderSummary {
 | |
|   created: Date;
 | |
|   email: string;
 | |
|   first_name: string;
 | |
|   last_name: string;
 | |
|   order_id: string;
 | |
|   order_sum: number;
 | |
|   status: string;
 | |
| }
 | |
| 
 | |
| export interface IOrder {
 | |
|   customer: ICustomer;
 | |
|   lineItems: ILineItem[];
 | |
|   orderid: string;
 | |
|   shipping: IShipping;
 | |
|   payment: IStripePayment;
 | |
|   status: string;
 | |
|   updated?: Date;
 | |
|   created?: Date;
 | |
| }
 | |
| 
 | |
| export interface ILineItem {
 | |
|   sku_id: number;
 | |
|   image: string;
 | |
|   name: string;
 | |
|   price: number;
 | |
|   quantity: number;
 | |
|   size: string;
 | |
| }
 | |
| 
 | |
| export interface IShipping {
 | |
|   company: string;
 | |
|   tracking_code: string;
 | |
|   tracking_link: string;
 | |
|   user_notified: null;
 | |
|   has_api: boolean;
 | |
| }
 | |
| 
 | |
| export interface IOrdersLineitem {
 | |
|   orders_lineitem_id: string;
 | |
|   order_id: string;
 | |
|   product_no: number;
 | |
|   product_sku_no: number;
 | |
|   quantity: number;
 | |
|   created?: Date;
 | |
|   updated?: Date;
 | |
| }
 | |
| 
 | |
| export interface ITracking {
 | |
|   orderId: string;
 | |
|   trackingCode: string;
 | |
|   trackingCompany: string;
 | |
|   trackingLink: string;
 | |
| }
 | |
| 
 | |
| export interface IStripePayment {
 | |
|   amount: number;
 | |
|   amount_captured: number;
 | |
|   amount_received: number;
 | |
|   amount_refunded: number;
 | |
|   created: Date;
 | |
|   stripe_transaction_id: string;
 | |
|   stripe_status: string;
 | |
|   type: string;
 | |
|   updated: Date;
 | |
| }
 |