import { DaffCustomerAddressTestingDriver } from '@daffodil/customer/driver/testing'
A basic customer driver that creates mock customer results of different kinds. For testing purposes.
@Injectable()
class DaffCustomerAddressTestingDriver 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 |