com.razorpay.RefundClient Maven / Gradle / Ivy
package com.razorpay;
import java.util.List;
import org.json.JSONObject;
public class RefundClient extends ApiClient {
RefundClient(String auth) {
super(auth);
}
public Refund create(JSONObject request) throws RazorpayException {
return post(Constants.VERSION, Constants.REFUNDS, request);
}
public List fetchAll(JSONObject request) throws RazorpayException {
return getCollection(Constants.VERSION, Constants.REFUNDS, request);
}
public Refund fetch(String id) throws RazorpayException {
return get(Constants.VERSION, String.format(Constants.REFUND, id), null);
}
public List fetchAll() throws RazorpayException {
return fetchAll(null);
}
public List fetchMultipleRefund(String id) throws RazorpayException {
return fetchMultipleRefund(id,null);
}
public List fetchMultipleRefund(String id,JSONObject request) throws RazorpayException {
return getCollection(Constants.VERSION, String.format(Constants.REFUND_MULTIPLE, id), request);
}
public Refund edit(String id, JSONObject request) throws RazorpayException {
return patch(Constants.VERSION, String.format(Constants.REFUND, id), request);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy