-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathTransactionsClient.java
More file actions
33 lines (26 loc) · 922 Bytes
/
TransactionsClient.java
File metadata and controls
33 lines (26 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.razorpay;
import org.json.JSONObject;
import java.util.List;
public class TransactionsClient extends ApiClient {
TransactionsClient(String auth) {
super(auth);
}
public PayoutLink fetch(String id) throws RazorpayException {
return get(String.format(Constants.TRANSACTIONS_FETCH, id), null);
}
/**
* It is wrapper of fetchAll with parameter here sending null defines fetchAll
* with a default values without filteration
* @throws RazorpayException
*/
public List<Transactions> fetchAll() throws RazorpayException {
return fetchAll(null);
}
/**
* This method get list of transactions filtered by parameters @request
* @throws RazorpayException
*/
public List<Transactions> fetchAll(JSONObject request) throws RazorpayException {
return getCollection(Constants.TRANSACTIONS_FETCH_ALL, request);
}
}