info:
  description: No description
  license:
    name: MIT
  title: NonameApp
  version: 3.0.3
openapi: 3.0.0
paths:
  /get_print_orders:
    post:
      description: "\n        Vylistuje objednávky s voucherem od t_from do t_to.\n\
        \        Případně připojí B64 encodovaná data PDF voucherů\n\n        Parametry\
        \ t_from a t_to jaou interpretovány jakoz leva uzavřený\n            a zprava\
        \ otevřený interval tedy matematický zápis <t_fom, t_to).\n            Např:\
        \ 8.měsíc 2017 tak t_from=\"2017-08-01\" a t_to=\"2017-09-01\"\n\n       \
        \ REQUEST:\n            @param t_from datetime (ISO8601) (včetně)\n      \
        \      @param t_to datetime (ISO8601) (vyjma)\n            [@param with_files\
        \ boolean default false] - připojit i pdf data?\n            [@param include_shipped\
        \ boolean default false] - zahrnout i odeslané?\n            [@param include_test\
        \ boolean default false] - zahrnout i testovací?\n            [@param include_failed\
        \ boolean default false] - zahrnout i chybné?\n        RESPONSE:\n       \
        \     int status\n            sring status_message\n            list get_print_orders\
        \ [\n                string order_id (id objednávky)\n                boolean\
        \ test - jedná se o testovací objednávku?\n                boolean failed\
        \ - jedná se objednávku označenou za chybnou?\n                        (viz\
        \ mark_pdf_failed)\n                string file Base64 pdf souboru\n     \
        \           dict shipping_address {\n                    string name\n   \
        \                 string surname\n                    string full_name\n\n\
        \                    boolean as_company\n                    string company\n\
        \n                    string street\n                    string city\n   \
        \                 string psc\n                    string coutry (ISOCODE)\n\
        \                    string country_name\n\n                    string email\n\
        \                    string phone\n                }\n                dict\
        \ voucher_tracking {\n                    boolean sent - již bylo označeno\
        \ za odeslané?\n                    datetime sent_at - označení za odeslané\
        \ nebo null (ISO8601)\n                    string tracking_nr - přidělené\
        \ tracking_number\n                }\n            ]"
      requestBody:
        content:
          application/json:
            schema:
              properties:
                include_failed:
                  type: boolean
                include_shipped:
                  type: boolean
                include_test:
                  type: boolean
                t_from:
                  type: string
                t_to:
                  type: string
                with_files:
                  type: boolean
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  get_print_orders:
                    type: object
                  status:
                    example: 200
                    type: number
                  status_message:
                    example: OK
                    type: string
                type: object
          description: OK
      summary: Vylistuje objednávky s voucherem od t_from do t_to.
  /mark_pdf_failed:
    post:
      description: "\n        Označí objednávku s voucherem za chybnou a vyřadí ji\
        \ z výpisu get_print_orders.\n        Dále informuje customer service o potřebě\
        \ asistence.\n\n        REQUEST:\n            @param order_id str - vydá metoda\
        \ get_print_orders\n            @param reason str - informace pro customer\
        \ service co je asi špatně.\n        RESPONSE:\n            int status (200=OK)\n\
        \            sring status_message\n        "
      requestBody:
        content:
          application/json:
            schema:
              properties:
                order_id:
                  type: string
                reason:
                  type: string
              required:
              - order_id
              - reason
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  mark_pdf_failed:
                    type: object
                  status:
                    example: 200
                    type: number
                  status_message:
                    example: OK
                    type: string
                type: object
          description: OK
      summary: Označí objednávku s voucherem za chybnou a vyřadí ji z výpisu get_print_orders.
  /mark_pdf_sent:
    post:
      description: "\n        Označí objednávku s voucherem za poslanou k uživateli\
        \ a vyřadí ji tím z výpisu\n             get_print_orders\n\n        REQUEST:\n\
        \            @param order_id str - vydá metoda get_print_orders\n        \
        \    [@param tracking_nr str default null] - umožnuje předat volitelně informaci\n\
        \                o trackovacím čísle\n        RESPONSE:\n            int status\
        \ (200=OK)\n            sring status_message\n        "
      requestBody:
        content:
          application/json:
            schema:
              properties:
                order_id:
                  type: string
                tracking_nr:
                  type: string
              required:
              - order_id
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  mark_pdf_sent:
                    type: object
                  status:
                    example: 200
                    type: number
                  status_message:
                    example: OK
                    type: string
                type: object
          description: OK
      summary: Označí objednávku s voucherem za poslanou k uživateli a vyřadí ji tím
        z výpisu
servers:
- description: Api url
  url: http://aqp11-cas:80
