Method: transitclass.update
Aktualizuje klasę biletu, do której odwołuje się podany identyfikator klasy.
Żądanie HTTP
PUT https://walletobjects.googleapis.com/walletobjects/v1/transitClass/{resourceId}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
resourceId |
string
Unikalny identyfikator klasy. Ten identyfikator musi być unikalny wśród wszystkich klas wydawcy. Ta wartość powinna mieć format issuer ID.identifier, gdzie pierwszy identyfikator jest wystawiany przez Google, a drugi jest wybierany przez Ciebie. Unikalny identyfikator powinien zawierać tylko znaki alfanumeryczne oraz znaki „.”, „_” lub „-”.
|
Treść żądania
Treść żądania zawiera wystąpienie elementu TransitClass
.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu TransitClass
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/wallet_object.issuer
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-11-07 UTC.
[null,null,["Ostatnia aktualizacja: 2024-11-07 UTC."],[[["Updates an existing transit class identified by its unique ID."],["The request must include the transit class data in the body and proper authorization."],["The unique identifier for a class follows the format: issuer ID.identifier, where the issuer ID is issued by Google and the identifier is chosen by you.."],["Successful requests will return the updated transit class data in the response body."]]],["The core action is updating a transit class using its unique ID. This is done via a PUT request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/transitClass/{resourceId}`. The `resourceId` is a path parameter with a defined format, comprised of an issuer ID and a user-chosen identifier. The request body must be a `TransitClass` instance, and a successful response will also return a `TransitClass` instance. This action requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]