import { DaffCustomerAddressDriverInterface } from '@daffodil/customer/driver'
The customer driver is responsible for loading customers.
interface DaffCustomerAddressDriverInterface<T extends DaffCustomerAddress = DaffCustomerAddress> {
list(): Observable<T[]>
get(addressId: string): Observable<T>
update(address: Partial<T> & DaffIdentifiable): Observable<T[]>
add(address: T): Observable<T[]>
delete(addressId: string): Observable<T[]>
}
ObservableLists the customer's addresses.
ObservableGet the specified address.
| Parameter | addressId: string |
|---|---|
| Description |
ObservableUpdate the passed address.
| Parameter | address: Partial |
|---|---|
| Description |
ObservableAdds the passed address.
| Parameter | address: T |
|---|---|
| Description |
ObservableDeletes the specified address.
| Parameter | addressId: string |
|---|---|
| Description |