| Package | Description |
|---|---|
| com.google.api.services.walletobjects | |
| com.google.api.services.walletobjects.model |
| Modifier and Type | Method and Description |
|---|---|
Walletobjects.Transitclass.Insert |
Walletobjects.Transitclass.insert(TransitClass content)
Inserts a transit class with the given ID and properties.
|
Walletobjects.Transitclass.Patch |
Walletobjects.Transitclass.patch(String resourceId,
TransitClass content)
Updates the transit class referenced by the given class ID.
|
Walletobjects.Transitclass.Update |
Walletobjects.Transitclass.update(String resourceId,
TransitClass content)
Updates the transit class referenced by the given class ID.
|
| Constructor and Description |
|---|
Insert(TransitClass content)
Inserts a transit class with the given ID and properties.
|
Patch(String resourceId,
TransitClass content)
Updates the transit class referenced by the given class ID.
|
Update(String resourceId,
TransitClass content)
Updates the transit class referenced by the given class ID.
|
| Modifier and Type | Method and Description |
|---|---|
TransitClass |
TransitClass.clone() |
TransitClass |
TransitObject.getClassReference()
A copy of the inherited fields of the parent class.
|
TransitClass |
TransitClassAddMessageResponse.getResource()
The updated TransitClass resource.
|
TransitClass |
TransitClass.set(String fieldName,
Object value) |
TransitClass |
TransitClass.setActivationOptions(ActivationOptions activationOptions)
Activation options for an activatable ticket.
|
TransitClass |
TransitClass.setAllowMultipleUsersPerObject(Boolean allowMultipleUsersPerObject)
Deprecated.
|
TransitClass |
TransitClass.setAppLinkData(AppLinkData appLinkData)
Optional app or website link that will be displayed as a button on the front of the pass.
|
TransitClass |
TransitClass.setCallbackOptions(CallbackOptions callbackOptions)
Callback options to be used to call the issuer back for every save/delete of an object for this
class by the end-user.
|
TransitClass |
TransitClass.setClassTemplateInfo(ClassTemplateInfo classTemplateInfo)
Template information about how the class should be displayed.
|
TransitClass |
TransitClass.setCountryCode(String countryCode)
Country code used to display the card's country (when the user is not in that country), as well
as to display localized content when content is not available in the user's locale.
|
TransitClass |
TransitClass.setCustomCarriageLabel(LocalizedString customCarriageLabel)
A custom label to use for the carriage value (`transitObject.ticketLeg.carriage`).
|
TransitClass |
TransitClass.setCustomCoachLabel(LocalizedString customCoachLabel)
A custom label to use for the coach value (`transitObject.ticketLeg.ticketSeat.coach`).
|
TransitClass |
TransitClass.setCustomConcessionCategoryLabel(LocalizedString customConcessionCategoryLabel)
A custom label to use for the transit concession category value
(`transitObject.concessionCategory`).
|
TransitClass |
TransitClass.setCustomConfirmationCodeLabel(LocalizedString customConfirmationCodeLabel)
A custom label to use for the confirmation code value
(`transitObject.purchaseDetails.confirmationCode`).
|
TransitClass |
TransitClass.setCustomDiscountMessageLabel(LocalizedString customDiscountMessageLabel)
A custom label to use for the transit discount message value
(`transitObject.purchaseDetails.ticketCost.discountMessage`).
|
TransitClass |
TransitClass.setCustomFareClassLabel(LocalizedString customFareClassLabel)
A custom label to use for the fare class value
(`transitObject.ticketLeg.ticketSeat.fareClass`).
|
TransitClass |
TransitClass.setCustomFareNameLabel(LocalizedString customFareNameLabel)
A custom label to use for the transit fare name value (`transitObject.ticketLeg.fareName`).
|
TransitClass |
TransitClass.setCustomOtherRestrictionsLabel(LocalizedString customOtherRestrictionsLabel)
A custom label to use for the other restrictions value
(`transitObject.ticketRestrictions.otherRestrictions`).
|
TransitClass |
TransitClass.setCustomPlatformLabel(LocalizedString customPlatformLabel)
A custom label to use for the boarding platform value (`transitObject.ticketLeg.platform`).
|
TransitClass |
TransitClass.setCustomPurchaseFaceValueLabel(LocalizedString customPurchaseFaceValueLabel)
A custom label to use for the purchase face value
(`transitObject.purchaseDetails.ticketCost.faceValue`).
|
TransitClass |
TransitClass.setCustomPurchasePriceLabel(LocalizedString customPurchasePriceLabel)
A custom label to use for the purchase price value
(`transitObject.purchaseDetails.ticketCost.purchasePrice`).
|
TransitClass |
TransitClass.setCustomPurchaseReceiptNumberLabel(LocalizedString customPurchaseReceiptNumberLabel)
A custom label to use for the purchase receipt number value
(`transitObject.purchaseDetails.purchaseReceiptNumber`).
|
TransitClass |
TransitClass.setCustomRouteRestrictionsDetailsLabel(LocalizedString customRouteRestrictionsDetailsLabel)
A custom label to use for the route restrictions details value
(`transitObject.ticketRestrictions.routeRestrictionsDetails`).
|
TransitClass |
TransitClass.setCustomRouteRestrictionsLabel(LocalizedString customRouteRestrictionsLabel)
A custom label to use for the route restrictions value
(`transitObject.ticketRestrictions.routeRestrictions`).
|
TransitClass |
TransitClass.setCustomSeatLabel(LocalizedString customSeatLabel)
A custom label to use for the seat location value (`transitObject.ticketLeg.ticketSeat.seat`).
|
TransitClass |
TransitClass.setCustomTicketNumberLabel(LocalizedString customTicketNumberLabel)
A custom label to use for the ticket number value (`transitObject.ticketNumber`).
|
TransitClass |
TransitClass.setCustomTimeRestrictionsLabel(LocalizedString customTimeRestrictionsLabel)
A custom label to use for the time restrictions details value
(`transitObject.ticketRestrictions.timeRestrictions`).
|
TransitClass |
TransitClass.setCustomTransitTerminusNameLabel(LocalizedString customTransitTerminusNameLabel)
A custom label to use for the transit terminus name value
(`transitObject.ticketLeg.transitTerminusName`).
|
TransitClass |
TransitClass.setCustomZoneLabel(LocalizedString customZoneLabel)
A custom label to use for the boarding zone value (`transitObject.ticketLeg.zone`).
|
TransitClass |
TransitClass.setEnableSingleLegItinerary(Boolean enableSingleLegItinerary)
Controls the display of the single-leg itinerary for this class.
|
TransitClass |
TransitClass.setEnableSmartTap(Boolean enableSmartTap)
Identifies whether this class supports Smart Tap.
|
TransitClass |
TransitClass.setHeroImage(Image heroImage)
Optional banner image displayed on the front of the card.
|
TransitClass |
TransitClass.setHexBackgroundColor(String hexBackgroundColor)
The background color for the card.
|
TransitClass |
TransitClass.setHomepageUri(Uri homepageUri)
The URI of your application's home page.
|
TransitClass |
TransitClass.setId(String id)
Required.
|
TransitClass |
TransitClass.setImageModulesData(List<ImageModuleData> imageModulesData)
Image module data.
|
TransitClass |
TransitClass.setInfoModuleData(InfoModuleData infoModuleData)
Deprecated.
|
TransitClass |
TransitClass.setIssuerName(String issuerName)
Required.
|
TransitClass |
TransitClass.setLanguageOverride(String languageOverride)
If this field is present, transit tickets served to a user's device will always be in this
language.
|
TransitClass |
TransitClass.setLinksModuleData(LinksModuleData linksModuleData)
Links module data.
|
TransitClass |
TransitClass.setLocalizedIssuerName(LocalizedString localizedIssuerName)
Translated strings for the issuer_name.
|
TransitClass |
TransitClass.setLocations(List<LatLongPoint> locations)
Note: This field is currently not supported to trigger geo notifications.
|
TransitClass |
TransitClass.setLogo(Image logo)
Required.
|
TransitClass |
TransitClass.setMerchantLocations(List<MerchantLocation> merchantLocations)
Merchant locations.
|
TransitClass |
TransitClass.setMessages(List<Message> messages)
An array of messages displayed in the app.
|
TransitClass |
TransitClass.setMultipleDevicesAndHoldersAllowedStatus(String multipleDevicesAndHoldersAllowedStatus)
Identifies whether multiple users and devices will save the same object referencing this class.
|
TransitClass |
TransitClass.setNotifyPreference(String notifyPreference)
Whether or not field updates to this class should trigger notifications.
|
TransitClass |
TransitClass.setRedemptionIssuers(List<Long> redemptionIssuers)
Identifies which redemption issuers can redeem the pass over Smart Tap.
|
TransitClass |
TransitClass.setReview(Review review)
The review comments set by the platform when a class is marked `approved` or `rejected`.
|
TransitClass |
TransitClass.setReviewStatus(String reviewStatus)
Required.
|
TransitClass |
TransitClass.setSecurityAnimation(SecurityAnimation securityAnimation)
Optional information about the security animation.
|
TransitClass |
TransitClass.setTextModulesData(List<TextModuleData> textModulesData)
Text module data.
|
TransitClass |
TransitClass.setTransitOperatorName(LocalizedString transitOperatorName)
The name of the transit operator.
|
TransitClass |
TransitClass.setTransitType(String transitType)
Required.
|
TransitClass |
TransitClass.setValueAddedModuleData(List<ValueAddedModuleData> valueAddedModuleData)
Optional value added module data.
|
TransitClass |
TransitClass.setVersion(Long version)
Deprecated
|
TransitClass |
TransitClass.setViewUnlockRequirement(String viewUnlockRequirement)
View Unlock Requirement options for the transit ticket.
|
TransitClass |
TransitClass.setWatermark(Image watermark)
Watermark image to display on the user's device.
|
TransitClass |
TransitClass.setWideLogo(Image wideLogo)
The wide logo of the ticket.
|
TransitClass |
TransitClass.setWordMark(Image wordMark)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
List<TransitClass> |
TransitClassListResponse.getResources()
Resources corresponding to the list request.
|
List<TransitClass> |
Resources.getTransitClasses()
A list of transit classes.
|
| Modifier and Type | Method and Description |
|---|---|
TransitObject |
TransitObject.setClassReference(TransitClass classReference)
A copy of the inherited fields of the parent class.
|
TransitClassAddMessageResponse |
TransitClassAddMessageResponse.setResource(TransitClass resource)
The updated TransitClass resource.
|
| Modifier and Type | Method and Description |
|---|---|
TransitClassListResponse |
TransitClassListResponse.setResources(List<TransitClass> resources)
Resources corresponding to the list request.
|
Resources |
Resources.setTransitClasses(List<TransitClass> transitClasses)
A list of transit classes.
|
Copyright © 2011–2025 Google. All rights reserved.