Returning the appropriate class for getRefunds and getRefund method