Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 7 additions & 14 deletions src/apify_client/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,9 +735,10 @@ class CommonActorPricingInfo(BaseModel):
populate_by_name=True,
alias_generator=to_camel,
)
apify_margin_percentage: float
apify_margin_percentage: Annotated[float, Field(examples=[0.2])]
"""
In [0, 1], fraction of pricePerUnitUsd that goes to Apify
Apify's share of the revenue generated under this pricing info record, as a fraction between 0 and 1. Set by the Apify platform.

"""
created_at: AwareDatetime
"""
Expand Down Expand Up @@ -792,18 +793,6 @@ class CreateActorRequest(BaseModel):
"""
An array of `Version` objects. Each object represents a specific version of the Actor's source code: its location, builds, and environment configuration.
"""
pricing_infos: (
list[
Annotated[
PayPerEventActorPricingInfo
| PricePerDatasetItemActorPricingInfo
| FlatPricePerMonthActorPricingInfo
| FreeActorPricingInfo,
Field(discriminator='pricing_model'),
]
]
| None
) = None
categories: Annotated[list[str] | None, Field(examples=[['SOCIAL_MEDIA']])] = None
"""
A list of categories that best define the Actor. Reflected in Apify Store's search and filtering options.
Expand Down Expand Up @@ -920,6 +909,10 @@ class CurrentPricingInfo(BaseModel):
)
pricing_model: Annotated[str, Field(examples=['FREE'])]
apify_margin_percentage: Annotated[float | None, Field(examples=[0.2])] = None
"""
Apify's share of the revenue generated under this pricing info record, as a fraction between 0 and 1. Set by the Apify platform.

"""
created_at: Annotated[AwareDatetime | None, Field(examples=['2023-01-01T00:00:00.000Z'])] = None
started_at: Annotated[AwareDatetime | None, Field(examples=['2023-01-01T00:00:00.000Z'])] = None
notified_about_change_at: Annotated[AwareDatetime | None, Field(examples=[None])] = None
Expand Down
Loading