Method: giftcardobject.update
Memperbarui objek kartu voucher yang dirujuk oleh ID objek yang diberikan.
Permintaan HTTP
PUT https://walletobjects.googleapis.com/walletobjects/v1/giftCardObject/{resourceId}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
resourceId |
string
ID unik untuk objek. ID ini harus unik di semua objek dari penerbit. Nilai ini harus mengikuti format issuer ID.identifier file yang pertama diterbitkan oleh Google dan versi kedua dipilih oleh Anda. ID unik hanya boleh berisi karakter alfanumerik, '.', '_', atau '-'.
|
Isi permintaan
Isi permintaan memuat instance GiftCardObject
.
Isi respons
Jika berhasil, isi respons akan berisi instance GiftCardObject
.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut ini:
https://www.googleapis.com/auth/wallet_object.issuer
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-03-13 UTC.
[null,null,["Terakhir diperbarui pada 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"]]