@@ -301,7 +301,7 @@ func (a *StoreClient) ExtendSubscriptionRenewalDateForAll(ctx context.Context, b
301
301
}
302
302
303
303
// GetSubscriptionRenewalDataStatus https://developer.apple.com/documentation/appstoreserverapi/get_status_of_subscription_renewal_date_extensions
304
- func (a * StoreClient ) GetSubscriptionRenewalDataStatus (ctx context.Context , productId , requestIdentifier string ) (rsp * MassExtendRenewalDateStatusResponse , err error ) {
304
+ func (a * StoreClient ) GetSubscriptionRenewalDataStatus (ctx context.Context , productId , requestIdentifier string ) (statusCode int , rsp * MassExtendRenewalDateStatusResponse , err error ) {
305
305
URL := HostProduction + PathGetStatusOfSubscriptionRenewalDate
306
306
if a .Token .Sandbox {
307
307
URL = HostSandBox + PathGetStatusOfSubscriptionRenewalDate
@@ -311,15 +311,15 @@ func (a *StoreClient) GetSubscriptionRenewalDataStatus(ctx context.Context, prod
311
311
312
312
statusCode , body , err := a .Do (ctx , http .MethodGet , URL , nil )
313
313
if statusCode != http .StatusOK {
314
- return nil , fmt .Errorf ("appstore api: %v return status code %v" , URL , statusCode )
314
+ return statusCode , nil , fmt .Errorf ("appstore api: %v return status code %v" , URL , statusCode )
315
315
}
316
316
317
317
err = json .Unmarshal (body , & rsp )
318
318
if err != nil {
319
- return nil , err
319
+ return statusCode , nil , err
320
320
}
321
321
322
- return rsp , nil
322
+ return statusCode , rsp , nil
323
323
}
324
324
325
325
// GetNotificationHistory https://developer.apple.com/documentation/appstoreserverapi/get_notification_history
0 commit comments