From d4db0a5affe335d15aec47adc0e2a54627e93587 Mon Sep 17 00:00:00 2001 From: Hilmar Wiegand Date: Thu, 14 Nov 2024 19:27:05 +0100 Subject: [PATCH] fix: Fix switched return types for notification parsing methods --- store.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/store.go b/store.go index 42617c2..eb9e68f 100644 --- a/store.go +++ b/store.go @@ -430,8 +430,8 @@ func (c *StoreClient) ParseNotificationV2Payload(signedPayload string) (*Notific // ParseNotificationV2 parses the signedTransactionInfo from decoded notification data // (https://developer.apple.com/documentation/appstoreservernotifications/data) -func (c *StoreClient) ParseNotificationV2TransactionInfo(signedTransactionInfo string) (*JWSRenewalInfoDecodedPayload, error) { - var result JWSRenewalInfoDecodedPayload +func (c *StoreClient) ParseNotificationV2TransactionInfo(signedTransactionInfo string) (*JWSTransaction, error) { + var result JWSTransaction if err := c.ParseSignedPayload(signedTransactionInfo, &result); err != nil { return nil, err } @@ -441,8 +441,8 @@ func (c *StoreClient) ParseNotificationV2TransactionInfo(signedTransactionInfo s // ParseNotificationV2 parses the signedRenewalInfo from decoded notification data // (https://developer.apple.com/documentation/appstoreservernotifications/data) -func (c *StoreClient) ParseNotificationV2RenewalInfo(signedRenewalInfo string) (*JWSTransaction, error) { - var result JWSTransaction +func (c *StoreClient) ParseNotificationV2RenewalInfo(signedRenewalInfo string) (*JWSRenewalInfoDecodedPayload, error) { + var result JWSRenewalInfoDecodedPayload if err := c.ParseSignedPayload(signedRenewalInfo, &result); err != nil { return nil, err }