From 073874b26d1657a2e3a549c8a8ab11ee854285ba Mon Sep 17 00:00:00 2001 From: sanjid133 Date: Wed, 7 Aug 2019 15:16:30 +0600 Subject: [PATCH] Add renewal field --- appstore/model.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/appstore/model.go b/appstore/model.go index a6f0f4f..e0ad39c 100644 --- a/appstore/model.go +++ b/appstore/model.go @@ -154,11 +154,14 @@ type ( // The IAPLatestResponse type has the response properties // If you use latest_receipt as token to verify, response should be like following struct IAPLatestResponse struct { - Status int `json:"status"` - Receipt InApp `json:"receipt"` - LatestReceiptInfo InApp `json:"latest_receipt_info,omitempty"` - LatestExpiredReceiptInfo InApp `json:"latest_expired_receipt_info,omitempty"` - LatestReceipt string `json:"latest_receipt,omitempty"` + Status int `json:"status"` + Receipt InApp `json:"receipt"` + LatestReceiptInfo InApp `json:"latest_receipt_info,omitempty"` + LatestExpiredReceiptInfo InApp `json:"latest_expired_receipt_info,omitempty"` + LatestReceipt string `json:"latest_receipt,omitempty"` + SubscriptionAutoRenewStatus string `json:"auto_renew_status,omitempty"` + SubscriptionAutoRenewProductID string `json:"auto_renew_product_id,omitempty"` + SubscriptionRetryFlag string `json:"is_in_billing_retry_period,omitempty"` } // The HttpStatusResponse struct contains the status code returned by the store