Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
1,215 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
class SubscriptionInfo(object): | ||
|
||
def __init__(self, raw_data): | ||
self._raw_data = raw_data | ||
|
||
@property | ||
def id(self): | ||
return self._raw_data.get('id') | ||
|
||
@property | ||
def estimated_delivery_days(self): | ||
return self._raw_data.get('estimated_delivery_days') | ||
|
||
@property | ||
def subscription_list_price(self): | ||
return self._raw_data.get('subscription_list_price') | ||
|
||
@property | ||
def tos(self): | ||
return self._raw_data.get('tos') | ||
|
||
@property | ||
def tos_link(self): | ||
return self._raw_data.get('tos_link') | ||
|
||
@property | ||
def licenses(self): | ||
return self._raw_data.get('licenses') | ||
|
||
@property | ||
def licenses_link(self): | ||
return self._raw_data.get('licenses_link') | ||
|
||
@property | ||
def rights(self): | ||
return self._raw_data.get('rights') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
class Subscriptions(object): | ||
|
||
def __init__(self, datasets, geographies): | ||
self._subscriptions_datasetes = datasets | ||
self._subscriptions_geographies = geographies | ||
|
||
@property | ||
def datasets(self): | ||
return self._subscriptions_datasetes | ||
|
||
@property | ||
def geographies(self): | ||
return self._subscriptions_geographies |
Oops, something went wrong.