Skip to content

Commit 4f7d5fb

Browse files
authored
Merge pull request #7 from sp-tm/additional_delivery_carriers
Add new delivery carriers
2 parents f9f3c10 + 18ea8ac commit 4f7d5fb

File tree

1 file changed

+63
-30
lines changed

1 file changed

+63
-30
lines changed

Diff for: SkipPay_OAS.yaml

+63-30
Original file line numberDiff line numberDiff line change
@@ -1359,11 +1359,8 @@ components:
13591359
example: DELIVERY_CARRIER
13601360
DeliveryCarrier:
13611361
oneOf:
1362-
- $ref: '#/components/schemas/carrierId'
1363-
- $ref: '#/components/schemas/carrierCustom'
1364-
required:
1365-
- carrierId
1366-
- carrierCustom
1362+
- $ref: '#/components/schemas/DeliveryCarrierPredefined'
1363+
- $ref: '#/components/schemas/DeliveryCarrierCustom'
13671364
channel:
13681365
title: channel
13691366
enum:
@@ -1376,31 +1373,67 @@ components:
13761373
description: 'Sales channel, indicates how or where the order is created. (ie. via e-mail, eshop or at a branch)'
13771374
example: BRANCH
13781375
default: ESHOP
1379-
carrierId:
1380-
title: carrierId
1381-
enum:
1382-
- CZ_POST_HAND
1383-
- CZ_POST_OFFICE
1384-
- CZ_POST_OTHER
1385-
- PPL
1386-
- DPD
1387-
- GEIS
1388-
- IN_TIME
1389-
- TOP_TRANS
1390-
- GEBRUDER_WEISS
1391-
- LOCAL_COURIER
1392-
- TNT
1393-
- GLS
1394-
- HDS_COMFORT
1395-
- HDS_STANDARD
1396-
- MALL_DEPOSIT
1397-
type: string
1398-
example: DPD
1399-
carrierCustom:
1400-
title: carrierCustom
1401-
type: string
1402-
maximum: 250
1403-
description: For carriers not found in enumeration of customer ID, specify value as text.
1376+
DeliveryCarrierPredefined:
1377+
type: object
1378+
properties:
1379+
carrierId:
1380+
title: carrierId
1381+
enum:
1382+
- AIRWAY
1383+
- CZ_POST_HAND
1384+
- CZ_POST_OFFICE
1385+
- CZ_POST_OTHER
1386+
- DACHSER
1387+
- DB_SCHENKER
1388+
- DEUTSCHE_POST_DHL
1389+
- DHL
1390+
- DHL_EXPRESS
1391+
- DHL_FREIGHT
1392+
- DPD
1393+
- DSV
1394+
- FEDEX
1395+
- FOFR
1396+
- GEBRUDER_WEISS
1397+
- GEIS
1398+
- GLS
1399+
- HDS_COMFORT
1400+
- HDS_STANDARD
1401+
- IN_TIME
1402+
- JAPO_TRANSPORT
1403+
- LIFTAGO
1404+
- LOCAL_COURIER
1405+
- MAGYAR_POSTA
1406+
- MALL_DELIVERY
1407+
- MALL_DEPOSIT
1408+
- MESSENGER
1409+
- POSTA_BEZ_HRANIC
1410+
- PPL
1411+
- PPL_PARCEL_CONNECT
1412+
- RABEN
1413+
- SAMEDAY
1414+
- SDS
1415+
- SLOVAK_PARCEL_SERVICE
1416+
- SLOVENSKA_POSTA
1417+
- SPRING_GDS
1418+
- TNT
1419+
- TOP_TRANS
1420+
- UPS
1421+
- WEDO
1422+
- WEDO_ULOZENKA
1423+
- ZASILKOVNA
1424+
type: string
1425+
example: DPD
1426+
required:
1427+
- carrierId
1428+
DeliveryCarrierCustom:
1429+
properties:
1430+
carrierCustom:
1431+
title: carrierCustom
1432+
type: string
1433+
maximum: 250
1434+
description: For carriers not found in the enumeration of carrierId, specify the value as text.
1435+
required:
1436+
- carrierCustom
14041437
DocumentSerializer:
14051438
title: Document Serializer
14061439
description: Type of the document

0 commit comments

Comments
 (0)