Class NotificationHistoryRequest

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

public class NotificationHistoryRequest extends Object
The request body for notification history.
See Also:
  • Constructor Details

    • NotificationHistoryRequest

      public NotificationHistoryRequest()
  • Method Details

    • startDate

      public NotificationHistoryRequest startDate(Long startDate)
    • getStartDate

      public Long getStartDate()
      The start date of the timespan for the requested App Store Server Notification history records. The startDate needs to precede the endDate. Choose a startDate that’s within the past 180 days from the current date.
      Returns:
      startDate
      See Also:
    • setStartDate

      public void setStartDate(Long startDate)
    • endDate

      public NotificationHistoryRequest endDate(Long endDate)
    • getEndDate

      public Long getEndDate()
      The end date of the timespan for the requested App Store Server Notification history records. Choose an endDate that’s later than the startDate. If you choose an endDate in the future, the endpoint automatically uses the current date as the endDate.
      Returns:
      endDate
      See Also:
    • setEndDate

      public void setEndDate(Long endDate)
    • notificationType

      public NotificationHistoryRequest notificationType(NotificationTypeV2 notificationType)
    • getNotificationType

      public NotificationTypeV2 getNotificationType()
      A notification type. Provide this field to limit the notification history records to those with this one notification type. For a list of notifications types, see notificationType. Include either the transactionId or the notificationType in your query, but not both.
      Returns:
      notificationType
      See Also:
    • setNotificationType

      public void setNotificationType(NotificationTypeV2 notificationType)
    • notificationSubtype

      public NotificationHistoryRequest notificationSubtype(Subtype notificationSubtype)
    • getNotificationSubtype

      public Subtype getNotificationSubtype()
      A notification subtype. Provide this field to limit the notification history records to those with this one notification subtype. For a list of subtypes, see subtype. If you specify a notificationSubtype, you need to also specify its related notificationType.
      Returns:
      notificationSubtype
      See Also:
    • setNotificationSubtype

      public void setNotificationSubtype(Subtype notificationSubtype)
    • transactionId

      public NotificationHistoryRequest transactionId(String transactionId)
    • getTransactionId

      public String getTransactionId()
      The transaction identifier, which may be an original transaction identifier, of any transaction belonging to the customer. Provide this field to limit the notification history request to this one customer. Include either the transactionId or the notificationType in your query, but not both.
      Returns:
      transactionId
      See Also:
    • setTransactionId

      public void setTransactionId(String transactionId)
    • onlyFailures

      public NotificationHistoryRequest onlyFailures(Boolean onlyFailures)
    • getOnlyFailures

      public Boolean getOnlyFailures()
      A Boolean value you set to true to request only the notifications that haven’t reached your server successfully. The response also includes notifications that the App Store server is currently retrying to send to your server.
      Returns:
      onlyFailures
      See Also:
    • setOnlyFailures

      public void setOnlyFailures(Boolean onlyFailures)
    • 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