title: Delivery Fee Configuration
x-tags:
  - Services
type: object
description: Represents the delivery fees for an associated outlet.
properties:
  merchant_base_fee:
    oneOf:
      - type: 'null'
      - $ref: ./Money.yaml
    description: The "base" fee that is charged for all delivery orders.
  distance_surcharges:
    type: array
    description: The surcharges that will be levied against delivery orders that meet/exceed the specified distances from the outlet's location.
    items:
      type: object
      properties:
        distance_in_metres:
          type: integer
          minimum: 1
          maximum: 40075017
        surcharge:
          $ref: ./Money.yaml
  spending_discounts:
    type: array
    description: The discounts that will be applied to the delivery free if the order's sub total meets/exceeds a configured threshold.
    items:
      type: object
      properties:
        sub_total:
          $ref: ./Money.yaml
        discount:
          $ref: ./Money.yaml