prepareRefund method

Future<PrepareRefundResponse> prepareRefund({
  1. required PrepareRefundRequest req,
  2. dynamic hint,
})
override

See BreezServices::prepare_refund

Implementation

Future<PrepareRefundResponse> prepareRefund({required PrepareRefundRequest req, dynamic hint}) {
  var arg0 = _platform.api2wire_box_autoadd_prepare_refund_request(req);
  return _platform.executeNormal(FlutterRustBridgeTask(
    callFfi: (port_) => _platform.inner.wire_prepare_refund(port_, arg0),
    parseSuccessData: _wire2api_prepare_refund_response,
    parseErrorData: _wire2api_FrbAnyhowException,
    constMeta: kPrepareRefundConstMeta,
    argValues: [req],
    hint: hint,
  ));
}