import { InjectionToken } from '@angular/core' ; import { Observable } from 'rxjs' ; import { DaffCart } from '@daffodil/cart' ; import { DaffOrder } from '@daffodil/order' ; export const DaffOrderDriver = new InjectionToken < DaffOrderServiceInterface > ( 'DaffOrderDriver' ) ; /**
 * Query order objects accessible by the logged-in user.
 */ export interface DaffOrderServiceInterface < T extends DaffOrder = DaffOrder , V extends DaffCart = DaffCart > { /**
     * Get an order object with the specified order ID.
     */ get ( orderId , cartId ? ) : Observable < T > ; /**
     * List all order objects for the logged-in user.
     */ list ( cartId ? ) : Observable < T [ ] > ; }