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
}
anyLists the customer's addresses.
anyGet the specified address.
| Parameter | addressId: string |
|---|---|
| Description |
anyUpdate the passed address.
| Parameter | address: Partial |
|---|---|
| Description |
anyAdds the passed address.
| Parameter | address: T |
|---|---|
| Description |
anyDeletes the specified address.
| Parameter | addressId: string |
|---|---|
| Description |