extendSubscriptionRenewalDate method
Future<ExtendRenewalDateResponse>
extendSubscriptionRenewalDate(
- String originalTransactionId,
- ExtendRenewalDateRequest request
Extend the renewal date of a customer’s active subscription using the original transaction identifier.
Param: originalTransactionId - The original transaction identifier of the subscription receiving a renewal date extension.
Implementation
Future<ExtendRenewalDateResponse> extendSubscriptionRenewalDate(
String originalTransactionId, ExtendRenewalDateRequest request) async {
var url = _appStoreServerHttpClient
.getUrl('/inApps/v1/subscriptions/extend/$originalTransactionId');
var response = await _appStoreServerHttpClient.put(url,
body: jsonEncode(request.toJson()));
return ExtendRenewalDateResponse.fromJson(jsonDecode(response.body));
}