---
type: object
properties:
  basket_id:
    type: integer
    description: Internal identifier for the basket
  name:
    type: string
    description: Basket name
  internal_note:
    type:
      - string
      - "null"
    description: Internal note
  vendor_note:
    type:
      - string
      - "null"
    description: Vendor note
  contract_id:
    type:
      - integer
      - "null"
    description: Internal identifier of the linked contract
  creation_date:
    type:
      - string
      - "null"
    format: date
    description: The date the basket was created
  close_date:
    type:
      - string
      - "null"
    format: date
    description: The date the basket was closed
  vendor_id:
    type: integer
    description: Internal identifier for the vendor
  creator_id:
    type:
      - integer
      - "null"
    description: Internal patron identifier of the basket creator
  basket_group_id:
    type:
      - integer
      - "null"
    description: links this basket to its group (aqbasketgroups.id)
  delivery_library_id:
    type:
      - string
      - "null"
    description: basket delivery place
  billing_library_id:
    type:
      - string
      - "null"
    description: basket billing place
  library_id:
    type:
      - integer
      - "null"
    description: Library the basket belongs to
  standing:
    type: boolean
    description: If the orders in this basket are standing
  closed:
    type: boolean
    description: Is the basket closed
  note:
    type:
      - string
      - "null"
    description: basket notes
  create_items:
    type:
      - string
      - "null"
    enum:
      - ordering
      - receiving
      - cataloguing
      - null
    description: "When items should be created for orders in this basket (Options:
      'ordering', 'receiving', 'cataloguing'. Null means system wide config)"
  days_late:
    type:
      - integer
      - "null"
    description: The number of days the basket is late (x-koha-embed)
additionalProperties: false
