import { DaffCustomerInMemoryDriver } from '@daffodil/customer/driver/in-memory'
The customer inmemory driver to mock the customer backend service.
@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>
}
Observable<DaffCustomer>
Change the currently logged-in customer's email.
Parameter | email: string |
---|---|
Description |
Parameter | password: string |
---|---|
Description |
Observable<void>
Change 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.
@param customer The customer info to update.
Parameter | customer: Partial<DaffCustomer> |
---|---|
Description |