import { DaffCustomerTestingDriver } from '@daffodil/customer/driver/testing'
A basic customer driver that creates mock customer results of different kinds. For testing purposes.
@Injectable()
class DaffCustomerTestingDriver implements DaffCustomerDriverInterface {
changeEmail(
email: string
password: string
): Observable<DaffCustomer>
changePassword(
oldPassword: string
newPassword: string
): Observable<void>
get(): Observable<DaffCustomer>
update(customer: Partial<DaffCustomer>): Observable<DaffCustomer>
}
Observable<DaffCustomer>Change the currently logged-in customer's email.
| Parameter | email: string |
|---|---|
| Description |
| Parameter | password: string |
|---|---|
| Description |
ObservableChange the currently logged-in customer's password.
| Parameter | oldPassword: string |
|---|---|
| Description |
| Parameter | newPassword: string |
|---|---|
| Description |
Observable<DaffCustomer>Get the currently logged-in customer.
Observable<DaffCustomer>Update the currently logged-in customer.
| Parameter | customer: Partial<DaffCustomer> |
|---|---|
| Description |