use of com.squareup.okhttp.Call in project paypayopa-sdk-java by paypay.
the class CashbackApi method createCashbackRequestWithHttpInfo.
/**
* Give Cashback to User
* Transfer money from merchants campaign wallet to user wallet. **Timeout: 30s**
*
* @param cashback Cashback
* @return ApiResponse<CashbackDetails>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
protected ApiResponse<CashbackDetails> createCashbackRequestWithHttpInfo(Cashback cashback) throws ApiException {
Call call = ApiUtil.postCallObject(apiClient, "/v2/cashback", cashback, null);
Type localVarReturnType = new TypeToken<CashbackDetails>() {
}.getType();
return apiClient.execute(call, localVarReturnType, ApiNameConstants.CREATE_CASHBACK_REQUEST);
}
use of com.squareup.okhttp.Call in project paypayopa-sdk-java by paypay.
the class CashbackApi method createReverseCashbackRequestWithHttpInfo.
/**
* Reverse a given cashback
* Transfer money back from user wallet to merchants campaign wallet. **Timeout: 30s**
*
* @param reverseCashback ReverseCashback
* @return ApiResponse<ReverseCashbackDetails>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
protected ApiResponse<ReverseCashbackDetails> createReverseCashbackRequestWithHttpInfo(ReverseCashback reverseCashback) throws ApiException {
Call call = ApiUtil.postCallObject(apiClient, "/v2/cashback_reversal", reverseCashback, null);
Type localVarReturnType = new TypeToken<ReverseCashbackDetails>() {
}.getType();
return apiClient.execute(call, localVarReturnType, ApiNameConstants.CREATE_REVERSE_CASHBACK_REQUEST);
}
use of com.squareup.okhttp.Call in project paypayopa-sdk-java by paypay.
the class CashbackApi method getReversedCashbackDetailsWithHttpInfo.
/**
* Check Cashback Reversal Details
* Check the cashback reversal details of the cashback reversed **Timeout: 15s**
*
* @param merchantCashbackReversalId (required)
* @param merchantCashbackId (required)
* @return ApiResponse<ReverseCashbackDetails>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
protected ApiResponse<ReverseCashbackDetails> getReversedCashbackDetailsWithHttpInfo(String merchantCashbackReversalId, String merchantCashbackId) throws ApiException {
if (StringUtils.isEmpty(merchantCashbackReversalId)) {
throw new IllegalArgumentException("Missing the required parameter merchantCashbackReversalId");
}
Call call = ApiUtil.getCallObject(apiClient, "/v2/cashback_reversal/" + apiClient.escapeString(merchantCashbackReversalId) + "/{merchantCashbackId}", new Pair(ApiConstants.MERCHANT_CASHBACK_ID, merchantCashbackId), "GET");
Type localVarReturnType = new TypeToken<ReverseCashbackDetails>() {
}.getType();
return apiClient.execute(call, localVarReturnType, ApiNameConstants.GET_REVERSED_CASHBACK_DETAILS);
}
use of com.squareup.okhttp.Call in project paypayopa-sdk-java by paypay.
the class PaymentApi method refundPaymentWithHttpInfo.
/**
* Refund a payment
* Refund a payment. **Timeout: 30s**
*
* @param body Refund (optional)
* @return ApiResponse<RefundDetails>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
protected ApiResponse<RefundDetails> refundPaymentWithHttpInfo(Object body) throws ApiException {
Call call = refundPaymentValidateBeforeCall(body);
Type localVarReturnType = new TypeToken<RefundDetails>() {
}.getType();
return apiClient.execute(call, localVarReturnType, ApiNameConstants.REFUND_PAYMENT);
}
use of com.squareup.okhttp.Call in project paypayopa-sdk-java by paypay.
the class PaymentApi method createAccountLinkQRCodeWithHttpInfo.
/**
* Create an Account Link QRCode
* Create an ACCOUNT LINK QR and display it to the user. **Timeout: 10s**
*
* @param body Account Link Code Creation
* @return ApiResponse<LinkQRCodeResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
protected ApiResponse<LinkQRCodeResponse> createAccountLinkQRCodeWithHttpInfo(Object body) throws ApiException {
Call call = createAccountLinkQrCodeCall(body);
Type localVarReturnType = new TypeToken<LinkQRCodeResponse>() {
}.getType();
return apiClient.execute(call, localVarReturnType, ApiNameConstants.CREATE_QR_SESSION);
}
Aggregations