public class CustomerClient extends Object
| Modifier and Type | Method and Description |
|---|---|
Customer |
create(org.json.JSONObject request) |
<T> T |
delete(String version,
String path,
org.json.JSONObject requestObject) |
Customer |
deleteToken(String id,
String tokenId) |
Customer |
edit(String id,
org.json.JSONObject request) |
Customer |
fetch(String id) |
List<Customer> |
fetchAll()
It is wrapper of fetchAll with parameter here sending null defines fetchAll
with a default values without filteration
|
List<Customer> |
fetchAll(org.json.JSONObject request)
This method get list of customers filtered by parameters @request
|
Token |
fetchToken(String id,
String tokenId) |
List<Token> |
fetchTokens(String id) |
<T extends Entity> |
get(String version,
String path,
org.json.JSONObject requestObject) |
<T extends Entity> |
patch(String version,
String path,
org.json.JSONObject requestObject) |
<T> T |
post(String version,
String path,
org.json.JSONObject requestObject) |
<T extends Entity> |
put(String version,
String path,
org.json.JSONObject requestObject) |
public Customer create(org.json.JSONObject request) throws RazorpayException
RazorpayExceptionpublic Customer fetch(String id) throws RazorpayException
RazorpayExceptionpublic Customer edit(String id, org.json.JSONObject request) throws RazorpayException
RazorpayExceptionpublic List<Customer> fetchAll() throws RazorpayException
RazorpayExceptionpublic List<Customer> fetchAll(org.json.JSONObject request) throws RazorpayException
RazorpayExceptionpublic List<Token> fetchTokens(String id) throws RazorpayException
RazorpayExceptionpublic Token fetchToken(String id, String tokenId) throws RazorpayException
RazorpayExceptionpublic Customer deleteToken(String id, String tokenId) throws RazorpayException
RazorpayExceptionpublic <T extends Entity> T get(String version, String path, org.json.JSONObject requestObject) throws RazorpayException
RazorpayExceptionpublic <T> T post(String version, String path, org.json.JSONObject requestObject) throws RazorpayException
RazorpayExceptionpublic <T extends Entity> T put(String version, String path, org.json.JSONObject requestObject) throws RazorpayException
RazorpayExceptionpublic <T extends Entity> T patch(String version, String path, org.json.JSONObject requestObject) throws RazorpayException
RazorpayExceptionpublic <T> T delete(String version, String path, org.json.JSONObject requestObject) throws RazorpayException
RazorpayExceptionCopyright © 2023. All rights reserved.