Method: loyaltyclass.update
Aktualisiert die Treuepunkteklasse, auf die durch die angegebene Klassen-ID verwiesen wird.
HTTP-Anfrage
PUT https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass/{resourceId}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
resourceId |
string
Die eindeutige Kennung für einen Kurs. Diese ID muss für alle Klassen eines Ausstellers eindeutig sein. Dieser Wert sollte das Format issuer ID haben.identifier, wobei von Google ausgegeben und von dir ausgewählt wird. Die eindeutige Kennung darf nur alphanumerische Zeichen sowie „.“, „_“ oder „-“ enthalten.
|
Anfragetext
Der Anfragetext enthält eine Instanz von LoyaltyClass
.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von LoyaltyClass
.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/wallet_object.issuer
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-11-07 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-11-07 (UTC)."],[[["This document explains how to update a loyalty class using the Google Wallet API."],["You'll need to use a `PUT` request to the specified endpoint with the class ID."],["The request body should contain a `LoyaltyClass` object with the updated information."],["A successful response will return the updated `LoyaltyClass` object."],["You need the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."]]],["The core action is updating a loyalty class using its unique `resourceId`. This is done via a `PUT` HTTP request to the specified URL. The `resourceId`, a string, is defined as a path parameter and follows a specific format. The request body must contain a `LoyaltyClass` instance, and a successful response will also contain a `LoyaltyClass` instance. Authorization requires the `wallet_object.issuer` OAuth scope. The provided url follows the grpc syntax for transcoding.\n"]]