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.ExplicitlySetBmcModel
The 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 Summary
Nested Classes Modifier and Type Class Description static class
RedemptionSummary.Builder
-
Constructor Summary
Constructors 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RedemptionSummary.Builder
builder()
Create a new builder.boolean
equals(Object o)
Float
getBaseRewards()
It provides the redeemed rewards in base/subscription currency.Double
getFxRate()
It provides the fxRate between invoice currency and subscription currency.String
getInvoiceCurrency()
The currency associated with invoice.String
getInvoiceNumber()
It provides the invoice number against the redemption.Double
getInvoiceTotalAmount()
It provides the invoice total amount of given redemption.Float
getRedeemedRewards()
It provides the redeemed rewards in invoice currency.String
getRedemptionCode()
The redemption code used in the Billing Center during the reward redemption process.String
getRedemptionEmail()
It provides the redemption email id.Date
getTimeInvoiced()
It provides the invoice date.Date
getTimeRedeemed()
It provides redeem date.int
hashCode()
RedemptionSummary.Builder
toBuilder()
String
toString()
String
toString(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
-
builder
public static RedemptionSummary.Builder builder()
Create a new builder.
-
toBuilder
public RedemptionSummary.Builder toBuilder()
-
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 classcom.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 classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-