# MTDiscount

This object is a discount, a line item on a bill that reduces the total amount of a subscriber's billing period charge. This object is modeled on and derived from the Priceable Item (MTPriceableItem) object and inherits all properties and methods.

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

## Program ID

Metratech.MTDiscount.1

## Methods

GetCounter | Sets or updates instance of the counter, associated with the given property.
SetCounter | Sets or updates instance of the counter, associated with the given property.
GetCounterAsRowset | Returns a rowset of all counters of this discount.
RemoveCounter | Removes a counter from the database.

## Properties

Cycle | Returns the cycle for this discount.

# Method Detail

## GetCounter

This method gets or updates instance of the counter, associated with the given property.

### Visual Basic Syntax

GetCounter(lCounterPropertyDefinitionID As Long) As MTCounter

### C++ Syntax

HRESULT GetCounter([in] long lCounterPropertyDefinitionID, [out, retval] IMTCounter** ppCounter);

## SetCounter

This Method sets or updates instance of the counter, associated with the given property.

### Visual Basic Syntax

SetCounter(lCounterPropertyDefinitionID As Long, Counter As MTCounter)

### C++ Syntax

HRESULT SetCounter([in] long lCounterPropertyDefinitionID, [in] IMTCounter* pCounter);

## GetCounterAsRowset

This method returns a rowset of all counters of this discount.

### Visual Basic Syntax

GetCountersAsRowset() As MTRowSet

### C++ Syntax

HRESULT GetCountersAsRowset([out, retval]IMTRowSet** apRowset);

## RemoveCounter

This method removes a counter [from where?]

### Visual Basic Syntax

RemoveCounter(lCounterPropertyDefinitionID As Long)

### C++ Syntax

HRESULT RemoveCounter(long lCounterPropertyDefinitionID);

###

# Property Detail

## Cycle

This property returns the cycle for this discount.

### Visual Basic Syntax

Property Cycle As MTPCCycle

### C++ Syntax

HRESULT Cycle([out, retval] IMTPCCycle* *pVal);

###