Fix subscription info for Georide

develop
Matthieu DUVAL 2 years ago
parent e6e471deae
commit a62ae48001

@ -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

@ -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"""

@ -23,7 +23,6 @@ handlers=consoleHandler
qualname=engineio.client
propagate=0
[handler_consoleHandler]
class=StreamHandler
level=DEBUG

@ -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"],

Loading…
Cancel
Save