Personal Data Types

Типы данных для работы с персональными данными.

PersonalData

class aioyookassa.types.personal_data.PersonalData(*, id: str, type: PersonalDataType, status: PersonalDataStatus, created_at: datetime, cancellation_details: PersonalDataCancellationDetails | None = None, expires_at: datetime | None = None, metadata: dict | None = None)[source]

Bases: BaseModel

Personal data object

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

model_config = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

PersonalDataCancellationDetails

class aioyookassa.types.personal_data.PersonalDataCancellationDetails(*, party: PersonalDataCancellationParty, reason: PersonalDataCancellationReason)[source]

Bases: BaseModel

Cancellation details for personal data

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

model_config = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].