Method: giftcardclass.update
Aktualisiert die Geschenkkartenklasse, auf die durch die angegebene Klassen-ID verwiesen wird.
HTTP-Anfrage
PUT https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
resourceId |
string
Die eindeutige Kennung einer Klasse. Diese ID muss für alle Klassen eines Ausstellers eindeutig sein. Dieser Wert muss 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 GiftCardClass
.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von GiftCardClass
.
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-04 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-11-04 (UTC)."],[[["Updates the gift card class identified by a unique class ID."],["Uses a PUT HTTP request to `https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}` to update the class."],["Requires a request body containing an instance of `GiftCardClass` and the class ID as a path parameter."],["On success, returns the updated `GiftCardClass` object in the response body."],["Requires authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` scope."]]],["This describes how to update a gift card class using a PUT request to the specified URL: `https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}`. The `resourceId` in the path must be a unique string identifier with the format `\u003cissuer ID\u003e.\u003cidentifier\u003e`. The request body must contain a `GiftCardClass` instance, and upon successful update, the response body will also contain a `GiftCardClass` instance. This operation requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]