public interface TariffInformation extends GroupedAvp
7.2.223 Tariff-Information AVP The Tariff-Information AVP (AVP code 2060) is of type Grouped and holds a tariff definition either from the local provider or from 3rd party provider. It contains information about the operator and the ID of the service being provided, the current tariff and possible next tariff after tariff switch time. It may also chain to tariffs provided by intermediate operators in the chain. It has the following ABNF grammar: Tariff-Information ::= < AVP Header: 2060 > { Current-Tariff } [ Tariff-Time-Change] [ Next-Tariff ]
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
CurrentTariff |
getCurrentTariff()
Returns the value of the Current-Tariff AVP, of type Grouped.
|
NextTariff |
getNextTariff()
Returns the value of the Next-Tariff AVP, of type Grouped.
|
java.util.Date |
getTariffTimeChange()
Returns the value of the Tariff-Time-Change AVP, of type Time.
|
boolean |
hasCurrentTariff()
Returns true if the Current-Tariff AVP is present in the Tariff-Information AVP.
|
boolean |
hasNextTariff()
Returns true if the Next-Tariff AVP is present in the Tariff-Information AVP.
|
boolean |
hasTariffTimeChange()
Returns true if the Tariff-Time-Change AVP is present in the Tariff-Information AVP.
|
void |
removeCurrentTariff()
Removes the Current-Tariff AVP from the Tariff-Information AVP.
|
void |
removeNextTariff()
Removes the Next-Tariff AVP from the Tariff-Information AVP.
|
void |
removeTariffTimeChange()
Removes the Tariff-Time-Change AVP from the Tariff-Information AVP.
|
void |
setCurrentTariff(CurrentTariff currentTariff)
Sets the value of the Current-Tariff AVP, of type Grouped.
|
void |
setNextTariff(NextTariff nextTariff)
Sets the value of the Next-Tariff AVP, of type Grouped.
|
void |
setTariffTimeChange(java.util.Date tariffTimeChange)
Sets the value of the Tariff-Time-Change AVP, of type Time.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasCurrentTariff()
CurrentTariff getCurrentTariff()
void setCurrentTariff(CurrentTariff currentTariff)
java.lang.NullPointerException
- if currentTariff
is null
.void removeCurrentTariff()
boolean hasTariffTimeChange()
java.util.Date getTariffTimeChange()
void setTariffTimeChange(java.util.Date tariffTimeChange)
java.lang.NullPointerException
- if tariffTimeChange
is null
.void removeTariffTimeChange()
boolean hasNextTariff()
NextTariff getNextTariff()
void setNextTariff(NextTariff nextTariff)
java.lang.NullPointerException
- if nextTariff
is null
.void removeNextTariff()