Represents a saved quote object, including properties and methods for managing saved quotes.

interface SavedQuote {
    Attributes: {
        [key: string]: any;
    };
    ChildQuotes: SavedQuote[];
    CreatedByCustomerId: number;
    CreatedOnUtc: Date;
    CustomerId: number;
    CustomReference: string;
    CustomTag: string;
    HideFromCustomer: boolean;
    Id: number;
    InfoText: string;
    JobPrice: number;
    LifeSpanDays: number;
    MarkupAmount: number;
    MarkupType: number;
    MaxUsageCount: number;
    Name: string;
    ParentQuoteId: number;
    Price: number;
    ProductId: number;
    Quantity: number;
    QuoteMetaData: {
        [key: string]: any;
    };
    QuoteType: number;
    Status: number;
    SupplierId: number;
    UpdatedOnUtc: Date;
    UsageType: number;
    GetExtraData(key: string): {
        [key: string]: any;
    };
    SetExtraData(key: string, value: string): void;
}

Properties

Attributes: {
    [key: string]: any;
}

The attributes associated with the saved quote.

ChildQuotes: SavedQuote[]

A collection of child quotes associated with the saved quote.

CreatedByCustomerId: number

The ID of the customer who created the saved quote.

CreatedOnUtc: Date

The UTC date and time when the saved quote was created.

CustomerId: number

The ID of the customer associated with the saved quote.

CustomReference: string

A custom reference string for the saved quote.

CustomTag: string

A custom tag for categorizing the saved quote.

HideFromCustomer: boolean

Determines whether the saved quote is hidden from the customer.

Id: number

The unique identifier of the saved quote.

InfoText: string

Informational text or notes related to the saved quote.

JobPrice: number

The calculated job price of the saved quote.

LifeSpanDays: number

The lifespan of the saved quote in days.

MarkupAmount: number

The markup amount applied to the saved quote.

MarkupType: number

The markup type applied to the saved quote.

MaxUsageCount: number

The maximum number of usages allowed for the saved quote.

Name: string

The name of the saved quote.

ParentQuoteId: number

The parent quote ID for hierarchical relationships.

Price: number

The price of the saved quote.

ProductId: number

The ID of the product associated with the saved quote.

Quantity: number

The quantity of items in the saved quote.

QuoteMetaData: {
    [key: string]: any;
}

Metadata or additional data associated with the saved quote.

QuoteType: number

The quote type identifier.

Status: number

The status of the saved quote.

SupplierId: number

The supplier ID associated with the saved quote.

UpdatedOnUtc: Date

The UTC date and time when the saved quote was last updated.

UsageType: number

The type of usage for the saved quote.

Methods

  • Retrieves extra data for the saved quote by key.

    Parameters

    • key: string

      The key for the extra data.

    Returns {
        [key: string]: any;
    }

    The value of the extra data, or null if not found.

    • [key: string]: any
  • Sets extra data for the saved quote.

    Parameters

    • key: string

      The key for the extra data.

    • value: string

      The value for the extra data.

    Returns void