Debian Codegraph @

docs/dyn/merchantapi_notifications_v1.accounts.notificationsubscriptions.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="merchantapi_notifications_v1.html">Merchant API</a> . <a href="merchantapi_notifications_v1.accounts.html">accounts</a> . <a href="merchantapi_notifications_v1.accounts.notificationsubscriptions.html">notificationsubscriptions</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a notification subscription for a business. For standalone or subaccounts accounts, the business can create a subscription for self. For advanced accounts, the business can create a subscription for all managed accounts or for a specific subaccount. See [Decode notifications](/merchant/api/guides/accounts/notifications#decode_notifications) for information on how to decode the notification payload and how to interpret its contents. We will allow the following types of notification subscriptions to exist together (per business as a subscriber per event type): 1. Subscription for all managed accounts + subscription for self. 2. Multiple "partial" subscriptions for managed accounts + subscription for self. we will not allow (per business as a subscriber per event type): 1. Multiple self subscriptions. 2. Multiple "all managed accounts" subscriptions. 3. "All managed accounts" subscription and partial subscriptions at the same time. 4. Multiple partial subscriptions for the same target account.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a notification subscription for a merchant.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets notification subscriptions for an account.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Gets all the notification subscriptions for a merchant.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates an existing notification subscription for a merchant.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
106 <pre>Creates a notification subscription for a business. For standalone or subaccounts accounts, the business can create a subscription for self. For advanced accounts, the business can create a subscription for all managed accounts or for a specific subaccount. See [Decode notifications](/merchant/api/guides/accounts/notifications#decode_notifications) for information on how to decode the notification payload and how to interpret its contents. We will allow the following types of notification subscriptions to exist together (per business as a subscriber per event type): 1. Subscription for all managed accounts + subscription for self. 2. Multiple &quot;partial&quot; subscriptions for managed accounts + subscription for self. we will not allow (per business as a subscriber per event type): 1. Multiple self subscriptions. 2. Multiple &quot;all managed accounts&quot; subscriptions. 3. &quot;All managed accounts&quot; subscription and partial subscriptions at the same time. 4. Multiple partial subscriptions for the same target account.
107
108 Args:
109 parent: string, Required. The merchant account that owns the new notification subscription. Format: `accounts/{account}` (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # Represents a notification subscription owned by a Merchant account. See [Decode notifications](/merchant/api/guides/accounts/notifications#decode_notifications) for information on how to decode the notification payload and how to interpret its contents.
114 &quot;allManagedAccounts&quot;: True or False, # 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.
115 &quot;callBackUri&quot;: &quot;A String&quot;, # URL to be used to push the notification to the merchant.
116 &quot;name&quot;: &quot;A String&quot;, # 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/{notification_subscription}`
117 &quot;registeredEvent&quot;: &quot;A String&quot;, # The event that the merchant wants to be notified about.
118 &quot;targetAccount&quot;: &quot;A String&quot;, # The `name` of the account you want to receive notifications for. Format: `accounts/{account}`
119 }
120
121 x__xgafv: string, V1 error format.
122 Allowed values
123 1 - v1 error format
124 2 - v2 error format
125
126 Returns:
127 An object of the form:
128
129 { # Represents a notification subscription owned by a Merchant account. See [Decode notifications](/merchant/api/guides/accounts/notifications#decode_notifications) for information on how to decode the notification payload and how to interpret its contents.
130 &quot;allManagedAccounts&quot;: True or False, # 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.
131 &quot;callBackUri&quot;: &quot;A String&quot;, # URL to be used to push the notification to the merchant.
132 &quot;name&quot;: &quot;A String&quot;, # 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/{notification_subscription}`
133 &quot;registeredEvent&quot;: &quot;A String&quot;, # The event that the merchant wants to be notified about.
134 &quot;targetAccount&quot;: &quot;A String&quot;, # The `name` of the account you want to receive notifications for. Format: `accounts/{account}`
135 }</pre>
136 </div>
137
138 <div class="method">
139 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
140 <pre>Deletes a notification subscription for a merchant.
141
142 Args:
143 name: string, Required. The name of the notification subscription to be deleted. (required)
144 x__xgafv: string, V1 error format.
145 Allowed values
146 1 - v1 error format
147 2 - v2 error format
148
149 Returns:
150 An object of the form:
151
152 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
153 }</pre>
154 </div>
155
156 <div class="method">
157 <code class="details" id="get">get(name, x__xgafv=None)</code>
158 <pre>Gets notification subscriptions for an account.
159
160 Args:
161 name: string, Required. The `name` of the notification subscription. (required)
162 x__xgafv: string, V1 error format.
163 Allowed values
164 1 - v1 error format
165 2 - v2 error format
166
167 Returns:
168 An object of the form:
169
170 { # Represents a notification subscription owned by a Merchant account. See [Decode notifications](/merchant/api/guides/accounts/notifications#decode_notifications) for information on how to decode the notification payload and how to interpret its contents.
171 &quot;allManagedAccounts&quot;: True or False, # 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.
172 &quot;callBackUri&quot;: &quot;A String&quot;, # URL to be used to push the notification to the merchant.
173 &quot;name&quot;: &quot;A String&quot;, # 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/{notification_subscription}`
174 &quot;registeredEvent&quot;: &quot;A String&quot;, # The event that the merchant wants to be notified about.
175 &quot;targetAccount&quot;: &quot;A String&quot;, # The `name` of the account you want to receive notifications for. Format: `accounts/{account}`
176 }</pre>
177 </div>
178
179 <div class="method">
180 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
181 <pre>Gets all the notification subscriptions for a merchant.
182
183 Args:
184 parent: string, Required. The merchant account who owns the notification subscriptions. Format: `accounts/{account}` (required)
185 pageSize: integer, The maximum number of notification subscriptions to return in a page. The default value for `page_size` is 100. The maximum value is `200`. Values above `200` will be coerced to `200`.
186 pageToken: string, Token (if provided) to retrieve the subsequent page. All other parameters must match the original call that provided the page token.
187 x__xgafv: string, V1 error format.
188 Allowed values
189 1 - v1 error format
190 2 - v2 error format
191
192 Returns:
193 An object of the form:
194
195 { # Response message for the ListNotificationSubscription method.
196 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
197 &quot;notificationSubscriptions&quot;: [ # The list of notification subscriptions requested by the merchant.
198 { # Represents a notification subscription owned by a Merchant account. See [Decode notifications](/merchant/api/guides/accounts/notifications#decode_notifications) for information on how to decode the notification payload and how to interpret its contents.
199 &quot;allManagedAccounts&quot;: True or False, # 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.
200 &quot;callBackUri&quot;: &quot;A String&quot;, # URL to be used to push the notification to the merchant.
201 &quot;name&quot;: &quot;A String&quot;, # 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/{notification_subscription}`
202 &quot;registeredEvent&quot;: &quot;A String&quot;, # The event that the merchant wants to be notified about.
203 &quot;targetAccount&quot;: &quot;A String&quot;, # The `name` of the account you want to receive notifications for. Format: `accounts/{account}`
204 },
205 ],
206 }</pre>
207 </div>
208
209 <div class="method">
210 <code class="details" id="list_next">list_next()</code>
211 <pre>Retrieves the next page of results.
212
213 Args:
214 previous_request: The request for the previous page. (required)
215 previous_response: The response from the request for the previous page. (required)
216
217 Returns:
218 A request object that you can call &#x27;execute()&#x27; on to request the next
219 page. Returns None if there are no more items in the collection.
220 </pre>
221 </div>
222
223 <div class="method">
224 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
225 <pre>Updates an existing notification subscription for a merchant.
226
227 Args:
228 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/{notification_subscription}` (required)
229 body: object, The request body.
230 The object takes the form of:
231
232 { # Represents a notification subscription owned by a Merchant account. See [Decode notifications](/merchant/api/guides/accounts/notifications#decode_notifications) for information on how to decode the notification payload and how to interpret its contents.
233 &quot;allManagedAccounts&quot;: True or False, # 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.
234 &quot;callBackUri&quot;: &quot;A String&quot;, # URL to be used to push the notification to the merchant.
235 &quot;name&quot;: &quot;A String&quot;, # 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/{notification_subscription}`
236 &quot;registeredEvent&quot;: &quot;A String&quot;, # The event that the merchant wants to be notified about.
237 &quot;targetAccount&quot;: &quot;A String&quot;, # The `name` of the account you want to receive notifications for. Format: `accounts/{account}`
238 }
239
240 updateMask: string, List of fields being updated.
241 x__xgafv: string, V1 error format.
242 Allowed values
243 1 - v1 error format
244 2 - v2 error format
245
246 Returns:
247 An object of the form:
248
249 { # Represents a notification subscription owned by a Merchant account. See [Decode notifications](/merchant/api/guides/accounts/notifications#decode_notifications) for information on how to decode the notification payload and how to interpret its contents.
250 &quot;allManagedAccounts&quot;: True or False, # 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.
251 &quot;callBackUri&quot;: &quot;A String&quot;, # URL to be used to push the notification to the merchant.
252 &quot;name&quot;: &quot;A String&quot;, # 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/{notification_subscription}`
253 &quot;registeredEvent&quot;: &quot;A String&quot;, # The event that the merchant wants to be notified about.
254 &quot;targetAccount&quot;: &quot;A String&quot;, # The `name` of the account you want to receive notifications for. Format: `accounts/{account}`
255 }</pre>
256 </div>
257
258 </body></html>