@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
).
Modifier and Type | Class and Description |
---|---|
static class |
RedemptionSummary.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
RedemptionSummary(Date timeRedeemed,
String redemptionEmail,
String redemptionCode,
String invoiceNumber,
Double invoiceTotalAmount,
String invoiceCurrency,
Float redeemedRewards,
Float baseRewards,
Double fxRate,
Date timeInvoiced)
Deprecated.
|
Modifier and Type | Method and 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.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"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)
public static RedemptionSummary.Builder builder()
Create a new builder.
public RedemptionSummary.Builder toBuilder()
public Date getTimeRedeemed()
It provides redeem date.
public String getRedemptionEmail()
It provides the redemption email id.
public String getRedemptionCode()
The redemption code used in the Billing Center during the reward redemption process.
public String getInvoiceNumber()
It provides the invoice number against the redemption.
public Double getInvoiceTotalAmount()
It provides the invoice total amount of given redemption.
public String getInvoiceCurrency()
The currency associated with invoice.
public Float getRedeemedRewards()
It provides the redeemed rewards in invoice currency.
public Float getBaseRewards()
It provides the redeemed rewards in base/subscription currency.
public Double getFxRate()
It provides the fxRate between invoice currency and subscription currency.
public Date getTimeInvoiced()
It provides the invoice date.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.