forked from Mirrors/go-iap
Remove the fields which are not existing in the raw response from AppStore
This commit is contained in:
@@ -5,7 +5,10 @@ type (
|
|||||||
// The IAPRequest type has the request parameter
|
// The IAPRequest type has the request parameter
|
||||||
IAPRequest struct {
|
IAPRequest struct {
|
||||||
ReceiptData string `json:"receipt-data"`
|
ReceiptData string `json:"receipt-data"`
|
||||||
|
// Only used for receipts that contain auto-renewable subscriptions.
|
||||||
Password string `json:"password,omitempty"`
|
Password string `json:"password,omitempty"`
|
||||||
|
// Only used for iOS7 style app receipts that contain auto-renewable or non-renewing subscriptions.
|
||||||
|
// If value is true, response includes only the latest renewal transaction for any subscriptions.
|
||||||
ExcludeOldTransactions bool `json:"exclude-old-transactions"`
|
ExcludeOldTransactions bool `json:"exclude-old-transactions"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -57,16 +60,9 @@ type (
|
|||||||
ProductID string `json:"product_id"`
|
ProductID string `json:"product_id"`
|
||||||
TransactionID string `json:"transaction_id"`
|
TransactionID string `json:"transaction_id"`
|
||||||
OriginalTransactionID string `json:"original_transaction_id"`
|
OriginalTransactionID string `json:"original_transaction_id"`
|
||||||
AppItemID string `json:"app_item_id"`
|
|
||||||
VersionExternalIdentifier string `json:"version_external_identifier"`
|
|
||||||
WebOrderLineItemID string `json:"web_order_line_item_id"`
|
WebOrderLineItemID string `json:"web_order_line_item_id"`
|
||||||
|
|
||||||
IsTrialPeriod string `json:"is_trial_period"`
|
IsTrialPeriod string `json:"is_trial_period"`
|
||||||
SubscriptionExpirationIntent string `json:"expiration_intent"`
|
|
||||||
SubscriptionRetryFlag string `json:"is_in_billing_retry_period"`
|
|
||||||
SubscriptionAutoRenewProductID string `json:"auto_renew_product_id"`
|
|
||||||
SubscriptionAutoRenewStatus string `json:"auto_renew_status"`
|
|
||||||
SubscriptionPriceConsentStatus string `json:"price_consent_status"`
|
|
||||||
ExpiresDate
|
ExpiresDate
|
||||||
|
|
||||||
PurchaseDate
|
PurchaseDate
|
||||||
|
|||||||
Reference in New Issue
Block a user