google.walletobjects.v1.jwt 套件

索引

JwtService

Insert

rpc Insert(JwtInsertRequest) returns (JwtInsertResponse)

在 JWT 中插入資源。

授權範圍

需要下列 OAuth 範圍:

  • https://www.googleapis.com/auth/wallet_object.issuer

JwtInsertRequest

欄位
resource

JwtResource

要求的內容。

JwtInsertResponse

欄位
save_uri

string

URI,開啟此 URI 之後,使用者即可將 JWT 中識別的物件儲存至 Google 帳戶。

resources

Resources

與 JWT 中提供之類別 ID 和物件 ID 相對應的資料。這些資源只會包含非空白陣列 (也就是說,如果 JWT 僅包含 eventTicketObjects,那麼資源中只會出現這個欄位)。

JwtResource

欄位
jwt

string

用來表示 JWT 的字串,格式說明請見下方網站:https://developers.google.com/pay/passes/reference/s2w-reference#google-pay-api-for-passes-jwt

資源

欄位
event_ticket_classes[]

EventTicketClass

event_ticket_objects[]

EventTicketObject

flight_classes[]

FlightClass

flight_objects[]

FlightObject

gift_card_classes[]

GiftCardClass

gift_card_objects[]

GiftCardObject

loyalty_classes[]

LoyaltyClass

loyalty_objects[]

LoyaltyObject

offer_classes[]

OfferClass

offer_objects[]

OfferObject

transit_classes[]

TransitClass

transit_objects[]

TransitObject