getRefundHistory method
Get a list of all refunded in-app purchases in your app for a customer.
Param: originalTransactionId - The original transaction identifier of any transaction belonging to the customer.
Implementation
Future<RefundLookupResponse> getRefundHistory(
String originalTransactionId) async {
var url = _appStoreServerHttpClient
.getUrl('/inApps/v1/refund/lookup/$originalTransactionId');
var response = await _appStoreServerHttpClient.get(url);
return RefundLookupResponse.fromJson(jsonDecode(response.body));
}