Method: giftcardobject.update
עדכון של אובייקט כרטיס המתנה שמשויך למזהה האובייקט הנתון.
בקשת HTTP
PUT 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 specific gift card object using its unique identifier."],["Requires a `PUT` request to the specified URL with the updated gift card object data in the request body."],["The URL includes a path parameter `resourceId` representing the gift card object's unique identifier."],["A successful request returns the updated gift card object in the response body."],["Requires authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` scope."]]],["This describes how to update a gift card object using a PUT request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/giftCardObject/{resourceId}`. The `resourceId` in the URL's path is a unique identifier consisting of an issuer ID and a user-chosen identifier. The request body requires a `GiftCardObject` instance. Upon successful execution, the response body will also return a `GiftCardObject`. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]