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>>
}

Properties

Name Type Description
get Observable<DaffCartShippingRate>

Get the currently selected shipping method of a cart.

update Observable<Partial<DaffCart>>

Update the currently selected shipping method of a cart.

delete Observable<Partial<DaffCart>>

Remove the currently selected shipping method from a cart.