Class PromotionalOfferSignatureV1

java.lang.Object
com.apple.itunes.storekit.model.PromotionalOfferSignatureV1

public class PromotionalOfferSignatureV1 extends Object
The promotional offer signature you generate using an earlier signature version.
See Also:
  • Constructor Details

    • PromotionalOfferSignatureV1

      public PromotionalOfferSignatureV1(String encodedSignature, String productId, UUID nonce, Long timestamp, String keyId, String offerIdentifier)
  • Method Details

    • encodedSignature

      public PromotionalOfferSignatureV1 encodedSignature(String encodedSignature)
    • getEncodedSignature

      public String getEncodedSignature()
      The Base64-encoded cryptographic signature you generate using the offer parameters.
      Returns:
      encodedSignature
    • setEncodedSignature

      public void setEncodedSignature(String encodedSignature)
    • productId

      public PromotionalOfferSignatureV1 productId(String productId)
    • getProductId

      public String getProductId()
      The subscription’s product identifier.
      Returns:
      productId
      See Also:
    • setProductId

      public void setProductId(String productId)
    • nonce

      public PromotionalOfferSignatureV1 nonce(UUID nonce)
    • getNonce

      public UUID getNonce()
      A one-time-use UUID antireplay value you generate.
      Returns:
      nonce
    • setNonce

      public void setNonce(UUID nonce)
    • timestamp

      public PromotionalOfferSignatureV1 timestamp(Long timestamp)
    • getTimestamp

      public Long getTimestamp()
      The UNIX time, in milliseconds, when you generate the signature.
      Returns:
      timestamp
    • setTimestamp

      public void setTimestamp(Long timestamp)
    • keyId

      public PromotionalOfferSignatureV1 keyId(String keyId)
    • getKeyId

      public String getKeyId()
      A string that identifies the private key you use to generate the signature.
      Returns:
      keyId
    • setKeyId

      public void setKeyId(String keyId)
    • offerIdentifier

      public PromotionalOfferSignatureV1 offerIdentifier(String offerIdentifier)
    • getOfferIdentifier

      public String getOfferIdentifier()
      The subscription offer identifier that you set up in App Store Connect.
      Returns:
      offerIdentifier
    • setOfferIdentifier

      public void setOfferIdentifier(String offerIdentifier)
    • appAccountToken

      public PromotionalOfferSignatureV1 appAccountToken(UUID appAccountToken)
    • getAppAccountToken

      public UUID getAppAccountToken()
      A UUID that you provide to associate with the transaction if the customer accepts the promotional offer.
      Returns:
      appAccountToken
    • setAppAccountToken

      public void setAppAccountToken(UUID appAccountToken)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object