Method: giftcardobject.patch
עדכון של אובייקט כרטיס המתנה שמשויך למזהה האובייקט הנתון. השיטה הזו תומכת בסמינטיקה של תיקונים.
בקשת HTTP
PATCH https://walletobjects.googleapis.com/walletobjects/v1/giftCardObject/{resourceId}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
resourceId |
string
המזהה הייחודי של האובייקט. המזהה הזה חייב להיות ייחודי בכל האובייקטים של מנפיק. הערך צריך להיות בפורמט issuer ID.identifier, כאשר המזהה הראשון מונפק על ידי Google והשני נבחר על ידכם. המזהה הייחודי יכול לכלול רק תווים אלפאנומריים, '.', '_' או '-'.
|
גוף הבקשה
גוף הבקשה מכיל מופע של GiftCardObject
.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכלול מופע של GiftCardObject
.
היקפי הרשאה
נדרש היקף הרשאות 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 a gift card object with patch semantics using the provided object ID."],["The request body and successful response both contain a `GiftCardObject`."],["The object ID in the path follows a specific format: `\u003cissuer ID\u003e.\u003cidentifier\u003e`."],["Requires `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."]]],["This content describes updating a gift card object using a PATCH request. The target URL is `PATCH https://walletobjects.googleapis.com/walletobjects/v1/giftCardObject/{resourceId}`, where `resourceId` is a unique identifier composed of an issuer ID and a chosen identifier. The request body uses the `GiftCardObject` schema, and successful responses also return a `GiftCardObject` instance. The method requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]