reviewrefund method
Future<void>
reviewrefund(
- OrdersReviewRefundRequest request,
- String packageName,
- String orderId, {
- String? $fields,
Provide refund preference and purchase usage for a chargeback request
request - The metadata request object.
Request parameters:
packageName - Required. The package name of the application for which
this subscription or in-app item was purchased (for example,
'com.some.thing').
orderId - Required. The order ID provided to the user when the
subscription or in-app order was purchased.
$fields - Selector specifying which fields to include in a partial
response.
Completes with a commons.ApiRequestError if the API endpoint returned an error.
If the used http.Client completes with an error when making a REST call,
this method will complete with the same error.
Implementation
async.Future<void> reviewrefund(
OrdersReviewRefundRequest request,
core.String packageName,
core.String orderId, {
core.String? $fields,
}) async {
final body_ = convert.json.encode(request);
final queryParams_ = <core.String, core.List<core.String>>{
'fields': ?$fields == null ? null : [$fields],
};
final url_ =
'androidpublisher/v3/applications/' +
commons.escapeVariable('$packageName') +
'/orders/' +
commons.escapeVariable('$orderId') +
':reviewrefund';
await _requester.request(
url_,
'POST',
body: body_,
queryParams: queryParams_,
downloadOptions: null,
);
}