Method: giftcardobject.update
Belirtilen nesne kimliğinin referans verdiği hediye kartı nesnesini günceller.
HTTP isteği
PUT 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ıdır. Bu kimlik, bir verenin tüm nesneleri genelinde 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, 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: 2025-03-13 UTC.
[null,null,["Son güncelleme tarihi: 2025-03-13 UTC."],[[["Updates a specific gift card object using its unique identifier."],["Requires a `PUT` request to the specified URL with the updated gift card object data in the request body."],["The URL includes a path parameter `resourceId` representing the gift card object's unique identifier."],["A successful request returns the updated gift card object in the response body."],["Requires authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` scope."]]],["This describes how to update a gift card object using a PUT request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/giftCardObject/{resourceId}`. The `resourceId` in the URL's path is a unique identifier consisting of an issuer ID and a user-chosen identifier. The request body requires a `GiftCardObject` instance. Upon successful execution, the response body will also return a `GiftCardObject`. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]