Method: loyaltyclass.patch
עדכון של קטגוריית המועדון שמופיעה במזהה הקטגוריה שצוין. השיטה הזו תומכת בסמינטיקה של תיקונים.
בקשת HTTP
PATCH 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)."],[[["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"]]