title: Customer Summary
type: object
x-tags:
  - Models
description: A lightweight customer representation for merchant customer directories.
required:
  - uuid
  - mobile_number
  - name
  - email_address
  - customer_tier
  - lifetime_qualifying_spend
  - created_at
  - updated_at
properties:
  uuid:
    type: string
    format: uuid
    readOnly: true
    description: The customer's unique identifier.
  mobile_number:
    $ref: ./PhoneNumber.yaml
  name:
    type:
      - string
      - 'null'
    minLength: 1
    maxLength: 255
    description: The customer's name (if known).
  email_address:
    type:
      - string
      - 'null'
    format: email
    minLength: 1
    maxLength: 255
    description: The customer's email address (if known).
  customer_tier:
    oneOf:
      - type: 'null'
      - $ref: ./CustomerTier.yaml
        required:
          - uuid
    readOnly: true
    description: The customer's current tier and its current settings, or `null` when no tier is assigned.
  lifetime_qualifying_spend:
    allOf:
      - $ref: ./Money.yaml
      - type: object
        properties:
          amount:
            minimum: 0
    readOnly: true
    description: The customer's authoritative lifetime qualifying spend.
  created_at:
    type: string
    format: date-time
    readOnly: true
    description: The date-time that the customer was first created.
  updated_at:
    type: string
    format: date-time
    readOnly: true
    description: The date-time that the customer was last updated.
