Class TmaBalanceWsDto
java.lang.Object
de.hybris.platform.b2ctelcotmfwebservices.dto.subscription.usage.TmaBalanceWsDto
- All Implemented Interfaces:
Serializable
The balance defines the remaining allowed product usage quantity in terms of volume, time, currency or events. It
corresponds to the initial allowed usage quantity minus the usage consumed on the bucket.
- Since:
- 1810
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanNumeric remaining value for the bucket given in the balance unit (for example 1.9).Remaining value in a formatted string for the bucket given in the balance unit (for example 1.9 Gb).Link to the schema describing the REST resourcegetType()Indicates the (class) type of the bucket balancegetUnit()Code of the unit used to specify the given value of the balance.@Valid TmaTimePeriodWsDtoGet validForinthashCode()remainingValue(Long remainingValue) remainingValueLabel(String remainingValueLabel) schemaLocation(String schemaLocation) voidsetRemainingValue(Long remainingValue) voidsetRemainingValueLabel(String remainingValueLabel) voidsetSchemaLocation(String schemaLocation) voidvoidvoidsetValidFor(TmaTimePeriodWsDto validFor) toString()validFor(TmaTimePeriodWsDto validFor)
-
Constructor Details
-
TmaBalanceWsDto
public TmaBalanceWsDto()
-
-
Method Details
-
unit
-
getUnit
Code of the unit used to specify the given value of the balance. It could be different from the bucket unit- Returns:
- unit
-
setUnit
-
remainingValue
-
getRemainingValue
Numeric remaining value for the bucket given in the balance unit (for example 1.9). This numeric value could be used for calculation for example- Returns:
- remainingValue
-
setRemainingValue
-
remainingValueLabel
-
getRemainingValueLabel
Remaining value in a formatted string for the bucket given in the balance unit (for example 1.9 Gb). This formatted string could be used for display needs for example- Returns:
- remainingValueLabel
-
setRemainingValueLabel
-
validFor
-
getValidFor
Get validFor- Returns:
- validFor
-
setValidFor
-
type
-
getType
Indicates the (class) type of the bucket balance- Returns:
- type
-
setType
-
schemaLocation
-
getSchemaLocation
Link to the schema describing the REST resource- Returns:
- schemaLocation
-
setSchemaLocation
-
equals
-
hashCode
public int hashCode() -
toString
-