Class RecurringCharge

    • Constructor Detail

      • RecurringCharge

        public RecurringCharge()
    • Method Detail

      • setCost

        public void setCost​(MonetaryAmount cost)

        The cost of the recurring charge.

        Parameters:
        cost - The cost of the recurring charge.
      • getCost

        public MonetaryAmount getCost()

        The cost of the recurring charge.

        Returns:
        The cost of the recurring charge.
      • withCost

        public RecurringCharge withCost​(MonetaryAmount cost)

        The cost of the recurring charge.

        Parameters:
        cost - The cost of the recurring charge.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setFrequency

        public void setFrequency​(String frequency)

        The frequency in which charges will recur.

        Parameters:
        frequency - The frequency in which charges will recur.
        See Also:
        RecurringChargeFrequency
      • getFrequency

        public String getFrequency()

        The frequency in which charges will recur.

        Returns:
        The frequency in which charges will recur.
        See Also:
        RecurringChargeFrequency
      • withFrequency

        public RecurringCharge withFrequency​(String frequency)

        The frequency in which charges will recur.

        Parameters:
        frequency - The frequency in which charges will recur.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RecurringChargeFrequency
      • withFrequency

        public RecurringCharge withFrequency​(RecurringChargeFrequency frequency)

        The frequency in which charges will recur.

        Parameters:
        frequency - The frequency in which charges will recur.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RecurringChargeFrequency
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object