Package com.apple.itunes.storekit.model
Class ResponseBodyV2DecodedPayload
java.lang.Object
com.apple.itunes.storekit.model.ResponseBodyV2DecodedPayload
- All Implemented Interfaces:
DecodedSignedData
A decoded payload containing the version 2 notification data.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
externalPurchaseToken
(ExternalPurchaseToken externalPurchaseToken) getData()
The object that contains the app metadata and signed renewal and transaction information.This field appears when the notificationType is EXTERNAL_PURCHASE_TOKEN.The in-app purchase event for which the App Store sends this version 2 notification.A unique identifier for the notification.The UNIX time, in milliseconds, that the App Store signed the JSON Web Signature data.Additional information that identifies the notification event.The summary data that appears when the App Store server completes your request to extend a subscription renewal date for eligible subscribers.Fields that are not recognized for this objectA string that indicates the notification’s App Store Server Notifications version number.int
hashCode()
notificationType
(NotificationTypeV2 notificationType) notificationUUID
(String notificationUUID) void
void
setExternalPurchaseToken
(ExternalPurchaseToken externalPurchaseToken) void
setNotificationType
(NotificationTypeV2 notificationType) void
setNotificationUUID
(String notificationUUID) void
setRawNotificationType
(String rawNotificationType) void
setRawSubtype
(String rawSubtype) void
setSignedDate
(Long signedDate) void
setSubtype
(Subtype subtype) void
setSummary
(Summary summary) void
setUnknownFields
(Map<String, Object> unknownFields) void
setVersion
(String version) signedDate
(Long signedDate) toString()
unknownFields
(Map<String, Object> unknownFields)
-
Constructor Details
-
ResponseBodyV2DecodedPayload
public ResponseBodyV2DecodedPayload()
-
-
Method Details
-
notificationType
-
getNotificationType
The in-app purchase event for which the App Store sends this version 2 notification.- Returns:
- notificationType
- See Also:
-
getRawNotificationType
- See Also:
-
setNotificationType
-
setRawNotificationType
-
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
- See Also:
-
setSubtype
-
setRawSubtype
-
notificationUUID
-
getNotificationUUID
A unique identifier for the notification.- Returns:
- notificationUUID
- See Also:
-
setNotificationUUID
-
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
-
version
-
getVersion
A string that indicates the notification’s App Store Server Notifications version number.- Returns:
- version
- See Also:
-
setVersion
-
signedDate
-
getSignedDate
The UNIX time, in milliseconds, that the App Store signed the JSON Web Signature data.- Specified by:
getSignedDate
in interfaceDecodedSignedData
- Returns:
- signedDate
- See Also:
-
setSignedDate
-
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
-
externalPurchaseToken
public ResponseBodyV2DecodedPayload externalPurchaseToken(ExternalPurchaseToken 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
-
unknownFields
-
getUnknownFields
Fields that are not recognized for this object- Returns:
- A map of JSON keys to objects
-
setUnknownFields
-
equals
-
hashCode
public int hashCode() -
toString
-