GitHub

DaffCustomerAddressDriverInterface

Type

import { DaffCustomerAddressDriverInterface } from '@daffodil/customer/driver'

The customer driver is responsible for loading customers.

interface DaffCustomerAddressDriverInterface<T extends DaffCustomerAddress = DaffCustomerAddress> {
  list(): any
  get(addressId: string): any
  update(address: Partial<T> & DaffIdentifiable): any
  add(address: T): 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 & DaffIdentifiable
Description
add
any

Adds the passed address.

Parameters
Parameteraddress: T
Description
delete
any

Deletes the specified address.

Parameters
ParameteraddressId: string
Description