Shopify SDK for Unity
Public Member Functions | List of all members
Shopify.Unity.Customer Class Reference

A customer represents a customer account with the shop. Customer accounts store contact information for the customer, saving logged-in customers the trouble of having to provide it at every checkout. More...

Inheritance diagram for Shopify.Unity.Customer:
Shopify.Unity.SDK.AbstractResponse

Public Member Functions

 Customer (Dictionary< string, object > dataJSON)
 Accepts deserialized json data. Will further parse passed in data. More...
 
bool acceptsMarketing ()
 Indicates whether the customer has consented to be sent marketing material via email. More...
 
MailingAddressConnection addresses (string alias=null)
 A list of addresses for the customer. More...
 
DateTime? createdAt ()
 The date and time when the customer was created. More...
 
MailingAddress defaultAddress ()
 The customer’s default address. More...
 
string displayName ()
 The customer’s name, email or phone number. More...
 
string email ()
 The customer’s email address. More...
 
string firstName ()
 The customer’s first name. More...
 
string id ()
 A unique identifier for the customer. More...
 
Checkout lastIncompleteCheckout ()
 The customer's most recently updated, incomplete checkout. More...
 
string lastName ()
 The customer’s last name. More...
 
OrderConnection orders (string alias=null)
 The orders associated with the customer. More...
 
string phone ()
 The customer’s phone number. More...
 
List< string > tags ()
 A comma separated list of tags that have been added to the customer. Additional access scope required: unauthenticated_read_customer_tags. More...
 
DateTime? updatedAt ()
 The date and time when the customer information was updated. More...
 
object Clone ()
 

Additional Inherited Members

- Protected Member Functions inherited from Shopify.Unity.SDK.AbstractResponse
Get< T > (string field, string alias=null)
 
- Protected Attributes inherited from Shopify.Unity.SDK.AbstractResponse
Dictionary< string, object > Data
 
- Properties inherited from Shopify.Unity.SDK.AbstractResponse
Dictionary< string, object > DataJSON [get, protected set]
 

Detailed Description

A customer represents a customer account with the shop. Customer accounts store contact information for the customer, saving logged-in customers the trouble of having to provide it at every checkout.

Constructor & Destructor Documentation

◆ Customer()

Shopify.Unity.Customer.Customer ( Dictionary< string, object >  dataJSON)
inline

Accepts deserialized json data. Will further parse passed in data.

Parameters
dataJSONDeserialized JSON data for Customer

Member Function Documentation

◆ acceptsMarketing()

bool Shopify.Unity.Customer.acceptsMarketing ( )
inline

Indicates whether the customer has consented to be sent marketing material via email.

◆ addresses()

MailingAddressConnection Shopify.Unity.Customer.addresses ( string  alias = null)
inline

A list of addresses for the customer.

Parameters
aliasIf the original field queried was queried using an alias, then pass the matching string.

◆ createdAt()

DateTime? Shopify.Unity.Customer.createdAt ( )
inline

The date and time when the customer was created.

◆ defaultAddress()

MailingAddress Shopify.Unity.Customer.defaultAddress ( )
inline

The customer’s default address.

◆ displayName()

string Shopify.Unity.Customer.displayName ( )
inline

The customer’s name, email or phone number.

◆ email()

string Shopify.Unity.Customer.email ( )
inline

The customer’s email address.

◆ firstName()

string Shopify.Unity.Customer.firstName ( )
inline

The customer’s first name.

◆ id()

string Shopify.Unity.Customer.id ( )
inline

A unique identifier for the customer.

◆ lastIncompleteCheckout()

Checkout Shopify.Unity.Customer.lastIncompleteCheckout ( )
inline

The customer's most recently updated, incomplete checkout.

◆ lastName()

string Shopify.Unity.Customer.lastName ( )
inline

The customer’s last name.

◆ orders()

OrderConnection Shopify.Unity.Customer.orders ( string  alias = null)
inline

The orders associated with the customer.

Parameters
aliasIf the original field queried was queried using an alias, then pass the matching string.

◆ phone()

string Shopify.Unity.Customer.phone ( )
inline

The customer’s phone number.

◆ tags()

List<string> Shopify.Unity.Customer.tags ( )
inline

A comma separated list of tags that have been added to the customer. Additional access scope required: unauthenticated_read_customer_tags.

◆ updatedAt()

DateTime? Shopify.Unity.Customer.updatedAt ( )
inline

The date and time when the customer information was updated.


The documentation for this class was generated from the following file: