From 7824c8252588b905c18e6f29f8fa24005601a1ee Mon Sep 17 00:00:00 2001 From: Mateusz Huta Date: Thu, 6 Oct 2022 13:47:31 +0200 Subject: [PATCH] Set 'environment' as optional for AppStore subscription status notification --- .../api/appstore/subscription/StatusUpdateNotification.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/dietmap/yaak/api/appstore/subscription/StatusUpdateNotification.kt b/src/main/kotlin/com/dietmap/yaak/api/appstore/subscription/StatusUpdateNotification.kt index ec3bdec..a3f19f2 100644 --- a/src/main/kotlin/com/dietmap/yaak/api/appstore/subscription/StatusUpdateNotification.kt +++ b/src/main/kotlin/com/dietmap/yaak/api/appstore/subscription/StatusUpdateNotification.kt @@ -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, @@ -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?, @get:JsonProperty("pending_renewal_info") val pendingRenewalInfo: Collection?,