Method: offerclass.update
Belirtilen sınıf kimliğinin referans verdiği teklif sınıfını günceller.
HTTP isteği
PUT https://walletobjects.googleapis.com/walletobjects/v1/offerClass/{resourceId}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
resourceId |
string
Bir sınıfın benzersiz tanımlayıcısıdır. Bu kimlik, kartı veren kuruluşun tüm sınıflarında benzersiz olmalıdır. Bu değer issuer ID biçiminde olmalıdır.identifier: İlk sertifika Google tarafından verilir, ikincisini siz seçersiniz. Benzersiz tanımlayıcınız yalnızca alfanümerik karakterler, '.', '_' veya '-' içermelidir.
|
İstek içeriği
İstek metni, OfferClass
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılıysa yanıt metni, OfferClass
öğesinin bir örneğini içerir.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/wallet_object.issuer
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-03-13 UTC.
[null,null,["Son güncelleme tarihi: 2025-03-13 UTC."],[[["Updates an existing offer class identified by a unique class ID."],["The request must be a PUT request sent to the specified URL with the offer class ID."],["The request body should contain the updated OfferClass object."],["A successful response will return the updated OfferClass object."],["Authorization requires the `wallet_object.issuer` scope."]]],["This describes how to update an offer class using a `PUT` request to the specified URL, which includes a class ID as a path parameter (`resourceId`). The request body must contain an `OfferClass` instance. The response body also returns an `OfferClass` instance upon successful completion. This action requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope for the update operation. The resource ID must be a string that follows the specified formatting.\n"]]