Update api spec (#93)

* YOYO NEW API SPEC!

* update

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* I have generated the latest API!

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Jess Frazelle
2023-05-23 14:24:13 -07:00
committed by GitHub
parent 42f173783f
commit c111c3813f
105 changed files with 2109 additions and 1155 deletions

View File

@ -4,31 +4,31 @@ import attr
from ..types import UNSET, Unset
B = TypeVar("B", bound="Onboarding")
P = TypeVar("P", bound="Onboarding")
@attr.s(auto_attribs=True)
class Onboarding:
"""Onboarding details""" # noqa: E501
first_call_from_their_machine_date: Union[Unset, str] = UNSET
first_call_from__their_machine_date: Union[Unset, str] = UNSET
first_litterbox_execute_date: Union[Unset, str] = UNSET
first_token_date: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
def to_dict(self) -> Dict[str, Any]:
first_call_from_their_machine_date = self.first_call_from_their_machine_date
first_call_from__their_machine_date = self.first_call_from__their_machine_date
first_litterbox_execute_date = self.first_litterbox_execute_date
first_token_date = self.first_token_date
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if first_call_from_their_machine_date is not UNSET:
if first_call_from__their_machine_date is not UNSET:
field_dict[
"first_call_from_their_machine_date"
] = first_call_from_their_machine_date
] = first_call_from__their_machine_date
if first_litterbox_execute_date is not UNSET:
field_dict["first_litterbox_execute_date"] = first_litterbox_execute_date
if first_token_date is not UNSET:
@ -37,9 +37,9 @@ class Onboarding:
return field_dict
@classmethod
def from_dict(cls: Type[B], src_dict: Dict[str, Any]) -> B:
def from_dict(cls: Type[P], src_dict: Dict[str, Any]) -> P:
d = src_dict.copy()
first_call_from_their_machine_date = d.pop(
first_call_from__their_machine_date = d.pop(
"first_call_from_their_machine_date", UNSET
)
@ -48,7 +48,7 @@ class Onboarding:
first_token_date = d.pop("first_token_date", UNSET)
onboarding = cls(
first_call_from_their_machine_date=first_call_from_their_machine_date,
first_call_from__their_machine_date=first_call_from__their_machine_date,
first_litterbox_execute_date=first_litterbox_execute_date,
first_token_date=first_token_date,
)