-
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
84 additions
and
70 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
sdk/extensions/dpdhl/karrio/schemas/dpdhl/cancel_response.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
from attr import s | ||
from typing import Optional, List | ||
from jstruct import JStruct, JList | ||
|
||
|
||
@s(auto_attribs=True) | ||
class LabelType: | ||
url: Optional[str] = None | ||
format: Optional[str] = None | ||
|
||
|
||
@s(auto_attribs=True) | ||
class SstatusType: | ||
title: Optional[str] = None | ||
status: Optional[int] = None | ||
|
||
|
||
@s(auto_attribs=True) | ||
class ItemType: | ||
shipmentNo: Optional[int] = None | ||
sstatus: Optional[SstatusType] = JStruct[SstatusType] | ||
label: Optional[LabelType] = JStruct[LabelType] | ||
|
||
|
||
@s(auto_attribs=True) | ||
class StatusType: | ||
title: Optional[str] = None | ||
statusCode: Optional[int] = None | ||
instance: Optional[str] = None | ||
detail: Optional[str] = None | ||
|
||
|
||
@s(auto_attribs=True) | ||
class CancelResponseType: | ||
status: Optional[StatusType] = JStruct[StatusType] | ||
items: List[ItemType] = JList[ItemType] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"status": { | ||
"title": "ok", | ||
"statusCode": 200, | ||
"instance": "string", | ||
"detail": "The Webservice call ran successfully." | ||
}, | ||
"items": [ | ||
{ | ||
"shipmentNo": 340434310428091700, | ||
"sstatus": { | ||
"title": "OK", | ||
"status": 200 | ||
}, | ||
"label": { | ||
"url": "https://api-dev.dhl.com/parcel/de/shipping/v1-feature-order-endpoint/labels?token=x5xzrHE7ctmqPqk33k%2BKkBwbvIfYP4elMQsBFM%2BJOdiT2bmoaXXzris%2Ftz9jBtdVFLY5cCENit0Jnd9aXuxoNEXhP9PQ8tAVdPeXD26RZ6JZqF5NCJlrihrAv1%2FAOzuDPqWJLRVaRq461BpT4bcbzChAAHVg%2FHUaQAkeIkaZ8NqfcxWEQzK1AYJWczpy6sv6", | ||
"format": "PDF" | ||
} | ||
} | ||
] | ||
} |