Class ResponseBodyV2DecodedPayload

java.lang.Object
com.apple.itunes.storekit.model.ResponseBodyV2DecodedPayload
All Implemented Interfaces:
DecodedSignedData

public class ResponseBodyV2DecodedPayload extends Object implements DecodedSignedData
A decoded payload containing the version 2 notification data.
See Also:
  • Constructor Details

    • ResponseBodyV2DecodedPayload

      public ResponseBodyV2DecodedPayload()
  • Method Details

    • notificationType

      public ResponseBodyV2DecodedPayload notificationType(NotificationTypeV2 notificationType)
    • getNotificationType

      public NotificationTypeV2 getNotificationType()
      The in-app purchase event for which the App Store sends this version 2 notification.
      Returns:
      notificationType
      See Also:
    • getRawNotificationType

      public String getRawNotificationType()
      See Also:
    • setNotificationType

      public void setNotificationType(NotificationTypeV2 notificationType)
    • setRawNotificationType

      public void setRawNotificationType(String rawNotificationType)
    • subtype

      public ResponseBodyV2DecodedPayload subtype(Subtype subtype)
    • getSubtype

      public Subtype getSubtype()
      Additional information that identifies the notification event. The subtype field is present only for specific version 2 notifications.
      Returns:
      subtype
      See Also:
    • getRawSubtype

      public String getRawSubtype()
      See Also:
    • setSubtype

      public void setSubtype(Subtype subtype)
    • setRawSubtype

      public void setRawSubtype(String rawSubtype)
    • notificationUUID

      public ResponseBodyV2DecodedPayload notificationUUID(String notificationUUID)
    • getNotificationUUID

      public String getNotificationUUID()
      A unique identifier for the notification.
      Returns:
      notificationUUID
      See Also:
    • setNotificationUUID

      public void setNotificationUUID(String notificationUUID)
    • data

      public ResponseBodyV2DecodedPayload data(Data data)
    • getData

      public Data getData()
      The object that contains the app metadata and signed renewal and transaction information. The data, summary, and externalPurchaseToken fields are mutually exclusive. The payload contains only one of these fields.
      Returns:
      data
      See Also:
    • setData

      public void setData(Data data)
    • version

      public ResponseBodyV2DecodedPayload version(String version)
    • getVersion

      public String getVersion()
      A string that indicates the notification’s App Store Server Notifications version number.
      Returns:
      version
      See Also:
    • setVersion

      public void setVersion(String version)
    • signedDate

      public ResponseBodyV2DecodedPayload signedDate(Long signedDate)
    • getSignedDate

      public Long getSignedDate()
      The UNIX time, in milliseconds, that the App Store signed the JSON Web Signature data.
      Specified by:
      getSignedDate in interface DecodedSignedData
      Returns:
      signedDate
      See Also:
    • setSignedDate

      public void setSignedDate(Long signedDate)
    • summary

      public ResponseBodyV2DecodedPayload summary(Summary summary)
    • getSummary

      public Summary getSummary()
      The summary data that appears when the App Store server completes your request to extend a subscription renewal date for eligible subscribers. The data, summary, and externalPurchaseToken fields are mutually exclusive. The payload contains only one of these fields.
      Returns:
      summary
      See Also:
    • setSummary

      public void setSummary(Summary summary)
    • externalPurchaseToken

      public ResponseBodyV2DecodedPayload externalPurchaseToken(ExternalPurchaseToken externalPurchaseToken)
    • getExternalPurchaseToken

      public ExternalPurchaseToken getExternalPurchaseToken()
      This field appears when the notificationType is EXTERNAL_PURCHASE_TOKEN. The data, summary, and externalPurchaseToken fields are mutually exclusive. The payload contains only one of these fields.
      Returns:
      externalPurchaseToken
      See Also:
    • setExternalPurchaseToken

      public void setExternalPurchaseToken(ExternalPurchaseToken externalPurchaseToken)
    • unknownFields

      public ResponseBodyV2DecodedPayload unknownFields(Map<String,Object> unknownFields)
    • getUnknownFields

      public Map<String,Object> getUnknownFields()
      Fields that are not recognized for this object
      Returns:
      A map of JSON keys to objects
    • setUnknownFields

      public void setUnknownFields(Map<String,Object> unknownFields)
    • 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