Method: loyaltyclass.insert
یک کلاس وفاداری با شناسه و ویژگی های داده شده درج می کند.
درخواست HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass
URL از دستور GRPC Transcoding استفاده می کند.
درخواست بدن
بدنه درخواست شامل یک نمونه از LoyaltyClass
است.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی نمونه جدیدی از LoyaltyClass
است.
محدوده مجوز
به محدوده OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/wallet_object.issuer
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-10-26 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-10-26 بهوقت ساعت هماهنگ جهانی."],[[["Inserts a new loyalty class with the specified ID and properties using an HTTP POST request."],["The request body must contain a LoyaltyClass object with the desired properties for the new loyalty class."],["If successful, the API returns the newly created LoyaltyClass object in the response body."],["Requires authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` scope to access and modify loyalty class information."]]],["A `POST` request is made to `https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass` to insert a loyalty class, using gRPC Transcoding. The request body must include a `LoyaltyClass` instance. Upon success, the response body will contain the newly created `LoyaltyClass`. The operation requires OAuth scope authorization: `https://www.googleapis.com/auth/wallet_object.issuer`.\n"]]