Method: giftcardobject.patch
Belirtilen nesne kimliğinin referans verdiği hediye kartı nesnesini günceller. Bu yöntem, yama semantiklerini destekler.
HTTP isteği
PATCH https://walletobjects.googleapis.com/walletobjects/v1/giftCardObject/{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 verenin tüm nesneleri arasında benzersiz olmalıdır. Bu değer issuer ID biçiminde olmalıdır.identifier burada 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, GiftCardObject
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılıysa yanıt metni, GiftCardObject
öğ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 a gift card object with patch semantics using the provided object ID."],["The request body and successful response both contain a `GiftCardObject`."],["The object ID in the path follows a specific format: `\u003cissuer ID\u003e.\u003cidentifier\u003e`."],["Requires `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."]]],["This content describes updating a gift card object using a PATCH request. The target URL is `PATCH https://walletobjects.googleapis.com/walletobjects/v1/giftCardObject/{resourceId}`, where `resourceId` is a unique identifier composed of an issuer ID and a chosen identifier. The request body uses the `GiftCardObject` schema, and successful responses also return a `GiftCardObject` instance. The method requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]