---
schema_version: "1"
id: d8d70f05134349d2b3b39d85d5ea6a43c1d5566f06048eeaa2446c208667a0b8
title: RecurringTiming Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_RichMessaging_RecurringTiming.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_RecurringTiming.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: efb71b1ff065b21b92c3f0d9d563de2e6ddbd9c269d8be8e944c96af41fb0957
description: Represents a payment that occurs on a regular basis.Creates a new instance of the RichMessaging.RecurringTiming class.Creates a new instance of the RichMessaging.RecurringTiming class.The end date. Invocable variable.The end date. Enabled for Lightning components.The number of interval units that make up the total payment interval. Invocable variable.The number of interval units that make up the total payment interval. Enabled for Lightning components.The amount of time—in calendar units, such as day, month, or year—that represents a fraction of the total payment interval. Invocable variable.The amount of time—in calendar units, such as day, month, or year—that represents a fraction of the total payment interval. Enabled for Lightning components.The start date. Invocable variable.The start date. Enabled for Lightning components.Always returns “RecurringTiming”.
---
# RecurringTiming Class

Represents a payment that occurs on a regular basis.

## Namespace

[RichMessaging](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_RichMessaging.htm "Provides objects and methods for handling content in enhanced Messaging channels.")

- **[RecurringTiming Constructors](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_RecurringTiming.htm#apex_RichMessaging_RecurringTiming_constructors)**
- **[RecurringTiming Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_RecurringTiming.htm#apex_RichMessaging_RecurringTiming_properties)**

## RecurringTiming Constructors

The following are constructors for RecurringTiming.

- **[RecurringTiming(startDate, endDate, intervalCount, intervalUnit)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_RecurringTiming.htm#apex_RichMessaging_RecurringTiming_ctor)**  
    Creates a new instance of the RichMessaging.RecurringTiming class.
- **[RecurringTiming()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_RecurringTiming.htm#apex_RichMessaging_RecurringTiming_ctor_2)**  
    Creates a new instance of the RichMessaging.RecurringTiming class.

### RecurringTiming(startDate, endDate, intervalCount, intervalUnit)

Creates a new instance of the RichMessaging.RecurringTiming class.

#### Signature

public RecurringTiming(Date startDate, Date endDate, Integer intervalCount, RichMessaging.TimingIntervalUnit intervalUnit)

#### Parameters

- **startDate**: Type: [Date](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_date.htm#apex_methods_system_date "Contains methods for the Date primitive data type.") The start date. Invocable variable.
- **endDate**: Type: [Date](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_date.htm#apex_methods_system_date "Contains methods for the Date primitive data type.") The end date. Invocable variable.
- **intervalCount**: Type: [Integer](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_integer.htm#apex_methods_system_integer "Contains methods for the Integer primitive data type.") The number of interval units that make up the total payment interval. Invocable variable.
- **intervalUnit**: Type: [RichMessaging.TimingIntervalUnit](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_RichMessaging_TimingIntervalUnit.htm "Represents an enumerated type that describes the timing interval.") The amount of time—in calendar units, such as day, month, or year—that represents a fraction of the total payment interval. Invocable variable.

### RecurringTiming()

Creates a new instance of the RichMessaging.RecurringTiming class.

#### Signature

public RecurringTiming()

## RecurringTiming Properties

The following are properties for RecurringTiming.

- **[endDate](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_RecurringTiming.htm#apex_RichMessaging_RecurringTiming_endDate)**  
    The end date. Invocable variable.
- **[endDateValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_RecurringTiming.htm#apex_RichMessaging_RecurringTiming_endDateValue)**  
    The end date. Enabled for Lightning components.
- **[intervalCount](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_RecurringTiming.htm#apex_RichMessaging_RecurringTiming_intervalCount)**  
    The number of interval units that make up the total payment interval. Invocable variable.
- **[intervalCountValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_RecurringTiming.htm#apex_RichMessaging_RecurringTiming_intervalCountValue)**  
    The number of interval units that make up the total payment interval. Enabled for Lightning components.
- **[intervalUnit](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_RecurringTiming.htm#apex_RichMessaging_RecurringTiming_intervalUnit)**  
    The amount of time—in calendar units, such as day, month, or year—that represents a fraction of the total payment interval. Invocable variable.
- **[intervalUnitValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_RecurringTiming.htm#apex_RichMessaging_RecurringTiming_intervalUnitValue)**  
    The amount of time—in calendar units, such as day, month, or year—that represents a fraction of the total payment interval. Enabled for Lightning components.
- **[startDate](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_RecurringTiming.htm#apex_RichMessaging_RecurringTiming_startDate)**  
    The start date. Invocable variable.
- **[startDateValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_RecurringTiming.htm#apex_RichMessaging_RecurringTiming_startDateValue)**  
    The start date. Enabled for Lightning components.
- **[timingType](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_RecurringTiming.htm#apex_RichMessaging_RecurringTiming_timingType)**  
    Always returns “RecurringTiming”.

### endDate

The end date. Invocable variable.

#### Signature

public Date endDate {get; set;}

#### Property Value

Type: [Date](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_date.htm#apex_methods_system_date "Contains methods for the Date primitive data type.")

### endDateValue

The end date. Enabled for Lightning components.

#### Signature

public Date endDateValue {get; set;}

#### Property Value

Type: [Date](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_date.htm#apex_methods_system_date "Contains methods for the Date primitive data type.")

### intervalCount

The number of interval units that make up the total payment interval. Invocable variable.

#### Signature

public Integer intervalCount {get; set;}

#### Property Value

Type: [Integer](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_integer.htm#apex_methods_system_integer "Contains methods for the Integer primitive data type.")

### intervalCountValue

The number of interval units that make up the total payment interval. Enabled for Lightning components.

#### Signature

public Integer intervalCountValue {get; set;}

#### Property Value

Type: [Integer](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_integer.htm#apex_methods_system_integer "Contains methods for the Integer primitive data type.")

### intervalUnit

The amount of time—in calendar units, such as day, month, or year—that represents a fraction of the total payment interval. Invocable variable.

#### Signature

public String intervalUnit {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### intervalUnitValue

The amount of time—in calendar units, such as day, month, or year—that represents a fraction of the total payment interval. Enabled for Lightning components.

#### Signature

public RichMessaging.TimingIntervalUnit intervalUnitValue {get; set;}

#### Property Value

Type: [RichMessaging.TimingIntervalUnit](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_RichMessaging_TimingIntervalUnit.htm "Represents an enumerated type that describes the timing interval.")

### startDate

The start date. Invocable variable.

#### Signature

public Date startDate {get; set;}

#### Property Value

Type: [Date](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_date.htm#apex_methods_system_date "Contains methods for the Date primitive data type.")

### startDateValue

The start date. Enabled for Lightning components.

#### Signature

public Date startDateValue {get; set;}

#### Property Value

Type: [Date](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_date.htm#apex_methods_system_date "Contains methods for the Date primitive data type.")

### timingType

Always returns “RecurringTiming”.

#### Signature

public String timingType {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")