|
21 | 21 | from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr |
22 | 22 | from typing import Any, ClassVar, Dict, List, Optional |
23 | 23 | from helloasso_python.models.hello_asso_api_v5_models_common_meta_model import HelloAssoApiV5ModelsCommonMetaModel |
24 | | -from helloasso_python.models.hello_asso_api_v5_models_common_place_model import HelloAssoApiV5ModelsCommonPlaceModel |
25 | 24 | from helloasso_python.models.hello_asso_api_v5_models_enums_form_type import HelloAssoApiV5ModelsEnumsFormType |
26 | 25 | from helloasso_python.models.hello_asso_api_v5_models_enums_organization_type import HelloAssoApiV5ModelsEnumsOrganizationType |
27 | 26 | from helloasso_python.models.hello_asso_api_v5_models_statistics_order_amount_model import HelloAssoApiV5ModelsStatisticsOrderAmountModel |
@@ -49,8 +48,7 @@ class HelloAssoApiV5ModelsStatisticsOrderDetail(BaseModel): |
49 | 48 | organization_is_under_coluche_law: Optional[StrictBool] = Field(default=None, description="Whether or not the organization is subject to the coluche law", alias="organizationIsUnderColucheLaw") |
50 | 49 | checkout_intent_id: Optional[StrictInt] = Field(default=None, description="Checkout intent Id if available", alias="checkoutIntentId") |
51 | 50 | meta: Optional[HelloAssoApiV5ModelsCommonMetaModel] = None |
52 | | - place: Optional[HelloAssoApiV5ModelsCommonPlaceModel] = None |
53 | | - __properties: ClassVar[List[str]] = ["payer", "items", "payments", "amount", "id", "date", "formSlug", "formType", "organizationName", "organizationSlug", "organizationType", "organizationIsUnderColucheLaw", "checkoutIntentId", "meta", "place"] |
| 51 | + __properties: ClassVar[List[str]] = ["payer", "items", "payments", "amount", "id", "date", "formSlug", "formType", "organizationName", "organizationSlug", "organizationType", "organizationIsUnderColucheLaw", "checkoutIntentId", "meta"] |
54 | 52 |
|
55 | 53 | model_config = ConfigDict( |
56 | 54 | populate_by_name=True, |
@@ -114,9 +112,6 @@ def to_dict(self) -> Dict[str, Any]: |
114 | 112 | # override the default output from pydantic by calling `to_dict()` of meta |
115 | 113 | if self.meta: |
116 | 114 | _dict['meta'] = self.meta.to_dict() |
117 | | - # override the default output from pydantic by calling `to_dict()` of place |
118 | | - if self.place: |
119 | | - _dict['place'] = self.place.to_dict() |
120 | 115 | # set to None if items (nullable) is None |
121 | 116 | # and model_fields_set contains the field |
122 | 117 | if self.items is None and "items" in self.model_fields_set: |
@@ -172,8 +167,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: |
172 | 167 | "organizationType": obj.get("organizationType"), |
173 | 168 | "organizationIsUnderColucheLaw": obj.get("organizationIsUnderColucheLaw"), |
174 | 169 | "checkoutIntentId": obj.get("checkoutIntentId"), |
175 | | - "meta": HelloAssoApiV5ModelsCommonMetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None, |
176 | | - "place": HelloAssoApiV5ModelsCommonPlaceModel.from_dict(obj["place"]) if obj.get("place") is not None else None |
| 170 | + "meta": HelloAssoApiV5ModelsCommonMetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None |
177 | 171 | }) |
178 | 172 | return _obj |
179 | 173 |
|
|
0 commit comments