# Customer object

# customer.accepts_marketing

Returns true if the customer has accepted marketing permissions. Returns false if not.

# customer.default_card

Returns the default credit card of the customer.

# customer.default_address

Returns the default address of the customer.

# customer.email

Returns the email of the customer.

# customer.first_name

Returns the first name of the customer.

# customer.id

Returns the unique id of the customer.

# customer.last_name

Returns the last name of the customer.

# customer.last_order

Returns the last order of the customer.

# customer.name

Returns the full name of the customer.

# customer.orders

Returns an array with all the customer orders.

# customer.orders_count

Returns the number of orders made by the customer.

# customer.phone

Returns the E164 formatted phone of the customer.

# customer.points

Returns the amount of points that has the customer.

# customer.point_transactions

Returns an array with all the point transactions of the customer.

# customer.total_spent

Returns total amout spent by the customer.

# customer.referral_voucher

Returns the voucher that can use the customer to get referrals.

# customer.subscriptions

Returns an array with all the subscriptions of the customer.

# customer.subscriptions_count

Returns the count of subscriptions of the customer.