GitHub

DaffCustomerAddressInMemoryDriver

Service

import { DaffCustomerAddressInMemoryDriver } from '@daffodil/customer/driver/in-memory'

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

@Injectable()
class DaffCustomerAddressInMemoryDriver extends DaffInMemoryDriverBase implements DaffCustomerAddressDriverInterface {
  list(): any
  get(addressId: string): any
  update(address: Partial<DaffCustomerAddress> & DaffIdentifiable): any
  add(address: DaffCustomerAddress): any
  delete(addressId: string): any
}

() Methods

list
any

Lists the customer's addresses.

get
any

Get the specified address.

Parameters
ParameteraddressId: string
Description
update
any

Update the passed address.

Parameters
Parameteraddress: Partial<DaffCustomerAddress> & DaffIdentifiable
Description
add
any

Adds the passed address.

Parameters
Parameteraddress: DaffCustomerAddress
Description
delete
any

Deletes the specified address.

Parameters
ParameteraddressId: string
Description