Method: giftcardclass.patch
Aktualizuje klasę karty podarunkowej, do której odnosi się podany identyfikator klasy. Ta metoda obsługuje semantykę poprawki.
Żądanie HTTP
PATCH https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
resourceId |
string
Unikalny identyfikator klasy. Ten identyfikator musi być unikalny wśród wszystkich klas wydawcy. Ta wartość powinna mieć format issuer ID.identifier, gdzie pierwszy identyfikator jest wystawiany przez Google, a drugi jest wybierany przez Ciebie. Unikalny identyfikator powinien zawierać tylko znaki alfanumeryczne oraz znaki „.”, „_” lub „-”.
|
Treść żądania
Treść żądania zawiera wystąpienie elementu GiftCardClass
.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu GiftCardClass
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/wallet_object.issuer
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-11-04 UTC.
[null,null,["Ostatnia aktualizacja: 2024-11-04 UTC."],[[["Updates the gift card class identified by the provided class ID, using patch semantics for partial updates."],["The request should be a `PATCH` request to the specified URL, including the class ID as a path parameter."],["The request body must contain a `GiftCardClass` object representing the updates to be applied."],["A successful response will return the updated `GiftCardClass` object."],["Requires `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope."]]],["The core action is updating a gift card class using a `PATCH` request to the specified URL: `https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}`. The `resourceId` path parameter uniquely identifies the class. The request body includes a `GiftCardClass` instance, while a successful response also returns a `GiftCardClass` instance. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope. The `resourceId` must be unique and follow a defined format.\n"]]