Options
All
  • Public
  • Public/Protected
  • All
Menu

Class QuoteCommands

Hierarchy

  • QuoteCommands

Index

Methods

promptUser

  • Opens the chat window (if not already open) and prompts the user to select services for a mechanical services quote, or tires (and related services) for a tire quote. Prompts for mechanical services quotes by default.

    Usage

    example
    // Prompt for a mechanical quote (default)
    Otis.quotes.promptUser();
    
    // Prompt for a mechanical quote
    Otis.quotes.promptUser('mechanical');
    
    // Prompt for a tire quote
    Otis.quotes.promptUser('tire');

    Parameters

    • Default value quoteType: QuoteType = "mechanical"

      'mechanical' to prompt for a mechanical services quote, or 'tire' to prompt for a tire quote; default: 'mechanical'

    Returns void

promptUserWithCategory

  • Opens the chat window (if not already open) and prompts the user to select services within a given category.

    Usage

    example
    // Prompt for a mechanical quote within the Brakes category
    Otis.quotes.promptUserWithCategory('brakes');

    Parameters

    Returns void