Class RedemptionSummary


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20190111")
    public final class RedemptionSummary
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    The redemption summary for the requested subscription ID and date range.
    Note: Objects should always be created or deserialized using the RedemptionSummary.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the RedemptionSummary.Builder, which maintain a set of all explicitly set fields called RedemptionSummary.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
    • Constructor Detail

      • RedemptionSummary

        @Deprecated
        @ConstructorProperties({"timeRedeemed","redemptionEmail","redemptionCode","invoiceNumber","invoiceTotalAmount","invoiceCurrency","redeemedRewards","baseRewards","fxRate","timeInvoiced"})
        public RedemptionSummary​(Date timeRedeemed,
                                 String redemptionEmail,
                                 String redemptionCode,
                                 String invoiceNumber,
                                 Double invoiceTotalAmount,
                                 String invoiceCurrency,
                                 Float redeemedRewards,
                                 Float baseRewards,
                                 Double fxRate,
                                 Date timeInvoiced)
        Deprecated.
    • Method Detail

      • getTimeRedeemed

        public Date getTimeRedeemed()
        It provides redeem date.
        Returns:
        the value
      • getRedemptionEmail

        public String getRedemptionEmail()
        It provides the redemption email id.
        Returns:
        the value
      • getRedemptionCode

        public String getRedemptionCode()
        The redemption code used in the Billing Center during the reward redemption process.
        Returns:
        the value
      • getInvoiceNumber

        public String getInvoiceNumber()
        It provides the invoice number against the redemption.
        Returns:
        the value
      • getInvoiceTotalAmount

        public Double getInvoiceTotalAmount()
        It provides the invoice total amount of given redemption.
        Returns:
        the value
      • getInvoiceCurrency

        public String getInvoiceCurrency()
        The currency associated with invoice.
        Returns:
        the value
      • getRedeemedRewards

        public Float getRedeemedRewards()
        It provides the redeemed rewards in invoice currency.
        Returns:
        the value
      • getBaseRewards

        public Float getBaseRewards()
        It provides the redeemed rewards in base/subscription currency.
        Returns:
        the value
      • getFxRate

        public Double getFxRate()
        It provides the fxRate between invoice currency and subscription currency.
        Returns:
        the value
      • getTimeInvoiced

        public Date getTimeInvoiced()
        It provides the invoice date.
        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel