From 81618a9e1b724dbaa6ce35ef260608404963cdd5 Mon Sep 17 00:00:00 2001 From: emmdim Date: Tue, 10 Mar 2020 15:51:16 +0100 Subject: [PATCH] Adds transfer_state in deliveryNote init --- ereuse_devicehub/resources/deliverynote/models.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ereuse_devicehub/resources/deliverynote/models.py b/ereuse_devicehub/resources/deliverynote/models.py index d135bdad..7396977e 100644 --- a/ereuse_devicehub/resources/deliverynote/models.py +++ b/ereuse_devicehub/resources/deliverynote/models.py @@ -56,13 +56,15 @@ class Deliverynote(Thing): def __init__(self, document_id: str, deposit: str, date, supplier_email: str, - expected_devices: str) -> None: + expected_devices: str, + transfer_state: TransferState) -> None: """Initializes a delivery note """ super().__init__(id=uuid.uuid4(), document_id=document_id, deposit=deposit, date=date, supplier_email=supplier_email, - expected_devices=expected_devices) + expected_devices=expected_devices, + transfer_state=transfer_state) @property def type(self) -> str: