# Customer object
- customer.accepts_marketing
- customer.default_card
- customer.default_address
- customer.email
- customer.first_name
- customer.generate_password
- customer.id
- customer.last_name
- customer.last_order
- customer.name
- customer.orders
- customer.orders_count
- customer.phone
- customer.points
- customer.point_transactions
- customer.total_spent
- customer.referral_voucher
- customer.subscriptions
- customer.subscriptions_count
- customer.uuid
# 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.generate_password
Generate and return a random password for the customer if they didn't set a personal password.
Returns ********
if they already have a password.
# 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.
# customer.uuid
Returns the UUID of the customer.
← Credit card Errors →