TransitClass class
Constructors
-
TransitClass({ActivationOptions? activationOptions, bool? allowMultipleUsersPerObject, AppLinkData? appLinkData, CallbackOptions? callbackOptions, ClassTemplateInfo? classTemplateInfo, String? countryCode, LocalizedString? customCarriageLabel, LocalizedString? customCoachLabel, LocalizedString? customConcessionCategoryLabel, LocalizedString? customConfirmationCodeLabel, LocalizedString? customDiscountMessageLabel, LocalizedString? customFareClassLabel, LocalizedString? customFareNameLabel, LocalizedString? customOtherRestrictionsLabel, LocalizedString? customPlatformLabel, LocalizedString? customPurchaseFaceValueLabel, LocalizedString? customPurchasePriceLabel, LocalizedString? customPurchaseReceiptNumberLabel, LocalizedString? customRouteRestrictionsDetailsLabel, LocalizedString? customRouteRestrictionsLabel, LocalizedString? customSeatLabel, LocalizedString? customTicketNumberLabel, LocalizedString? customTimeRestrictionsLabel, LocalizedString? customTransitTerminusNameLabel, LocalizedString? customZoneLabel, bool? enableSingleLegItinerary, bool? enableSmartTap, Image? heroImage, String? hexBackgroundColor, Uri? homepageUri, String? id, List<
ImageModuleData> ? imageModulesData, InfoModuleData? infoModuleData, String? issuerName, String? languageOverride, LinksModuleData? linksModuleData, LocalizedString? localizedIssuerName, List<LatLongPoint> ? locations, Image? logo, List<Message> ? messages, String? multipleDevicesAndHoldersAllowedStatus, List<String> ? redemptionIssuers, Review? review, String? reviewStatus, SecurityAnimation? securityAnimation, List<TextModuleData> ? textModulesData, LocalizedString? transitOperatorName, String? transitType, String? version, String? viewUnlockRequirement, Image? watermark, Image? wideLogo, Image? wordMark}) - TransitClass.fromJson(Map json_)
Properties
- activationOptions ↔ ActivationOptions?
-
Activation options for an activatable ticket.
getter/setter pair
- allowMultipleUsersPerObject ↔ bool?
-
Use
multipleDevicesAndHoldersAllowedStatus
instead.getter/setter pair - appLinkData ↔ AppLinkData?
-
Optional app or website link that will be displayed as a button on the
front of the pass.
getter/setter pair
- 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.
getter/setter pair
- classTemplateInfo ↔ ClassTemplateInfo?
-
Template information about how the class should be displayed.
getter/setter pair
- countryCode ↔ String?
-
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.
getter/setter pair
- customCarriageLabel ↔ LocalizedString?
-
A custom label to use for the carriage value
(
transitObject.ticketLeg.carriage
).getter/setter pair - customCoachLabel ↔ LocalizedString?
-
A custom label to use for the coach value
(
transitObject.ticketLeg.ticketSeat.coach
).getter/setter pair - customConcessionCategoryLabel ↔ LocalizedString?
-
A custom label to use for the transit concession category value
(
transitObject.concessionCategory
).getter/setter pair - customConfirmationCodeLabel ↔ LocalizedString?
-
A custom label to use for the confirmation code value
(
transitObject.purchaseDetails.confirmationCode
).getter/setter pair - customDiscountMessageLabel ↔ LocalizedString?
-
A custom label to use for the transit discount message value
(
transitObject.purchaseDetails.ticketCost.discountMessage
).getter/setter pair - customFareClassLabel ↔ LocalizedString?
-
A custom label to use for the fare class value
(
transitObject.ticketLeg.ticketSeat.fareClass
).getter/setter pair - customFareNameLabel ↔ LocalizedString?
-
A custom label to use for the transit fare name value
(
transitObject.ticketLeg.fareName
).getter/setter pair - customOtherRestrictionsLabel ↔ LocalizedString?
-
A custom label to use for the other restrictions value
(
transitObject.ticketRestrictions.otherRestrictions
).getter/setter pair - customPlatformLabel ↔ LocalizedString?
-
A custom label to use for the boarding platform value
(
transitObject.ticketLeg.platform
).getter/setter pair - customPurchaseFaceValueLabel ↔ LocalizedString?
-
A custom label to use for the purchase face value
(
transitObject.purchaseDetails.ticketCost.faceValue
).getter/setter pair - customPurchasePriceLabel ↔ LocalizedString?
-
A custom label to use for the purchase price value
(
transitObject.purchaseDetails.ticketCost.purchasePrice
).getter/setter pair - customPurchaseReceiptNumberLabel ↔ LocalizedString?
-
A custom label to use for the purchase receipt number value
(
transitObject.purchaseDetails.purchaseReceiptNumber
).getter/setter pair - customRouteRestrictionsDetailsLabel ↔ LocalizedString?
-
A custom label to use for the route restrictions details value
(
transitObject.ticketRestrictions.routeRestrictionsDetails
).getter/setter pair - customRouteRestrictionsLabel ↔ LocalizedString?
-
A custom label to use for the route restrictions value
(
transitObject.ticketRestrictions.routeRestrictions
).getter/setter pair - customSeatLabel ↔ LocalizedString?
-
A custom label to use for the seat location value
(
transitObject.ticketLeg.ticketSeat.seat
).getter/setter pair - customTicketNumberLabel ↔ LocalizedString?
-
A custom label to use for the ticket number value
(
transitObject.ticketNumber
).getter/setter pair - customTimeRestrictionsLabel ↔ LocalizedString?
-
A custom label to use for the time restrictions details value
(
transitObject.ticketRestrictions.timeRestrictions
).getter/setter pair - customTransitTerminusNameLabel ↔ LocalizedString?
-
A custom label to use for the transit terminus name value
(
transitObject.ticketLeg.transitTerminusName
).getter/setter pair - customZoneLabel ↔ LocalizedString?
-
A custom label to use for the boarding zone value
(
transitObject.ticketLeg.zone
).getter/setter pair - enableSingleLegItinerary ↔ bool?
-
Controls the display of the single-leg itinerary for this class.
getter/setter pair
- enableSmartTap ↔ bool?
-
Identifies whether this class supports Smart Tap.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- heroImage ↔ Image?
-
Optional banner image displayed on the front of the card.
getter/setter pair
- hexBackgroundColor ↔ String?
-
The background color for the card.
getter/setter pair
- homepageUri ↔ Uri?
-
The URI of your application's home page.
getter/setter pair
- id ↔ String?
-
The unique identifier for a class.
getter/setter pair
-
imageModulesData
↔ List<
ImageModuleData> ? -
Image module data.
getter/setter pair
- infoModuleData ↔ InfoModuleData?
-
Use textModulesData instead.
getter/setter pair
- issuerName ↔ String?
-
The issuer name.
getter/setter pair
- languageOverride ↔ String?
-
If this field is present, transit tickets served to a user's device will
always be in this language.
getter/setter pair
- linksModuleData ↔ LinksModuleData?
-
Links module data.
getter/setter pair
- localizedIssuerName ↔ LocalizedString?
-
Translated strings for the issuer_name.
getter/setter pair
-
locations
↔ List<
LatLongPoint> ? -
Note: This field is currently not supported to trigger geo notifications.
getter/setter pair
- logo ↔ Image?
-
The logo image of the ticket.
getter/setter pair
-
messages
↔ List<
Message> ? -
An array of messages displayed in the app.
getter/setter pair
- multipleDevicesAndHoldersAllowedStatus ↔ String?
-
Identifies whether multiple users and devices will save the same object
referencing this class.
Possible string values are:
getter/setter pair
-
redemptionIssuers
↔ List<
String> ? -
Identifies which redemption issuers can redeem the pass over Smart Tap.
getter/setter pair
- review ↔ Review?
-
The review comments set by the platform when a class is marked
approved
orrejected
.getter/setter pair - reviewStatus ↔ String?
-
The status of the class.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- securityAnimation ↔ SecurityAnimation?
-
Optional information about the security animation.
getter/setter pair
-
textModulesData
↔ List<
TextModuleData> ? -
Text module data.
getter/setter pair
- transitOperatorName ↔ LocalizedString?
-
The name of the transit operator.
getter/setter pair
- transitType ↔ String?
-
The type of transit this class represents, such as "bus".
getter/setter pair
- version ↔ String?
-
Deprecated
getter/setter pair
- viewUnlockRequirement ↔ String?
-
View Unlock Requirement options for the transit ticket.
Possible string values are:
getter/setter pair
- watermark ↔ Image?
-
Watermark image to display on the user's device.
getter/setter pair
- wideLogo ↔ Image?
-
The wide logo of the ticket.
getter/setter pair
- wordMark ↔ Image?
-
Deprecated.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited