Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 998 Bytes

File metadata and controls

32 lines (23 loc) · 998 Bytes

CartItem

An item in the cart of a specific customer

Properties

Name Type Description Notes
amount int The amount of the product in the cart
total float The total price of the product in the cart
product Product

Example

from klimapi_python.models.cart_item import CartItem

# TODO update the JSON string below
json = "{}"
# create an instance of CartItem from a JSON string
cart_item_instance = CartItem.from_json(json)
# print the JSON string representation of the object
print(CartItem.to_json())

# convert the object into a dict
cart_item_dict = cart_item_instance.to_dict()
# create an instance of CartItem from a dict
cart_item_from_dict = CartItem.from_dict(cart_item_dict)

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