New and improved with central fullfillment-pipeline and check for customer name and email adress
This commit is contained in:
1 parent
6580517e9d
commit
47531ea971
11 files changed
+1331
-36
No files matched your search
@@ -1,3 +1,326 @@
|
||||
# Pending Contract Parser und Mailtools
|
||||
# Fullfillment Automatisierer
|
||||
|
||||
tba.
|
||||
## Kurzbeschreibung des Projekts
|
||||
|
||||
Der Fullfillment Automatisierer unterstützt die Bearbeitung manuell bereitzustellender easyname-Produkte. Das System verarbeitet OneCRM-Bestellungen, gleicht diese mit offenen Jira-Fulfillment-Tickets ab, erzeugt Aktivierungslisten sowie Mailvorlagen und bereitet Jira-Kommentare für die Bearbeitung vor. Die einzelnen Werkzeuge werden über einen zentralen Orchestrator (`fulfillment_pipeline.py`) gesteuert.
|
||||
|
||||
---
|
||||
|
||||
## Architektur
|
||||
|
||||
```text
|
||||
OneCRM JSON Exporte
|
||||
│
|
||||
▼
|
||||
pendingcontractsparser.py
|
||||
│
|
||||
▼
|
||||
activation_overview.csv
|
||||
│
|
||||
▼
|
||||
fullfillment_updater.py
|
||||
│
|
||||
▼
|
||||
activation_checklist.md
|
||||
│
|
||||
├─────────────► generate_spamcontrol_credentials.py
|
||||
│
|
||||
├─────────────► generate_spamcontrol_mails.py
|
||||
│
|
||||
├─────────────► generate_mailversand_mails.py
|
||||
│
|
||||
├─────────────► generate_domainprotection_mails.py
|
||||
│
|
||||
├─────────────► generate_vipsupport_mails.py
|
||||
│
|
||||
▼
|
||||
jira_updater.py
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Komponenten
|
||||
|
||||
### pendingcontractsparser.py
|
||||
|
||||
Verarbeitet die aus OneCRM exportierten JSON-Dateien und erzeugt die zentrale Aktivierungsdatenbank:
|
||||
|
||||
```text
|
||||
activation_overview.csv
|
||||
```
|
||||
|
||||
Enthaltene Informationen:
|
||||
|
||||
- Bestellnummer
|
||||
- Bestelldatum
|
||||
- Kundennummer
|
||||
- Kundenname
|
||||
- Kunden-E-Mail
|
||||
- Produkt
|
||||
- Domain
|
||||
|
||||
---
|
||||
|
||||
### fullfillment_updater.py
|
||||
|
||||
Gleicht offene Jira-Fulfillment-Tickets mit den Aktivierungsdaten ab.
|
||||
|
||||
Funktionen:
|
||||
|
||||
- Jira API Abfrage
|
||||
- ADF Parsing
|
||||
- Produktnormalisierung
|
||||
- Kundennummern-Erkennung
|
||||
- CSV Matching
|
||||
- Statistik
|
||||
- Fehleranalyse
|
||||
|
||||
Erzeugt:
|
||||
|
||||
```text
|
||||
activation_checklist.md
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### jira_updater.py
|
||||
|
||||
Verarbeitet die erzeugte Aktivierungsliste.
|
||||
|
||||
Aktuelle Version:
|
||||
|
||||
- Dry Run
|
||||
- Zendesk-Ticketübernahme
|
||||
- Kommentarvorschau
|
||||
- Vorbereitung für Jira-Kommentare
|
||||
- Vorbereitung für Statuswechsel
|
||||
|
||||
Kommentarformat:
|
||||
|
||||
```text
|
||||
2026-11-11 17:51
|
||||
|
||||
Spam Control für thehousegras.com
|
||||
|
||||
Siehe Zendesk-Ticket: 19564741
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### generate_spamcontrol_credentials.py
|
||||
|
||||
Erzeugt automatisch:
|
||||
|
||||
```text
|
||||
Login
|
||||
Passwort
|
||||
Kunden-E-Mail
|
||||
```
|
||||
|
||||
für SpamControl-Konten.
|
||||
|
||||
---
|
||||
|
||||
### generate_spamcontrol_mails.py
|
||||
|
||||
Erzeugt Mailvorlagen für:
|
||||
|
||||
```text
|
||||
Spam Control
|
||||
```
|
||||
|
||||
inklusive Verzögerungshinweis bei älteren Bestellungen.
|
||||
|
||||
---
|
||||
|
||||
### generate_mailversand_mails.py
|
||||
|
||||
Erzeugt Mailvorlagen für:
|
||||
|
||||
```text
|
||||
Mailversand Basic
|
||||
Mailversand Pro
|
||||
```
|
||||
|
||||
und berücksichtigt automatisch, ob bereits eine Domain hinterlegt wurde.
|
||||
|
||||
---
|
||||
|
||||
### generate_domainprotection_mails.py
|
||||
|
||||
Erzeugt Bereitstellungsmails für:
|
||||
|
||||
```text
|
||||
Domain Protection
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### generate_vipsupport_mails.py
|
||||
|
||||
Erzeugt Bereitstellungsmails für:
|
||||
|
||||
```text
|
||||
VIP Support
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## fulfillment_pipeline.py
|
||||
|
||||
Der Orchestrator dient als zentrale Einstiegskomponente.
|
||||
|
||||
Alle Einzelskripte bleiben unabhängig nutzbar, können jedoch komfortabel über den Orchestrator ausgeführt werden.
|
||||
|
||||
### Standardaufruf
|
||||
|
||||
```bash
|
||||
python3 fulfillment_pipeline.py
|
||||
```
|
||||
|
||||
Es erscheint ein interaktives Menü.
|
||||
|
||||
### Menü
|
||||
|
||||
```text
|
||||
1) Pending Contracts parsen
|
||||
2) Aktivierungsliste erzeugen
|
||||
3) SpamControl Zugangsdaten
|
||||
4) SpamControl Mailvorlagen
|
||||
5) Mailcloud Vorlagen
|
||||
6) Domain Protection Vorlagen
|
||||
7) VIP Support Vorlagen
|
||||
8) Jira Dry Run
|
||||
9) Gesamte Pipeline
|
||||
0) Beenden
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Typischer Workflow
|
||||
|
||||
### Neue Pending Contracts verarbeiten
|
||||
|
||||
```bash
|
||||
python3 fulfillment_pipeline.py
|
||||
```
|
||||
|
||||
Option:
|
||||
|
||||
```text
|
||||
9) Gesamte Pipeline
|
||||
```
|
||||
|
||||
Dadurch werden automatisch ausgeführt:
|
||||
|
||||
```text
|
||||
pendingcontractsparser.py
|
||||
↓
|
||||
fullfillment_updater.py
|
||||
↓
|
||||
generate_spamcontrol_credentials.py
|
||||
↓
|
||||
generate_spamcontrol_mails.py
|
||||
↓
|
||||
generate_mailcloud_mails.py
|
||||
↓
|
||||
generate_domainprotection_mails.py
|
||||
↓
|
||||
generate_vipsupport_mails.py
|
||||
↓
|
||||
jira_updater.py
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Installation
|
||||
|
||||
Repository klonen:
|
||||
|
||||
```bash
|
||||
git clone <gitea-url>/fullfillmentautomatisierer.git
|
||||
|
||||
cd fullfillmentautomatisierer
|
||||
```
|
||||
|
||||
Skripte ausführbar machen:
|
||||
|
||||
```bash
|
||||
chmod +x *.py
|
||||
```
|
||||
|
||||
Abhängigkeiten:
|
||||
|
||||
```bash
|
||||
sudo apt-get oder pip install requests
|
||||
|
||||
Für Jira:
|
||||
|
||||
export JIRA_USER="euer Jira-User, meistens eure Mailadresse"
|
||||
export JIRA_TOKEN="<jira-token>"
|
||||
```
|
||||
|
||||
Anschließend:
|
||||
|
||||
```bash
|
||||
source ~/.bashrc
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Verzeichnisstruktur
|
||||
|
||||
```text
|
||||
fullfillmentautomatisierer/
|
||||
│
|
||||
├── fulfillment_pipeline.py
|
||||
│
|
||||
├── pendingcontractspar*er.py
|
||||
├── fullfillment_updater.py
|
||||
|── jira_updater.py
|
||||
│
|
||||
├── generate_spamcontrol_credentials.py
|
||||
├── gene*ate_spamcontrol_mails.py
|
||||
├── gener*te_mailversand_mails.py
|
||||
├── genera*e_domainprotection_mails.py
|
||||
├── generate_vipsupport_mails.py
|
||||
│
|
||||
├── activation_overview.csv
|
||||
├── activationchecklist.md
|
||||
│
|
||||
├── spamcontrol_credentials/
|
||||
├── spamcontrol_templates/
|
||||
├── mailversand_templates/
|
||||
├── domainprotection_templates/
|
||||
└── vipsupport_templates/
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Setup-Hinweise
|
||||
|
||||
```
|
||||
#Optional Alias anlegen:
|
||||
|
||||
alias fulfillment='python3 ~/esn-support-work/fullfillmentautomatisierer/fulfillment_pipeline.py'
|
||||
|
||||
#Danach:
|
||||
|
||||
source ~/.bashrc
|
||||
|
||||
#Anschließend genügt:
|
||||
|
||||
fulfillment
|
||||
```
|
||||
|
||||
|
||||
---
|
||||
|
||||
### Notes
|
||||
|
||||
- Die Skripte können einzeln oder über den Orchestrator ausgeführt werden.
|
||||
- Die Aktivierungsliste (`activation_checklist.md` dient als zentrale Arbeitsgrundlage.
|
||||
- Das Matching erfolgt über Kundennummer und Produkt.
|
||||
- Unterschiedliche Jira- und OneCRM-Bestellnummern werden bewusst ignoriert.
|
||||
- Die aktuelle Jira-Integration arbeitet standardmäßig im Dry-Run-Modus.
|
||||
- Die Architektur ist bewusst modular gehalten, sodass weitere Produkttypen unkompliziert ergänzt werden können.
|
||||
Reference in new issue
Block a user