GitHub

DaffCartOrderServiceInterface

import { DaffCartOrderServiceInterface } from '@daffodil/cart/driver'

The interface responsible for placing an order for the customer's cart.

interface DaffCartOrderServiceInterface<T extends DaffCart = DaffCart, R extends DaffCartOrderResult = DaffCartOrderResult> {
  placeOrder(
    id: T["id"]
    payment?: T["payment"]
  ): Observable<R>
}

() Methods

placeOrder
Observable<R>

Place an order and return the order ID.

Parameters
Parameterid: T["id"]
Description
Parameterpayment: T["payment"]
Description