Skip to content

Commit

Permalink
fix: API Change: CustomerAccount.name+last_name don't return on API (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyKh authored Nov 10, 2024
1 parent 96cac01 commit 15805c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions iec_api/models/customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
# }

from dataclasses import dataclass, field
from typing import Optional

from mashumaro import DataClassDictMixin, field_options

Expand All @@ -40,13 +41,13 @@ class CustomerAccount(DataClassDictMixin):
main_contract_id: str = field(metadata=field_options(alias="mainContractId"))
main_contract_id_type: int = field(metadata=field_options(alias="mainContractIdType"))
company_id: str = field(metadata=field_options(alias="companyId"))
name: str
last_name: str = field(metadata=field_options(alias="lastName"))
bp_number: str = field(metadata=field_options(alias="bpNumber"))
bp_type: int = field(metadata=field_options(alias="bpType"))
is_active_account: bool = field(metadata=field_options(alias="isActiveAccount"))
customer_role: int = field(metadata=field_options(alias="customerRole"))
account_type: int = field(metadata=field_options(alias="accountType"))
name: Optional[str] = field(default=None, metadata=field_options(alias="name"))
last_name: Optional[str] = field(default=None, metadata=field_options(alias="lastName"))


@dataclass
Expand Down

0 comments on commit 15805c7

Please sign in to comment.