Skip to content

Commit ea5fced

Browse files
feat(merchantapi): update the API
#### merchantapi:datasources_v1 The following keys were changed: - schemas.SupplementalProductDataSource.description #### merchantapi:datasources_v1beta The following keys were changed: - schemas.SupplementalProductDataSource.description #### merchantapi:products_v1 The following keys were added: - schemas.ProductAttributes.properties.shippingHandlingBusinessDays.description - schemas.ProductAttributes.properties.shippingHandlingBusinessDays.items.$ref - schemas.ProductAttributes.properties.shippingHandlingBusinessDays.type - schemas.ProductAttributes.properties.shippingTransitBusinessDays.description - schemas.ProductAttributes.properties.shippingTransitBusinessDays.items.$ref - schemas.ProductAttributes.properties.shippingTransitBusinessDays.type - schemas.ShippingBusinessDaysConfig.description - schemas.ShippingBusinessDaysConfig.id - schemas.ShippingBusinessDaysConfig.properties.businessDays.description - schemas.ShippingBusinessDaysConfig.properties.businessDays.type - schemas.ShippingBusinessDaysConfig.properties.country.description - schemas.ShippingBusinessDaysConfig.properties.country.type - schemas.ShippingBusinessDaysConfig.type
1 parent 00402db commit ea5fced

File tree

6 files changed

+57
-7
lines changed

6 files changed

+57
-7
lines changed

discovery/merchantapi-datasources_v1.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@
321321
}
322322
}
323323
},
324-
"revision": "20250804",
324+
"revision": "20251102",
325325
"rootUrl": "https://merchantapi.googleapis.com/",
326326
"schemas": {
327327
"DataSource": {
@@ -980,7 +980,7 @@
980980
"type": "object"
981981
},
982982
"SupplementalProductDataSource": {
983-
"description": "The supplemental data source for local and online products. After creation, you should make sure to link the supplemental product data source into one or more primary product data sources.",
983+
"description": "The [supplemental data source](https://developers.google.com/merchant/api/guides/data-sources/api-sources#link-supplemental-data-source) for local and online products. After creation,you should make sure to link the supplemental product data source into one or more primary product data sources.",
984984
"id": "SupplementalProductDataSource",
985985
"properties": {
986986
"contentLanguage": {

discovery/merchantapi-datasources_v1beta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@
321321
}
322322
}
323323
},
324-
"revision": "20250721",
324+
"revision": "20251102",
325325
"rootUrl": "https://merchantapi.googleapis.com/",
326326
"schemas": {
327327
"DataSource": {
@@ -992,7 +992,7 @@
992992
"type": "object"
993993
},
994994
"SupplementalProductDataSource": {
995-
"description": "The supplemental data source for local and online products. After creation, you should make sure to link the supplemental product data source into one or more primary product data sources.",
995+
"description": "The [supplemental data source](https://developers.google.com/merchant/api/guides/data-sources/api-sources#link-supplemental-data-source) for local and online products. After creation,you should make sure to link the supplemental product data source into one or more primary product data sources.",
996996
"id": "SupplementalProductDataSource",
997997
"properties": {
998998
"contentLanguage": {

discovery/merchantapi-products_v1.json

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@
281281
}
282282
}
283283
},
284-
"revision": "20251007",
284+
"revision": "20251104",
285285
"rootUrl": "https://merchantapi.googleapis.com/",
286286
"schemas": {
287287
"AutomatedDiscounts": {
@@ -1696,6 +1696,13 @@
16961696
},
16971697
"type": "array"
16981698
},
1699+
"shippingHandlingBusinessDays": {
1700+
"description": "The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.",
1701+
"items": {
1702+
"$ref": "ShippingBusinessDaysConfig"
1703+
},
1704+
"type": "array"
1705+
},
16991706
"shippingHeight": {
17001707
"$ref": "ShippingDimension",
17011708
"description": "Height of the item for shipping."
@@ -1708,6 +1715,13 @@
17081715
"$ref": "ShippingDimension",
17091716
"description": "Length of the item for shipping."
17101717
},
1718+
"shippingTransitBusinessDays": {
1719+
"description": "The business days during which orders are in transit. If not provided, Monday to Friday business days will be assumed.",
1720+
"items": {
1721+
"$ref": "ShippingBusinessDaysConfig"
1722+
},
1723+
"type": "array"
1724+
},
17111725
"shippingWeight": {
17121726
"$ref": "ShippingWeight",
17131727
"description": "Weight of the item for shipping."
@@ -2294,6 +2308,21 @@
22942308
},
22952309
"type": "object"
22962310
},
2311+
"ShippingBusinessDaysConfig": {
2312+
"description": "The business days during which orders are on their path to fulfillment. If not provided, Monday to Friday business days will be assumed.",
2313+
"id": "ShippingBusinessDaysConfig",
2314+
"properties": {
2315+
"businessDays": {
2316+
"description": "Effective days of the week considered for the delivery time calculation. May not be empty. The more business days included the faster the delivery. Can be set through individual days (e.g. `MTWRF`), or day ranges (e.g. `Mon-Fri`). For more information about accepted formats, see [Shipping handling business days](https://support.google.com/merchants/answer/16072859).",
2317+
"type": "string"
2318+
},
2319+
"country": {
2320+
"description": "The [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) of the country to which an item will ship.",
2321+
"type": "string"
2322+
}
2323+
},
2324+
"type": "object"
2325+
},
22972326
"ShippingDimension": {
22982327
"description": "The ShippingDimension of the product.",
22992328
"id": "ShippingDimension",

src/apis/merchantapi/datasources_v1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ export namespace merchantapi_datasources_v1 {
497497
feedLabel?: string | null;
498498
}
499499
/**
500-
* The supplemental data source for local and online products. After creation, you should make sure to link the supplemental product data source into one or more primary product data sources.
500+
* The [supplemental data source](https://developers.google.com/merchant/api/guides/data-sources/api-sources#link-supplemental-data-source) for local and online products. After creation,you should make sure to link the supplemental product data source into one or more primary product data sources.
501501
*/
502502
export interface Schema$SupplementalProductDataSource {
503503
/**

src/apis/merchantapi/datasources_v1beta.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ export namespace merchantapi_datasources_v1beta {
497497
feedLabel?: string | null;
498498
}
499499
/**
500-
* The supplemental data source for local and online products. After creation, you should make sure to link the supplemental product data source into one or more primary product data sources.
500+
* The [supplemental data source](https://developers.google.com/merchant/api/guides/data-sources/api-sources#link-supplemental-data-source) for local and online products. After creation,you should make sure to link the supplemental product data source into one or more primary product data sources.
501501
*/
502502
export interface Schema$SupplementalProductDataSource {
503503
/**

src/apis/merchantapi/products_v1.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,10 @@ export namespace merchantapi_products_v1 {
798798
* Shipping rules.
799799
*/
800800
shipping?: Schema$Shipping[];
801+
/**
802+
* The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
803+
*/
804+
shippingHandlingBusinessDays?: Schema$ShippingBusinessDaysConfig[];
801805
/**
802806
* Height of the item for shipping.
803807
*/
@@ -810,6 +814,10 @@ export namespace merchantapi_products_v1 {
810814
* Length of the item for shipping.
811815
*/
812816
shippingLength?: Schema$ShippingDimension;
817+
/**
818+
* The business days during which orders are in transit. If not provided, Monday to Friday business days will be assumed.
819+
*/
820+
shippingTransitBusinessDays?: Schema$ShippingBusinessDaysConfig[];
813821
/**
814822
* Weight of the item for shipping.
815823
*/
@@ -1158,6 +1166,19 @@ export namespace merchantapi_products_v1 {
11581166
*/
11591167
service?: string | null;
11601168
}
1169+
/**
1170+
* The business days during which orders are on their path to fulfillment. If not provided, Monday to Friday business days will be assumed.
1171+
*/
1172+
export interface Schema$ShippingBusinessDaysConfig {
1173+
/**
1174+
* Effective days of the week considered for the delivery time calculation. May not be empty. The more business days included the faster the delivery. Can be set through individual days (e.g. `MTWRF`), or day ranges (e.g. `Mon-Fri`). For more information about accepted formats, see [Shipping handling business days](https://support.google.com/merchants/answer/16072859).
1175+
*/
1176+
businessDays?: string | null;
1177+
/**
1178+
* The [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) of the country to which an item will ship.
1179+
*/
1180+
country?: string | null;
1181+
}
11611182
/**
11621183
* The ShippingDimension of the product.
11631184
*/

0 commit comments

Comments
 (0)