import '../es5'; import { User } from '../user.service'; export interface OrderItem { sku: number; title: string; hub: string; category: string; bundle: boolean; frequency?: string; quantity: number; price: number; part: string; thumb?: string; finalprice: number; note?: string; audio?: string; audioType?: string; variant?: { title: string; }; fulfillment: { refunded?: boolean; request: string; issue: string; status: string; shipping: string; note?: string; timestamp: Date; }; vendor: string; } export interface Customer { id: number; displayName?: string; phone: string; email: string; plan: string; orders: number; errors: number; latestErrors: number; rating: number; profile: string; } export interface OrderAddress { type: 'order' | string; parent: number; when: Date; lastMinute?: boolean; hours: number; name: string; note?: string; streetAdress: string; floor: string; postalCode: string; region: string; geo?: { lat: number; lng: number; }; shipped?: boolean; shopper?: string; shopper_time?: string; priority?: number; position?: number; deposit?: boolean; bags?: number; estimated?: number; } export declare class Order { /** HUB identifier */ hub: string; /** order identifier */ oid: number; rank: number; created: Date; closed?: Date; score: number; customer: any | Customer; cancel?: { reason: string; when: Date; }; payment: { alias: string; number: string; expiry: string; issuer: string; status: string; handle?: string; provider?: string; subscription?: string; logs: string[]; customer_credit: number; fees: { charge: number; shipping: number; }; transaction?: string; }; fulfillments: { status: string; }; items: OrderItem[]; vendors: [ { fees?: number; slug: string; name: string; fullName: string; address: string; address2: string; geo: { lat: number; lng: number; }; collected: boolean; collected_timestamp: Date; gift_timestamp: Date; discount: { amount: number; threshold: number; finalAmount: number; }; } ]; shipping: OrderAddress; errors?: any[] | any; constructor(json?: any); static fromJSON(dest: Order, json: any): Order; static nextShippingDay(user?: User, hub?: any): Date; static fullWeekShippingDays(hub?: any): any; getTotalDiscount(): number; getSubTotal(options?: any): number; getTotalPrice(factor?: number): number; getTotalPriceForBill(): number; getShippingPrice(): number; getOriginPrice(addFees?: boolean): number; getPriceDistance(item: any): number; getShippingLabels(): void; getProgress(): number; getFulfilledIssue(): any[]; getFulfilledFailure(): number; getFulfilledStats(): any; getFulfilledProgress(): number; } //# sourceMappingURL=order.d.ts.map