119 lines
3.7 KiB
Markdown
119 lines
3.7 KiB
Markdown
# pdfgen
|
|
|
|
Микросервис генерации PDF документов
|
|
|
|
***
|
|
|
|
## 1. Xfinity
|
|
|
|
```angular2html
|
|
POST https://pdfgen.evpak-soft.ru/api/v1/Xfinity
|
|
Content-Type: application/json
|
|
Authorization: Bearer 43QAwPldLuuQTErY303m16lY5dSeDUy1OVKBzy5HTDG2KxfVC0m1o1cfZ49gbBRu
|
|
|
|
{
|
|
"customer_name": "Hellen",
|
|
"account_number": "8499 10 008 1016692",
|
|
"billing_date": "Apr 13, 2025",
|
|
"address": "3411 CHESTNUT ST APT 847, PHILADELPHIA, PA, 19104-5530",
|
|
"plan": "Gigabit",
|
|
"speed": "Download as fast as 1200 Mbps"
|
|
}
|
|
```
|
|
|
|
### Справочники
|
|
|
|
- https://pdfgen.evpak-soft.ru/api/v1/Xfinity/socr
|
|
- https://pdfgen.evpak-soft.ru/api/v1/Xfinity/tariffs
|
|
|
|
### Обновление справочника по тарифам
|
|
|
|
```angular2html
|
|
curl -X POST \
|
|
-H "Content-Type: multipart/form-data" \
|
|
-H "Authorization: Bearer 43QAwPldLuuQTErY303m16lY5dSeDUy1OVKBzy5HTDG2KxfVC0m1o1cfZ49gbBRu" \
|
|
-F "csvFile=@/path/to/file/States_Plans_by_Region.csv" \
|
|
https://pdfgen.evpak-soft.ru/api/v1/Xfinity/tariffs/upload
|
|
```
|
|
|
|
***
|
|
|
|
## 2. COX
|
|
|
|
```angular2html
|
|
POST https://pdfgen.evpak-soft.ru/api/v1/COX
|
|
Content-Type: application/json
|
|
Authorization: Bearer 43QAwPldLuuQTErY303m16lY5dSeDUy1OVKBzy5HTDG2KxfVC0m1o1cfZ49gbBRu
|
|
|
|
{
|
|
"billing_date": "May 21, 2025",
|
|
"account_number": "001 8610 011219418",
|
|
"service_address_1": "APT 3",
|
|
"service_address_2": "2711 STEWART AVE",
|
|
"service_address_3": "LAS VEGAS, NV 89101-4652",
|
|
"address": "2711 STEWART AVE APT 3, LAS VEGAS, NV, 89101-4652",
|
|
"customer_name": "GUADALUPE LOPEZ",
|
|
"plan": "Go Fast",
|
|
"speed": "Download speeds up to 100 Mbps*|1.25 TB (1,280 GB) Monthly Data Plan|Over 4 Million Wifi Hotspots",
|
|
"previous_balance": "$31.26",
|
|
"payment_received": "-$31.26",
|
|
"baseTarif": [
|
|
{
|
|
"name": "Go Fast",
|
|
"price": "$50.00",
|
|
"includes": "Download speeds up to 100 Mbps*|1.25 TB (1,280 GB) Monthly Data Plan|Over 4 Million Wifi Hotspots"
|
|
},
|
|
{
|
|
"name": "Go Faster",
|
|
"price": "$70.00",
|
|
"includes": "Download speeds up to 250 Mbps*|1.25 TB (1,280 GB) Monthly Data Plan|Over 4 Million Wifi Hotspots"
|
|
},
|
|
{
|
|
"name": "Go Even Faster",
|
|
"price": "$90.00",
|
|
"includes": "Download speeds up to 500 Mbps*|1.25 TB (1,280 GB) Monthly Data Plan|Over 4 Million Wifi Hotspots"
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
***
|
|
|
|
## 3. ATT
|
|
|
|
```angular2html
|
|
POST https://pdfgen.evpak-soft.ru/api/v1/ATT
|
|
Content-Type: application/json
|
|
Authorization: Bearer 43QAwPldLuuQTErY303m16lY5dSeDUy1OVKBzy5HTDG2KxfVC0m1o1cfZ49gbBRu
|
|
|
|
{
|
|
"billing_date": "May 21, 2025",
|
|
"account_number": "001 8610 011219418",
|
|
"service_address_1": "APT 3",
|
|
"service_address_2": "2711 STEWART AVE",
|
|
"service_address_3": "LAS VEGAS, NV 89101-4652",
|
|
"address": "2711 STEWART AVE APT 3, LAS VEGAS, NV, 89101-4652",
|
|
"customer_name": "GUADALUPE LOPEZ",
|
|
"plan": "Go Fast",
|
|
"speed": "Download speeds up to 100 Mbps*|1.25 TB (1,280 GB) Monthly Data Plan|Over 4 Million Wifi Hotspots",
|
|
"previous_balance": "$31.26",
|
|
"payment_received": "-$31.26",
|
|
"baseTarif": [
|
|
{
|
|
"name": "Go Fast",
|
|
"price": "$50.00",
|
|
"includes": "Download speeds up to 100 Mbps*|1.25 TB (1,280 GB) Monthly Data Plan|Over 4 Million Wifi Hotspots"
|
|
},
|
|
{
|
|
"name": "Go Faster",
|
|
"price": "$70.00",
|
|
"includes": "Download speeds up to 250 Mbps*|1.25 TB (1,280 GB) Monthly Data Plan|Over 4 Million Wifi Hotspots"
|
|
},
|
|
{
|
|
"name": "Go Even Faster",
|
|
"price": "$90.00",
|
|
"includes": "Download speeds up to 500 Mbps*|1.25 TB (1,280 GB) Monthly Data Plan|Over 4 Million Wifi Hotspots"
|
|
}
|
|
]
|
|
}
|
|
``` |