From 769fb5cce3ed56dfc4b51b37e689d6c9a95c5851 Mon Sep 17 00:00:00 2001 From: emmdim Date: Mon, 23 Dec 2019 13:31:54 +0100 Subject: [PATCH] Adds Transferred event --- ereuse_devicehub/resources/action/__init__.py | 4 ++++ ereuse_devicehub/resources/action/models.py | 4 ++++ ereuse_devicehub/resources/action/models.pyi | 3 +++ ereuse_devicehub/resources/action/schemas.py | 6 ++++++ 4 files changed, 17 insertions(+) diff --git a/ereuse_devicehub/resources/action/__init__.py b/ereuse_devicehub/resources/action/__init__.py index 0a940e5c..d6ef08cc 100644 --- a/ereuse_devicehub/resources/action/__init__.py +++ b/ereuse_devicehub/resources/action/__init__.py @@ -266,3 +266,7 @@ class MigrateToDef(ActionDef): class MigrateFromDef(ActionDef): VIEW = None SCHEMA = schemas.MigrateFrom + +class TransferredDef(ActionDef): + VIEW = None + SCHEMA = schemas.Transferred \ No newline at end of file diff --git a/ereuse_devicehub/resources/action/models.py b/ereuse_devicehub/resources/action/models.py index 6e4c0bc5..8c04d708 100644 --- a/ereuse_devicehub/resources/action/models.py +++ b/ereuse_devicehub/resources/action/models.py @@ -1550,3 +1550,7 @@ def update_parent(target: Union[EraseBasic, Test, Install], device: Device, _, _ class InvalidRangeForPrice(ValueError): pass + +class Transferred(ActionWithMultipleDevices): + """Transferred through blockchain.""" + pass \ No newline at end of file diff --git a/ereuse_devicehub/resources/action/models.pyi b/ereuse_devicehub/resources/action/models.pyi index 77bd26ab..61010fc8 100644 --- a/ereuse_devicehub/resources/action/models.pyi +++ b/ereuse_devicehub/resources/action/models.pyi @@ -551,3 +551,6 @@ class MigrateTo(Migrate): class MigrateFrom(Migrate): pass + +class Transferred(ActionWithMultipleDevices): + pass diff --git a/ereuse_devicehub/resources/action/schemas.py b/ereuse_devicehub/resources/action/schemas.py index cd9e821a..bb23f7b2 100644 --- a/ereuse_devicehub/resources/action/schemas.py +++ b/ereuse_devicehub/resources/action/schemas.py @@ -453,3 +453,9 @@ class MigrateTo(Migrate): class MigrateFrom(Migrate): __doc__ = m.MigrateFrom.__doc__ + + +class Transferred(ActionWithMultipleDevices): + __doc__ = m.Transferred.__doc__ + +