Method: giftcardclass.update
لتعديل فئة بطاقة الهدايا المُشار إليها من خلال معرّف الصف المحدّد.
طلب HTTP
PUT https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}
يستخدم عنوان URL بنية تحويل الترميز gRPC.
معلمات المسار
المَعلمات |
resourceId |
string
المعرّف الفريد لفئة معيّنة. ويجب أن يكون رقم التعريف هذا فريدًا في كل الفئات التي تسجّلها جهة الإصدار. يجب أن تتبع هذه القيمة التنسيق issuer ID.identifier حيث تُصدر Google القيمة الأولى وتختار أنت الرقم الثاني. يجب أن يتضمن المعرّف الفريد أحرفًا أبجدية رقمية أو "." أو "_" أو "-".
|
نص الطلب
يحتوي نص الطلب على مثال GiftCardClass
.
نص الاستجابة
إذا كانت الاستجابة ناجحة، يحتوي نص الاستجابة على مثال GiftCardClass
.
نطاقات التفويض
يجب توفير نطاق OAuth التالي:
https://www.googleapis.com/auth/wallet_object.issuer
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-03-13 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-03-13 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Updates the gift card class identified by a unique class ID."],["Uses a PUT HTTP request to `https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}` to update the class."],["Requires a request body containing an instance of `GiftCardClass` and the class ID as a path parameter."],["On success, returns the updated `GiftCardClass` 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 class using a PUT request to the specified URL: `https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}`. The `resourceId` in the path must be a unique string identifier with the format `\u003cissuer ID\u003e.\u003cidentifier\u003e`. The request body must contain a `GiftCardClass` instance, and upon successful update, the response body will also contain a `GiftCardClass` instance. This operation requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]