import { ShopifyCustomerUpdateInput } from '@daffodil/driver/shopify'
The input fields for updating a Customer. Used by the customerUpdate mutation.
Caution: Updating the password invalidates all existing access tokens, including the one used to perform the mutation. The response returns a new access token. Ensure your app handles the new token returned in the response to avoid logging the customer out.
interface ShopifyCustomerUpdateInput {
acceptsMarketing: boolean
email: string
firstName: string
lastName: string
password: string
phone: string
}
acceptsMarketing boolean |
|---|
Indicates whether the customer has consented to be sent marketing material via email. |
email string |
|---|
The customer’s email. |
firstName string |
|---|
The customer’s first name. |
lastName string |
|---|
The customer’s last name. |
password string |
|---|
The login password used by the customer. |
phone string |
|---|
A unique phone number for the customer. Formatted using E.164 standard. For example, +16135551111. To remove the phone number, specify |