GitHub

DaffOrderServiceInterface

Type

import { DaffOrderServiceInterface } from '@daffodil/order/driver'

Query order objects accessible by the logged-in user.

interface DaffOrderServiceInterface<T extends DaffOrder = DaffOrder> {
  get(
    orderId: T["id"]
    cartId?: string
  ): any
  list(
    cartId?: string
    request?: DaffCollectionRequest
  ): any
}

() Methods

get
any

Get an order object with the specified order ID.

Parameters
ParameterorderId: T["id"]
Description
ParametercartId: string
Description
list
any

List all order objects for the logged-in user.

Parameters
ParametercartId: string
Description
Parameterrequest: DaffCollectionRequest
Description