CustomerResource
customers.CustomerResource
Properties
Methods
create
create(payload
, customHeaders?
): ResponsePromise
<StoreCustomersRes
>
Creates a customer
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<StoreCustomersRes
>
generatePasswordToken
generatePasswordToken(payload
, customHeaders?
): ResponsePromise
Generates a reset password token, which can be used to reset the password. The token is not returned but should be sent out to the customer in an email.
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
listOrders
listOrders(params?
, customHeaders?
): ResponsePromise
<StoreCustomersListOrdersRes
>
Retrieve customer orders
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<StoreCustomersListOrdersRes
>
resetPassword
resetPassword(payload
, customHeaders?
): ResponsePromise
<StoreCustomersRes
>
Resets customer password
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<StoreCustomersRes
>
retrieve
retrieve(customHeaders?
): ResponsePromise
<StoreCustomersRes
>
Retrieves the customer that is currently logged
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<StoreCustomersRes
>
update
update(payload
, customHeaders?
): ResponsePromise
<StoreCustomersRes
>
Updates a customer
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<StoreCustomersRes
>