Pular para conteúdo

Sales pipeline schema

SalesPipelineSourceSchema

Bases: BaseModel

Represents a sales pipeline entry.

Attributes:

Name Type Description
opportunity_id str

The unique identifier for the sales opportunity.

sales_agent str

The sales agent associated with the opportunity.

product str

The product being sold.

account str

The account linked to the sales opportunity.

deal_stage str

The current stage of the sales deal.

engage_date date

The date when the engagement started.

close_date date

The expected or actual closing date of the deal.

close_value NonNegativeFloat

The monetary value of the closed deal.

Source code in api/schemas/sales_pipeline_schema.py
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
class SalesPipelineSourceSchema(BaseModel):
    """
    Represents a sales pipeline entry.

    Attributes:
        opportunity_id (str): 
            The unique identifier for the sales opportunity.
        sales_agent (str): 
            The sales agent associated with the opportunity.
        product (str): 
            The product being sold.
        account (str): 
            The account linked to the sales opportunity.
        deal_stage (str): 
            The current stage of the sales deal.
        engage_date (date): 
            The date when the engagement started.
        close_date (date): 
            The expected or actual closing date of the deal.
        close_value (NonNegativeFloat): 
            The monetary value of the closed deal.
    """
    opportunity_id: str
    sales_agent: str
    product: str
    account: str
    deal_stage: str
    engage_date: date
    close_date: date
    close_value: NonNegativeFloat