@heseya/store-core
Advanced tools
Comparing version 0.2.9 to 0.2.10
@@ -0,6 +1,40 @@ | ||
import { DiscountCode } from '.'; | ||
export interface OrderStatus { | ||
id: string; | ||
name: string; | ||
description: string; | ||
color: string; | ||
cancel: boolean; | ||
} | ||
export interface Address { | ||
id?: string; | ||
address: string; | ||
city: string; | ||
country: string; | ||
country_name: string; | ||
name: string; | ||
phone: string; | ||
vat?: string; | ||
zip: string; | ||
} | ||
export interface Order { | ||
id: string; | ||
code: string; | ||
comment?: string; | ||
created_at: string; | ||
currency: string; | ||
delivery_address: Address; | ||
discounts: DiscountCode[]; | ||
email: string; | ||
invoice_address: Address; | ||
payable: boolean; | ||
payed: boolean; | ||
shipping_method_id: string; | ||
payments: any[]; | ||
products: any[]; | ||
shipping_method: any; | ||
shipping_number?: string; | ||
shipping_price: number; | ||
status: OrderStatus; | ||
summary: number; | ||
summary_paid: number; | ||
} |
export interface PaymentMethod { | ||
id: string; | ||
alias: string; | ||
name: string; | ||
public: boolean; | ||
} |
@@ -19,2 +19,4 @@ import { Schema } from './Schema'; | ||
description_html: string; | ||
description_md: string; | ||
meta_description: string; | ||
public: boolean; | ||
@@ -21,0 +23,0 @@ visible: boolean; |
{ | ||
"name": "@heseya/store-core", | ||
"version": "0.2.9", | ||
"version": "0.2.10", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Heseya" |
@@ -0,6 +1,43 @@ | ||
import { DiscountCode } from '.' | ||
export interface OrderStatus { | ||
id: string | ||
name: string | ||
description: string | ||
color: string | ||
cancel: boolean | ||
} | ||
export interface Address { | ||
id?: string | ||
address: string | ||
city: string | ||
country: string | ||
country_name: string | ||
name: string | ||
phone: string | ||
vat?: string | ||
zip: string | ||
} | ||
export interface Order { | ||
id: string | ||
code: string | ||
comment?: string | ||
created_at: string | ||
currency: string | ||
delivery_address: Address | ||
discounts: DiscountCode[] | ||
email: string | ||
invoice_address: Address | ||
payable: boolean | ||
payed: boolean | ||
shipping_method_id: string | ||
payments: any[] // TODO: Payment[] | ||
products: any[] // TODO: CartItem[] | ||
shipping_method: any // TODO: ShippingMethod | ||
shipping_number?: string | ||
shipping_price: number | ||
status: OrderStatus | ||
summary: number | ||
summary_paid: number | ||
} |
export interface PaymentMethod { | ||
id: string | ||
alias: string | ||
name: string | ||
public: boolean | ||
} |
@@ -22,2 +22,4 @@ import { Schema } from './Schema' | ||
description_html: string | ||
description_md: string | ||
meta_description: string | ||
public: boolean | ||
@@ -24,0 +26,0 @@ visible: boolean |
3375489
26687