Updated preorder-api.yaml
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
openapi: 3.0.1
|
openapi: 3.0.1
|
||||||
info:
|
info:
|
||||||
title: thetool Preorder API
|
title: thetool Preorder API
|
||||||
description: API Dokumentation für thetool Vorbestellung
|
description: API Dokumentation für thetool Akquise-Plattform
|
||||||
license:
|
license:
|
||||||
name: Apache 2.0 License
|
name: Apache 2.0 License
|
||||||
url: http://www.apache.org/licenses/LICENSE-2.0.html
|
url: http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
@@ -19,9 +19,9 @@ paths:
|
|||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- addressdb
|
- addressdb
|
||||||
summary: Freitextsuche nach Adressen
|
summary: Freitextsuche nach Adressen mit Ausbaustatus
|
||||||
description: Sucht Adressen die den Suchbegriff beinhalten. Retourniert Adressen mit Wohneinheiten
|
description: Sucht Adressen die den Suchbegriff beinhalten. Retourniert Adressen mit Ausbaustatus und Wohneinheiten
|
||||||
operationId: findAddresses
|
operationId: searchAddresses
|
||||||
parameters:
|
parameters:
|
||||||
- name: format
|
- name: format
|
||||||
description: "Ausgabeformat: `flat` (Ein Array-Element pro Wohneinheit mit Gebäudedaten; **default**) oder `tree` (Ein Array-Element pro Gebäude mit Wohneinheiten-Array)"
|
description: "Ausgabeformat: `flat` (Ein Array-Element pro Wohneinheit mit Gebäudedaten; **default**) oder `tree` (Ein Array-Element pro Gebäude mit Wohneinheiten-Array)"
|
||||||
@@ -92,8 +92,8 @@ paths:
|
|||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- addressdb
|
- addressdb
|
||||||
summary: Adressen suchen
|
summary: Strukturierte Suche nach Adressen mit Ausbaustatus
|
||||||
description: Sucht nach Adressen. Retourniert Adressen mit Wohneinheiten
|
description: Sucht nach Adressen. Retourniert Adressen mit Ausbaustatus und Wohneinheiten
|
||||||
operationId: findAddresses
|
operationId: findAddresses
|
||||||
parameters:
|
parameters:
|
||||||
- name: format
|
- name: format
|
||||||
@@ -352,9 +352,9 @@ paths:
|
|||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- preorder
|
- preorder
|
||||||
summary: Vorbestellung registrieren
|
summary: (Vor-)bestellung registrieren
|
||||||
description: |
|
description: |
|
||||||
Registriert eine Vorbestellung.
|
Registriert eine (Vor-)bestellung. Bestellungsart wird mit `preorderType` definiert.
|
||||||
|
|
||||||
---
|
---
|
||||||
Parameter `address`: Anschlussadresse. Soll Starterkit an Anschlussadresse gesendet werden, muss `address.is_shipping` auf true gestellt werden, bei false wird das Starterkit an Vertragsinhaber (`customer`) gesendet.
|
Parameter `address`: Anschlussadresse. Soll Starterkit an Anschlussadresse gesendet werden, muss `address.is_shipping` auf true gestellt werden, bei false wird das Starterkit an Vertragsinhaber (`customer`) gesendet.
|
||||||
@@ -818,6 +818,18 @@ components:
|
|||||||
preorderRequest:
|
preorderRequest:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
preorderType:
|
||||||
|
type: string
|
||||||
|
enum: [interest, provision, order]
|
||||||
|
description: |
|
||||||
|
Vorbestelltyp
|
||||||
|
|
||||||
|
| preorderType | Description |
|
||||||
|
|--------------|-------------|
|
||||||
|
| interest | Interessensbekundung |
|
||||||
|
| provision | Vorsorgeanschluss |
|
||||||
|
| order | Vollanschluss |
|
||||||
|
| reorder | Nachbestellung (nach Bauabschluss) |
|
||||||
connectionType:
|
connectionType:
|
||||||
type: string
|
type: string
|
||||||
enum: [single-dwelling, multi-dwelling, apartment-building, apartment, business]
|
enum: [single-dwelling, multi-dwelling, apartment-building, apartment, business]
|
||||||
@@ -832,20 +844,18 @@ components:
|
|||||||
connectionCount:
|
connectionCount:
|
||||||
type: integer
|
type: integer
|
||||||
default: 1
|
default: 1
|
||||||
description: Anzahl Anschlüsse für Rabatt bei mehreren Anschlüssen in Mehrfamilienhaus
|
description: Anzahl Anschlüsse bei mehreren Anschlüssen in Mehrfamilienhaus
|
||||||
nullable: true
|
nullable: true
|
||||||
preorderType:
|
technology:
|
||||||
type: string
|
type: string
|
||||||
enum: [interest, provision, order]
|
default: gpon
|
||||||
description: |
|
description: Bei Provider eingesetzte Technologie (optional, falls für Patchpunkt im POP nötig)
|
||||||
Vorbestelltyp
|
nullable: true
|
||||||
|
patchposition:
|
||||||
| preorderType | Description |
|
type: string
|
||||||
|--------------|-------------|
|
default: null
|
||||||
| interest | Interessensbekundung |
|
description: Patchpunkt im POP (optional)
|
||||||
| provision | Vorsorgeanschluss |
|
nullable: true
|
||||||
| order | Vollanschluss |
|
|
||||||
| reorder | Nachbestellung (nach Bauabschluss) |
|
|
||||||
acceptMarketing:
|
acceptMarketing:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: Zustimmung Datenspeicherung/-weitergabe
|
description: Zustimmung Datenspeicherung/-weitergabe
|
||||||
@@ -894,6 +904,10 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
description: Tür der Anschlussadresse
|
description: Tür der Anschlussadresse
|
||||||
example: 1337
|
example: 1337
|
||||||
|
unit_id:
|
||||||
|
type: string
|
||||||
|
description: Zusatzangaben zur Identifizierung der Wohneinheit in einem String. Kann statt den Einzelfeldern (Block, Stiege, Stock, Tür) angegeben werden
|
||||||
|
example: Stg. 2 Stock 3 Tür 7
|
||||||
is_shipping:
|
is_shipping:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: Soll Starterkit an Anschlussadresse gesendet werden. Bei false wird das Starterkit an Vertrasinhaber (`customer`) gesendet.
|
description: Soll Starterkit an Anschlussadresse gesendet werden. Bei false wird das Starterkit an Vertrasinhaber (`customer`) gesendet.
|
||||||
|
|||||||
Reference in New Issue
Block a user