Skip to content

Commit 9ceb28b

Browse files
yoshi-automationsofisl
authored andcommitted
fix(merchantapi): update the API
#### merchantapi:accounts_v1beta The following keys were changed: - resources.accounts.methods.listSubaccounts.parameters.provider.description - schemas.OnlineReturnPolicy.properties.acceptDefectiveOnly.description - schemas.OnlineReturnPolicy.properties.acceptExchange.description - schemas.OnlineReturnPolicy.properties.processRefundDays.description - schemas.OnlineReturnPolicy.properties.returnLabelSource.description #### merchantapi:datasources_v1beta The following keys were changed: - resources.accounts.resources.dataSources.methods.patch.parameters.name.description - schemas.DataSource.properties.name.description #### merchantapi:lfp_v1beta The following keys were changed: - schemas.LfpMerchantState.properties.inventoryStats.description - schemas.LfpMerchantState.properties.storeStates.description #### merchantapi:reports_v1beta The following keys were changed: - schemas.SearchRequest.properties.query.description
1 parent d37f66d commit 9ceb28b

8 files changed

+24
-24
lines changed

‎discovery/merchantapi-accounts_v1beta.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@
233233
"type": "string"
234234
},
235235
"provider": {
236-
"description": "Required. The aggregation service provider. Format: `accounts/{providerId}`",
236+
"description": "Required. The aggregation service provider. Format: `accounts/{accountId}`",
237237
"location": "path",
238238
"pattern": "^accounts/[^/]+$",
239239
"required": true,
@@ -1728,7 +1728,7 @@
17281728
}
17291729
}
17301730
},
1731-
"revision": "20250427",
1731+
"revision": "20250430",
17321732
"rootUrl": "https://merchantapi.googleapis.com/",
17331733
"schemas": {
17341734
"AcceptTermsOfServiceResponse": {
@@ -3051,11 +3051,11 @@
30513051
"id": "OnlineReturnPolicy",
30523052
"properties": {
30533053
"acceptDefectiveOnly": {
3054-
"description": "This field specifies if merchant only accepts defective products for returns, and this field is required.",
3054+
"description": "Optional. This field specifies if merchant only accepts defective products for returns.",
30553055
"type": "boolean"
30563056
},
30573057
"acceptExchange": {
3058-
"description": "This field specifies if merchant allows customers to exchange products, this field is required.",
3058+
"description": "Optional. This field specifies if merchant allows customers to exchange products.",
30593059
"type": "boolean"
30603060
},
30613061
"countries": {
@@ -3095,7 +3095,7 @@
30953095
"description": "Optional. The return policy."
30963096
},
30973097
"processRefundDays": {
3098-
"description": "The field specifies the number of days it takes for merchants to process refunds, field is optional.",
3098+
"description": "Optional. The field specifies the number of days it takes for merchants to process refunds.",
30993099
"format": "int32",
31003100
"type": "integer"
31013101
},
@@ -3104,7 +3104,7 @@
31043104
"description": "Optional. The restocking fee that applies to all return reason categories. This would be treated as a free restocking fee if the value is not set."
31053105
},
31063106
"returnLabelSource": {
3107-
"description": "The field specifies the return label source. This field is required when return method is BY_MAIL.",
3107+
"description": "Optional. The field specifies the return label source.",
31083108
"enum": [
31093109
"RETURN_LABEL_SOURCE_UNSPECIFIED",
31103110
"DOWNLOAD_AND_PRINT",

‎discovery/merchantapi-datasources_v1beta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@
261261
],
262262
"parameters": {
263263
"name": {
264-
"description": "Identifier. The name of the data source. Format: `accounts/{account}/dataSources/{datasource}`",
264+
"description": "Required. Identifier. The name of the data source. Format: `accounts/{account}/dataSources/{datasource}`",
265265
"location": "path",
266266
"pattern": "^accounts/[^/]+/dataSources/[^/]+$",
267267
"required": true,
@@ -321,7 +321,7 @@
321321
}
322322
}
323323
},
324-
"revision": "20250427",
324+
"revision": "20250430",
325325
"rootUrl": "https://merchantapi.googleapis.com/",
326326
"schemas": {
327327
"DataSource": {
@@ -370,7 +370,7 @@
370370
"description": "The [merchant review](https://support.google.com/merchants/answer/7045996) data source."
371371
},
372372
"name": {
373-
"description": "Identifier. The name of the data source. Format: `accounts/{account}/dataSources/{datasource}`",
373+
"description": "Required. Identifier. The name of the data source. Format: `accounts/{account}/dataSources/{datasource}`",
374374
"type": "string"
375375
},
376376
"primaryProductDataSource": {

‎discovery/merchantapi-lfp_v1beta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@
327327
}
328328
}
329329
},
330-
"revision": "20250401",
330+
"revision": "20250430",
331331
"rootUrl": "https://merchantapi.googleapis.com/",
332332
"schemas": {
333333
"CountrySettings": {
@@ -530,7 +530,7 @@
530530
},
531531
"inventoryStats": {
532532
"$ref": "InventoryStats",
533-
"description": "The inventory statistics for the merchant."
533+
"description": "The inventory statistics for the merchant. The field will be absent if the merchant has no inventory submitted through LFP."
534534
},
535535
"linkedGbps": {
536536
"description": "Number of [GBPs](https://www.google.com/business/) this merchant has access to.",
@@ -542,7 +542,7 @@
542542
"type": "string"
543543
},
544544
"storeStates": {
545-
"description": "Output only. The state per store from the specified merchant.",
545+
"description": "Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP.",
546546
"items": {
547547
"$ref": "LfpStoreState"
548548
},

‎discovery/merchantapi-reports_v1beta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
}
143143
}
144144
},
145-
"revision": "20250311",
145+
"revision": "20250430",
146146
"rootUrl": "https://merchantapi.googleapis.com/",
147147
"schemas": {
148148
"BestSellersBrandView": {
@@ -1518,7 +1518,7 @@
15181518
"type": "string"
15191519
},
15201520
"query": {
1521-
"description": "Required. Query that defines a report to be retrieved. For details on how to construct your query, see the Query Language guide. For the full list of available tables and fields, see the Available fields.",
1521+
"description": "Required. Query that defines a report to be retrieved. For details on how to construct your query, see the [Query Language guide](/merchant/api/guides/reports/query-language). For the full list of available tables and fields, see the [Available fields](/merchant/api/reference/rest/reports_v1beta/accounts.reports).",
15221522
"type": "string"
15231523
}
15241524
},

‎src/apis/merchantapi/accounts_v1beta.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,11 +1030,11 @@ export namespace merchantapi_accounts_v1beta {
10301030
*/
10311031
export interface Schema$OnlineReturnPolicy {
10321032
/**
1033-
* This field specifies if merchant only accepts defective products for returns, and this field is required.
1033+
* Optional. This field specifies if merchant only accepts defective products for returns.
10341034
*/
10351035
acceptDefectiveOnly?: boolean | null;
10361036
/**
1037-
* This field specifies if merchant allows customers to exchange products, this field is required.
1037+
* Optional. This field specifies if merchant allows customers to exchange products.
10381038
*/
10391039
acceptExchange?: boolean | null;
10401040
/**
@@ -1058,15 +1058,15 @@ export namespace merchantapi_accounts_v1beta {
10581058
*/
10591059
policy?: Schema$Policy;
10601060
/**
1061-
* The field specifies the number of days it takes for merchants to process refunds, field is optional.
1061+
* Optional. The field specifies the number of days it takes for merchants to process refunds.
10621062
*/
10631063
processRefundDays?: number | null;
10641064
/**
10651065
* Optional. The restocking fee that applies to all return reason categories. This would be treated as a free restocking fee if the value is not set.
10661066
*/
10671067
restockingFee?: Schema$RestockingFee;
10681068
/**
1069-
* The field specifies the return label source. This field is required when return method is BY_MAIL.
1069+
* Optional. The field specifies the return label source.
10701070
*/
10711071
returnLabelSource?: string | null;
10721072
/**
@@ -2448,7 +2448,7 @@ export namespace merchantapi_accounts_v1beta {
24482448
*/
24492449
pageToken?: string;
24502450
/**
2451-
* Required. The aggregation service provider. Format: `accounts/{providerId\}`
2451+
* Required. The aggregation service provider. Format: `accounts/{accountId\}`
24522452
*/
24532453
provider?: string;
24542454
}

‎src/apis/merchantapi/datasources_v1beta.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export namespace merchantapi_datasources_v1beta {
153153
*/
154154
merchantReviewDataSource?: Schema$MerchantReviewDataSource;
155155
/**
156-
* Identifier. The name of the data source. Format: `accounts/{account\}/dataSources/{datasource\}`
156+
* Required. Identifier. The name of the data source. Format: `accounts/{account\}/dataSources/{datasource\}`
157157
*/
158158
name?: string | null;
159159
/**
@@ -1145,7 +1145,7 @@ export namespace merchantapi_datasources_v1beta {
11451145
export interface Params$Resource$Accounts$Datasources$Patch
11461146
extends StandardParameters {
11471147
/**
1148-
* Identifier. The name of the data source. Format: `accounts/{account\}/dataSources/{datasource\}`
1148+
* Required. Identifier. The name of the data source. Format: `accounts/{account\}/dataSources/{datasource\}`
11491149
*/
11501150
name?: string;
11511151
/**

‎src/apis/merchantapi/lfp_v1beta.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export namespace merchantapi_lfp_v1beta {
252252
*/
253253
countrySettings?: Schema$CountrySettings[];
254254
/**
255-
* The inventory statistics for the merchant.
255+
* The inventory statistics for the merchant. The field will be absent if the merchant has no inventory submitted through LFP.
256256
*/
257257
inventoryStats?: Schema$InventoryStats;
258258
/**
@@ -264,7 +264,7 @@ export namespace merchantapi_lfp_v1beta {
264264
*/
265265
name?: string | null;
266266
/**
267-
* Output only. The state per store from the specified merchant.
267+
* Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP.
268268
*/
269269
storeStates?: Schema$LfpStoreState[];
270270
}

‎src/apis/merchantapi/reports_v1beta.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ export namespace merchantapi_reports_v1beta {
10081008
*/
10091009
pageToken?: string | null;
10101010
/**
1011-
* Required. Query that defines a report to be retrieved. For details on how to construct your query, see the Query Language guide. For the full list of available tables and fields, see the Available fields.
1011+
* Required. Query that defines a report to be retrieved. For details on how to construct your query, see the [Query Language guide](/merchant/api/guides/reports/query-language). For the full list of available tables and fields, see the [Available fields](/merchant/api/reference/rest/reports_v1beta/accounts.reports).
10121012
*/
10131013
query?: string | null;
10141014
}

0 commit comments

Comments
 (0)