I have generated the latest API!

This commit is contained in:
github-actions[bot]
2022-07-08 00:56:43 +00:00
parent 3802dd36fc
commit 4623f854af
19 changed files with 9574 additions and 8364 deletions

View File

@ -4,7 +4,6 @@ from typing import Any, Dict, List, Type, TypeVar, Union, cast
import attr
from dateutil.parser import isoparse
from ..models.phone_number import PhoneNumber
from ..types import UNSET, Unset
T = TypeVar("T", bound="ExtendedUser")
@ -25,7 +24,7 @@ class ExtendedUser:
last_name: Union[Unset, str] = UNSET
mailchimp_id: Union[Unset, str] = UNSET
name: Union[Unset, str] = UNSET
phone: Union[Unset, PhoneNumber] = UNSET
phone: Union[Unset, str] = UNSET
stripe_id: Union[Unset, str] = UNSET
updated_at: Union[Unset, datetime.datetime] = UNSET
zendesk_id: Union[Unset, str] = UNSET
@ -49,9 +48,7 @@ class ExtendedUser:
last_name = self.last_name
mailchimp_id = self.mailchimp_id
name = self.name
phone: Union[Unset, str] = UNSET
if not isinstance(self.phone, Unset):
phone = self.phone.value
phone = self.phone
stripe_id = self.stripe_id
updated_at: Union[Unset, str] = UNSET
if not isinstance(self.updated_at, Unset):
@ -133,12 +130,7 @@ class ExtendedUser:
name = d.pop("name", UNSET)
_phone = d.pop("phone", UNSET)
phone: Union[Unset, PhoneNumber]
if isinstance(_phone, Unset):
phone = UNSET
else:
phone = PhoneNumber(_phone)
phone = d.pop("phone", UNSET)
stripe_id = d.pop("stripe_id", UNSET)