title: Outlet
type: object
description: Represents an outlet that has been created within the platform.
x-tags:
  - Models
properties:
  uuid:
    type: string
    format: uuid
    description: The outlet's unique identifier.
    readOnly: true
  name:
    type: string
    minLength: 1
    maxLength: 255
    description: The name of the outlet.
    example: Barry's Burgers
  locality:
    type:
      - string
      - 'null'
    minLength: 1
    maxLength: 255
    example: Downtown One
    description: The locality of the outlet (if any).
  logo:
    oneOf:
      - type: 'null'
      - $ref: ./Media.yaml
    readOnly: true
  logo_uuid:
    type:
      - string
      - 'null'
    format: uuid
    description: |-
      The UUID of the media file that should be linked as the outlet's logo.

      The referenced media file must be an image and exactly 1024 x 1024 pixels.

      Supplying a value of `null` will unlink any existing logo.
  contact_number:
    $ref: ./PhoneNumber.yaml
  address:
    $ref: ./Address.yaml
  currency_code:
    type: string
    minLength: 3
    maxLength: 3
    example: SGD
    description: The ISO 4217 alpha-3 currency code associated with the outlet.
    readOnly: true
  timezone:
    type: string
    minLength: 1
    maxLength: 255
    description: The timezone that the outlet operates in.
    example: Asia/Singapore
    readOnly: true
  industry_type:
    oneOf:
      - type: 'null'
      - $ref: ./IndustryType.yaml
  email_address:
    type:
      - string
      - 'null'
    format: email
    description: The customer-facing email address for the outlet.
  outlet_code:
    type:
      - string
      - 'null'
    description: The merchant-controlled identifier for this outlet.
    example: YQ-STORE1
  bio:
    type:
      - string
      - 'null'
    minLength: 1
    description: The customer-facing bio for the outlet.
    maxLength: 10000
    example: 'We make really, really great burgers.'
  online_payment_gateway:
    oneOf:
      - type: 'null'
      - $ref: ./OnlinePaymentGateway.yaml
    description: The online payment gateway configured for the outlet, if any.
  merchant_uuid:
    type: string
    format: uuid
    readOnly: true
    description: The unique identifier of the merchant that owns this outlet.
  created_at:
    type: string
    format: date-time
    description: The date-time that the outlet was first created.
    readOnly: true
