Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5823012259 | |||
| a62ae48001 |
@@ -27,7 +27,7 @@ This library has been tested with python 3.7 and above, functionality for older
|
|||||||
## Main repo:
|
## Main repo:
|
||||||
- https://git.tontontux.fr/mduval/pyGeoride
|
- https://git.tontontux.fr/mduval/pyGeoride
|
||||||
## Github repo:
|
## Github repo:
|
||||||
- https://github.com/ptimatth/pyGeoride
|
- https://github.com/ptimatth/georide-api
|
||||||
|
|
||||||
## Todo
|
## Todo
|
||||||
- [ ] Add support of "Get a shared trip" endpoint
|
- [ ] Add support of "Get a shared trip" endpoint
|
||||||
|
|||||||
@@ -833,8 +833,8 @@ class GeoRideTrackerBeacon:
|
|||||||
|
|
||||||
class GeoRideSubscription:
|
class GeoRideSubscription:
|
||||||
""" Account object representation """
|
""" Account object representation """
|
||||||
def __init__(self, subscription_id, subscription_type, initialDate, nextPaymentDate,
|
def __init__(self, subscription_id, subscription_type, initial_date, next_payment_date,
|
||||||
status, pausedSince, cancelRequested, price, firstName, lastName, cardInformation):
|
status, paused_since, cancel_requested, price, first_name, last_name, card_information):
|
||||||
self._subscription_id = subscription_id
|
self._subscription_id = subscription_id
|
||||||
self._subscription_type = subscription_type
|
self._subscription_type = subscription_type
|
||||||
self._initial_date = initial_date
|
self._initial_date = initial_date
|
||||||
@@ -845,6 +845,7 @@ class GeoRideSubscription:
|
|||||||
self._price = price
|
self._price = price
|
||||||
self._first_name = first_name
|
self._first_name = first_name
|
||||||
self._last_name = last_name
|
self._last_name = last_name
|
||||||
|
self._card_information = card_information
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def subscription_id(self):
|
def subscription_id(self):
|
||||||
@@ -896,6 +897,11 @@ class GeoRideSubscription:
|
|||||||
"""last_name property"""
|
"""last_name property"""
|
||||||
return self._last_name
|
return self._last_name
|
||||||
|
|
||||||
|
@property
|
||||||
|
def card_information(self):
|
||||||
|
"""card_information property"""
|
||||||
|
return self._card_information
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_json(cls, json):
|
def from_json(cls, json):
|
||||||
"""return new object from_json"""
|
"""return new object from_json"""
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ handlers=consoleHandler
|
|||||||
qualname=engineio.client
|
qualname=engineio.client
|
||||||
propagate=0
|
propagate=0
|
||||||
|
|
||||||
|
|
||||||
[handler_consoleHandler]
|
[handler_consoleHandler]
|
||||||
class=StreamHandler
|
class=StreamHandler
|
||||||
level=DEBUG
|
level=DEBUG
|
||||||
|
|||||||
4
setup.py
4
setup.py
@@ -19,13 +19,13 @@ CURRENT_DIR = os.path.dirname(__file__)
|
|||||||
setup(
|
setup(
|
||||||
name='georideapilib',
|
name='georideapilib',
|
||||||
packages=['georideapilib'], # this must be the same as the name above
|
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',
|
description='Lib to control GeoRide tracker devices with theire rest api',
|
||||||
author='Matthieu DUVAL',
|
author='Matthieu DUVAL',
|
||||||
author_email='georideapilib@duval-dev.fr',
|
author_email='georideapilib@duval-dev.fr',
|
||||||
# use the URL to the github repo
|
# use the URL to the github repo
|
||||||
url='https://github.com/hacf/georide-api',
|
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
|
keywords=['rest', 'georide', 'api', 'grutier', 'GeoRide'], # arbitrary keywords
|
||||||
classifiers=[],
|
classifiers=[],
|
||||||
install_requires=["python-socketio[client]==4.6.1"],
|
install_requires=["python-socketio[client]==4.6.1"],
|
||||||
|
|||||||
Reference in New Issue
Block a user