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