Adapt for new ordermodel (#97)

Co-authored-by: Niklas Fondberg <niklas.fondberg@photowall.se>
This commit is contained in:
Fredrik Ringqvist
2022-01-20 07:11:43 +01:00
committed by GitHub
co-authored by Niklas Fondberg
parent ea086568d0
commit e57cab3b23
22 changed files with 467 additions and 2842 deletions
+6 -48
View File
@@ -17,12 +17,8 @@ export interface Address {
city: string;
zipcode: string;
stateCountyOrRegion: string;
}
export interface ContactInformation {
email: string;
phone: string;
addressId: number;
}
export interface Order {
@@ -71,57 +67,19 @@ export interface Order {
flyerIds: string;
market: string;
locale: string;
billingInformation: ContactInformation;
deliveryInformation: ContactInformation;
billingAddressId: number;
deliveryAddressId: number;
}
export interface OrderRow {
id: number;
artNo: string;
code: string;
commission: number;
commissionAmount: number;
commissionResale: number;
designer: string;
designerId: number;
designerPath: string;
discountType: string;
discountValue: number;
displayHeight: number;
displayWidth: number;
edge: string;
frameColor: string;
framed: number;
group: string;
height: number;
imagedonotprint: number;
imageprocessed: number;
imageprocessingrejected: number;
inserted: Date;
material: string;
measureUnit: string;
mirrored: number;
modifier: string;
name: string;
noShipping: boolean;
order: Order;
orderId: number;
path: string;
price: number;
printId: number;
process: Boolean;
productGroup: string;
productId: number;
designerId: number;
data: OrderRowData;
}
export interface OrderRowData {
frameColor: string;
pwintyImageId: number;
pwintySku: string;
resolution: number;
status: string;
type: string;
vat: number;
weight: number;
width: number;
x: number;
y: number;
}