Parameter API object

Constructors

Properties

Constructors

  • Builds a parameter object for a BodyComponent. For text parameter, the character limit is 32768 if only one BodyComponent is used for the Template, else it's 1024.

    Parameters

    • parameter: string | Currency | DateTime

      The parameter to be used in the template

    Returns BodyParameter

    If parameter is a string and it's over 32768 characters

    If parameter is a string, there are other components in the Template and it's over 1024 characters

    BodyComponent._build The method that checks the 1024 character limit

Properties

currency?: Currency

The currency of the parameter

date_time?: DateTime

The datetime of the parameter

text?: string

The text of the parameter

type: "text" | "currency" | "date_time"

The type of the parameter