Method: loyaltyclass.patch
Memperbarui class loyalitas yang dirujuk oleh ID class yang diberikan. Metode ini mendukung semantik patch.
Permintaan HTTP
PATCH https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass/{resourceId}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
resourceId |
string
ID unik untuk kelas. ID ini harus unik di semua class dari penerbit. Nilai ini harus mengikuti format issuer ID.identifier dengan yang pertama diterbitkan oleh Google dan yang kedua dipilih oleh Anda. ID unik Anda hanya boleh menyertakan karakter alfanumerik, '.', '_', atau '-'.
|
Isi permintaan
Isi permintaan memuat instance LoyaltyClass
.
Isi respons
Jika berhasil, isi respons memuat instance LoyaltyClass
.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut:
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 2024-11-07 UTC.
[null,null,["Terakhir diperbarui pada 2024-11-07 UTC."],[[["Updates an existing loyalty class using patch semantics, allowing for partial modifications."],["Requires a unique loyalty class ID in the request URL following a specific format."],["The request body should contain the updated LoyaltyClass object details."],["A successful response will return the updated LoyaltyClass object."],["Requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."]]],["The content details updating a loyalty class via a `PATCH` request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass/{resourceId}`. The `resourceId` path parameter uniquely identifies the class, following the format `issuer ID.identifier`. The request body must be an instance of `LoyaltyClass`, and upon success, the response body will also contain a `LoyaltyClass` instance. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]