# MTRateSchedule

Collection of rules for a priceable item that belong to a single Price List. Rate schedules have other properties, including names and effective dates.

To view an object model diagram that includes MTRateSchedule, click here.

## Program ID

Metratech.MTRateSchedule.1

## Methods

SaveWithRules | Save both the rate schedule and rules.
SaveRules | Save rules only.
Save | Save the rate schedule properties only.
GetParameterTable | Returns the parameter table that this rate schedule is contained in.
GetPriceList | Returns the price list for this rate schedule.

## Properties

ID | The unique identifier for the rate schedule.
Description | The description of the rate schedule.
Properties | Returns all (core and extended) properties of this object as a collection of MTProperty objects.
ParameterTableID | The ID of parameter table that this rate schedule is contained in.
TemplateID | The ID of priceable item template for this rate schedule.
EffectiveDate | The time span during which these rates are effective.
PriceListID | The price list that the rate schedule belongs to.
RuleSet | The rules (conditions and actions) that define the rates that will be charged.

# Method Detail

## SaveWithRules

This method saves both the rate schedule and rules.

### Visual Basic Syntax

SaveWithRules()

### C++ Syntax

HRESULT SaveWithRules()

## SaveRules

This plan saves rules only.

### Visual Basic Syntax

SaveRules()

### C++ Syntax

HRESULT SaveRules()

## Save

This method save rate schedule properties only.

### Visual Basic Syntax

Save()

### C++ Syntax

HRESULT Save()

## GetParameterTable

This method returns the parameter table that this rate schedule is contained in.

### Visual Basic Syntax

GetParameterTable() As MTParamTableDefinition

### C++ Syntax

HRESULT GetParameterTable([out, retval] IMTParamTableDefinition * *pVal);

## GetPriceList

This method returns the price list for this rate schedule.

### Visual Basic Syntax

GetPriceList() As MTPriceList

### C++ Syntax

HRESULT GetPriceList([out, retval] IMTPriceList * *pVal);

# Property Detail

## ID

This property specifies the unique identifier for the rate schedule.

### Visual Basic Syntax

Property ID As Long

### C++ Syntax

HRESULT ID([out, retval] long *pVal);

HRESULT ID([in] long newVal);

## Description

This property establishes the description of the rate schedule.

### Visual Basic Syntax

Property Description As String

### C++ Syntax

HRESULT Description([out, retval] BSTR *pVal);

## Properties

This property returns all (core and extended) properties of this object as a collection of MTProperty objects.

### Visual Basic Syntax

Property Description As String

### C++ Syntax

HRESULT Description([in] BSTR newVal);

## ParameterTableID

This property establishes the ID of parameter table that this rate schedule is contained in.

### Visual Basic Syntax

property ParameterTableID As Long

### C++ Syntax

HRESULT ParameterTableID([out, retval] long *pVal);

HRESULT ParameterTableID([in] long newVal);

## TemplateID

This property is the ID of priceable item template for this rate schedule.

### Visual Basic Syntax

Property TemplateID As Long

### C++ Syntax

HRESULT TemplateID([out, retval] long *pVal);

HRESULT TemplateID([in] long newVal);

## EffectiveDate

This property denotes the time span during which these rates will be effective.

### Visual Basic Syntax

Property EffectiveDate As MTPCTimeSpan

### C++ Syntax

HRESULT EffectiveDate([out, retval] IMTPCTimeSpan * *pVal);

## PriceListID

This property establishes the price list that the rate schedule belongs to.

### Visual Basic Syntax

Property PriceListID As Long

### C++ Syntax

HRESULT PriceListID([out, retval] long *pVal);

HRESULT PriceListID([in] long newVal);

## RuleSet

This property specifies the rules (conditions and actions) that define the rates that will be charged.

### Visual Basic Syntax

Property RuleSet As MTRuleSet

### C++ Syntax

HRESULT RuleSet([out, retval] IMTRuleSet * *pVal);