Skip to content

Commit

Permalink
feat(manufacturers): update the API
Browse files Browse the repository at this point in the history
#### manufacturers:v1

The following keys were added:
- schemas.Attributes.properties.certification.description
- schemas.Attributes.properties.certification.items.$ref
- schemas.Attributes.properties.certification.type
- schemas.GoogleShoppingManufacturersV1ProductCertification.description
- schemas.GoogleShoppingManufacturersV1ProductCertification.id
- schemas.GoogleShoppingManufacturersV1ProductCertification.properties.authority.description
- schemas.GoogleShoppingManufacturersV1ProductCertification.properties.authority.type
- schemas.GoogleShoppingManufacturersV1ProductCertification.properties.code.description
- schemas.GoogleShoppingManufacturersV1ProductCertification.properties.code.type
- schemas.GoogleShoppingManufacturersV1ProductCertification.properties.name.description
- schemas.GoogleShoppingManufacturersV1ProductCertification.properties.name.type
- schemas.GoogleShoppingManufacturersV1ProductCertification.type
  • Loading branch information
yoshi-automation authored and sofisl committed Nov 27, 2023
1 parent f918fd8 commit a39d751
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
28 changes: 27 additions & 1 deletion discovery/manufacturers-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@
}
}
},
"revision": "20230831",
"revision": "20231113",
"rootUrl": "https://manufacturers.googleapis.com/",
"schemas": {
"Attributes": {
Expand All @@ -442,6 +442,13 @@
"$ref": "Capacity",
"description": "The capacity of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#capacity."
},
"certification": {
"description": "Optional. List of certifications claimed by this product.",
"items": {
"$ref": "GoogleShoppingManufacturersV1ProductCertification"
},
"type": "array"
},
"color": {
"description": "The color of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#color.",
"type": "string"
Expand Down Expand Up @@ -754,6 +761,25 @@
},
"type": "object"
},
"GoogleShoppingManufacturersV1ProductCertification": {
"description": "Description of a certification.",
"id": "GoogleShoppingManufacturersV1ProductCertification",
"properties": {
"authority": {
"description": "Required. Name of the certification body.",
"type": "string"
},
"code": {
"description": "Required. A unique code to identify the certification.",
"type": "string"
},
"name": {
"description": "Required. Name of the certification.",
"type": "string"
}
},
"type": "object"
},
"Grocery": {
"id": "Grocery",
"properties": {
Expand Down
21 changes: 21 additions & 0 deletions src/apis/manufacturers/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ export namespace manufacturers_v1 {
* The capacity of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#capacity.
*/
capacity?: Schema$Capacity;
/**
* Optional. List of certifications claimed by this product.
*/
certification?: Schema$GoogleShoppingManufacturersV1ProductCertification[];
/**
* The color of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#color.
*/
Expand Down Expand Up @@ -395,6 +399,23 @@ export namespace manufacturers_v1 {
*/
unit?: string | null;
}
/**
* Description of a certification.
*/
export interface Schema$GoogleShoppingManufacturersV1ProductCertification {
/**
* Required. Name of the certification body.
*/
authority?: string | null;
/**
* Required. A unique code to identify the certification.
*/
code?: string | null;
/**
* Required. Name of the certification.
*/
name?: string | null;
}
export interface Schema$Grocery {
/**
* Active ingredients.
Expand Down

0 comments on commit a39d751

Please sign in to comment.