Method: offerclass.patch
تعديل فئة العرض التي يشير إليها معرّف الفئة المحدّد تتيح هذه الطريقة دلالات التصحيح.
طلب HTTP
PATCH https://walletobjects.googleapis.com/walletobjects/v1/offerClass/{resourceId}
يستخدِم عنوان URL بنية تحويل ترميز gRPC.
مَعلمات المسار
المعلمات |
resourceId |
string
المعرّف الفريد لأحد الصفوف ويجب أن يكون هذا المعرّف فريدًا في جميع الفئات من جهة الإصدار. يجب أن تكون هذه القيمة بالتنسيق issuer ID.identifier حيث تُصدر Google المعرّف الأول ويمكنك اختيار المعرّف الثاني. يجب أن يتضمّن المعرّف الفريد أحرفًا أبجدية رقمية فقط أو النقطة أو الشرطة السفلية أو الشرطة المائلة.
|
نص الطلب
يحتوي نص الطلب على مثال OfferClass
.
نص الاستجابة
إذا كانت الاستجابة ناجحة، يحتوي نص الاستجابة على مثال OfferClass
.
نطاقات الأذونات
يجب توفير نطاق OAuth التالي:
https://www.googleapis.com/auth/wallet_object.issuer
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-11-07 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-11-07 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Updates an existing offer class using patch semantics, allowing for partial modifications."],["The offer class is uniquely identified by a resource ID in the format `issuer ID.identifier`."],["The request body should contain the updated offer class details in the OfferClass format."],["Successful responses will return the updated OfferClass object."],["Requires the `wallet_object.issuer` OAuth scope for authorization."]]],["The core content describes how to update an offer class using a PATCH request. The HTTP request uses the URL `PATCH https://walletobjects.googleapis.com/walletobjects/v1/offerClass/{resourceId}`, where `resourceId` is a unique string identifier. The request body contains an `OfferClass` instance, and a successful response returns an updated `OfferClass` instance. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope. The `resourceId` parameter is unique across classes and follow the formating of `issuerID.identifier`.\n"]]