Unsubscribe from package when a license is declined (cloud flow)

CURA-6984
This commit is contained in:
Nino van Hooff 2020-01-17 11:10:29 +01:00
parent 0e5654e44b
commit 4e8534b93b
3 changed files with 14 additions and 2 deletions

View file

@ -16,3 +16,8 @@ class CloudPackageManager:
data=data.encode(),
scope=self._scope
)
def unsubscribe(self, package_id: str) -> None:
url = CloudApiModel.userPackageUrl(package_id)
self._request_manager.delete(url=url, scope=self._scope)