Method: offerclass.patch
Aktualisiert die Angebotsklasse, auf die durch die angegebene Klassen-ID verwiesen wird. Diese Methode unterstützt die Patch-Semantik.
HTTP-Anfrage
PATCH https://walletobjects.googleapis.com/walletobjects/v1/offerClass/{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, „.“ (Punkt), „_“ (Unterstrich) oder „-“ (Bindestriche) enthalten.
|
Anfragetext
Der Anfragetext enthält eine Instanz von OfferClass
.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von OfferClass
.
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)."],[[["Updates an existing offer class using patch semantics, allowing for partial modifications."],["The offer class is uniquely identified by a resource ID in the format `issuer ID.identifier`."],["The request body should contain the updated offer class details in the OfferClass format."],["Successful responses will return the updated OfferClass object."],["Requires the `wallet_object.issuer` OAuth scope for authorization."]]],["The core content describes how to update an offer class using a PATCH request. The HTTP request uses the URL `PATCH https://walletobjects.googleapis.com/walletobjects/v1/offerClass/{resourceId}`, where `resourceId` is a unique string identifier. The request body contains an `OfferClass` instance, and a successful response returns an updated `OfferClass` instance. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope. The `resourceId` parameter is unique across classes and follow the formating of `issuerID.identifier`.\n"]]