@@ -24,7 +24,7 @@ const (
24
24
HostProduction = "https://api.storekit.itunes.apple.com"
25
25
26
26
PathLookUp = "/inApps/v1/lookup/{orderId}"
27
- PathTransactionHistory = "/inApps/v2/history/{originalTransactionId }"
27
+ PathTransactionHistory = "/inApps/v2/history/{transactionId }"
28
28
PathTransactionHistoryV1 = "/inApps/v1/history/{originalTransactionId}"
29
29
PathTransactionInfo = "/inApps/v1/transactions/{transactionId}"
30
30
PathRefundHistory = "/inApps/v2/refund/lookup/{originalTransactionId}"
66
66
GetALLSubscriptionStatuses (ctx context.Context , originalTransactionId string , query * url.Values ) (rsp * StatusResponse , err error )
67
67
GetRefundHistory (ctx context.Context , originalTransactionId string ) (responses []* RefundLookupResponse , err error )
68
68
GetSubscriptionRenewalDataStatus (ctx context.Context , productId , requestIdentifier string ) (statusCode int , rsp * MassExtendRenewalDateStatusResponse , err error )
69
- GetTransactionHistory (ctx context.Context , originalTransactionId string , query * url.Values ) (responses []* HistoryResponse , err error )
69
+ GetTransactionHistory (ctx context.Context , transactionId string , query * url.Values ) (responses []* HistoryResponse , err error )
70
70
GetTransactionInfo (ctx context.Context , transactionId string ) (rsp * TransactionInfoResponse , err error )
71
71
LookupOrderID (ctx context.Context , orderId string ) (rsp * OrderLookupResponse , err error )
72
72
}
@@ -190,9 +190,9 @@ func (a *StoreClient) LookupOrderID(ctx context.Context, orderId string) (rsp *O
190
190
}
191
191
192
192
// GetTransactionHistory https://developer.apple.com/documentation/appstoreserverapi/get_transaction_history
193
- func (a * StoreClient ) GetTransactionHistory (ctx context.Context , originalTransactionId string , query * url.Values ) (responses []* HistoryResponse , err error ) {
193
+ func (a * StoreClient ) GetTransactionHistory (ctx context.Context , transactionId string , query * url.Values ) (responses []* HistoryResponse , err error ) {
194
194
URL := a .host + PathTransactionHistory
195
- URL = strings .Replace (URL , "{originalTransactionId }" , originalTransactionId , - 1 )
195
+ URL = strings .Replace (URL , "{transactionId }" , transactionId , - 1 )
196
196
197
197
if query == nil {
198
198
query = & url.Values {}
0 commit comments