Method: loyaltyclass.update
עדכון של קטגוריית המועדון שמופיעה במזהה הקטגוריה שצוין.
בקשת HTTP
PUT https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass/{resourceId}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
resourceId |
string
המזהה הייחודי של הכיתה. המזהה הזה חייב להיות ייחודי בכל הכיתות של מנפיק. הערך צריך להיות בפורמט issuer ID.identifier כאשר הראשון הונפק על ידי Google והאחרון נבחר על ידך. המזהה הייחודי צריך לכלול רק תווים אלפאנומריים, נקודה (.), קו תחתון (_) או מקף (-).
|
גוף הבקשה
גוף הבקשה מכיל מופע של LoyaltyClass
.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של LoyaltyClass
.
היקפי הרשאה
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/wallet_object.issuer
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-11-07 (שעון UTC).
[null,null,["עדכון אחרון: 2024-11-07 (שעון UTC)."],[[["This document explains how to update a loyalty class using the Google Wallet API."],["You'll need to use a `PUT` request to the specified endpoint with the class ID."],["The request body should contain a `LoyaltyClass` object with the updated information."],["A successful response will return the updated `LoyaltyClass` object."],["You need the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."]]],["The core action is updating a loyalty class using its unique `resourceId`. This is done via a `PUT` HTTP request to the specified URL. The `resourceId`, a string, is defined as a path parameter and follows a specific format. The request body must contain a `LoyaltyClass` instance, and a successful response will also contain a `LoyaltyClass` instance. Authorization requires the `wallet_object.issuer` OAuth scope. The provided url follows the grpc syntax for transcoding.\n"]]