Search in sources :

Example 36 with Call

use of com.squareup.okhttp.Call in project paypayopa-sdk-java by paypay.

the class PaymentApi method createPaymentAuthorizationWithHttpInfo.

/**
 * Create a payment authorization
 * Create a payment authorization to block the money.  **Timeout: 30s**
 *
 * @param body                    Payment
 * @param agreeSimilarTransaction (Optional) If the parameter is set to \"true\", the payment duplication check will be bypassed.  (optional)
 * @return ApiResponse<PaymentDetails>
 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
 */
protected ApiResponse<PaymentDetails> createPaymentAuthorizationWithHttpInfo(Object body, String agreeSimilarTransaction) throws ApiException {
    Call call = ApiUtil.postCallObject(apiClient, "/v2/payments/preauthorize", body, agreeSimilarTransaction);
    Type localVarReturnType = new TypeToken<PaymentDetails>() {
    }.getType();
    return apiClient.execute(call, localVarReturnType, ApiNameConstants.PREAUTHORIZE_PAYMENT);
}
Also used : Call(com.squareup.okhttp.Call) Type(java.lang.reflect.Type) PaymentDetails(jp.ne.paypay.model.PaymentDetails)

Example 37 with Call

use of com.squareup.okhttp.Call in project paypayopa-sdk-java by paypay.

the class PaymentApi method getPaymentDetailsWithHttpInfo.

/**
 * Get payment details
 * Get payment details.  **Timeout: 15s**
 *
 * @param merchantPaymentId (required)
 * @return ApiResponse&lt;PaymentDetails&gt;
 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
 */
protected ApiResponse<PaymentDetails> getPaymentDetailsWithHttpInfo(String merchantPaymentId) throws ApiException {
    Call call = getPaymentDetailsValidateBeforeCall(merchantPaymentId);
    Type localVarReturnType = new TypeToken<PaymentDetails>() {
    }.getType();
    return apiClient.execute(call, localVarReturnType, ApiNameConstants.GET_PAYMENT);
}
Also used : Call(com.squareup.okhttp.Call) Type(java.lang.reflect.Type) PaymentDetails(jp.ne.paypay.model.PaymentDetails)

Example 38 with Call

use of com.squareup.okhttp.Call in project paypayopa-sdk-java by paypay.

the class PaymentApi method createContinuousPaymentWithHttpInfo.

/**
 * Create a continuous payment
 * Create a continuous payment and start the money transfer.  **Timeout: 30s**
 *
 * @param body                    Payment
 * @return ApiResponse&lt;PaymentDetails&gt;
 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
 */
protected ApiResponse<PaymentDetails> createContinuousPaymentWithHttpInfo(Object body) throws ApiException {
    Call call = createContinuousPaymentCall(body);
    Type localVarReturnType = new TypeToken<PaymentDetails>() {
    }.getType();
    return apiClient.execute(call, localVarReturnType, ApiNameConstants.CREATE_CONTINUOUS_PAYMENT);
}
Also used : Call(com.squareup.okhttp.Call) Type(java.lang.reflect.Type) PaymentDetails(jp.ne.paypay.model.PaymentDetails)

Example 39 with Call

use of com.squareup.okhttp.Call in project paypayopa-sdk-java by paypay.

the class PendingPaymentApi method getPendingPaymentDetailsWithHttpInfo.

/**
 * Get payment details for pending payments
 * Get payment details for pending payments.  **Timeout: 15s**
 *
 * @param merchantPaymentId (required)
 * @return ApiResponse&lt;PaymentDetails&gt;
 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
 */
protected ApiResponse<PaymentDetails> getPendingPaymentDetailsWithHttpInfo(String merchantPaymentId) throws ApiException {
    Call call = getPaymentDetailsValidateBeforeCall(merchantPaymentId);
    Type localVarReturnType = new TypeToken<PaymentDetails>() {
    }.getType();
    return apiClient.execute(call, localVarReturnType, ApiNameConstants.GET_REQUEST_ORDER);
}
Also used : Call(com.squareup.okhttp.Call) Type(java.lang.reflect.Type) PaymentDetails(jp.ne.paypay.model.PaymentDetails)

Example 40 with Call

use of com.squareup.okhttp.Call in project paypayopa-sdk-java by paypay.

the class PendingPaymentApi method cancelPendingOrderWithHttpInfo.

/**
 * Cancel a pending order
 * This api is used delete the pending order.  **Timeout: 15s**
 *
 * @param merchantPaymentId (required)
 * @return ApiResponse&lt;NotDataResponse&gt;
 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
 */
protected ApiResponse<NotDataResponse> cancelPendingOrderWithHttpInfo(String merchantPaymentId) throws ApiException {
    Call call = cancelPendingOrderValidateBeforeCall(merchantPaymentId);
    Type localVarReturnType = new TypeToken<NotDataResponse>() {
    }.getType();
    return apiClient.execute(call, localVarReturnType, ApiNameConstants.CANCEL_REQUEST_ORDER);
}
Also used : Call(com.squareup.okhttp.Call) Type(java.lang.reflect.Type) NotDataResponse(jp.ne.paypay.model.NotDataResponse)

Aggregations

Call (com.squareup.okhttp.Call)46 Type (java.lang.reflect.Type)28 Request (com.squareup.okhttp.Request)13 Response (com.squareup.okhttp.Response)13 OkHttpClient (com.squareup.okhttp.OkHttpClient)9 PaymentDetails (jp.ne.paypay.model.PaymentDetails)8 RequestBody (com.squareup.okhttp.RequestBody)5 IOException (java.io.IOException)5 HttpUrl (com.squareup.okhttp.HttpUrl)4 HashMap (java.util.HashMap)4 ReverseCashbackDetails (jp.ne.paypay.model.ReverseCashbackDetails)4 TypeToken (com.google.gson.reflect.TypeToken)3 NotDataResponse (jp.ne.paypay.model.NotDataResponse)3 Base64 (org.apache.commons.codec.binary.Base64)3 Pair (jp.ne.paypay.Pair)2 Request (com.android.volley.Request)1 ApiCommand (com.cloudera.api.swagger.model.ApiCommand)1 ApiCommandList (com.cloudera.api.swagger.model.ApiCommandList)1 ApiHost (com.cloudera.api.swagger.model.ApiHost)1 ApiHostList (com.cloudera.api.swagger.model.ApiHostList)1