diff --git a/README.md b/README.md index ecee3ff..3bd3c82 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ This library has been tested with python 3.7 and above, functionality for older ## Main repo: - https://git.tontontux.fr/mduval/pyGeoride ## Github repo: - - https://github.com/ptimatth/pyGeoride + - https://github.com/ptimatth/georide-api ## Todo - [ ] Add support of "Get a shared trip" endpoint diff --git a/georideapilib/objects.py b/georideapilib/objects.py index f7292bb..e5c9aaa 100644 --- a/georideapilib/objects.py +++ b/georideapilib/objects.py @@ -833,8 +833,8 @@ class GeoRideTrackerBeacon: class GeoRideSubscription: """ Account object representation """ - def __init__(self, subscription_id, subscription_type, initialDate, nextPaymentDate, - status, pausedSince, cancelRequested, price, firstName, lastName, cardInformation): + def __init__(self, subscription_id, subscription_type, initial_date, next_payment_date, + status, paused_since, cancel_requested, price, first_name, last_name, card_information): self._subscription_id = subscription_id self._subscription_type = subscription_type self._initial_date = initial_date @@ -845,6 +845,7 @@ class GeoRideSubscription: self._price = price self._first_name = first_name self._last_name = last_name + self._card_information = card_information @property def subscription_id(self): @@ -896,6 +897,11 @@ class GeoRideSubscription: """last_name property""" return self._last_name + @property + def card_information(self): + """card_information property""" + return self._card_information + @classmethod def from_json(cls, json): """return new object from_json""" diff --git a/logging.conf b/logging.conf index 8fcfa2a..9e28e4c 100644 --- a/logging.conf +++ b/logging.conf @@ -23,7 +23,6 @@ handlers=consoleHandler qualname=engineio.client propagate=0 - [handler_consoleHandler] class=StreamHandler level=DEBUG diff --git a/setup.py b/setup.py index 3b5b4ff..4a00773 100644 --- a/setup.py +++ b/setup.py @@ -19,13 +19,13 @@ CURRENT_DIR = os.path.dirname(__file__) setup( name='georideapilib', packages=['georideapilib'], # this must be the same as the name above - version='0.7.0', + version='0.7.1', description='Lib to control GeoRide tracker devices with theire rest api', author='Matthieu DUVAL', author_email='georideapilib@duval-dev.fr', # use the URL to the github repo url='https://github.com/hacf/georide-api', - download_url='https://codeload.github.com/hacf/georide-api/tar.gz/0.7.0', + download_url='https://codeload.github.com/hacf/georide-api/tar.gz/0.7.1', keywords=['rest', 'georide', 'api', 'grutier', 'GeoRide'], # arbitrary keywords classifiers=[], install_requires=["python-socketio[client]==4.6.1"],