refundStarsCharge method

Future<Result<UpdatesBase>> refundStarsCharge({
  1. required InputUserBase userId,
  2. required String chargeId,
})

Refund Stars Charge.

ID: 25ae8f4a.

Implementation

Future<Result<UpdatesBase>> refundStarsCharge({
  required InputUserBase userId,
  required String chargeId,
}) async {
  // Preparing the request.
  final request = PaymentsRefundStarsCharge(
    userId: userId,
    chargeId: chargeId,
  );

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<UpdatesBase>();
}