listAll method
https://developers.paymongo.com/reference/list-all-payments
Use secret API key to retrieve a list of Payments.
Implementation
@override
Future<PaymentListAllResponse> listAll([
PaymentListQueryParams? queryParams,
]) async {
final options = PayMongoOptions(
path: '/payments',
params: queryParams?.toMap(),
);
final response = await _httpClient.fetch(options);
final json = serialize<Map<String, dynamic>>(
response,
options.path,
onSerializedCallback: (json) => json as Map<String, dynamic>,
);
return PaymentListAllResponse.fromMap(json);
}