GitHub

DaffInMemoryCartShippingInformationService

import { DaffInMemoryCartShippingInformationService } from '@daffodil/cart/driver/in-memory'

@Injectable()
class DaffInMemoryCartShippingInformationService extends DaffInMemoryDriverBase implements DaffCartShippingInformationServiceInterface {
  get(cartId: string): Observable<DaffCartShippingRate>
  update(
    cartId: string
    info: Partial<DaffCartShippingRate>
  ): Observable<Partial<DaffCart>>
  delete(cartId: string): Observable<Partial<DaffCart>>
}

() Methods

get
Observable<DaffCartShippingRate>

Get the currently selected shipping method of a cart.

Parameters
ParametercartId: string
Description
update
Observable<Partial<DaffCart>>

Update the currently selected shipping method of a cart.

Parameters
ParametercartId: string
Description
Parameterinfo: Partial<DaffCartShippingRate>
Description
delete
Observable<Partial<DaffCart>>

Remove the currently selected shipping method from a cart.

Parameters
ParametercartId: string
Description