Method: giftcardclass.patch
کلاس کارت هدیه را که توسط شناسه کلاس مشخص شده ارجاع داده شده به روز می کند. این روش از معنای پچ پشتیبانی می کند.
درخواست HTTP
PATCH https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
مولفه های |
---|
resourceId | string شناسه منحصر به فرد برای یک کلاس. این شناسه باید در همه کلاسها از یک صادرکننده منحصربهفرد باشد. این مقدار باید از issuer ID قالب پیروی کند. identifier جایی که اولی توسط Google صادر می شود و دومی توسط شما انتخاب می شود. شناسه منحصر به فرد شما باید فقط شامل کاراکترهای الفبایی، '.'، '_' یا '-' باشد. |
درخواست بدن
بدنه درخواست شامل یک نمونه از GiftCardClass
است.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی نمونه ای از GiftCardClass
است.
محدوده مجوز
به محدوده OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/wallet_object.issuer
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-03-13 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-03-13 بهوقت ساعت هماهنگ جهانی."],[[["Updates the gift card class identified by the provided class ID, using patch semantics for partial updates."],["The request should be a `PATCH` request to the specified URL, including the class ID as a path parameter."],["The request body must contain a `GiftCardClass` object representing the updates to be applied."],["A successful response will return the updated `GiftCardClass` object."],["Requires `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope."]]],["The core action is updating a gift card class using a `PATCH` request to the specified URL: `https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}`. The `resourceId` path parameter uniquely identifies the class. The request body includes a `GiftCardClass` instance, while a successful response also returns a `GiftCardClass` instance. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope. The `resourceId` must be unique and follow a defined format.\n"]]