Skip to content

Commit df51fc7

Browse files
committed
feat(appstore): add query parameters to get all all subscription status api
1 parent 848d108 commit df51fc7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

appstore/api/store.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,15 @@ func NewStoreClientWithHTTPClient(config *StoreConfig, httpClient *http.Client)
7777
}
7878

7979
// GetALLSubscriptionStatuses https://developer.apple.com/documentation/appstoreserverapi/get_all_subscription_statuses
80-
func (a *StoreClient) GetALLSubscriptionStatuses(ctx context.Context, originalTransactionId string) (rsp *StatusResponse, err error) {
80+
func (a *StoreClient) GetALLSubscriptionStatuses(ctx context.Context, originalTransactionId string, query *url.Values) (rsp *StatusResponse, err error) {
8181
URL := HostProduction + PathGetALLSubscriptionStatus
8282
if a.Token.Sandbox {
8383
URL = HostSandBox + PathGetALLSubscriptionStatus
8484
}
8585
URL = strings.Replace(URL, "{originalTransactionId}", originalTransactionId, -1)
86+
if query != nil {
87+
URL = URL + "?" + query.Encode()
88+
}
8689
statusCode, body, err := a.Do(ctx, http.MethodGet, URL, nil)
8790
if err != nil {
8891
return

0 commit comments

Comments
 (0)