Method: offerclass.patch
Belirtilen sınıf kimliği tarafından referans verilen teklif sınıfını günceller. Bu yöntem, yama semantiklerini destekler.
HTTP isteği
PATCH 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, bir verenin tüm sınıflarında benzersiz olmalıdır. Bu değer issuer ID biçiminde olmalıdır.identifier. Bunlardan ilki Google tarafından verilir, ikincisi ise sizin tarafınızdan seçilir. Benzersiz tanımlayıcınız yalnızca alfanümerik karakterler, ".", "_" veya "-" işaretlerini 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: 2024-11-07 UTC.
[null,null,["Son güncelleme tarihi: 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"]]