GitHub

DaffCustomerAddressInMemoryDriver

The customer address in-memory driver to mock the customer address backend service.

import { DaffCustomerAddressInMemoryDriver } from '@daffodil/customer/driver/in-memory'
@Injectable()
class DaffCustomerAddressInMemoryDriver extends DaffInMemoryDriverBase implements DaffCustomerAddressDriverInterface {
  list(): Observable<DaffCustomerAddress[]>
  get(addressId: string): Observable<DaffCustomerAddress>
  update(address: Partial<DaffCustomerAddress> & DaffIdentifiable): Observable<DaffCustomerAddress[]>
  add(address: DaffCustomerAddress): Observable<DaffCustomerAddress[]>
  delete(addressId: string): Observable<DaffCustomerAddress[]>
}

Properties

Name Type Description
list Observable<DaffCustomerAddress[]>

Lists the customer's addresses.

get Observable<DaffCustomerAddress>

Get the specified address.

update Observable<DaffCustomerAddress[]>

Update the passed address.

add Observable<DaffCustomerAddress[]>

Adds the passed address.

delete Observable<DaffCustomerAddress[]>

Deletes the specified address.