public class ApplePromotionalOffer extends Object implements PromotionalOffer
See Apple's documentation for implementing promotional offers.
Constructor and Description |
---|
ApplePromotionalOffer() |
Modifier and Type | Method and Description |
---|---|
String |
getKeyIdentifier()
A string that identifies the key used to generate the signature.
|
String |
getNonce()
A universally unique ID (UUID) value that you define.
|
String |
getOfferIdentifier()
A string used to uniquely identify a discount offer for a product.
|
String |
getSignature()
A string representing the properties of a specific promotional offer, cryptographically signed.
|
long |
getTimestamp()
The date and time of the signature's creation in milliseconds, formatted in Unix epoch time.
|
void |
setKeyIdentifier(String keyIdentifier)
A string that identifies the key used to generate the signature.
|
void |
setNonce(String nonce)
A universally unique ID (UUID) value that you define.
|
void |
setOfferIdentifier(String offerIdentifier)
A string used to uniquely identify a discount offer for a product.
|
void |
setSignature(String signature)
A string representing the properties of a specific promotional offer, cryptographically signed.
|
void |
setTimestamp(long timestamp)
The date and time of the signature's creation in milliseconds, formatted in Unix epoch time.
|
public String getOfferIdentifier()
public void setOfferIdentifier(String offerIdentifier)
offerIdentifier
- The offer identifier.
See Apple docs.public String getKeyIdentifier()
public void setKeyIdentifier(String keyIdentifier)
keyIdentifier
- The key identifier.
See Apple's docs.public String getNonce()
public void setNonce(String nonce)
nonce
- The noncepublic String getSignature()
public void setSignature(String signature)
signature
- The signature.public long getTimestamp()
public void setTimestamp(long timestamp)
timestamp
- The timestamp.