Source code for bungieapi.generated.components.schemas.destiny.definitions.vendors
# 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 DestinyVendorLocationDefinition:
"""These definitions represent vendors' locations and relevant display
information at different times in the game."""
background_image_path: t.Optional[
str
] = None # The relative path to the background image representing this Vendor at this location, for use in a banner.
destination_hash: t.Optional[
int
] = None # The hash identifier for a Destination at which this vendor may be located. Each destination where a Vendor may exist will only ever have a single entry.
[docs] def to_json(self) -> t.Mapping[str, t.Any]:
return {
"destinationHash": to_json(self.destination_hash),
"backgroundImagePath": to_json(self.background_image_path),
}