Skip to content

Commit

Permalink
updated json data and model
Browse files Browse the repository at this point in the history
  • Loading branch information
vasildakov committed Dec 26, 2023
1 parent 75dae77 commit ab2c031
Show file tree
Hide file tree
Showing 28 changed files with 28,362 additions and 0 deletions.
44 changes: 44 additions & 0 deletions data/CreateLabelRequest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"label": {
"senderClient": {
"name": "Иван Иванов",
"phones": [
"0888888888"
]
},
"senderAddress": {
"city": {
"country": {
"code3": "BGR"
},
"name": "Русе",
"postCode": "7012"
},
"street": "Алея Младост",
"num": "7"
},
"receiverClient": {
"name": "Димитър Димитров",
"phones": [
"0876543210"
]
},
"receiverAddress": {
"city": {
"country": {
"code3": "BGR"
},
"name": "Русе",
"postCode": "7010"
},
"street": "Муткурова",
"num": "84",
"other": "бл. 5, вх. А, ет. 6"
},
"packCount": 1,
"shipmentType": "PACK",
"weight": 5,
"shipmentDescription": "обувки"
},
"mode": "validate"
}
59 changes: 59 additions & 0 deletions data/CreateLabelResponse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@

{
"label": {
"shipmentNumber": null,
"storageOfficeName": null,
"storagePersonName": null,
"createdTime": 1524122745000,
"sendTime": null,
"deliveryTime": null,
"shipmentType": "pack",
"packCount": 1,
"weight": 5,
"shipmentDescription": "обувки",
"senderDeliveryType": null,
"senderClient": null,
"senderAgent": null,
"senderOfficeCode": null,
"senderAddress": null,
"receiverDeliveryType": null,
"receiverClient": null,
"receiverAgent": null,
"receiverOfficeCode": null,
"receiverAddress": null,
"cdCollectedAmount": 0,
"cdCollectedCurrency": "",
"cdCollectedTime": null,
"cdPaidAmount": 0,
"cdPaidCurrency": "",
"cdPaidTime": null,
"totalPrice": 9.9,
"currency": "BGN",
"discountPercent": 0,
"discountAmount": -0,
"discountDescription": "",
"senderDueAmount": 9.9,
"receiverDueAmount": 0,
"otherDueAmount": 0,
"deliveryAttemptCount": 0,
"previousShipmentNumber": "",
"services": [
{
"type": "C",
"description": "Куриерска услуга - градски куриер до 5 кг",
"count": 1,
"paymentSide": "SENDER",
"price": 9.9,
"currency": "BGN"
}
],
"nextShipments": [

],
"trackingEvents": [

],
"pdfURL": "",
"expectedDeliveryDate": 1524171600000
}
}
93 changes: 93 additions & 0 deletions data/CreateLabelsRequest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@

{
"labels": [
{
"senderClient": {
"name": "Петър Петров",
"phones": [
"0888888888"
]
},
"senderAddress": {
"city": {
"country": {
"code3": "BGR"
},
"name": "Сливен",
"postCode": "8811"
},
"street": "Граф Игнатиев",
"num": "1"
},
"senderOfficeCode": "8800",
"receiverClient": {
"name": "Димитър Димитров",
"phones": [
"0876543210"
]
},
"receiverAddress": {
"city": {
"country": {
"code3": "BGR"
},
"name": "Русе",
"postCode": "7012"
},
"street": "Муткурова",
"num": "84",
"other": "бл. 5, вх. А, ет. 6"
},
"receiverOfficeCode": "7029",
"packCount": "1",
"shipmentType": "PACK",
"weight": "2",
"sizeUnder60cm": "1",
"shipmentDescription": "маратонки"
},
{
"senderClient": {
"name": "Георги Георгиев",
"phones": [
"0777777777"
]
},
"senderAddress": {
"city": {
"country": {
"code3": "BGR"
},
"name": "София",
"postCode": "1000"
},
"street": "Цариградско шосе",
"num": "166"
},
"receiverClient": {
"name": "Богдан Богданов",
"phones": [
"0878787878"
]
},
"receiverAddress": {
"city": {
"country": {
"code3": "BGR"
},
"name": "Русе",
"postCode": "7012"
},
"street": "Славянска",
"num": "16",
"other": "бл. 1, вх. 1, ет. 1"
},
"packCount": "1",
"shipmentType": "PACK",
"weight": "5",
"sizeUnder60cm": "1",
"shipmentDescription": "дънки"
}
],
"runAsyncAndEmailResultTo": "",
"mode": "validate"
}
122 changes: 122 additions & 0 deletions data/CreateLabelsResponse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
"results": [
{
"label": {
"shipmentNumber": null,
"storageOfficeName": null,
"storagePersonName": null,
"createdTime": 1524123599000,
"sendTime": null,
"deliveryTime": null,
"shipmentType": "post_pack",
"packCount": 1,
"weight": 2,
"shipmentDescription": "маратонки",
"senderDeliveryType": null,
"senderClient": null,
"senderAgent": null,
"senderOfficeCode": null,
"senderAddress": null,
"receiverDeliveryType": null,
"receiverClient": null,
"receiverAgent": null,
"receiverOfficeCode": null,
"receiverAddress": null,
"cdCollectedAmount": 0,
"cdCollectedCurrency": "",
"cdCollectedTime": null,
"cdPaidAmount": 0,
"cdPaidCurrency": "",
"cdPaidTime": null,
"totalPrice": 4.4,
"currency": "BGN",
"discountPercent": 0,
"discountAmount": -0,
"discountDescription": "",
"senderDueAmount": 4.4,
"receiverDueAmount": 0,
"otherDueAmount": 0,
"deliveryAttemptCount": 0,
"previousShipmentNumber": "",
"services": [
{
"type": "C",
"description": "пощенски колет над 1 кг",
"count": 1,
"paymentSide": "SENDER",
"price": 4.4,
"currency": "BGN"
}
],
"nextShipments": [

],
"trackingEvents": [

],
"pdfURL": "",
"expectedDeliveryDate": 1524171600000
},
"error": null
},
{
"label": {
"shipmentNumber": null,
"storageOfficeName": null,
"storagePersonName": null,
"createdTime": 1524123599000,
"sendTime": null,
"deliveryTime": null,
"shipmentType": "pack",
"packCount": 1,
"weight": 5,
"shipmentDescription": "дънки",
"senderDeliveryType": null,
"senderClient": null,
"senderAgent": null,
"senderOfficeCode": null,
"senderAddress": null,
"receiverDeliveryType": null,
"receiverClient": null,
"receiverAgent": null,
"receiverOfficeCode": null,
"receiverAddress": null,
"cdCollectedAmount": 0,
"cdCollectedCurrency": "",
"cdCollectedTime": null,
"cdPaidAmount": 0,
"cdPaidCurrency": "",
"cdPaidTime": null,
"totalPrice": 11.4,
"currency": "BGN",
"discountPercent": 0,
"discountAmount": -0,
"discountDescription": "",
"senderDueAmount": 11.4,
"receiverDueAmount": 0,
"otherDueAmount": 0,
"deliveryAttemptCount": 0,
"previousShipmentNumber": "",
"services": [
{
"type": "C",
"description": "Куриерска услуга - врата / врата до 5 кг",
"count": 1,
"paymentSide": "SENDER",
"price": 11.4,
"currency": "BGN"
}
],
"nextShipments": [

],
"trackingEvents": [

],
"pdfURL": "",
"expectedDeliveryDate": 1524171600000
},
"error": null
}
]
}
5 changes: 5 additions & 0 deletions data/DeleteLabelsRequest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"shipmentNumbers": [
"1050010095854"
]
}
17 changes: 17 additions & 0 deletions data/DeleteLabelsResponse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"results": [
{
"shipmentNum": "1050010095854",
"error": {
"type": "ExInvalidParam",
"message": "Товарителницата е на друг потребител.",
"fields": [

],
"innerErrors": [

]
}
}
]
}
3 changes: 3 additions & 0 deletions data/GetCitiesRequest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"countryCode": "LUX"
}
Loading

0 comments on commit ab2c031

Please sign in to comment.