Skip to content

Latest commit

History

History
40 lines (31 loc) · 1.63 KB

File metadata and controls

40 lines (31 loc) · 1.63 KB

Product

A specific product element

Properties

NameTypeDescriptionNotes
product_idstrA unique identifier for the product
namestrThe name of the product[optional]
descriptionstrA description of the product[optional]
pricefloatThe price of the product
categoriesList[str]The categories of the product[optional]
tagsList[str]The tags of the product[optional]
weightfloatThe weight of the product[optional]
weight_unitstrThe weight unit of the product[optional] [default to 'kg']
made_instrThe country of origin of the product[optional]
emission_factorstrAlready know the emissions of the given product? Then you can provide the emission factor here. Unit: kg CO2e[optional]
emission_multiplicatorstrInclude the multiplicator of the given factor.[optional]

Example

fromklimapi_python.models.productimportProduct# TODO update the JSON string belowjson="{}"# create an instance of Product from a JSON stringproduct_instance=Product.from_json(json)
# print the JSON string representation of the objectprint(Product.to_json())
# convert the object into a dictproduct_dict=product_instance.to_dict()
# create an instance of Product from a dictproduct_from_dict=Product.from_dict(product_dict)

[Back to Model list][Back to API list][Back to README]