Package com.oracle.bmc.usage.model
Class RedemptionSummary
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.usage.model.RedemptionSummary
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20190111") public final class RedemptionSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe redemption summary for the requested subscription ID and date range.
 Note: Objects should always be created or deserialized using theRedemptionSummary.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 theRedemptionSummary.Builder, which maintain a set of all explicitly set fields calledRedemptionSummary.Builder.__explicitlySet__. ThehashCode()andequals(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).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classRedemptionSummary.Builder
 - 
Constructor SummaryConstructors Constructor Description RedemptionSummary(Date timeRedeemed, String redemptionEmail, String redemptionCode, String invoiceNumber, Double invoiceTotalAmount, String invoiceCurrency, Float redeemedRewards, Float baseRewards, Double fxRate, Date timeInvoiced)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RedemptionSummary.Builderbuilder()Create a new builder.booleanequals(Object o)FloatgetBaseRewards()It provides the redeemed rewards in base/subscription currency.DoublegetFxRate()It provides the fxRate between invoice currency and subscription currency.StringgetInvoiceCurrency()The currency associated with invoice.StringgetInvoiceNumber()It provides the invoice number against the redemption.DoublegetInvoiceTotalAmount()It provides the invoice total amount of given redemption.FloatgetRedeemedRewards()It provides the redeemed rewards in invoice currency.StringgetRedemptionCode()The redemption code used in the Billing Center during the reward redemption process.StringgetRedemptionEmail()It provides the redemption email id.DategetTimeInvoiced()It provides the invoice date.DategetTimeRedeemed()It provides redeem date.inthashCode()RedemptionSummary.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
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- 
builderpublic static RedemptionSummary.Builder builder() Create a new builder.
 - 
toBuilderpublic RedemptionSummary.Builder toBuilder() 
 - 
getTimeRedeemedpublic Date getTimeRedeemed() It provides redeem date.- Returns:
- the value
 
 - 
getRedemptionEmailpublic String getRedemptionEmail() It provides the redemption email id.- Returns:
- the value
 
 - 
getRedemptionCodepublic String getRedemptionCode() The redemption code used in the Billing Center during the reward redemption process.- Returns:
- the value
 
 - 
getInvoiceNumberpublic String getInvoiceNumber() It provides the invoice number against the redemption.- Returns:
- the value
 
 - 
getInvoiceTotalAmountpublic Double getInvoiceTotalAmount() It provides the invoice total amount of given redemption.- Returns:
- the value
 
 - 
getInvoiceCurrencypublic String getInvoiceCurrency() The currency associated with invoice.- Returns:
- the value
 
 - 
getRedeemedRewardspublic Float getRedeemedRewards() It provides the redeemed rewards in invoice currency.- Returns:
- the value
 
 - 
getBaseRewardspublic Float getBaseRewards() It provides the redeemed rewards in base/subscription currency.- Returns:
- the value
 
 - 
getFxRatepublic Double getFxRate() It provides the fxRate between invoice currency and subscription currency.- Returns:
- the value
 
 - 
getTimeInvoicedpublic Date getTimeInvoiced() It provides the invoice date.- Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic 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
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-