@googleapis/merchantapi 18.0.0 → 19.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/accounts_v1.ts +54 -83
- package/accounts_v1beta.ts +51 -77
- package/build/accounts_v1.d.ts +15 -3
- package/build/accounts_v1.js.map +1 -1
- package/build/accounts_v1beta.d.ts +15 -3
- package/build/accounts_v1beta.js.map +1 -1
- package/build/conversions_v1.js.map +1 -1
- package/build/conversions_v1beta.js.map +1 -1
- package/build/datasources_v1.d.ts +3 -3
- package/build/datasources_v1.js.map +1 -1
- package/build/datasources_v1beta.d.ts +3 -3
- package/build/datasources_v1beta.js.map +1 -1
- package/build/inventories_v1.d.ts +25 -0
- package/build/inventories_v1.js.map +1 -1
- package/build/inventories_v1beta.js.map +1 -1
- package/build/issueresolution_v1.d.ts +4 -4
- package/build/issueresolution_v1.js.map +1 -1
- package/build/issueresolution_v1beta.d.ts +4 -4
- package/build/issueresolution_v1beta.js.map +1 -1
- package/build/lfp_v1.js.map +1 -1
- package/build/lfp_v1beta.js.map +1 -1
- package/build/notifications_v1.d.ts +4 -4
- package/build/notifications_v1.js.map +1 -1
- package/build/notifications_v1beta.d.ts +4 -4
- package/build/notifications_v1beta.js.map +1 -1
- package/build/products_v1.d.ts +203 -1
- package/build/products_v1.js.map +1 -1
- package/build/products_v1beta.js.map +1 -1
- package/build/promotions_v1.js.map +1 -1
- package/build/promotions_v1beta.js.map +1 -1
- package/build/quota_v1.d.ts +1 -1
- package/build/quota_v1.js.map +1 -1
- package/build/quota_v1beta.d.ts +1 -1
- package/build/quota_v1beta.js.map +1 -1
- package/build/reports_v1.d.ts +6 -6
- package/build/reports_v1beta.d.ts +6 -6
- package/build/reviews_v1beta.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/conversions_v1.ts +1 -2
- package/conversions_v1beta.ts +1 -2
- package/datasources_v1.ts +10 -17
- package/datasources_v1beta.ts +10 -17
- package/inventories_v1.ts +27 -4
- package/inventories_v1beta.ts +2 -4
- package/issueresolution_v1.ts +5 -6
- package/issueresolution_v1beta.ts +5 -6
- package/lfp_v1.ts +5 -10
- package/lfp_v1beta.ts +5 -10
- package/notifications_v1.ts +8 -12
- package/notifications_v1beta.ts +8 -12
- package/package.json +1 -1
- package/products_v1.ts +206 -7
- package/products_v1beta.ts +3 -6
- package/promotions_v1.ts +3 -6
- package/promotions_v1beta.ts +3 -6
- package/quota_v1.ts +3 -5
- package/quota_v1beta.ts +2 -3
- package/reports_v1.ts +6 -6
- package/reports_v1beta.ts +6 -6
- package/reviews_v1beta.ts +3 -6
package/inventories_v1.ts
CHANGED
|
@@ -124,6 +124,23 @@ export namespace merchantapi_inventories_v1 {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
/**
|
|
128
|
+
* A message that represents custom attributes. Exactly one of `value` or `group_values` must not be empty.
|
|
129
|
+
*/
|
|
130
|
+
export interface Schema$CustomAttribute {
|
|
131
|
+
/**
|
|
132
|
+
* Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
|
|
133
|
+
*/
|
|
134
|
+
groupValues?: Schema$CustomAttribute[];
|
|
135
|
+
/**
|
|
136
|
+
* The name of the attribute.
|
|
137
|
+
*/
|
|
138
|
+
name?: string | null;
|
|
139
|
+
/**
|
|
140
|
+
* The value of the attribute. If `value` is not empty, `group_values` must be empty.
|
|
141
|
+
*/
|
|
142
|
+
value?: string | null;
|
|
143
|
+
}
|
|
127
144
|
/**
|
|
128
145
|
* 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); \}
|
|
129
146
|
*/
|
|
@@ -233,10 +250,18 @@ export namespace merchantapi_inventories_v1 {
|
|
|
233
250
|
* [Availability](https://support.google.com/merchants/answer/3061342) of the product at this store.
|
|
234
251
|
*/
|
|
235
252
|
availability?: string | null;
|
|
253
|
+
/**
|
|
254
|
+
* Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, `{ "name": "size type", "value": "regular" \}`). This is useful for submitting attributes not explicitly exposed by the API. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.
|
|
255
|
+
*/
|
|
256
|
+
customAttributes?: Schema$CustomAttribute[];
|
|
236
257
|
/**
|
|
237
258
|
* Optional. Location of the product inside the store. Maximum length is 20 bytes.
|
|
238
259
|
*/
|
|
239
260
|
instoreProductLocation?: string | null;
|
|
261
|
+
/**
|
|
262
|
+
* Optional. Specifies a label associated with the shipping for the `LocalInventory` resource. Can be used to group local shipping services to this particular inventory item. For accepted field format, see the [Local delivery](https://support.google.com/merchants/answer/14819809#localdelivery)
|
|
263
|
+
*/
|
|
264
|
+
localShippingLabel?: string | null;
|
|
240
265
|
/**
|
|
241
266
|
* Optional. An optional list of loyalty programs containing applicable loyalty member prices for this product at this store. This field is used to show store-specific member prices on Local Inventory Ads (LIA). To use this, the loyalty program must be configured in Google Merchant Center. The benefits provided must match the merchant's website and be clear to members. This is only applicable for merchants in supported countries. See [Loyalty program](https://support.google.com/merchants/answer/12922446) for details on supported countries and loyalty program configuration. For local inventory specific details, see the [Local inventory data specification](https://support.google.com/merchants/answer/3061342).
|
|
242
267
|
*/
|
|
@@ -507,8 +532,7 @@ export namespace merchantapi_inventories_v1 {
|
|
|
507
532
|
| BodyResponseCallback<Schema$Empty>
|
|
508
533
|
| BodyResponseCallback<Readable>,
|
|
509
534
|
callback?:
|
|
510
|
-
|
|
511
|
-
| BodyResponseCallback<Readable>
|
|
535
|
+
BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
|
|
512
536
|
):
|
|
513
537
|
| void
|
|
514
538
|
| Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
|
|
@@ -982,8 +1006,7 @@ export namespace merchantapi_inventories_v1 {
|
|
|
982
1006
|
| BodyResponseCallback<Schema$Empty>
|
|
983
1007
|
| BodyResponseCallback<Readable>,
|
|
984
1008
|
callback?:
|
|
985
|
-
|
|
986
|
-
| BodyResponseCallback<Readable>
|
|
1009
|
+
BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
|
|
987
1010
|
):
|
|
988
1011
|
| void
|
|
989
1012
|
| Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
|
package/inventories_v1beta.ts
CHANGED
|
@@ -473,8 +473,7 @@ export namespace merchantapi_inventories_v1beta {
|
|
|
473
473
|
| BodyResponseCallback<Schema$Empty>
|
|
474
474
|
| BodyResponseCallback<Readable>,
|
|
475
475
|
callback?:
|
|
476
|
-
|
|
477
|
-
| BodyResponseCallback<Readable>
|
|
476
|
+
BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
|
|
478
477
|
):
|
|
479
478
|
| void
|
|
480
479
|
| Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
|
|
@@ -964,8 +963,7 @@ export namespace merchantapi_inventories_v1beta {
|
|
|
964
963
|
| BodyResponseCallback<Schema$Empty>
|
|
965
964
|
| BodyResponseCallback<Readable>,
|
|
966
965
|
callback?:
|
|
967
|
-
|
|
968
|
-
| BodyResponseCallback<Readable>
|
|
966
|
+
BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
|
|
969
967
|
):
|
|
970
968
|
| void
|
|
971
969
|
| Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
|
package/issueresolution_v1.ts
CHANGED
|
@@ -587,7 +587,7 @@ export namespace merchantapi_issueresolution_v1 {
|
|
|
587
587
|
*/
|
|
588
588
|
impact?: Schema$Impact;
|
|
589
589
|
/**
|
|
590
|
-
* Details of the issue as a pre-rendered HTML. HTML elements contain CSS classes that can be used to customize the style of the content. Always sanitize the HTML before embedding it directly to your application. The sanitizer needs to allow basic HTML tags, such as: `div`, `span`, `p`, `a`, `ul`, `li`, `table`, `tr`, `td`. For example, you can use [DOMPurify](https://www.npmjs.com/package/dompurify). CSS classes: * `issue-detail` - top level container for the detail of the issue * `callout-banners` - section of the `issue-detail` with callout banners * `callout-banner` - single callout banner, inside `callout-banners` * `callout-banner-info` - callout with important information (default) * `callout-banner-warning` - callout with a warning * `callout-banner-error` - callout informing about an error (most severe) * `issue-content` - section of the `issue-detail`, contains multiple `content-element` * `content-element` - content element such as a list, link or paragraph, inside `issue-content` * `root-causes` - unordered list with items describing root causes of the issue, inside `issue-content` * `root-causes-intro` - intro text before the `root-causes` list, inside `issue-content` * `segment` - section of the text, `span` inside paragraph * `segment-attribute` - section of the text that represents a product attribute, for example 'image\_link' * `segment-literal` - section of the text that contains a special value, for example '0-1000 kg' * `segment-bold` - section of the text that should be rendered as bold * `segment-italic` - section of the text that should be rendered as italic * `tooltip` - used on paragraphs that should be rendered with a tooltip. A section of the text in such a paragraph will have a class `tooltip-text` and is intended to be shown in a mouse over dialog. If the style is not used, the `tooltip-text` section would be shown on a new line, after the main part of the text. * `tooltip-text` - marks a section of the text within a `tooltip`, that is intended to be shown in a mouse over dialog. * `tooltip-icon` - marks a section of the text within a `tooltip`, that can be replaced with a tooltip icon, for example '?' or 'i'. By default, this section contains a `br` tag, that is separating the main text and the tooltip text when the style is not used. * `tooltip-style-question` - the tooltip shows helpful information, can use the '?' as an icon. * `tooltip-style-info` - the tooltip adds additional information fitting to the context, can use the 'i' as an icon. * `content-moderation` - marks the paragraph that explains how the issue was identified. * `new-element` - Present for new elements added to the pre-rendered content in the future. To make sure that a new content element does not break your style, you can hide everything with this class.
|
|
590
|
+
* Details of the issue as a pre-rendered HTML. HTML elements contain CSS classes that can be used to customize the style of the content. Always sanitize the HTML before embedding it directly to your application. The sanitizer needs to allow basic HTML tags, such as: `div`, `span`, `p`, `a`, `ul`, `li`, `table`, `tr`, `td`. For example, you can use [DOMPurify](https://www.npmjs.com/package/dompurify). CSS classes: * `issue-detail` - top level container for the detail of the issue * `callout-banners` - section of the `issue-detail` with callout banners * `callout-banner` - single callout banner, inside `callout-banners` * `callout-banner-info` - callout with important information (default) * `callout-banner-warning` - callout with a warning * `callout-banner-error` - callout informing about an error (most severe) * `issue-content` - section of the `issue-detail`, contains multiple `content-element` * `content-element` - content element such as a list, link or paragraph, inside `issue-content` * `root-causes` - unordered list with items describing root causes of the issue, inside `issue-content` * `root-causes-intro` - intro text before the `root-causes` list, inside `issue-content` * `segment` - section of the text, `span` inside paragraph * `segment-attribute` - section of the text that represents a product attribute, for example 'image\_link' * `segment-literal` - section of the text that contains a special value, for example '0-1000 kg' * `segment-bold` - section of the text that should be rendered as bold * `segment-italic` - section of the text that should be rendered as italic * `tooltip` - used on paragraphs that should be rendered with a tooltip. A section of the text in such a paragraph will have a class `tooltip-text` and is intended to be shown in a mouse over dialog. If the style is not used, the `tooltip-text` section would be shown on a new line, after the main part of the text. * `tooltip-text` - marks a section of the text within a `tooltip`, that is intended to be shown in a mouse over dialog. * `tooltip-icon` - marks a section of the text within a `tooltip`, that can be replaced with a tooltip icon, for example '?' or 'i'. By default, this section contains a `br` tag, that is separating the main text and the tooltip text when the style is not used. * `tooltip-style-question` - the tooltip shows helpful information, can use the '?' as an icon. * `tooltip-style-info` - the tooltip adds additional information fitting to the context, can use the 'i' as an icon. * `content-moderation` - marks the paragraph that explains how the issue was identified. * `asset-value` - marks the paragraph that contains the asset information. * `asset-label` - marks the section of the text that contains the label of the asset. * `asset-link` - marks the section of the text that contains a link to the asset. * `asset-provided-value` - marks the section of the text that contains the value of the asset. * `new-element` - Present for new elements added to the pre-rendered content in the future. To make sure that a new content element does not break your style, you can hide everything with this class.
|
|
591
591
|
*/
|
|
592
592
|
prerenderedContent?: string | null;
|
|
593
593
|
/**
|
|
@@ -729,7 +729,7 @@ export namespace merchantapi_issueresolution_v1 {
|
|
|
729
729
|
}
|
|
730
730
|
|
|
731
731
|
/**
|
|
732
|
-
* Lists the `AggregateProductStatuses` resources for your merchant account. The response might contain fewer items than specified by `pageSize`. If `pageToken` was returned in previous request, it can be used to obtain additional results.
|
|
732
|
+
* Lists the `AggregateProductStatuses` resources for your merchant account. The response might contain fewer items than specified by `pageSize`. If `pageToken` was returned in previous request, it can be used to obtain additional results. This method can only be accessed by standalone accounts and sub-accounts of an advanced account. To retrieve product statuses for sub-accounts, you must first call the accounts.listSubaccounts method to obtain a list of sub-accounts, and then call `accounts.aggregateProductStatuses.list` for each sub-account individually.
|
|
733
733
|
* @example
|
|
734
734
|
* ```js
|
|
735
735
|
* // Before running the sample:
|
|
@@ -765,7 +765,7 @@ export namespace merchantapi_issueresolution_v1 {
|
|
|
765
765
|
* pageSize: 'placeholder-value',
|
|
766
766
|
* // Optional. A page token, received from a previous `ListAggregateProductStatuses` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAggregateProductStatuses` must match the call that provided the page token.
|
|
767
767
|
* pageToken: 'placeholder-value',
|
|
768
|
-
* // Required. The account to list aggregate product statuses for. Format: `accounts/{account\}`
|
|
768
|
+
* // Required. The account to list aggregate product statuses for. Format: `accounts/{account\}` Can only be sub-accounts and standalone accounts.
|
|
769
769
|
* parent: 'accounts/my-account',
|
|
770
770
|
* });
|
|
771
771
|
* console.log(res.data);
|
|
@@ -896,7 +896,7 @@ export namespace merchantapi_issueresolution_v1 {
|
|
|
896
896
|
*/
|
|
897
897
|
pageToken?: string;
|
|
898
898
|
/**
|
|
899
|
-
* Required. The account to list aggregate product statuses for. Format: `accounts/{account\}`
|
|
899
|
+
* Required. The account to list aggregate product statuses for. Format: `accounts/{account\}` Can only be sub-accounts and standalone accounts.
|
|
900
900
|
*/
|
|
901
901
|
parent?: string;
|
|
902
902
|
}
|
|
@@ -1294,8 +1294,7 @@ export namespace merchantapi_issueresolution_v1 {
|
|
|
1294
1294
|
triggeraction(
|
|
1295
1295
|
params: Params$Resource$Issueresolution$Triggeraction,
|
|
1296
1296
|
options:
|
|
1297
|
-
|
|
|
1298
|
-
| BodyResponseCallback<Schema$TriggerActionResponse>,
|
|
1297
|
+
MethodOptions | BodyResponseCallback<Schema$TriggerActionResponse>,
|
|
1299
1298
|
callback: BodyResponseCallback<Schema$TriggerActionResponse>
|
|
1300
1299
|
): void;
|
|
1301
1300
|
triggeraction(
|
|
@@ -587,7 +587,7 @@ export namespace merchantapi_issueresolution_v1beta {
|
|
|
587
587
|
*/
|
|
588
588
|
impact?: Schema$Impact;
|
|
589
589
|
/**
|
|
590
|
-
* Details of the issue as a pre-rendered HTML. HTML elements contain CSS classes that can be used to customize the style of the content. Always sanitize the HTML before embedding it directly to your application. The sanitizer needs to allow basic HTML tags, such as: `div`, `span`, `p`, `a`, `ul`, `li`, `table`, `tr`, `td`. For example, you can use [DOMPurify](https://www.npmjs.com/package/dompurify). CSS classes: * `issue-detail` - top level container for the detail of the issue * `callout-banners` - section of the `issue-detail` with callout banners * `callout-banner` - single callout banner, inside `callout-banners` * `callout-banner-info` - callout with important information (default) * `callout-banner-warning` - callout with a warning * `callout-banner-error` - callout informing about an error (most severe) * `issue-content` - section of the `issue-detail`, contains multiple `content-element` * `content-element` - content element such as a list, link or paragraph, inside `issue-content` * `root-causes` - unordered list with items describing root causes of the issue, inside `issue-content` * `root-causes-intro` - intro text before the `root-causes` list, inside `issue-content` * `segment` - section of the text, `span` inside paragraph * `segment-attribute` - section of the text that represents a product attribute, for example 'image\_link' * `segment-literal` - section of the text that contains a special value, for example '0-1000 kg' * `segment-bold` - section of the text that should be rendered as bold * `segment-italic` - section of the text that should be rendered as italic * `tooltip` - used on paragraphs that should be rendered with a tooltip. A section of the text in such a paragraph will have a class `tooltip-text` and is intended to be shown in a mouse over dialog. If the style is not used, the `tooltip-text` section would be shown on a new line, after the main part of the text. * `tooltip-text` - marks a section of the text within a `tooltip`, that is intended to be shown in a mouse over dialog. * `tooltip-icon` - marks a section of the text within a `tooltip`, that can be replaced with a tooltip icon, for example '?' or 'i'. By default, this section contains a `br` tag, that is separating the main text and the tooltip text when the style is not used. * `tooltip-style-question` - the tooltip shows helpful information, can use the '?' as an icon. * `tooltip-style-info` - the tooltip adds additional information fitting to the context, can use the 'i' as an icon. * `content-moderation` - marks the paragraph that explains how the issue was identified. * `new-element` - Present for new elements added to the pre-rendered content in the future. To make sure that a new content element does not break your style, you can hide everything with this class.
|
|
590
|
+
* Details of the issue as a pre-rendered HTML. HTML elements contain CSS classes that can be used to customize the style of the content. Always sanitize the HTML before embedding it directly to your application. The sanitizer needs to allow basic HTML tags, such as: `div`, `span`, `p`, `a`, `ul`, `li`, `table`, `tr`, `td`. For example, you can use [DOMPurify](https://www.npmjs.com/package/dompurify). CSS classes: * `issue-detail` - top level container for the detail of the issue * `callout-banners` - section of the `issue-detail` with callout banners * `callout-banner` - single callout banner, inside `callout-banners` * `callout-banner-info` - callout with important information (default) * `callout-banner-warning` - callout with a warning * `callout-banner-error` - callout informing about an error (most severe) * `issue-content` - section of the `issue-detail`, contains multiple `content-element` * `content-element` - content element such as a list, link or paragraph, inside `issue-content` * `root-causes` - unordered list with items describing root causes of the issue, inside `issue-content` * `root-causes-intro` - intro text before the `root-causes` list, inside `issue-content` * `segment` - section of the text, `span` inside paragraph * `segment-attribute` - section of the text that represents a product attribute, for example 'image\_link' * `segment-literal` - section of the text that contains a special value, for example '0-1000 kg' * `segment-bold` - section of the text that should be rendered as bold * `segment-italic` - section of the text that should be rendered as italic * `tooltip` - used on paragraphs that should be rendered with a tooltip. A section of the text in such a paragraph will have a class `tooltip-text` and is intended to be shown in a mouse over dialog. If the style is not used, the `tooltip-text` section would be shown on a new line, after the main part of the text. * `tooltip-text` - marks a section of the text within a `tooltip`, that is intended to be shown in a mouse over dialog. * `tooltip-icon` - marks a section of the text within a `tooltip`, that can be replaced with a tooltip icon, for example '?' or 'i'. By default, this section contains a `br` tag, that is separating the main text and the tooltip text when the style is not used. * `tooltip-style-question` - the tooltip shows helpful information, can use the '?' as an icon. * `tooltip-style-info` - the tooltip adds additional information fitting to the context, can use the 'i' as an icon. * `content-moderation` - marks the paragraph that explains how the issue was identified. * `asset-value` - marks the paragraph that contains the asset information. * `asset-label` - marks the section of the text that contains the label of the asset. * `asset-link` - marks the section of the text that contains a link to the asset. * `asset-provided-value` - marks the section of the text that contains the value of the asset. * `new-element` - Present for new elements added to the pre-rendered content in the future. To make sure that a new content element does not break your style, you can hide everything with this class.
|
|
591
591
|
*/
|
|
592
592
|
prerenderedContent?: string | null;
|
|
593
593
|
/**
|
|
@@ -729,7 +729,7 @@ export namespace merchantapi_issueresolution_v1beta {
|
|
|
729
729
|
}
|
|
730
730
|
|
|
731
731
|
/**
|
|
732
|
-
* Lists the `AggregateProductStatuses` resources for your merchant account. The response might contain fewer items than specified by `pageSize`. If `pageToken` was returned in previous request, it can be used to obtain additional results.
|
|
732
|
+
* Lists the `AggregateProductStatuses` resources for your merchant account. The response might contain fewer items than specified by `pageSize`. If `pageToken` was returned in previous request, it can be used to obtain additional results. This method can only be accessed by standalone accounts and sub-accounts of an advanced account. To retrieve product statuses for sub-accounts, you must first call the accounts.listSubaccounts method to obtain a list of sub-accounts, and then call `accounts.aggregateProductStatuses.list` for each sub-account individually.
|
|
733
733
|
* @example
|
|
734
734
|
* ```js
|
|
735
735
|
* // Before running the sample:
|
|
@@ -765,7 +765,7 @@ export namespace merchantapi_issueresolution_v1beta {
|
|
|
765
765
|
* pageSize: 'placeholder-value',
|
|
766
766
|
* // Optional. A page token, received from a previous `ListAggregateProductStatuses` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAggregateProductStatuses` must match the call that provided the page token.
|
|
767
767
|
* pageToken: 'placeholder-value',
|
|
768
|
-
* // Required. The account to list aggregate product statuses for. Format: `accounts/{account\}`
|
|
768
|
+
* // Required. The account to list aggregate product statuses for. Format: `accounts/{account\}` Can only be sub-accounts and standalone accounts.
|
|
769
769
|
* parent: 'accounts/my-account',
|
|
770
770
|
* });
|
|
771
771
|
* console.log(res.data);
|
|
@@ -897,7 +897,7 @@ export namespace merchantapi_issueresolution_v1beta {
|
|
|
897
897
|
*/
|
|
898
898
|
pageToken?: string;
|
|
899
899
|
/**
|
|
900
|
-
* Required. The account to list aggregate product statuses for. Format: `accounts/{account\}`
|
|
900
|
+
* Required. The account to list aggregate product statuses for. Format: `accounts/{account\}` Can only be sub-accounts and standalone accounts.
|
|
901
901
|
*/
|
|
902
902
|
parent?: string;
|
|
903
903
|
}
|
|
@@ -1295,8 +1295,7 @@ export namespace merchantapi_issueresolution_v1beta {
|
|
|
1295
1295
|
triggeraction(
|
|
1296
1296
|
params: Params$Resource$Issueresolution$Triggeraction,
|
|
1297
1297
|
options:
|
|
1298
|
-
|
|
|
1299
|
-
| BodyResponseCallback<Schema$TriggerActionResponse>,
|
|
1298
|
+
MethodOptions | BodyResponseCallback<Schema$TriggerActionResponse>,
|
|
1300
1299
|
callback: BodyResponseCallback<Schema$TriggerActionResponse>
|
|
1301
1300
|
): void;
|
|
1302
1301
|
triggeraction(
|
package/lfp_v1.ts
CHANGED
|
@@ -959,8 +959,7 @@ export namespace merchantapi_lfp_v1 {
|
|
|
959
959
|
| BodyResponseCallback<Schema$LfpSale>
|
|
960
960
|
| BodyResponseCallback<Readable>,
|
|
961
961
|
callback?:
|
|
962
|
-
|
|
963
|
-
| BodyResponseCallback<Readable>
|
|
962
|
+
BodyResponseCallback<Schema$LfpSale> | BodyResponseCallback<Readable>
|
|
964
963
|
):
|
|
965
964
|
| void
|
|
966
965
|
| Promise<GaxiosResponseWithHTTP2<Schema$LfpSale>>
|
|
@@ -1113,8 +1112,7 @@ export namespace merchantapi_lfp_v1 {
|
|
|
1113
1112
|
| BodyResponseCallback<Schema$Empty>
|
|
1114
1113
|
| BodyResponseCallback<Readable>,
|
|
1115
1114
|
callback?:
|
|
1116
|
-
|
|
1117
|
-
| BodyResponseCallback<Readable>
|
|
1115
|
+
BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
|
|
1118
1116
|
):
|
|
1119
1117
|
| void
|
|
1120
1118
|
| Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
|
|
@@ -1257,8 +1255,7 @@ export namespace merchantapi_lfp_v1 {
|
|
|
1257
1255
|
| BodyResponseCallback<Schema$LfpStore>
|
|
1258
1256
|
| BodyResponseCallback<Readable>,
|
|
1259
1257
|
callback?:
|
|
1260
|
-
|
|
1261
|
-
| BodyResponseCallback<Readable>
|
|
1258
|
+
BodyResponseCallback<Schema$LfpStore> | BodyResponseCallback<Readable>
|
|
1262
1259
|
):
|
|
1263
1260
|
| void
|
|
1264
1261
|
| Promise<GaxiosResponseWithHTTP2<Schema$LfpStore>>
|
|
@@ -1419,8 +1416,7 @@ export namespace merchantapi_lfp_v1 {
|
|
|
1419
1416
|
| BodyResponseCallback<Schema$LfpStore>
|
|
1420
1417
|
| BodyResponseCallback<Readable>,
|
|
1421
1418
|
callback?:
|
|
1422
|
-
|
|
1423
|
-
| BodyResponseCallback<Readable>
|
|
1419
|
+
BodyResponseCallback<Schema$LfpStore> | BodyResponseCallback<Readable>
|
|
1424
1420
|
):
|
|
1425
1421
|
| void
|
|
1426
1422
|
| Promise<GaxiosResponseWithHTTP2<Schema$LfpStore>>
|
|
@@ -1545,8 +1541,7 @@ export namespace merchantapi_lfp_v1 {
|
|
|
1545
1541
|
list(
|
|
1546
1542
|
params: Params$Resource$Accounts$Lfpstores$List,
|
|
1547
1543
|
options:
|
|
1548
|
-
|
|
|
1549
|
-
| BodyResponseCallback<Schema$ListLfpStoresResponse>,
|
|
1544
|
+
MethodOptions | BodyResponseCallback<Schema$ListLfpStoresResponse>,
|
|
1550
1545
|
callback: BodyResponseCallback<Schema$ListLfpStoresResponse>
|
|
1551
1546
|
): void;
|
|
1552
1547
|
list(
|
package/lfp_v1beta.ts
CHANGED
|
@@ -961,8 +961,7 @@ export namespace merchantapi_lfp_v1beta {
|
|
|
961
961
|
| BodyResponseCallback<Schema$LfpSale>
|
|
962
962
|
| BodyResponseCallback<Readable>,
|
|
963
963
|
callback?:
|
|
964
|
-
|
|
965
|
-
| BodyResponseCallback<Readable>
|
|
964
|
+
BodyResponseCallback<Schema$LfpSale> | BodyResponseCallback<Readable>
|
|
966
965
|
):
|
|
967
966
|
| void
|
|
968
967
|
| Promise<GaxiosResponseWithHTTP2<Schema$LfpSale>>
|
|
@@ -1115,8 +1114,7 @@ export namespace merchantapi_lfp_v1beta {
|
|
|
1115
1114
|
| BodyResponseCallback<Schema$Empty>
|
|
1116
1115
|
| BodyResponseCallback<Readable>,
|
|
1117
1116
|
callback?:
|
|
1118
|
-
|
|
1119
|
-
| BodyResponseCallback<Readable>
|
|
1117
|
+
BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
|
|
1120
1118
|
):
|
|
1121
1119
|
| void
|
|
1122
1120
|
| Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
|
|
@@ -1262,8 +1260,7 @@ export namespace merchantapi_lfp_v1beta {
|
|
|
1262
1260
|
| BodyResponseCallback<Schema$LfpStore>
|
|
1263
1261
|
| BodyResponseCallback<Readable>,
|
|
1264
1262
|
callback?:
|
|
1265
|
-
|
|
1266
|
-
| BodyResponseCallback<Readable>
|
|
1263
|
+
BodyResponseCallback<Schema$LfpStore> | BodyResponseCallback<Readable>
|
|
1267
1264
|
):
|
|
1268
1265
|
| void
|
|
1269
1266
|
| Promise<GaxiosResponseWithHTTP2<Schema$LfpStore>>
|
|
@@ -1427,8 +1424,7 @@ export namespace merchantapi_lfp_v1beta {
|
|
|
1427
1424
|
| BodyResponseCallback<Schema$LfpStore>
|
|
1428
1425
|
| BodyResponseCallback<Readable>,
|
|
1429
1426
|
callback?:
|
|
1430
|
-
|
|
1431
|
-
| BodyResponseCallback<Readable>
|
|
1427
|
+
BodyResponseCallback<Schema$LfpStore> | BodyResponseCallback<Readable>
|
|
1432
1428
|
):
|
|
1433
1429
|
| void
|
|
1434
1430
|
| Promise<GaxiosResponseWithHTTP2<Schema$LfpStore>>
|
|
@@ -1553,8 +1549,7 @@ export namespace merchantapi_lfp_v1beta {
|
|
|
1553
1549
|
list(
|
|
1554
1550
|
params: Params$Resource$Accounts$Lfpstores$List,
|
|
1555
1551
|
options:
|
|
1556
|
-
|
|
|
1557
|
-
| BodyResponseCallback<Schema$ListLfpStoresResponse>,
|
|
1552
|
+
MethodOptions | BodyResponseCallback<Schema$ListLfpStoresResponse>,
|
|
1558
1553
|
callback: BodyResponseCallback<Schema$ListLfpStoresResponse>
|
|
1559
1554
|
): void;
|
|
1560
1555
|
list(
|
package/notifications_v1.ts
CHANGED
|
@@ -154,7 +154,7 @@ export namespace merchantapi_notifications_v1 {
|
|
|
154
154
|
*/
|
|
155
155
|
callBackUri?: string | null;
|
|
156
156
|
/**
|
|
157
|
-
* Output only. The `name` of the notification configuration. Generated by the
|
|
157
|
+
* Output only. The `name` of the notification configuration. Generated by the Merchant 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\}`
|
|
158
158
|
*/
|
|
159
159
|
name?: string | null;
|
|
160
160
|
/**
|
|
@@ -246,7 +246,7 @@ export namespace merchantapi_notifications_v1 {
|
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
/**
|
|
249
|
-
* Creates a notification subscription for a business. For standalone or
|
|
249
|
+
* Creates a notification subscription for a business. For standalone or sub-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.
|
|
250
250
|
* @example
|
|
251
251
|
* ```js
|
|
252
252
|
* // Before running the sample:
|
|
@@ -331,8 +331,7 @@ export namespace merchantapi_notifications_v1 {
|
|
|
331
331
|
create(
|
|
332
332
|
params: Params$Resource$Accounts$Notificationsubscriptions$Create,
|
|
333
333
|
options:
|
|
334
|
-
|
|
|
335
|
-
| BodyResponseCallback<Schema$NotificationSubscription>,
|
|
334
|
+
MethodOptions | BodyResponseCallback<Schema$NotificationSubscription>,
|
|
336
335
|
callback: BodyResponseCallback<Schema$NotificationSubscription>
|
|
337
336
|
): void;
|
|
338
337
|
create(
|
|
@@ -488,8 +487,7 @@ export namespace merchantapi_notifications_v1 {
|
|
|
488
487
|
| BodyResponseCallback<Schema$Empty>
|
|
489
488
|
| BodyResponseCallback<Readable>,
|
|
490
489
|
callback?:
|
|
491
|
-
|
|
492
|
-
| BodyResponseCallback<Readable>
|
|
490
|
+
BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
|
|
493
491
|
):
|
|
494
492
|
| void
|
|
495
493
|
| Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
|
|
@@ -612,8 +610,7 @@ export namespace merchantapi_notifications_v1 {
|
|
|
612
610
|
get(
|
|
613
611
|
params: Params$Resource$Accounts$Notificationsubscriptions$Get,
|
|
614
612
|
options:
|
|
615
|
-
|
|
|
616
|
-
| BodyResponseCallback<Schema$NotificationSubscription>,
|
|
613
|
+
MethodOptions | BodyResponseCallback<Schema$NotificationSubscription>,
|
|
617
614
|
callback: BodyResponseCallback<Schema$NotificationSubscription>
|
|
618
615
|
): void;
|
|
619
616
|
get(
|
|
@@ -863,7 +860,7 @@ export namespace merchantapi_notifications_v1 {
|
|
|
863
860
|
*
|
|
864
861
|
* // Do the magic
|
|
865
862
|
* const res = await merchantapi.accounts.notificationsubscriptions.patch({
|
|
866
|
-
* // Output only. The `name` of the notification configuration. Generated by the
|
|
863
|
+
* // Output only. The `name` of the notification configuration. Generated by the Merchant 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\}`
|
|
867
864
|
* name: 'accounts/my-account/notificationsubscriptions/my-notificationsubscription',
|
|
868
865
|
* // List of fields being updated.
|
|
869
866
|
* updateMask: 'placeholder-value',
|
|
@@ -920,8 +917,7 @@ export namespace merchantapi_notifications_v1 {
|
|
|
920
917
|
patch(
|
|
921
918
|
params: Params$Resource$Accounts$Notificationsubscriptions$Patch,
|
|
922
919
|
options:
|
|
923
|
-
|
|
|
924
|
-
| BodyResponseCallback<Schema$NotificationSubscription>,
|
|
920
|
+
MethodOptions | BodyResponseCallback<Schema$NotificationSubscription>,
|
|
925
921
|
callback: BodyResponseCallback<Schema$NotificationSubscription>
|
|
926
922
|
): void;
|
|
927
923
|
patch(
|
|
@@ -1031,7 +1027,7 @@ export namespace merchantapi_notifications_v1 {
|
|
|
1031
1027
|
}
|
|
1032
1028
|
export interface Params$Resource$Accounts$Notificationsubscriptions$Patch extends StandardParameters {
|
|
1033
1029
|
/**
|
|
1034
|
-
* Output only. The `name` of the notification configuration. Generated by the
|
|
1030
|
+
* Output only. The `name` of the notification configuration. Generated by the Merchant 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\}`
|
|
1035
1031
|
*/
|
|
1036
1032
|
name?: string;
|
|
1037
1033
|
/**
|
package/notifications_v1beta.ts
CHANGED
|
@@ -154,7 +154,7 @@ export namespace merchantapi_notifications_v1beta {
|
|
|
154
154
|
*/
|
|
155
155
|
callBackUri?: string | null;
|
|
156
156
|
/**
|
|
157
|
-
* Output only. The `name` of the notification configuration. Generated by the
|
|
157
|
+
* Output only. The `name` of the notification configuration. Generated by the Merchant 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\}`
|
|
158
158
|
*/
|
|
159
159
|
name?: string | null;
|
|
160
160
|
/**
|
|
@@ -246,7 +246,7 @@ export namespace merchantapi_notifications_v1beta {
|
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
/**
|
|
249
|
-
* Creates a notification subscription for a business. For standalone or
|
|
249
|
+
* Creates a notification subscription for a business. For standalone or sub-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.
|
|
250
250
|
* @example
|
|
251
251
|
* ```js
|
|
252
252
|
* // Before running the sample:
|
|
@@ -331,8 +331,7 @@ export namespace merchantapi_notifications_v1beta {
|
|
|
331
331
|
create(
|
|
332
332
|
params: Params$Resource$Accounts$Notificationsubscriptions$Create,
|
|
333
333
|
options:
|
|
334
|
-
|
|
|
335
|
-
| BodyResponseCallback<Schema$NotificationSubscription>,
|
|
334
|
+
MethodOptions | BodyResponseCallback<Schema$NotificationSubscription>,
|
|
336
335
|
callback: BodyResponseCallback<Schema$NotificationSubscription>
|
|
337
336
|
): void;
|
|
338
337
|
create(
|
|
@@ -489,8 +488,7 @@ export namespace merchantapi_notifications_v1beta {
|
|
|
489
488
|
| BodyResponseCallback<Schema$Empty>
|
|
490
489
|
| BodyResponseCallback<Readable>,
|
|
491
490
|
callback?:
|
|
492
|
-
|
|
493
|
-
| BodyResponseCallback<Readable>
|
|
491
|
+
BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
|
|
494
492
|
):
|
|
495
493
|
| void
|
|
496
494
|
| Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
|
|
@@ -613,8 +611,7 @@ export namespace merchantapi_notifications_v1beta {
|
|
|
613
611
|
get(
|
|
614
612
|
params: Params$Resource$Accounts$Notificationsubscriptions$Get,
|
|
615
613
|
options:
|
|
616
|
-
|
|
|
617
|
-
| BodyResponseCallback<Schema$NotificationSubscription>,
|
|
614
|
+
MethodOptions | BodyResponseCallback<Schema$NotificationSubscription>,
|
|
618
615
|
callback: BodyResponseCallback<Schema$NotificationSubscription>
|
|
619
616
|
): void;
|
|
620
617
|
get(
|
|
@@ -865,7 +862,7 @@ export namespace merchantapi_notifications_v1beta {
|
|
|
865
862
|
*
|
|
866
863
|
* // Do the magic
|
|
867
864
|
* const res = await merchantapi.accounts.notificationsubscriptions.patch({
|
|
868
|
-
* // Output only. The `name` of the notification configuration. Generated by the
|
|
865
|
+
* // Output only. The `name` of the notification configuration. Generated by the Merchant 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\}`
|
|
869
866
|
* name: 'accounts/my-account/notificationsubscriptions/my-notificationsubscription',
|
|
870
867
|
* // List of fields being updated.
|
|
871
868
|
* updateMask: 'placeholder-value',
|
|
@@ -922,8 +919,7 @@ export namespace merchantapi_notifications_v1beta {
|
|
|
922
919
|
patch(
|
|
923
920
|
params: Params$Resource$Accounts$Notificationsubscriptions$Patch,
|
|
924
921
|
options:
|
|
925
|
-
|
|
|
926
|
-
| BodyResponseCallback<Schema$NotificationSubscription>,
|
|
922
|
+
MethodOptions | BodyResponseCallback<Schema$NotificationSubscription>,
|
|
927
923
|
callback: BodyResponseCallback<Schema$NotificationSubscription>
|
|
928
924
|
): void;
|
|
929
925
|
patch(
|
|
@@ -1033,7 +1029,7 @@ export namespace merchantapi_notifications_v1beta {
|
|
|
1033
1029
|
}
|
|
1034
1030
|
export interface Params$Resource$Accounts$Notificationsubscriptions$Patch extends StandardParameters {
|
|
1035
1031
|
/**
|
|
1036
|
-
* Output only. The `name` of the notification configuration. Generated by the
|
|
1032
|
+
* Output only. The `name` of the notification configuration. Generated by the Merchant 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\}`
|
|
1037
1033
|
*/
|
|
1038
1034
|
name?: string;
|
|
1039
1035
|
/**
|