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. |
|
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#
Base Models#
General Base Models
edutap.wallet_google.models.bases
Base Model for all Google Wallet Models. |
|
Model for Google Wallet models with an identifier. |
|
|
Add an value alias in camelcase to the enum, given the value in snake-case. |
Pass Models#
Pass Base Models and Helpers
edutap.wallet_google.models.passes.bases
References an existing wallet object. |
|
BaseModel for all Google Wallet Class Models. |
|
Base model for all Google Wallet Object models. |
|
Mixin for Google Wallet Classes/Objects that can be styled. |
|
Mixin for Google Wallet Classes/Objects with a common logo. |
Generic
edutap.wallet_google.models.passes.generic
The GenericClass is the implicitly the base class for all other Wallet Class models. |
|
The GenericObject is a specific object and does not act as the base for other wallet objects! |
Retail
edutap.wallet_google.models.passes.retail
Ticket and Transit
edutap.wallet_google.models.passes.tickets_and_transit
Miscellaneous Models#
edutap.wallet_google.models.misc
AddMessageRequest
Issuer
JWT
Data Type Models#
This are models for “Data Types” as Google names them, the sub schemas for nested objects.
data-types: Barcode
edutap.wallet_google.models.datatypes.barcode
data-types: Class Template Info
edutap.wallet_google.models.datatypes.class_template_info
data-types: Data
edutap.wallet_google.models.datatypes.data
data-types: Datetime
edutap.wallet_google.models.datatypes.datetime
see: https://developers.google.com/wallet/tickets/events/rest/v1/DateTime |
|
see: https://developers.google.com/wallet/tickets/events/rest/v1/TimeInterval |
data-types: Enumerations
edutap.wallet_google.models.datatypes.enums
data-types: Event
edutap.wallet_google.models.datatypes.event
see: https://developers.google.com/wallet/reference/rest/v1/eventticketobject#eventseat |
|
see: https://developers.google.com/wallet/reference/rest/v1/eventticketobject#eventreservationinfo |
data-types: General
edutap.wallet_google.models.datatypes.general
data-types: Localized String
edutap.wallet_google.models.datatypes.localized_string
see: https://developers.google.com/wallet/generic/rest/v1/LocalizedString#translatedstring |
|
see: https://developers.google.com/wallet/generic/rest/v1/LocalizedString |
data-types: Location
edutap.wallet_google.models.datatypes.location
data-types: Loyalty
edutap.wallet_google.models.datatypes.loyalty
data-types: Message
edutap.wallet_google.models.datatypes.message
data-types: Money
edutap.wallet_google.models.datatypes.money
data-types: Notification
edutap.wallet_google.models.datatypes.notification
data-types: Retail
edutap.wallet_google.models.datatypes.retail
see: https://developers.google.com/wallet/retail/loyalty-cards/rest/v1/loyaltyclass#discoverableprogram |
data-types: Reviews
edutap.wallet_google.models.datatypes.review
data-types: Smarttap
edutap.wallet_google.models.datatypes.smarttap
Modules#
Model Registry
edutap.wallet_google.registry
|
Registers a Pydantic model based on Model 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. |
Returns the registry metadata by a given instance of a model |
|
|
Returns the registry metadata by a given model type |
|
Verifies that the given operation is allowed for the given registered name. |
TypedDict for the metadata of a registered model. |
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. |