Class OculusIapReceipt
java.lang.Object
dev.getelements.elements.sdk.model.meta.oculusiapreceipt.OculusIapReceipt
- All Implemented Interfaces:
Serializable
Represents an IAP receipt from the Oculus platform.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildIdentifyingRewardIssuanceTag(String originalTransactionId) Builds the identifying reward issuance tag for the given original transaction ID.buildRewardIssuanceTags(String originalTransactionId) Builds the reward issuance tags for the given original transaction ID.booleanReturns the developer payload.longReturns the time when the user will lose entitlement (Unix timestamp).longReturns the time when the user gained entitlement (Unix timestamp).Returns the original transaction identifier (purchase ID).Returns the reporting ID for troubleshooting and auditing.getSku()Returns the SKU of the IAP item.Returns the Oculus user ID.inthashCode()voidsetDeveloperPayload(String developerPayload) Sets the developer payload.voidsetExpirationTime(long expirationTime) Sets the time when the user will lose entitlement (Unix timestamp).voidsetGrantTime(long grantTime) Sets the time when the user gained entitlement (Unix timestamp).voidsetPurchaseId(String purchaseId) Sets the original transaction identifier (purchase ID).voidsetReportingId(String reportingId) Sets the reporting ID for troubleshooting and auditing.voidSets the SKU of the IAP item.voidSets the Oculus user ID.toString()
-
Field Details
-
ID_TAG_PREFIX
The prefix used for identifying reward issuance tags.- See Also:
-
TAG_SEPARATOR
The separator used in reward issuance tag construction.- See Also:
-
-
Constructor Details
-
OculusIapReceipt
public OculusIapReceipt()Creates a new instance.
-
-
Method Details
-
getUserId
Returns the Oculus user ID.- Returns:
- the user ID
-
setUserId
Sets the Oculus user ID.- Parameters:
fbUserId- the user ID
-
getPurchaseId
Returns the original transaction identifier (purchase ID).- Returns:
- the purchase ID
-
setPurchaseId
Sets the original transaction identifier (purchase ID).- Parameters:
purchaseId- the purchase ID
-
getReportingId
Returns the reporting ID for troubleshooting and auditing.- Returns:
- the reporting ID
-
setReportingId
Sets the reporting ID for troubleshooting and auditing.- Parameters:
reportingId- the reporting ID
-
getSku
Returns the SKU of the IAP item.- Returns:
- the SKU
-
setSku
Sets the SKU of the IAP item.- Parameters:
sku- the SKU
-
getGrantTime
public long getGrantTime()Returns the time when the user gained entitlement (Unix timestamp).- Returns:
- the grant time
-
setGrantTime
public void setGrantTime(long grantTime) Sets the time when the user gained entitlement (Unix timestamp).- Parameters:
grantTime- the grant time
-
getExpirationTime
public long getExpirationTime()Returns the time when the user will lose entitlement (Unix timestamp).- Returns:
- the expiration time
-
setExpirationTime
public void setExpirationTime(long expirationTime) Sets the time when the user will lose entitlement (Unix timestamp).- Parameters:
expirationTime- the expiration time
-
getDeveloperPayload
Returns the developer payload.- Returns:
- the developer payload
-
setDeveloperPayload
Sets the developer payload.- Parameters:
developerPayload- the developer payload
-
buildRewardIssuanceTags
Builds the reward issuance tags for the given original transaction ID.- Parameters:
originalTransactionId- the original transaction ID- Returns:
- the list of reward issuance tags
-
buildIdentifyingRewardIssuanceTag
Builds the identifying reward issuance tag for the given original transaction ID.- Parameters:
originalTransactionId- the original transaction ID- Returns:
- the identifying reward issuance tag
-
equals
-
hashCode
public int hashCode() -
toString
-