GitHub

DaffCustomerMagentoService

Service

import { DaffCustomerMagentoService } from '@daffodil/customer/driver/magento'

A service for making Magento GraphQL queries for customers.

@Injectable()
class DaffCustomerMagentoService implements DaffCustomerDriverInterface {
  changeEmail(
    email: string
    password: string
  ): any
  changePassword(
    oldPassword: string
    newPassword: string
  ): any
  get(): any
  update(customer: Partial<DaffCustomer>): any
}

() Methods

changeEmail
any

Change the currently logged-in customer's email.

Parameters
Parameteremail: string
Description
Parameterpassword: string
Description
changePassword
any

Change the currently logged-in customer's password.

Parameters
ParameteroldPassword: string
Description
ParameternewPassword: string
Description
get
any

Get the currently logged-in customer.

update
any

Update the currently logged-in customer.

@param customer The customer info to update.

Parameters
Parametercustomer: Partial<DaffCustomer>
Description