ovchipcardlib package¶
Submodules¶
ovchipcardlib.helpers module¶
Helper Modules
-
class
ovchipcardlib.helpers.
Card
(service_instance, data)[source]¶ Bases:
object
Model of the card object
-
alias
¶
-
auto_reloading
¶
-
balance
¶
-
balance_datetime
¶
-
default
¶
-
expiry_datetime
¶
-
get_latest_transactions
()[source]¶ Gets the latest transactions
Returns transactions happening after the last time this was called and clears itself upon conclusion. Can be used to monitor the live transactions on the card.
Returns: A list of transaction objects.
-
number
¶
-
status
¶
-
status_announcement
¶
-
transactions
¶ Presents the transactions of the card
Returns: A list of transaction objects.
-
type
¶
-
ovchipcardlib.ovchipcardlib module¶
Main module file
Service class implemented here
-
class
ovchipcardlib.ovchipcardlib.
Service
(username, password)[source]¶ Bases:
object
Object representing the ov chip card service.
Can authenticate with the appropriate credentials and retrieves cards from the remote service.
The authorization token
Returns: The string of the authentication token Return type: auth_token (str)
ovchipcardlib.ovchipcardlibexceptions module¶
Exceptions module
-
exception
ovchipcardlib.ovchipcardlibexceptions.
BrokenResponse
[source]¶ Bases:
exceptions.Exception
Server did not respond as expected