Shopify SDK for Unity
Public Member Functions | List of all members
Shopify.Unity.GraphQL.CustomerQuery 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...

Public Member Functions

 CustomerQuery (StringBuilder query)
 CustomerQuery is used to build queries. Typically CustomerQuery will not be used directly but instead will be used when building queries from either QueryRootQuery or MutationQuery. More...
 
CustomerQuery acceptsMarketing ()
 Indicates whether the customer has consented to be sent marketing material via email. More...
 
CustomerQuery addresses (MailingAddressConnectionDelegate buildQuery, long? first=null, string after=null, long? last=null, string before=null, bool? reverse=null, string alias=null)
 A list of addresses for the customer. More...
 
CustomerQuery createdAt ()
 The date and time when the customer was created. More...
 
CustomerQuery defaultAddress (MailingAddressDelegate buildQuery)
 The customer’s default address. More...
 
CustomerQuery displayName ()
 The customer’s name, email or phone number. More...
 
CustomerQuery email ()
 The customer’s email address. More...
 
CustomerQuery firstName ()
 The customer’s first name. More...
 
CustomerQuery id ()
 A unique identifier for the customer. More...
 
CustomerQuery lastIncompleteCheckout (CheckoutDelegate buildQuery)
 The customer's most recently updated, incomplete checkout. More...
 
CustomerQuery lastName ()
 The customer’s last name. More...
 
CustomerQuery orders (OrderConnectionDelegate buildQuery, long? first=null, string after=null, long? last=null, string before=null, bool? reverse=null, OrderSortKeys? sortKey=null, string queryValue=null, string alias=null)
 The orders associated with the customer. More...
 
CustomerQuery phone ()
 The customer’s phone number. More...
 
CustomerQuery tags ()
 A comma separated list of tags that have been added to the customer. Additional access scope required: unauthenticated_read_customer_tags. More...
 
CustomerQuery updatedAt ()
 The date and time when the customer information was updated. More...
 

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

◆ CustomerQuery()

Shopify.Unity.GraphQL.CustomerQuery.CustomerQuery ( StringBuilder  query)
inline

CustomerQuery is used to build queries. Typically CustomerQuery will not be used directly but instead will be used when building queries from either QueryRootQuery or MutationQuery.

Member Function Documentation

◆ acceptsMarketing()

CustomerQuery Shopify.Unity.GraphQL.CustomerQuery.acceptsMarketing ( )
inline

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

◆ addresses()

CustomerQuery Shopify.Unity.GraphQL.CustomerQuery.addresses ( MailingAddressConnectionDelegate  buildQuery,
long?  first = null,
string  after = null,
long?  last = null,
string  before = null,
bool?  reverse = null,
string  alias = null 
)
inline

A list of addresses for the customer.

Parameters
firstReturns up to the first n elements from the list.
afterReturns the elements that come after the specified cursor.
lastReturns up to the last n elements from the list.
beforeReturns the elements that come before the specified cursor.
reverseReverse the order of the underlying list.

◆ createdAt()

CustomerQuery Shopify.Unity.GraphQL.CustomerQuery.createdAt ( )
inline

The date and time when the customer was created.

◆ defaultAddress()

CustomerQuery Shopify.Unity.GraphQL.CustomerQuery.defaultAddress ( MailingAddressDelegate  buildQuery)
inline

The customer’s default address.

◆ displayName()

CustomerQuery Shopify.Unity.GraphQL.CustomerQuery.displayName ( )
inline

The customer’s name, email or phone number.

◆ email()

CustomerQuery Shopify.Unity.GraphQL.CustomerQuery.email ( )
inline

The customer’s email address.

◆ firstName()

CustomerQuery Shopify.Unity.GraphQL.CustomerQuery.firstName ( )
inline

The customer’s first name.

◆ id()

CustomerQuery Shopify.Unity.GraphQL.CustomerQuery.id ( )
inline

A unique identifier for the customer.

◆ lastIncompleteCheckout()

CustomerQuery Shopify.Unity.GraphQL.CustomerQuery.lastIncompleteCheckout ( CheckoutDelegate  buildQuery)
inline

The customer's most recently updated, incomplete checkout.

◆ lastName()

CustomerQuery Shopify.Unity.GraphQL.CustomerQuery.lastName ( )
inline

The customer’s last name.

◆ orders()

CustomerQuery Shopify.Unity.GraphQL.CustomerQuery.orders ( OrderConnectionDelegate  buildQuery,
long?  first = null,
string  after = null,
long?  last = null,
string  before = null,
bool?  reverse = null,
OrderSortKeys sortKey = null,
string  queryValue = null,
string  alias = null 
)
inline

The orders associated with the customer.

Parameters
firstReturns up to the first n elements from the list.
afterReturns the elements that come after the specified cursor.
lastReturns up to the last n elements from the list.
beforeReturns the elements that come before the specified cursor.
reverseReverse the order of the underlying list.
sortKeySort the underlying list by the given key.
querySupported filter parameters:
  • processed_at

See the detailed search syntax for more information about using filters.

◆ phone()

CustomerQuery Shopify.Unity.GraphQL.CustomerQuery.phone ( )
inline

The customer’s phone number.

◆ tags()

CustomerQuery Shopify.Unity.GraphQL.CustomerQuery.tags ( )
inline

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

◆ updatedAt()

CustomerQuery Shopify.Unity.GraphQL.CustomerQuery.updatedAt ( )
inline

The date and time when the customer information was updated.


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