重要概念和術語
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
票證核發者
票證核發機構是擁有票證的實體,負責將票證核發給乘客。這可以是您、開發人員或您代表的機構。
如要成為票證核發機構,您必須先註冊為核發機構。
登機證類別
FlightClass
可視為已排定的航班。而核發機構可以建立多個排定的航班,這些航班會有路線和時間的排列組合。為滿足機場專屬需求,代表預定航班的每個 FlightClass
都可包含專屬的外觀和資料欄位。
此外,FlightClass
也能用來啟用其他功能,例如智慧感應功能。
登機證物件
登機證物件是登機證類別的執行個體。您必須為使用登機證發行的每位乘客建立新的 FlightObject
執行個體。
票證類別
登機證類別是一種票證類別。票證類別會說明相關票證物件的一般資訊 (例如樣式和外觀),但不包括乘客詳細資料。
其他類型的票證類別包括:
- 會員卡
- 活動票券
- 禮物卡
- 優惠
- 大眾運輸票證
- COVID 健康證明
傳遞物件
FlightObject
是一種傳遞物件。與 FlightObject
類似,票證物件是對應票證類別的例項。您必須為持有登機證的每位乘客建立票證物件。
Pass 物件含有乘客相關資訊。舉例來說,這些資訊可以用來識別乘客是否只有某段航班,還能找出已分配的航班座位。
服務帳戶
服務帳戶是呼叫 Google Wallet API 的身分,您必須將 Google Wallet API 存取權授予這個服務帳戶。
服務帳戶金鑰
服務帳戶金鑰是用來以服務帳戶的形式驗證應用程式的憑證。服務帳戶金鑰的機密性極高
因此不得不對外公開如果第三方有權存取服務帳戶金鑰,就可以將自己視為服務帳戶,並執行該服務帳戶允許執行的操作。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-29 (世界標準時間)。
[null,null,["上次更新時間:2025-08-29 (世界標準時間)。"],[[["\u003cp\u003eBoarding Passes are digital representations of flight tickets, containing passenger and flight-specific information like seat assignments and flight details, issued by registered entities called Issuers.\u003c/p\u003e\n"],["\u003cp\u003eIssuers create Boarding Pass Classes to define the general style, appearance, and data fields for a specific flight or route, like a template for individual Boarding Passes.\u003c/p\u003e\n"],["\u003cp\u003eA new Boarding Pass Object (an instance of a Boarding Pass Class) is generated for each passenger, holding their unique information within the framework of the Boarding Pass Class.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Wallet API integration requires a Service Account, an identity with granted access to the API, and a secure Service Account Key for authentication.\u003c/p\u003e\n"],["\u003cp\u003eBoarding Passes are part of a broader system of digital passes within Google Wallet, encompassing other types such as loyalty cards, event tickets, and gift cards.\u003c/p\u003e\n"]]],["A Pass Issuer, which could be a developer or organization, must register to issue passes. They create `FlightClasses` (scheduled flights) that define appearance and data. For each passenger, a `FlightObject` (instance of the `FlightClass`) is created, containing passenger-specific information. A `Pass Class` defines general pass details, while other pass types include loyalty cards and gift cards. A service account and its key are required for accessing the Google Wallet API. The key must be kept private.\n"],null,["# Key concepts and terminology\n\nPass Issuer\n-----------\n\nThe passes issuer is the entity that owns the pass and is responsible for\nissuing passes to their passengers. This could be you, the developer, or the\norganization that you represent.\n\nIn order to become a passes issuer, you must first register as an Issuer.\n\nBoarding Pass class\n-------------------\n\nA `FlightClass` can be thought of as scheduled flight. An issuer can\ncreate multiple scheduled flights with permutation of routes and timings. Each\n`FlightClass` representing a scheduled flight can contain its own\nappearance and data fields to meet the airport-specific requirements.\n\nIn addition, a `FlightClass` can also be used to enable additional\nfeatures like Smart Tap.\n\nBoarding Pass object\n--------------------\n\nA Boarding Pass object is an instance of a Boarding Pass class. A new\n`FlightObject` instance needs to be created for each passenger that's\ndistributed with a Boarding Pass.\n\nPass Class\n----------\n\nA Boarding Pass class is a type of pass class. Pass classes describe general\ninformation for related pass objects (such as style and appearance), and don't\ninclude passenger details.\n\nOther types of pass classes include the following:\n\n- Loyalty cards\n- Event tickets\n- Gift cards\n- Offers\n- Transit passes\n- COVID cards\n\nPass Object\n-----------\n\nA `FlightObject` is a type of pass object. Like a\n`FlightObject`, a Pass Object is an instance of a corresponding pass\nClass. A pass object needs to be created for each passenger that's issued a\nBoarding Pass.\n\nPass objects contain passenger-specific information. For example, they can be\nused to identify that a passenger not only has a ticket for a flight, but also\nidentify which seat on the flight they've been allotted.\n\nService account\n---------------\n\nThe service account is the identity that's used to call the Google Wallet API.\nPermission to access the Google Wallet API needs to be granted to this service\naccount.\n\nService account key\n-------------------\n\nThe service account key is the credential used to authenticate your\napplication as the service account. The service account key is highly sensitive\nand needs to be kept private. If a third party has access to the service account\nkey, they can identify themselves as the service account and perform actions\nthat the service account is permitted to perform."]]