Reference#
API Functions#
Most tasks are done by import and using the sole api
module:
from edutap.wallet_google import api
To tell the API functions what kind of item to deal with, the first parameter is the registered name of the model (except for save_link
).
Models can be the different top-level wallet-classes or -objects, but also issuers, permissions and such (see section models below).
|
Creates a Google Wallet items. |
|
Reads a Google Wallet Class or Object. |
|
Updates a Google Wallet Class or Object. |
|
Disables a Google Wallet Class or Object. |
|
Sends a message to a Google Wallet Class or Object. |
|
Lists wallet related resources. |
|
Creates a link to save a Google Wallet Object to the wallet on the device. |
Models#
Top Level Models#
Generic
edutap.wallet_google.models.generic
see: https://developers.google.com/wallet/generic/rest/v1/genericclass |
|
see: https://developers.google.com/wallet/generic/rest/v1/genericobject |
Retail
edutap.wallet_google.models.retail
Ticket and Transit
edutap.wallet_google.models.tickets_and_transit
see: https://developers.google.com/wallet/tickets/events/rest/v1/eventticketobject |
Issuer
edutap.wallet_google.models.issuer
JWT
edutap.wallet_google.models.jwt
Data-Types#
Retail
edutap.wallet_google.models.retail
Ticket and Transit
edutap.wallet_google.models.tickets_and_transit
Primitives
edutap.wallet_google.models.primitives
Primitives: Enumerations
edutap.wallet_google.models.primitives.enums
Primitives: Barcode
edutap.wallet_google.models.primitives.barcode
Primitives: Class Template Info
edutap.wallet_google.models.primitives.class_template_info
Primitives: Data
edutap.wallet_google.models.primitives.data
Primitives: Datetime
edutap.wallet_google.models.primitives.datetime
Primitives: Localized String
edutap.wallet_google.models.primitives.localized_string
see: https://developers.google.com/wallet/generic/rest/v1/LocalizedString#translatedstring |
|
see: https://developers.google.com/wallet/generic/rest/v1/LocalizedString |
Primitives: Location
edutap.wallet_google.models.primitives.location
see: https://developers.google.com/wallet/retail/loyalty-cards/rest/v1/LatLongPoint |
|
see: https://developers.google.com/wallet/tickets/events/rest/v1/eventticketclass#eventvenue |
Primitives: Money
edutap.wallet_google.models.primitives.money
see: https://developers.google.com/wallet/tickets/events/rest/v1/Money |
Primitives: Notification
edutap.wallet_google.models.primitives.notification
Primitives: Retail
edutap.wallet_google.models.primitives.retail
see: https://developers.google.com/wallet/retail/loyalty-cards/rest/v1/loyaltyclass#discoverableprogram |
Primitives: Reviews
edutap.wallet_google.models.primitives.review
see: https://developers.google.com/wallet/retail/loyalty-cards/rest/v1/Review |
Primitives: Smarttap
edutap.wallet_google.models.primitives.smarttap
Other#
Base Model Classes
edutap.wallet_google.modelbase
Base model for all Google Wallet models. |
|
Base model for Google Wallet models with an identifier. |
|
Base model for all Google Wallet Class models. |
|
Base model for all Google Wallet Object models. |
|
Model for all Google Wallet Object references. |
Model Registry
edutap.wallet_google.registry
|
Registers a Pydantic model based on GoogleWalletModel in a registry. |
|
Returns the model with the given name. |
|
Returns the model with the given plural name. |
|
Returns the metadata of the model with the given name. |
|
Verifies that the given operation is allowed for the given registered name. |
Session
edutap.wallet_google.session
Manages the session to the Google Wallet API and provides helper methods. |
|
|
Record the HTTP requests and responses to a file. |