class Falsify::Customer

See the [API documentation](help.shopify.com/en/api/reference/customers/customer).

Attributes

accepts_marketing[RW]

Whether the customer has consented to receive marketing material via email. @return [Boolean]

accepts_marketing_updated_at[RW]

The date and time ([ISO 8601](en.wikipedia.org/wiki/ISO_8601) format) when the customer consented or objected to receiving marketing material by email. Set this value whenever the customer consents or objects to marketing materials. @return [String]

addresses[RW]

A list of the ten most recently updated addresses for the customer. @return [Array<Address>]

created_at[R]

The date and time ([ISO 8601](en.wikipedia.org/wiki/ISO_8601) format) when the customer was created. @return [String]

currency[R]

The three-letter code ([ISO 4217](en.wikipedia.org/wiki/ISO_4217) format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders. @return [String]

default_address[R]

The default address for the customer. The default address has the following properties: @return [Address]

email[RW]

The unique email address of the customer. Attempting to assign the same email address to multiple customers returns an error. @return [String]

first_name[RW]

The customer's first name. @return [String]

id[RW]

A unique identifier for the customer. @return [String]

last_name[RW]

The customer's last name. @return [String]

last_order_id[R]

The ID of the customer's last order. @return [String]

last_order_name[R]

The name of the customer's last order. This is directly related to the `name` field on the Order resource. @return [String]

metafield[RW]

Attaches additional metadata to a shop's resources. @return [Metafield]

multipass_identifier[RW]

A unique identifier for the customer that's used with [Multipass login](help.shopify.com/en/api/reference/plus/multipass). @return [String]

note[RW]

A note about the customer. @return [String]

orders_count[R]

The number of orders associated with this customer. @return [String]

phone[RW]

The unique phone number ([E.164 format](en.wikipedia.org/wiki/E.164)) for this customer. Attempting to assign the same phone number to multiple customers returns an error. The property can be set using different formats, but each format must represent a number that can be dialed from anywhere in the world. The following formats are all valid:

  • 6135551212

  • +16135551212

  • (613)555-1212

  • +1 613-555-1212

@return [String]

tags[RW]

Tags that the shop owner has attached to the customer, formatted as a string of comma-separated values. A customer can have up to 250 tags. Each tag can have up to 255 characters. @return [String]

tax_exempt[RW]

Whether the customer is exempt from paying taxes on their order. If `true`, then taxes won't be applied to an order at checkout. If `false`, then taxes will be applied at checkout. @return [Boolean]

tax_exemptions[RW]

Whether the customer is exempt from paying specific taxes on their order. Canadian taxes only. @return [String]

total_spent[R]

The total amount of money that the customer has spent across their order history. @return [String]

updated_at[R]

The date and time ([ISO 8601](en.wikipedia.org/wiki/ISO_8601) format) when the customer information was last updated. @return [String]

verified_email[R]

Whether the customer has verified their email address. @return [Boolean]