Class JuspayEntity
java.lang.Object
in.juspay.model.JuspayEntity
- Direct Known Subclasses:
Benefits,CalculationInfo,Card,Chargeback,Customer,Mandate,Offer,Order,OrderSession,Payment,PaymentGatewayResponse,PaymentMethod,Refund,Token,TxnCardInfo,TxnDetail,TxnOfferInfo,Wallet,WalletTopup,WalletTopupStatus
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static enumprotected static enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static com.google.gson.JsonObjectaddInputParamsToResponse(Map<String, Object> params, com.google.gson.JsonObject response) protected static <T> TcreateEntityFromResponse(com.google.gson.JsonElement response, Class<T> entityClass) protected static com.google.gson.JsonObjectdecryptResponse(com.google.gson.JsonObject data, JweJwsEncryptionKeys jweJwsEncryptionKeys) encryptRequest(Map<String, Object> params, JweJwsEncryptionKeys jweJwsEncryptionKeys) protected static JuspayEntity.AuthMethodgetEncryptionMethodBasedOnConfig(RequestOptions requestOptions) protected static com.google.gson.JsonObjectmakeServiceCall(String path, Map<String, Object> params, JuspayEntity.RequestMethod method, RequestOptions requestOptions) protected static com.google.gson.JsonObjectmakeServiceCall(String path, Map<String, Object> params, JuspayEntity.RequestMethod method, RequestOptions requestOptions, JuspayEntity.AuthMethod authMethod) protected static com.google.gson.JsonObjectmakeServiceCallWithAuthDecider(String path, Map<String, Object> params, JuspayEntity.RequestMethod method, RequestOptions requestOptions)
-
Constructor Details
-
JuspayEntity
public JuspayEntity()
-
-
Method Details
-
getEncryptionMethodBasedOnConfig
protected static JuspayEntity.AuthMethod getEncryptionMethodBasedOnConfig(RequestOptions requestOptions) -
makeServiceCall
protected static com.google.gson.JsonObject makeServiceCall(String path, Map<String, Object> params, JuspayEntity.RequestMethod method, RequestOptions requestOptions) throws APIException, APIConnectionException, AuthorizationException, AuthenticationException, InvalidRequestException -
makeServiceCallWithAuthDecider
protected static com.google.gson.JsonObject makeServiceCallWithAuthDecider(String path, Map<String, Object> params, JuspayEntity.RequestMethod method, RequestOptions requestOptions) throws APIException, APIConnectionException, AuthorizationException, AuthenticationException, InvalidRequestException -
makeServiceCall
protected static com.google.gson.JsonObject makeServiceCall(String path, Map<String, Object> params, JuspayEntity.RequestMethod method, RequestOptions requestOptions, JuspayEntity.AuthMethod authMethod) throws APIException, APIConnectionException, AuthorizationException, AuthenticationException, InvalidRequestException -
decryptResponse
protected static com.google.gson.JsonObject decryptResponse(com.google.gson.JsonObject data, JweJwsEncryptionKeys jweJwsEncryptionKeys) throws APIException - Throws:
APIException
-
encryptRequest
protected static Map<String,Object> encryptRequest(Map<String, Object> params, JweJwsEncryptionKeys jweJwsEncryptionKeys) throws APIException- Throws:
APIException
-
addInputParamsToResponse
-
createEntityFromResponse
protected static <T> T createEntityFromResponse(com.google.gson.JsonElement response, Class<T> entityClass)
-