Skip to content

Commit d525309

Browse files
yoshi-automationsofisl
authored andcommitted
feat(content): update the API
#### content:v2.1 The following keys were added: - schemas.Product.properties.certifications.description - schemas.Product.properties.certifications.items.$ref - schemas.Product.properties.certifications.type - schemas.ProductCertification.description - schemas.ProductCertification.id - schemas.ProductCertification.properties.certificationAuthority.description - schemas.ProductCertification.properties.certificationAuthority.type - schemas.ProductCertification.properties.certificationCode.description - schemas.ProductCertification.properties.certificationCode.type - schemas.ProductCertification.properties.certificationName.description - schemas.ProductCertification.properties.certificationName.type - schemas.ProductCertification.type - schemas.ServiceStoreConfigCutoffConfig.properties.noDeliveryPostCutoff.description - schemas.ServiceStoreConfigCutoffConfig.properties.noDeliveryPostCutoff.type
1 parent 01536b8 commit d525309

File tree

2 files changed

+61
-1
lines changed

2 files changed

+61
-1
lines changed

discovery/content-v2.1.json

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6271,7 +6271,7 @@
62716271
}
62726272
}
62736273
},
6274-
"revision": "20230613",
6274+
"revision": "20230704",
62756275
"rootUrl": "https://shoppingcontent.googleapis.com/",
62766276
"schemas": {
62776277
"Account": {
@@ -13396,6 +13396,13 @@
1339613396
"description": "URL for the canonical version of your item's landing page.",
1339713397
"type": "string"
1339813398
},
13399+
"certifications": {
13400+
"description": "Product [certification](https://support.google.com/merchants/answer/13528839), introduced for EU energy efficiency labeling compliance using the [EU EPREL](https://eprel.ec.europa.eu/screen/home) database.",
13401+
"items": {
13402+
"$ref": "ProductCertification"
13403+
},
13404+
"type": "array"
13405+
},
1339913406
"channel": {
1340013407
"description": "Required. The item's channel (online or local). Acceptable values are: - \"`local`\" - \"`online`\" ",
1340113408
"type": "string"
@@ -13800,6 +13807,25 @@
1380013807
},
1380113808
"type": "object"
1380213809
},
13810+
"ProductCertification": {
13811+
"description": "Product [certification](https://support.google.com/merchants/answer/13528839), introduced for EU energy efficiency labeling compliance using the [EU EPREL](https://eprel.ec.europa.eu/screen/home) database.",
13812+
"id": "ProductCertification",
13813+
"properties": {
13814+
"certificationAuthority": {
13815+
"description": "The certification authority, for example \"European_Commission\". Maximum length is 2000 characters.",
13816+
"type": "string"
13817+
},
13818+
"certificationCode": {
13819+
"description": "The certification code, for eaxample \"123456\". Maximum length is 2000 characters.",
13820+
"type": "string"
13821+
},
13822+
"certificationName": {
13823+
"description": "The name of the certification, for example \"EPREL\". Maximum length is 2000 characters.",
13824+
"type": "string"
13825+
}
13826+
},
13827+
"type": "object"
13828+
},
1380313829
"ProductCluster": {
1380413830
"description": "Product cluster fields. A product cluster is a grouping for different offers that represent the same product. Values are only set for fields requested explicitly in the request's search query.",
1380513831
"id": "ProductCluster",
@@ -16946,6 +16972,10 @@
1694616972
"$ref": "ServiceStoreConfigCutoffConfigLocalCutoffTime",
1694716973
"description": "Time in hours and minutes in the local timezone when local delivery ends."
1694816974
},
16975+
"noDeliveryPostCutoff": {
16976+
"description": "Merchants can opt-out of showing n+1 day local delivery when they have a shipping service configured to n day local delivery. For example, if the shipping service defines same-day delivery, and it's past the cut-off, setting this field to `true` results in the calculated shipping service rate returning `NO_DELIVERY_POST_CUTOFF`. In the same example, setting this field to `false` results in the calculated shipping time being one day. This is only for local delivery.",
16977+
"type": "boolean"
16978+
},
1694916979
"storeCloseOffsetHours": {
1695016980
"description": "Represents cutoff time as the number of hours before store closing. Mutually exclusive with other fields (hour and minute).",
1695116981
"format": "int64",

src/apis/content/v2.1.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5470,6 +5470,10 @@ export namespace content_v2_1 {
54705470
* URL for the canonical version of your item's landing page.
54715471
*/
54725472
canonicalLink?: string | null;
5473+
/**
5474+
* Product [certification](https://support.google.com/merchants/answer/13528839), introduced for EU energy efficiency labeling compliance using the [EU EPREL](https://eprel.ec.europa.eu/screen/home) database.
5475+
*/
5476+
certifications?: Schema$ProductCertification[];
54735477
/**
54745478
* Required. The item's channel (online or local). Acceptable values are: - "`local`" - "`online`"
54755479
*/
@@ -5821,6 +5825,23 @@ export namespace content_v2_1 {
58215825
*/
58225826
taxAmount?: Schema$Price;
58235827
}
5828+
/**
5829+
* Product [certification](https://support.google.com/merchants/answer/13528839), introduced for EU energy efficiency labeling compliance using the [EU EPREL](https://eprel.ec.europa.eu/screen/home) database.
5830+
*/
5831+
export interface Schema$ProductCertification {
5832+
/**
5833+
* The certification authority, for example "European_Commission". Maximum length is 2000 characters.
5834+
*/
5835+
certificationAuthority?: string | null;
5836+
/**
5837+
* The certification code, for eaxample "123456". Maximum length is 2000 characters.
5838+
*/
5839+
certificationCode?: string | null;
5840+
/**
5841+
* The name of the certification, for example "EPREL". Maximum length is 2000 characters.
5842+
*/
5843+
certificationName?: string | null;
5844+
}
58245845
/**
58255846
* Product cluster fields. A product cluster is a grouping for different offers that represent the same product. Values are only set for fields requested explicitly in the request's search query.
58265847
*/
@@ -8050,6 +8071,10 @@ export namespace content_v2_1 {
80508071
* Time in hours and minutes in the local timezone when local delivery ends.
80518072
*/
80528073
localCutoffTime?: Schema$ServiceStoreConfigCutoffConfigLocalCutoffTime;
8074+
/**
8075+
* Merchants can opt-out of showing n+1 day local delivery when they have a shipping service configured to n day local delivery. For example, if the shipping service defines same-day delivery, and it's past the cut-off, setting this field to `true` results in the calculated shipping service rate returning `NO_DELIVERY_POST_CUTOFF`. In the same example, setting this field to `false` results in the calculated shipping time being one day. This is only for local delivery.
8076+
*/
8077+
noDeliveryPostCutoff?: boolean | null;
80538078
/**
80548079
* Represents cutoff time as the number of hours before store closing. Mutually exclusive with other fields (hour and minute).
80558080
*/
@@ -27997,6 +28022,7 @@ export namespace content_v2_1 {
2799728022
* // "availabilityDate": "my_availabilityDate",
2799828023
* // "brand": "my_brand",
2799928024
* // "canonicalLink": "my_canonicalLink",
28025+
* // "certifications": [],
2800028026
* // "channel": "my_channel",
2800128027
* // "cloudExportAdditionalProperties": [],
2800228028
* // "color": "my_color",
@@ -28221,6 +28247,7 @@ export namespace content_v2_1 {
2822128247
* // "availabilityDate": "my_availabilityDate",
2822228248
* // "brand": "my_brand",
2822328249
* // "canonicalLink": "my_canonicalLink",
28250+
* // "certifications": [],
2822428251
* // "channel": "my_channel",
2822528252
* // "cloudExportAdditionalProperties": [],
2822628253
* // "color": "my_color",
@@ -28323,6 +28350,7 @@ export namespace content_v2_1 {
2832328350
* // "availabilityDate": "my_availabilityDate",
2832428351
* // "brand": "my_brand",
2832528352
* // "canonicalLink": "my_canonicalLink",
28353+
* // "certifications": [],
2832628354
* // "channel": "my_channel",
2832728355
* // "cloudExportAdditionalProperties": [],
2832828356
* // "color": "my_color",
@@ -28690,6 +28718,7 @@ export namespace content_v2_1 {
2869028718
* // "availabilityDate": "my_availabilityDate",
2869128719
* // "brand": "my_brand",
2869228720
* // "canonicalLink": "my_canonicalLink",
28721+
* // "certifications": [],
2869328722
* // "channel": "my_channel",
2869428723
* // "cloudExportAdditionalProperties": [],
2869528724
* // "color": "my_color",
@@ -28792,6 +28821,7 @@ export namespace content_v2_1 {
2879228821
* // "availabilityDate": "my_availabilityDate",
2879328822
* // "brand": "my_brand",
2879428823
* // "canonicalLink": "my_canonicalLink",
28824+
* // "certifications": [],
2879528825
* // "channel": "my_channel",
2879628826
* // "cloudExportAdditionalProperties": [],
2879728827
* // "color": "my_color",

0 commit comments

Comments
 (0)