@googleapis/merchantapi 17.4.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 +22 -0
- package/accounts_v1.ts +57 -86
- package/accounts_v1beta.ts +54 -80
- package/build/accounts_v1.d.ts +18 -6
- package/build/accounts_v1.js.map +1 -1
- package/build/accounts_v1beta.d.ts +18 -6
- 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 +291 -0
- package/build/products_v1.js.map +1 -1
- package/build/products_v1beta.d.ts +5 -0
- 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 +294 -6
- package/products_v1beta.ts +8 -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/datasources_v1.ts
CHANGED
|
@@ -182,7 +182,7 @@ export namespace merchantapi_datasources_v1 {
|
|
|
182
182
|
*/
|
|
183
183
|
export interface Schema$DataSourceReference {
|
|
184
184
|
/**
|
|
185
|
-
* Optional. The name of the primary data source. Format: `accounts/{account\}/dataSources/{datasource\}`
|
|
185
|
+
* Optional. Deprecated: Use `self` instead to reference the primary data source. The name of the primary data source. Format: `accounts/{account\}/dataSources/{datasource\}`
|
|
186
186
|
*/
|
|
187
187
|
primaryDataSourceName?: string | null;
|
|
188
188
|
/**
|
|
@@ -199,7 +199,7 @@ export namespace merchantapi_datasources_v1 {
|
|
|
199
199
|
*/
|
|
200
200
|
export interface Schema$DefaultRule {
|
|
201
201
|
/**
|
|
202
|
-
* Required. The list of data sources linked in the [default rule](https://support.google.com/merchants/answer/7450276). This list is ordered by the default rule priority of joining the data. It might include none or multiple references to `self` and supplemental data sources. The list must not be empty. To link the data source to the default rule, you need to add a new reference to this list (in sequential order). To unlink the data source from the default rule, you need to remove the given reference from this list. Changing the order of this list will result in changing the priority of data sources in the default rule. For example, providing the following list: [`1001`, `self`] will take attribute values from supplemental data source `1001`, and fallback to `self` if the attribute is not set in `1001`.
|
|
202
|
+
* Required. The list of data sources linked in the [default rule](https://support.google.com/merchants/answer/7450276). This list is ordered by the default rule priority of joining the data. It might include none or multiple references to `self` and supplemental data sources. The list must not be empty. To link the data source to the default rule, you need to add a new reference to this list (in sequential order). To unlink the data source from the default rule, you need to remove the given reference from this list. Changing the order of this list will result in changing the priority of data sources in the default rule. For example, providing the following list: [`1001`, `self`] will take attribute values from supplemental data source `1001`, and fallback to `self` if the attribute is not set in `1001`. Warning: The update (patch) and create call replaces the entire default rule setup. It doesn't work as an addition or append. If `self` is missing from the list of `take_from_data_sources`, the API will ignore attributes from the primary data source itself.
|
|
203
203
|
*/
|
|
204
204
|
takeFromDataSources?: Schema$DataSourceReference[];
|
|
205
205
|
}
|
|
@@ -391,7 +391,7 @@ export namespace merchantapi_datasources_v1 {
|
|
|
391
391
|
*/
|
|
392
392
|
countries?: string[] | null;
|
|
393
393
|
/**
|
|
394
|
-
* Optional. Default rule management of the data source. If set, the linked data sources will be replaced.
|
|
394
|
+
* Optional. Default rule management of the data source. If set, the linked data sources will be replaced. Warning: The update (patch) and create call replaces the entire default rule setup. It doesn't work as an addition or append. If `self` is missing from the list of `take_from_data_sources`, the API will ignore attributes from the primary data source itself.
|
|
395
395
|
*/
|
|
396
396
|
defaultRule?: Schema$DefaultRule;
|
|
397
397
|
/**
|
|
@@ -672,8 +672,7 @@ export namespace merchantapi_datasources_v1 {
|
|
|
672
672
|
| BodyResponseCallback<Schema$DataSource>
|
|
673
673
|
| BodyResponseCallback<Readable>,
|
|
674
674
|
callback?:
|
|
675
|
-
|
|
676
|
-
| BodyResponseCallback<Readable>
|
|
675
|
+
BodyResponseCallback<Schema$DataSource> | BodyResponseCallback<Readable>
|
|
677
676
|
):
|
|
678
677
|
| void
|
|
679
678
|
| Promise<GaxiosResponseWithHTTP2<Schema$DataSource>>
|
|
@@ -807,8 +806,7 @@ export namespace merchantapi_datasources_v1 {
|
|
|
807
806
|
| BodyResponseCallback<Schema$Empty>
|
|
808
807
|
| BodyResponseCallback<Readable>,
|
|
809
808
|
callback?:
|
|
810
|
-
|
|
811
|
-
| BodyResponseCallback<Readable>
|
|
809
|
+
BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
|
|
812
810
|
):
|
|
813
811
|
| void
|
|
814
812
|
| Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
|
|
@@ -948,8 +946,7 @@ export namespace merchantapi_datasources_v1 {
|
|
|
948
946
|
| BodyResponseCallback<Schema$Empty>
|
|
949
947
|
| BodyResponseCallback<Readable>,
|
|
950
948
|
callback?:
|
|
951
|
-
|
|
952
|
-
| BodyResponseCallback<Readable>
|
|
949
|
+
BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
|
|
953
950
|
):
|
|
954
951
|
| void
|
|
955
952
|
| Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
|
|
@@ -1096,8 +1093,7 @@ export namespace merchantapi_datasources_v1 {
|
|
|
1096
1093
|
| BodyResponseCallback<Schema$DataSource>
|
|
1097
1094
|
| BodyResponseCallback<Readable>,
|
|
1098
1095
|
callback?:
|
|
1099
|
-
|
|
1100
|
-
| BodyResponseCallback<Readable>
|
|
1096
|
+
BodyResponseCallback<Schema$DataSource> | BodyResponseCallback<Readable>
|
|
1101
1097
|
):
|
|
1102
1098
|
| void
|
|
1103
1099
|
| Promise<GaxiosResponseWithHTTP2<Schema$DataSource>>
|
|
@@ -1220,8 +1216,7 @@ export namespace merchantapi_datasources_v1 {
|
|
|
1220
1216
|
list(
|
|
1221
1217
|
params: Params$Resource$Accounts$Datasources$List,
|
|
1222
1218
|
options:
|
|
1223
|
-
|
|
|
1224
|
-
| BodyResponseCallback<Schema$ListDataSourcesResponse>,
|
|
1219
|
+
MethodOptions | BodyResponseCallback<Schema$ListDataSourcesResponse>,
|
|
1225
1220
|
callback: BodyResponseCallback<Schema$ListDataSourcesResponse>
|
|
1226
1221
|
): void;
|
|
1227
1222
|
list(
|
|
@@ -1409,8 +1404,7 @@ export namespace merchantapi_datasources_v1 {
|
|
|
1409
1404
|
| BodyResponseCallback<Schema$DataSource>
|
|
1410
1405
|
| BodyResponseCallback<Readable>,
|
|
1411
1406
|
callback?:
|
|
1412
|
-
|
|
1413
|
-
| BodyResponseCallback<Readable>
|
|
1407
|
+
BodyResponseCallback<Schema$DataSource> | BodyResponseCallback<Readable>
|
|
1414
1408
|
):
|
|
1415
1409
|
| void
|
|
1416
1410
|
| Promise<GaxiosResponseWithHTTP2<Schema$DataSource>>
|
|
@@ -1624,8 +1618,7 @@ export namespace merchantapi_datasources_v1 {
|
|
|
1624
1618
|
| BodyResponseCallback<Schema$FileUpload>
|
|
1625
1619
|
| BodyResponseCallback<Readable>,
|
|
1626
1620
|
callback?:
|
|
1627
|
-
|
|
1628
|
-
| BodyResponseCallback<Readable>
|
|
1621
|
+
BodyResponseCallback<Schema$FileUpload> | BodyResponseCallback<Readable>
|
|
1629
1622
|
):
|
|
1630
1623
|
| void
|
|
1631
1624
|
| Promise<GaxiosResponseWithHTTP2<Schema$FileUpload>>
|
package/datasources_v1beta.ts
CHANGED
|
@@ -182,7 +182,7 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
182
182
|
*/
|
|
183
183
|
export interface Schema$DataSourceReference {
|
|
184
184
|
/**
|
|
185
|
-
* Optional. The name of the primary data source. Format: `accounts/{account\}/dataSources/{datasource\}`
|
|
185
|
+
* Optional. Deprecated: Use `self` instead to reference the primary data source. The name of the primary data source. Format: `accounts/{account\}/dataSources/{datasource\}`
|
|
186
186
|
*/
|
|
187
187
|
primaryDataSourceName?: string | null;
|
|
188
188
|
/**
|
|
@@ -199,7 +199,7 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
199
199
|
*/
|
|
200
200
|
export interface Schema$DefaultRule {
|
|
201
201
|
/**
|
|
202
|
-
* Required. The list of data sources linked in the [default rule](https://support.google.com/merchants/answer/7450276). This list is ordered by the default rule priority of joining the data. It might include none or multiple references to `self` and supplemental data sources. The list must not be empty. To link the data source to the default rule, you need to add a new reference to this list (in sequential order). To unlink the data source from the default rule, you need to remove the given reference from this list. Changing the order of this list will result in changing the priority of data sources in the default rule. For example, providing the following list: [`1001`, `self`] will take attribute values from supplemental data source `1001`, and fallback to `self` if the attribute is not set in `1001`.
|
|
202
|
+
* Required. The list of data sources linked in the [default rule](https://support.google.com/merchants/answer/7450276). This list is ordered by the default rule priority of joining the data. It might include none or multiple references to `self` and supplemental data sources. The list must not be empty. To link the data source to the default rule, you need to add a new reference to this list (in sequential order). To unlink the data source from the default rule, you need to remove the given reference from this list. Changing the order of this list will result in changing the priority of data sources in the default rule. For example, providing the following list: [`1001`, `self`] will take attribute values from supplemental data source `1001`, and fallback to `self` if the attribute is not set in `1001`. Warning: The update (patch) and create call replaces the entire default rule setup. It doesn't work as an addition or append. If `self` is missing from the list of `take_from_data_sources`, the API will ignore attributes from the primary data source itself.
|
|
203
203
|
*/
|
|
204
204
|
takeFromDataSources?: Schema$DataSourceReference[];
|
|
205
205
|
}
|
|
@@ -395,7 +395,7 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
395
395
|
*/
|
|
396
396
|
countries?: string[] | null;
|
|
397
397
|
/**
|
|
398
|
-
* Optional. Default rule management of the data source. If set, the linked data sources will be replaced.
|
|
398
|
+
* Optional. Default rule management of the data source. If set, the linked data sources will be replaced. Warning: The update (patch) and create call replaces the entire default rule setup. It doesn't work as an addition or append. If `self` is missing from the list of `take_from_data_sources`, the API will ignore attributes from the primary data source itself.
|
|
399
399
|
*/
|
|
400
400
|
defaultRule?: Schema$DefaultRule;
|
|
401
401
|
/**
|
|
@@ -672,8 +672,7 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
672
672
|
| BodyResponseCallback<Schema$DataSource>
|
|
673
673
|
| BodyResponseCallback<Readable>,
|
|
674
674
|
callback?:
|
|
675
|
-
|
|
676
|
-
| BodyResponseCallback<Readable>
|
|
675
|
+
BodyResponseCallback<Schema$DataSource> | BodyResponseCallback<Readable>
|
|
677
676
|
):
|
|
678
677
|
| void
|
|
679
678
|
| Promise<GaxiosResponseWithHTTP2<Schema$DataSource>>
|
|
@@ -806,8 +805,7 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
806
805
|
| BodyResponseCallback<Schema$Empty>
|
|
807
806
|
| BodyResponseCallback<Readable>,
|
|
808
807
|
callback?:
|
|
809
|
-
|
|
810
|
-
| BodyResponseCallback<Readable>
|
|
808
|
+
BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
|
|
811
809
|
):
|
|
812
810
|
| void
|
|
813
811
|
| Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
|
|
@@ -947,8 +945,7 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
947
945
|
| BodyResponseCallback<Schema$Empty>
|
|
948
946
|
| BodyResponseCallback<Readable>,
|
|
949
947
|
callback?:
|
|
950
|
-
|
|
951
|
-
| BodyResponseCallback<Readable>
|
|
948
|
+
BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
|
|
952
949
|
):
|
|
953
950
|
| void
|
|
954
951
|
| Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
|
|
@@ -1095,8 +1092,7 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
1095
1092
|
| BodyResponseCallback<Schema$DataSource>
|
|
1096
1093
|
| BodyResponseCallback<Readable>,
|
|
1097
1094
|
callback?:
|
|
1098
|
-
|
|
1099
|
-
| BodyResponseCallback<Readable>
|
|
1095
|
+
BodyResponseCallback<Schema$DataSource> | BodyResponseCallback<Readable>
|
|
1100
1096
|
):
|
|
1101
1097
|
| void
|
|
1102
1098
|
| Promise<GaxiosResponseWithHTTP2<Schema$DataSource>>
|
|
@@ -1219,8 +1215,7 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
1219
1215
|
list(
|
|
1220
1216
|
params: Params$Resource$Accounts$Datasources$List,
|
|
1221
1217
|
options:
|
|
1222
|
-
|
|
|
1223
|
-
| BodyResponseCallback<Schema$ListDataSourcesResponse>,
|
|
1218
|
+
MethodOptions | BodyResponseCallback<Schema$ListDataSourcesResponse>,
|
|
1224
1219
|
callback: BodyResponseCallback<Schema$ListDataSourcesResponse>
|
|
1225
1220
|
): void;
|
|
1226
1221
|
list(
|
|
@@ -1407,8 +1402,7 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
1407
1402
|
| BodyResponseCallback<Schema$DataSource>
|
|
1408
1403
|
| BodyResponseCallback<Readable>,
|
|
1409
1404
|
callback?:
|
|
1410
|
-
|
|
1411
|
-
| BodyResponseCallback<Readable>
|
|
1405
|
+
BodyResponseCallback<Schema$DataSource> | BodyResponseCallback<Readable>
|
|
1412
1406
|
):
|
|
1413
1407
|
| void
|
|
1414
1408
|
| Promise<GaxiosResponseWithHTTP2<Schema$DataSource>>
|
|
@@ -1622,8 +1616,7 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
1622
1616
|
| BodyResponseCallback<Schema$FileUpload>
|
|
1623
1617
|
| BodyResponseCallback<Readable>,
|
|
1624
1618
|
callback?:
|
|
1625
|
-
|
|
1626
|
-
| BodyResponseCallback<Readable>
|
|
1619
|
+
BodyResponseCallback<Schema$FileUpload> | BodyResponseCallback<Readable>
|
|
1627
1620
|
):
|
|
1628
1621
|
| void
|
|
1629
1622
|
| Promise<GaxiosResponseWithHTTP2<Schema$FileUpload>>
|
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
|
/**
|