From 862706e2c1aeca3655736b1c024676ab85208239 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 72c29e70..6e4c0bc5 100644 --- a/ereuse_devicehub/resources/action/models.py +++ b/ereuse_devicehub/resources/action/models.py @@ -1423,6 +1423,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 42780ef0..77bd26ab 100644 --- a/ereuse_devicehub/resources/action/models.pyi +++ b/ereuse_devicehub/resources/action/models.pyi @@ -525,6 +525,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 c61abc5b..cd9e821a 100644 --- a/ereuse_devicehub/resources/action/schemas.py +++ b/ereuse_devicehub/resources/action/schemas.py @@ -433,6 +433,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)