Skip to content

Commit

Permalink
Set 'environment' as optional for AppStore subscription status notifi…
Browse files Browse the repository at this point in the history
…cation
  • Loading branch information
mhuta committed Oct 6, 2022
1 parent 6cf8e40 commit 7824c82
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonProperty
import java.io.Serializable

data class StatusUpdateNotification(
@get:JsonProperty("environment") val environment: String,
@get:JsonProperty("environment") val environment: String?,
@get:JsonProperty("notification_type") val notificationType: AppStoreNotificationType,
@get:JsonProperty("latest_receipt") val latestReceipt: String?,
@get:JsonProperty("latest_receipt_info") val latestReceiptInfo: LatestReceiptInfo,
Expand All @@ -23,7 +23,7 @@ data class StatusUpdateNotification(


data class UnifiedReceipt(
@get:JsonProperty("environment") val environment: String,
@get:JsonProperty("environment") val environment: String?,
@get:JsonProperty("latest_receipt") val latestReceipt: String?,
@get:JsonProperty("latest_receipt_info") val latestReceiptInfo: Collection<LatestReceiptInfo>?,
@get:JsonProperty("pending_renewal_info") val pendingRenewalInfo: Collection<PendingRenewalInfo>?,
Expand Down

0 comments on commit 7824c82

Please sign in to comment.