java.lang.Object
de.hybris.platform.b2ctelcotmfwebservices.dto.subscription.usage.TmaBalanceWsDto
All Implemented Interfaces:
Serializable

@Validated public class TmaBalanceWsDto extends Object implements 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 Details

    • TmaBalanceWsDto

      public TmaBalanceWsDto()
  • Method Details

    • unit

      public TmaBalanceWsDto unit(String unit)
    • getUnit

      public String 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

      public void setUnit(String unit)
    • remainingValue

      public TmaBalanceWsDto remainingValue(Long remainingValue)
    • getRemainingValue

      public Long 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

      public void setRemainingValue(Long remainingValue)
    • remainingValueLabel

      public TmaBalanceWsDto remainingValueLabel(String remainingValueLabel)
    • getRemainingValueLabel

      public String 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

      public void setRemainingValueLabel(String remainingValueLabel)
    • validFor

      public TmaBalanceWsDto validFor(TmaTimePeriodWsDto validFor)
    • getValidFor

      @Valid public @Valid TmaTimePeriodWsDto getValidFor()
      Get validFor
      Returns:
      validFor
    • setValidFor

      public void setValidFor(TmaTimePeriodWsDto validFor)
    • type

      public TmaBalanceWsDto type(String type)
    • getType

      public String getType()
      Indicates the (class) type of the bucket balance
      Returns:
      type
    • setType

      public void setType(String type)
    • schemaLocation

      public TmaBalanceWsDto schemaLocation(String schemaLocation)
    • getSchemaLocation

      public String getSchemaLocation()
      Link to the schema describing the REST resource
      Returns:
      schemaLocation
    • setSchemaLocation

      public void setSchemaLocation(String schemaLocation)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object