Source code for bungieapi.generated.components.schemas.destiny.requests

# generated by update to not change manually
import dataclasses as dt
import typing as t

from bungieapi.json import to_json


[docs]@dt.dataclass(frozen=True) class DestinyItemTransferRequest: character_id: t.Optional[int] = None item_id: t.Optional[ int ] = None # The instance ID of the item for this action request. item_reference_hash: t.Optional[int] = None membership_type: t.Optional["BungieMembershipType"] = None stack_size: t.Optional[int] = None transfer_to_vault: t.Optional[bool] = None
[docs] def to_json(self) -> t.Mapping[str, t.Any]: return { "itemReferenceHash": to_json(self.item_reference_hash), "stackSize": to_json(self.stack_size), "transferToVault": to_json(self.transfer_to_vault), "itemId": to_json(self.item_id), "characterId": to_json(self.character_id), "membershipType": to_json(self.membership_type), }
# imported at the end to do not case circular imports for type annotations from bungieapi.generated.components.schemas import BungieMembershipType # noqa: E402