Method: offerclass.update
दिए गए क्लास आईडी से रेफ़र की गई ऑफ़र क्लास को अपडेट करता है.
एचटीटीपी अनुरोध
PUT https://walletobjects.googleapis.com/walletobjects/v1/offerClass/{resourceId}
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
resourceId |
string
क्लास के लिए यूनीक आइडेंटिफ़ायर. यह आईडी, जारी करने वाले के सभी क्लास के लिए यूनीक होना चाहिए. यह वैल्यू issuer ID फ़ॉर्मैट में होनी चाहिए.identifier, जहां पहला कोड Google जारी करता है और दूसरा कोड आप चुनते हैं. आपके यूनीक आइडेंटिफ़ायर में सिर्फ़ अक्षर और अंक, '.', '_' या '-' होने चाहिए.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में OfferClass
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में OfferClass
का एक इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/wallet_object.issuer
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-11-07 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-11-07 (UTC) को अपडेट किया गया."],[[["Updates an existing offer class identified by a unique class ID."],["The request must be a PUT request sent to the specified URL with the offer class ID."],["The request body should contain the updated OfferClass object."],["A successful response will return the updated OfferClass object."],["Authorization requires the `wallet_object.issuer` scope."]]],["This describes how to update an offer class using a `PUT` request to the specified URL, which includes a class ID as a path parameter (`resourceId`). The request body must contain an `OfferClass` instance. The response body also returns an `OfferClass` instance upon successful completion. This action requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope for the update operation. The resource ID must be a string that follows the specified formatting.\n"]]