ShopifyCustomer class
ShopifyCustomer class provides various methods for working with a user/customer.
- Mixed-in types
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkForError(
QueryResult< Object?> queryResult, {String? key, String? errorKey}) → void -
throws a
OperationException
if the operation was wrong throws a ShopifyException if shopify reports an errorinherited -
customerAddressCreate(
{String? address1, String? address2, String? company, String? city, String? country, String? firstName, String? lastName, String? phone, String? province, String? zip, String? customerAccessToken}) → Future< Address> -
Creates a address for the customer to which
customerAccessToken
belongs to. -
customerAddressDelete(
{String? customerAccessToken, String? addressId}) → Future< void> -
Deletes the address associated with the
addressId
from the customer to whichcustomerAccessToken
belongs to. -
customerAddressUpdate(
{String? address1, String? address2, String? company, String? city, String? country, String? firstName, String? lastName, String? phone, String? province, String? zip, required String customerAccessToken, required String id}) → Future< void> - Updated the Address of a Customer, please input only the fields that you wish to update.
-
customerDefaultAddressUpdate(
{required String addressId, required String customerAccessToken}) → Future< void> -
updates the default adderess to the
addressId
provided from the customer to whichcustomerAccessToken
belongs to. -
customerUpdate(
{String? email, String? firstName, String? lastName, String? password, String? phoneNumber, String? customerAccessToken, bool? acceptsMarketing}) → Future< void> -
Updates the customer to which
customerAccessToken
belongs to. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → ShopifyCustomer
-
Singleton instance of ShopifyCustomer
final