Order
Bases: Summary
Represents an order containing multiple PV kits and delivery information.
Inherits from
Summary: Provides attributes such as full_price, final_price, discount, and power.
Attributes:
Name | Type | Description |
---|---|---|
pv_kits |
list[PvKit]
|
A list of PV kits included in the order. |
delivery_at |
str
|
The delivery location or city for the order. |
from_dict(data)
classmethod
Creates an instance of Order from a dictionary.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data |
dict
|
A dictionary containing order information. |
required |
Returns:
Name | Type | Description |
---|---|---|
Order |
Order
|
An instance of the Order class. |