2 Commits
update ... fix

Author SHA1 Message Date
sanjid133
75ba2f30ea fix auto renew status 2020-02-11 20:00:58 +06:00
sanjid133
d6cb5f5767 remove duplicate 2019-12-05 13:57:52 +06:00

View File

@@ -95,7 +95,7 @@ type (
IsTrialPeriod string `json:"is_trial_period"` IsTrialPeriod string `json:"is_trial_period"`
IsInIntroOfferPeriod string `json:"is_in_intro_offer_period,omitempty"` IsInIntroOfferPeriod string `json:"is_in_intro_offer_period,omitempty"`
IsUpgraded string `json:"is_upgraded"` IsUpgraded string `json:"is_upgraded,omitempty"`
ExpiresDate ExpiresDate
@@ -104,7 +104,6 @@ type (
CancellationDate CancellationDate
CancellationReason string `json:"cancellation_reason,omitempty"` CancellationReason string `json:"cancellation_reason,omitempty"`
IsUpgraded string `json:"is_upgraded,omitempty"`
} }
// The Receipt type has whole data of receipt // The Receipt type has whole data of receipt
@@ -153,14 +152,14 @@ type (
// The IAPLatestResponse type has the response properties // The IAPLatestResponse type has the response properties
// If you use latest_receipt as token to verify, response should be like following struct // If you use latest_receipt as token to verify, response should be like following struct
IAPLatestResponse struct { IAPLatestResponse struct {
Status int `json:"status,omitempty"` Status int `json:"status,omitempty"`
Receipt InApp `json:"receipt"` Receipt InApp `json:"receipt"`
LatestReceiptInfo InApp `json:"latest_receipt_info,omitempty"` LatestReceiptInfo InApp `json:"latest_receipt_info,omitempty"`
LatestExpiredReceiptInfo InApp `json:"latest_expired_receipt_info,omitempty"` LatestExpiredReceiptInfo InApp `json:"latest_expired_receipt_info,omitempty"`
LatestReceipt string `json:"latest_receipt,omitempty"` LatestReceipt string `json:"latest_receipt,omitempty"`
SubscriptionAutoRenewStatus string `json:"auto_renew_status,omitempty"` SubscriptionAutoRenewStatus interface{} `json:"auto_renew_status,omitempty"`
SubscriptionAutoRenewProductID string `json:"auto_renew_product_id,omitempty"` SubscriptionAutoRenewProductID string `json:"auto_renew_product_id,omitempty"`
SubscriptionRetryFlag string `json:"is_in_billing_retry_period,omitempty"` SubscriptionRetryFlag string `json:"is_in_billing_retry_period,omitempty"`
} }
// The HttpStatusResponse struct contains the status code returned by the store // The HttpStatusResponse struct contains the status code returned by the store