get method

Future<Refund> get(
  1. String id
)

Retrieve a refund by ID

Implementation

Future<Refund> get(String id) async {
  final response = await _http.get('/refunds/$id');
  return Refund.fromJson(response['data'] ?? response);
}