/** * Order class. * * @link ecomm.gitngin.com/wiki/models/products * @file This files defines the Order class. An order is a successful paid cart, waiting for a shipping/picking instruction. * Once the instruction is defined, it's an invoice * @author Alexandre Hébert-Vincent. * @since 01-01-2020 */ import Invoice from '../Invoice'; import IOrder from '../../Interfaces/Order'; import { BaseServiceClass } from '../baseService'; /** * @deprecated */ export default class Order extends BaseServiceClass { /** * Return an unsaved invoice * @param warehouseCode String representing warehouse code where the pickup needs to be done */ defineIsPickup: (warehouseCode: string) => Invoice; /** * Return an unsaved invoice * @param trackingInfo Tracking payload */ addTrackingInfo: (trackingInfo: any) => Invoice; }