REST Resource: accounts.notificationsubscriptions
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
منبع: NotificationSubscription
نشان دهنده یک اشتراک اعلان متعلق به یک حساب تجاری است.
نمایندگی JSON |
---|
{
"name": string,
"registeredEvent": enum (NotificationEventType ),
"callBackUri": string,
// Union field interested_in can be only one of the following:
"allManagedAccounts": boolean,
"targetAccount": string
// End of list of possible types for union field interested_in .
} |
فیلدها |
---|
name | string فقط خروجی name پیکربندی اعلان. ایجاد شده توسط Content API پس از ایجاد یک NotificationSubscription جدید. این account نشان دهنده شناسه تجاری تاجری است که پیکربندی را در اختیار دارد. قالب: accounts/{account}/notificationsubscriptions/{notificationSubscription} |
registered Event | enum ( NotificationEventType ) رویدادی که تاجر میخواهد از آن مطلع شود. |
call Back Uri | string URL مورد استفاده برای ارسال اعلان به تاجر. |
زمینه اتحادیه interested_in . interested_in فقط می تواند یکی از موارد زیر باشد: |
all Managed Accounts | boolean اگر این مقدار درست باشد، حساب درخواستکننده از رویداد مشخص شده برای همه حسابهای مدیریتشده (میتواند حسابهای فرعی یا سایر حسابهای مرتبط باشد) از جمله حسابهای جدید اضافه شده به صورت روزانه مطلع میشود. |
target Account | string name حسابی که می خواهید برای آن اعلان دریافت کنید. قالب: accounts/{account} |
NotificationEventType
نشان دهنده نوع رویدادی است که تاجر علاقه مند به دریافت اعلان برای آن است.
Enums |
---|
NOTIFICATION_EVENT_TYPE_UNSPECIFIED | نوع رویداد اعلانها مشخص نشده است. |
PRODUCT_STATUS_CHANGE | اعلان وضعیت محصول تغییر می کند، برای مثال زمانی که محصول رد می شود. |
روش ها |
---|
| یک اشتراک اعلان برای یک کسب و کار ایجاد می کند. |
| اشتراک اعلان یک تاجر را حذف می کند. |
| اشتراک اعلان برای یک حساب دریافت می کند. |
| همه اشتراک های اعلان یک تاجر را دریافت می کند. |
| اشتراک اعلان موجود برای یک تاجر را به روز می کند. |
،
منبع: NotificationSubscription
نشان دهنده یک اشتراک اعلان متعلق به یک حساب تجاری است.
نمایندگی JSON |
---|
{
"name": string,
"registeredEvent": enum (NotificationEventType ),
"callBackUri": string,
// Union field interested_in can be only one of the following:
"allManagedAccounts": boolean,
"targetAccount": string
// End of list of possible types for union field interested_in .
} |
فیلدها |
---|
name | string فقط خروجی name پیکربندی اعلان. ایجاد شده توسط Content API پس از ایجاد یک NotificationSubscription جدید. این account نشان دهنده شناسه تجاری تاجری است که پیکربندی را در اختیار دارد. قالب: accounts/{account}/notificationsubscriptions/{notificationSubscription} |
registered Event | enum ( NotificationEventType ) رویدادی که تاجر میخواهد از آن مطلع شود. |
call Back Uri | string URL مورد استفاده برای ارسال اعلان به تاجر. |
رشته اتحادیه interested_in . interested_in فقط می تواند یکی از موارد زیر باشد: |
all Managed Accounts | boolean اگر این مقدار درست باشد، حساب درخواستکننده از رویداد مشخص شده برای همه حسابهای مدیریتشده (میتواند حسابهای فرعی یا سایر حسابهای مرتبط باشد) از جمله حسابهای جدید اضافه شده به صورت روزانه مطلع میشود. |
target Account | string name حسابی که می خواهید برای آن اعلان دریافت کنید. قالب: accounts/{account} |
NotificationEventType
نشان دهنده نوع رویدادی است که تاجر علاقه مند به دریافت اعلان برای آن است.
Enums |
---|
NOTIFICATION_EVENT_TYPE_UNSPECIFIED | نوع رویداد اعلانها مشخص نشده است. |
PRODUCT_STATUS_CHANGE | اعلان وضعیت محصول تغییر می کند، برای مثال زمانی که محصول رد می شود. |
روش ها |
---|
| یک اشتراک اعلان برای یک کسب و کار ایجاد می کند. |
| اشتراک اعلان یک تاجر را حذف می کند. |
| اشتراک اعلان برای یک حساب دریافت می کند. |
| همه اشتراک های اعلان یک تاجر را دریافت می کند. |
| اشتراک اعلان موجود برای یک تاجر را به روز می کند. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-11-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-11-25 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eNotificationSubscription enables merchants to receive notifications about specific events related to their account.\u003c/p\u003e\n"],["\u003cp\u003eMerchants can configure which events trigger notifications, such as product status changes, and provide a callback URL to receive them.\u003c/p\u003e\n"],["\u003cp\u003eThe API offers methods to create, delete, retrieve, and update notification subscriptions.\u003c/p\u003e\n"],["\u003cp\u003eIt allows merchants to receive notifications for events occurring on all managed accounts or a specific target account.\u003c/p\u003e\n"]]],["Merchants can create `NotificationSubscription` resources to receive updates about specific events. Each subscription includes a `name`, a `registeredEvent` (e.g., `PRODUCT_STATUS_CHANGE`), and a `callBackUri` for notification delivery. Merchants can specify if they want to receive events regarding `allManagedAccounts` or a `targetAccount`. Available methods include `create`, `delete`, `get`, `list`, and `patch` for managing these subscriptions. Notification event type can be `PRODUCT_STATUS_CHANGE` or `NOTIFICATION_EVENT_TYPE_UNSPECIFIED`.\n"],null,["# REST Resource: accounts.notificationsubscriptions\n\n- [Resource: NotificationSubscription](#NotificationSubscription)\n - [JSON representation](#NotificationSubscription.SCHEMA_REPRESENTATION)\n- [NotificationEventType](#NotificationEventType)\n- [Methods](#METHODS_SUMMARY)\n\nResource: NotificationSubscription\n----------------------------------\n\nRepresents a notification subscription owned by a Merchant account.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"registeredEvent\": enum (/merchant/api/reference/rest/notifications_v1beta/accounts.notificationsubscriptions#NotificationEventType), \"callBackUri\": string, // Union field `interested_in` can be only one of the following: \"allManagedAccounts\": boolean, \"targetAccount\": string // End of list of possible types for union field `interested_in`. } ``` |\n\n| Fields ||\n|----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. The `name` of the notification configuration. Generated by the Content API upon creation of a new `NotificationSubscription`. The `account` represents the merchant ID of the merchant that owns the configuration. Format: `accounts/{account}/notificationsubscriptions/{notificationSubscription}` |\n| `registeredEvent` | `enum (`[NotificationEventType](/merchant/api/reference/rest/notifications_v1beta/accounts.notificationsubscriptions#NotificationEventType)`)` The event that the merchant wants to be notified about. |\n| `callBackUri` | `string` URL to be used to push the notification to the merchant. |\n| Union field `interested_in`. `interested_in` can be only one of the following: ||\n| `allManagedAccounts` | `boolean` If this value is true, the requesting account is notified of the specified event for all managed accounts (can be subaccounts or other linked accounts) including newly added accounts on a daily basis. |\n| `targetAccount` | `string` The `name` of the account you want to receive notifications for. Format: `accounts/{account}` |\n\nNotificationEventType\n---------------------\n\nRepresents the event type that the merchant is interested in receiving notifications for.\n\n| Enums ||\n|---------------------------------------|---------------------------------------------------------------------------------------|\n| `NOTIFICATION_EVENT_TYPE_UNSPECIFIED` | Notifications event type is unspecified. |\n| `PRODUCT_STATUS_CHANGE` | Notification of product status changes, for example when product becomes disapproved. |\n\n| Methods ------- ||\n|-----------------------------------------------------------------------------------------------------------|---------------------------------------------------------------|\n| ### [create](/merchant/api/reference/rest/notifications_v1beta/accounts.notificationsubscriptions/create) | Creates a notification subscription for a business. |\n| ### [delete](/merchant/api/reference/rest/notifications_v1beta/accounts.notificationsubscriptions/delete) | Deletes a notification subscription for a merchant. |\n| ### [get](/merchant/api/reference/rest/notifications_v1beta/accounts.notificationsubscriptions/get) | Gets notification subscriptions for an account. |\n| ### [list](/merchant/api/reference/rest/notifications_v1beta/accounts.notificationsubscriptions/list) | Gets all the notification subscriptions for a merchant. |\n| ### [patch](/merchant/api/reference/rest/notifications_v1beta/accounts.notificationsubscriptions/patch) | Updates an existing notification subscription for a merchant. |"]]