Method: offerobject.patch
Belirtilen nesne kimliğinin referansta bulunduğu teklif nesnesini günceller. Bu yöntem, yama semantiklerini destekler.
HTTP isteği
PATCH https://walletobjects.googleapis.com/walletobjects/v1/offerObject/{resourceId}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
resourceId |
string
Bir nesnenin benzersiz tanımlayıcısı. Bu kimlik, bir kartı veren kuruluşa ait tüm nesneler arası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çermelidir.
|
İstek içeriği
İstek metni, OfferObject
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılıysa yanıt metni, OfferObject
öğ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 object using patch semantics, allowing for partial modifications."],["The request must target a specific offer object using its unique resource ID in the URL path."],["The request body should contain the desired changes to the offer object, adhering to the OfferObject schema."],["Upon successful execution, the response provides the updated OfferObject."],["Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` scope."]]],["The core action is updating an offer object using a PATCH request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/offerObject/{resourceId}`. The `resourceId` parameter in the URL identifies the target object. The request body contains an `OfferObject` instance, and a successful response returns another `OfferObject` instance. This method requires OAuth authorization with the scope `https://www.googleapis.com/auth/wallet_object.issuer`. The object ID must be unique and follow the format \u003cvar translate=\"no\"\u003eissuer ID\u003c/var\u003e.\u003cvar translate=\"no\"\u003eidentifier\u003c/var\u003e.\n"]]