reportRequestWithdrawAsync method
Report com os pedidos de saque realizados e para que conta, com filtros e token customizados
todo: describe customApiToken parameter on ReportAsync
Opções de filtros e ordenação
Implementation
Future<PaggedResponseMessage<RequestWithdrawResponseMessage>> reportRequestWithdrawAsync({
String customApiToken = '',
String filter = "?limit=1000",
}) async {
var api = APIResource(_dio, "/withdraw_requests");
var result = await api.getById(partOfUrl: filter, apiUserToken: customApiToken);
return PaggedResponseMessage<RequestWithdrawResponseMessage>(
totalItems: result["totalItems"],
items: (result["items"] as List).map((e) => RequestWithdrawResponseMessage.fromMap(e)).toList(),
);
}