From b649bf7ac481f9c144db9295171ae3ce8ea4e8e0 Mon Sep 17 00:00:00 2001 From: JNadeu Date: Sat, 21 Dec 2019 16:41:23 +0100 Subject: [PATCH] Adds new action TransferOwnership --- ereuse_devicehub/resources/action/models.py | 3 +++ ereuse_devicehub/resources/action/models.pyi | 4 ++++ ereuse_devicehub/resources/action/schemas.py | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/ereuse_devicehub/resources/action/models.py b/ereuse_devicehub/resources/action/models.py index b0bc435f..cd28a9d5 100644 --- a/ereuse_devicehub/resources/action/models.py +++ b/ereuse_devicehub/resources/action/models.py @@ -1419,6 +1419,9 @@ class DisposeProduct(Trade): # performing :class:`.ToDispose` + :class:`.Receive` to a # ``RecyclingCenter``. +class TransferOwnershipBlockchain(Trade): + """ The act of change owenership of devices between two users (ethereum address)""" + class MakeAvailable(ActionWithMultipleDevices): """The act of setting willingness for trading.""" diff --git a/ereuse_devicehub/resources/action/models.pyi b/ereuse_devicehub/resources/action/models.pyi index 6d9ab5b4..cfcd178a 100644 --- a/ereuse_devicehub/resources/action/models.pyi +++ b/ereuse_devicehub/resources/action/models.pyi @@ -521,6 +521,10 @@ class DisposeProduct(Trade): pass +class TransferOwnershipBlockchain(Trade): + pass + + class Receive(ActionWithMultipleDevices): role = ... # type:Column diff --git a/ereuse_devicehub/resources/action/schemas.py b/ereuse_devicehub/resources/action/schemas.py index 63ed2d3a..081b9ad7 100644 --- a/ereuse_devicehub/resources/action/schemas.py +++ b/ereuse_devicehub/resources/action/schemas.py @@ -425,6 +425,10 @@ class DisposeProduct(Trade): __doc__ = m.DisposeProduct.__doc__ +class TransferOwnershipBlockchain(Trade): + __doc__ = m.TransferOwnershipBlockchain.__doc__ + + class Receive(ActionWithMultipleDevices): __doc__ = m.Receive.__doc__ role = EnumField(ReceiverRole)