DaffCustomerInMemoryDriver
The customer inmemory driver to mock the customer backend service.
import { DaffCustomerInMemoryDriver } from '@daffodil/customer/driver/in-memory'
@Injectable()
class DaffCustomerInMemoryDriver extends DaffInMemoryDriverBase 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>
}
Properties
Name | Type | Description |
---|---|---|
changeEmail | Observable<DaffCustomer> | Change the currently logged-in customer's email. |
changePassword | Observable<void> | Change the currently logged-in customer's password. |
get | Observable<DaffCustomer> | Get the currently logged-in customer. |
update | Observable<DaffCustomer> | Update the currently logged-in customer. |